During a code review, you notice that a colleague frequently introduces merge conflicts due to large, sweeping changes. How would you address this issue to improve collaboration and code stability in the project?
- Ignore the issue and let the colleague handle their approach to code changes.
- Implement strict branch control, limiting the number of branches for each developer.
- Provide constructive feedback, suggesting smaller, more frequent commits and communication about upcoming changes.
- Raise the concern in a team meeting, highlighting the impact on code stability.
Offering constructive feedback encourages a positive environment. Suggesting smaller, more frequent commits fosters better collaboration and reduces the likelihood of disruptive conflicts.
What is ACID in the context of database transactions?
- ACID stands for Aggregation, Consistency, Isolation, Distribution
- ACID stands for Association, Concurrency, Isolation, Dependency
- ACID stands for Atomicity, Consistency, Isolation, Durability
- ACID stands for Authentication, Compression, Integration, Durability
ACID in the context of database transactions stands for Atomicity, Consistency, Isolation, and Durability. It ensures reliable processing of database transactions even in the face of errors or failures.
In Infrastructure as Code, _______ describes the desired state of the infrastructure.
- Ansible
- Puppet
- Terraform
- YAML
In Infrastructure as Code (IaC), Terraform is commonly used to describe the desired state of the infrastructure. Terraform allows for the declarative definition of infrastructure, making it easier to manage and version control.
The _______ backup strategy involves backing up only data that has changed since the last backup.
- Differential
- Full
- Incremental
- Snapshot
The correct term is "Incremental." Incremental backup involves backing up only the data that has changed since the last backup, reducing the time and storage space required.
Which term refers to the practice of automatically scaling infrastructure based on demand?
- Auto Scaling
- Elasticity
- High Availability
- Load Balancing
Elasticity refers to the practice of automatically scaling infrastructure based on demand. It allows resources to dynamically expand or contract to handle varying workloads, ensuring optimal performance and resource utilization.
One of the methods to prevent deadlocks is _______ where transactions are rolled back and restarted in a different order.
- Backtracking
- Restart
- Rollback
- Timeout
One of the methods to prevent deadlocks is restarting transactions, where transactions involved in a potential deadlock are rolled back and restarted in a different order. This helps break the cycle of dependencies that lead to deadlocks.
Continuous _______ (CI) is a practice supported by collaboration tools, where code changes are automatically tested and integrated into the main codebase.
- Improvement
- Inspection
- Integration
- Iteration
Continuous Integration (CI) is a practice where code changes are automatically tested and integrated into the main codebase. It supports collaboration tools to ensure a smooth and continuous development process.
The practice of writing only enough code to pass the existing tests is known as _______.
- Agile Coding
- Incremental Development
- Minimal Viable Product (MVP)
- Red-Green-Refactor
The practice of writing only enough code to pass the existing tests in TDD is known as Red-Green-Refactor. It involves writing a failing test (Red), making the test pass by writing the minimum code (Green), and then refactoring the code without changing its behavior.
How can you include CSS in your HTML document?
- External, Internal, Embed
- External, Internal, Inline
- Import, External, Inline
- Import, Internal, Inline
CSS can be included in an HTML document using External, Internal, and Inline methods. External uses a separate CSS file, Internal uses the