Your team needs to develop a real-time chat application. Which framework would you recommend and why?
- ASP.NET SignalR
- Django Channels
- Firebase
- Socket.io
Socket.io is a reliable choice for developing real-time chat applications. It enables bidirectional communication and supports WebSocket, making it efficient for handling real-time updates in a chat system.
In which scenario would you typically use the "git rebase" command over "git merge"?
- When creating a new branch for a bug fix
- When dealing with conflicts in parallel branches
- When wanting to keep a linear history
- When working on a feature branch to incorporate upstream changes smoothly
The "git rebase" command is used to maintain a linear project history by moving, combining, or eliminating existing commits. It's typically employed to integrate upstream changes smoothly into a feature branch, resulting in a cleaner and more readable history.
_______ scope is created when a function is defined and persists even after the function returns.
- Closure
- Global
- Local
- Static
Closure scope is created when a function is defined inside another function. It allows the inner function to access the outer function's variables, even after the outer function has finished executing.
What is Git?
- Database Management System
- Programming Language
- Version Control System
- Web Browser
Git is a Version Control System (VCS) that enables multiple developers to collaborate on a project efficiently. It tracks changes in source code during software development, allowing teams to manage and coordinate their work.
_______ logging refers to the practice of correlating log entries from different services or components to trace a request's path through a distributed system.
- Aggregated
- Centralized
- Cross-cutting
- Distributed
Distributed logging refers to the practice of correlating log entries from different services or components to trace a request's path through a distributed system. It is crucial for debugging and understanding the flow of requests in complex, interconnected systems.
Which principle suggests that infrastructure changes should be reversible?
- Consistency
- Idempotency
- Immutability
- Reversibility
The principle of reversibility suggests that infrastructure changes should be reversible. This means that any changes made to the infrastructure can be rolled back, providing a safety net in case of errors or unexpected issues.
Which cloud platform offers services like Google Compute Engine and Google Kubernetes Engine?
- Amazon Web Services (AWS)
- Google Cloud Platform (GCP)
- IBM Cloud
- Microsoft Azure
Google Cloud Platform (GCP) offers services like Google Compute Engine (IaaS) and Google Kubernetes Engine (Container Orchestration). GCP provides a range of cloud services and is known for its data analytics and machine learning capabilities.
What is a common language used for defining infrastructure as code?
- HTML
- JSON
- XML
- YAML
JSON (JavaScript Object Notation) is a common language used for defining infrastructure as code. It is a lightweight and human-readable data interchange format, making it well-suited for configuration files. YAML is another popular choice for its simplicity and readability in configuration management.
Which SQL command is used to add a new row to a database table?
- ADD
- INSERT
- MODIFY
- UPDATE
The INSERT SQL command is used to add a new row to a database table. It allows you to insert data into a specified table.
What does OAuth primarily focus on in terms of user authorization?
- Delegated access to resources
- Encryption of user data
- Password hashing
- Two-factor authentication
OAuth primarily focuses on delegated access to resources. It allows one service to perform actions on behalf of a user, without exposing their credentials.
You're tasked with optimizing a database query that takes a long time to execute. What strategies would you employ to improve its performance?
- Increase database server memory
- Index the relevant columns
- Normalize the database schema
- Utilize caching mechanisms
Indexing the relevant columns is a key strategy for optimizing database queries. It helps speed up data retrieval by creating efficient access paths to the required information, reducing query execution time.
A common branching strategy where developers create a new branch for each new feature is called _______.
- Feature Branching
- Hotfix Branching
- Master Branching
- Release Branching
Feature Branching is a common branching strategy where developers create a new branch for each new feature they are working on. This approach helps in isolating changes related to a specific feature and facilitates parallel development.