CompTIA Cloud Essentials+ (CLO-002)Management and Technical OperationsEasy
A development team is adopting a continuous integration and continuous delivery (CI/CD) pipeline. They want to ensure that every code change is automatically built, tested, and prepared for deployment to a staging environment. Which of the following best describes the primary goal of the 'Continuous Integration' phase in this pipeline?
- ATo provision and de-provision cloud infrastructure resources on demand.
- BTo ensure that code changes are regularly merged, built, and tested.
- CTo automatically deploy validated code to production servers.
- DTo continuously monitor application performance in a live environment.
Show answer & explanationAnswer & explanation
Correct answer: B. To ensure that code changes are regularly merged, built, and tested.
Continuous Integration focuses on frequently merging code changes into a central repository, followed by automated builds and tests to detect integration issues early, ensuring the codebase remains stable.
Why the other options are wrong
- A. This relates to infrastructure provisioning, not specifically to continuous code integration.
- C. This describes Continuous Delivery or Deployment, not Continuous Integration.
- D. This is part of monitoring and operations, separate from the integration phase of CI/CD.
Continuous Integration (CI)
A DevOps practice where developers frequently merge their code changes into a central repository, after which automated builds and tests are run.
- Aims to detect integration errors early.
- Requires automated build and test processes.
- Leads to a more stable and reliable codebase.
Memory trick: Code changes flow from integration to delivery, then deployment.