DevNet Associate (DEVASC) v1.0Application Deployment and SecurityMedium
A developer is implementing a CI/CD pipeline for a new web application. After successful code commit and unit tests, the next stage involves automatically deploying the application to a staging environment for integration testing. Which CI/CD concept does this scenario best represent?
- AVersion Control System (VCS)
- BContinuous Delivery (CD)
- CContinuous Deployment (CD)
- DContinuous Integration (CI)
Show answer & explanationAnswer & explanation
Correct answer: B. Continuous Delivery (CD)
Continuous Delivery (CD) automates the process of building, testing, and preparing code releases, ensuring that an application can be released to production at any time, but still requires manual approval for the final production deployment.
Why the other options are wrong
- A. VCS is used for managing code changes, not for automating the build and deployment process itself.
- C. Continuous Deployment automatically deploys all changes that pass tests to production without manual intervention.
- D. CI focuses on merging code frequently and running automated tests, but doesn't necessarily include automated deployment to staging.
Continuous Delivery
An approach where code changes are automatically built, tested, and prepared for a release to production. It ensures the software is always in a deployable state, but a human decision is still required to deploy to production.
- Automates build and test phases.
- Prepares releases for production.
- Requires manual approval for production deployment.
Memory trick: CI integrates, CD delivers, CD deploys automatically.