DevNet Associate (DEVASC) v1.0Application Deployment and SecurityMedium
A DevOps team is implementing a CI/CD pipeline for a new microservice. They want to automate the process of building the application, running unit and integration tests, and pushing the resulting Docker image to a container registry. Which specific stage of the CI/CD pipeline does this set of activities primarily represent?
- AContinuous Integration
- BDeployment
- CMonitoring
- DContinuous Delivery
Show answer & explanationAnswer & explanation
Correct answer: A. Continuous Integration
Continuous Integration (CI) focuses on automating the build, test, and often the packaging (e.g., Docker image creation) of code changes from multiple developers into a shared repository.
Why the other options are wrong
- B. Deployment is the act of releasing the application to an environment, typically after CI/CD stages.
- C. Monitoring occurs after deployment to observe application performance and health.
- D. Continuous Delivery extends CI by ensuring the software can be released reliably at any time, but CI is the initial focus.
Continuous Integration (CI)
A development practice where developers frequently merge their code changes into a central repository, after which automated builds and tests are run.
- Reduces integration problems.
- Provides rapid feedback on code quality.
- Involves automated building, testing, and sometimes packaging.
Memory trick: CI builds and tests, CD delivers, then CD deploys.