Course menuDVA-C02

Exams / DVA-C02 / CI/CD with CodePipeline and CodeBuild / Question 3

DVA-C02 practice question: CI/CD with CodePipeline and CodeBuild (3 of 3)

Deployment A free question from our original DVA-C02 practice exam. Try it, then open the answer to see why each option is right or wrong.

A CodePipeline pipeline builds an application and deploys it to staging and then to production. The release manager wants the pipeline to stop after staging until someone with the right permissions reviews the release and allows it to continue to production. What should the developer add?

Choose one answer.

  1. A. A CodeBuild action that runs sleep until someone cancels the build.
  2. B. A CloudWatch alarm that stops the pipeline when the staging deployment finishes.
  3. C. A second pipeline for production that the release manager starts by hand.
  4. D. A manual approval action between the staging and production stages.
Show the answer and explanation

Answer: D

  • A. Wrong: Sleeping in a build wastes build time, has no approve or reject step and does not record who made the decision.
  • B. Wrong: Alarms react to metrics. They do not pause a pipeline for a human decision.
  • C. Wrong: This splits the release into two pipelines and loses the link between the tested build and the production deployment.
  • D. Right: Correct. The pipeline pauses at the action, can notify approvers through SNS, and continues only when an authorised user approves.

Explanation

CodePipeline manual approval actions pause an execution until someone with the required IAM permissions approves or rejects it. A rejection fails the stage. Optional SNS notifications and a review URL help approvers decide. If nobody responds within the approval timeout, the action fails.

Study

Keep practising

Answer questions with a score at the end, or practise just this topic with the explanation after each one. No sign-up needed.