Course menuDVA-C03

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

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

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

Last verified against current AWS documentation ·How we write our questions

A CodePipeline pipeline deploys an app to a staging stage, then to a production stage.

The release manager wants the pipeline to pause before production until a release approver has reviewed staging and approved the release. The approver should be notified by email and should get a link to the staging site to review.

What should the developer add?

Choose one answer.

  1. A. A CodeBuild action that runs sleep for a long time, which someone cancels once staging has been approved.
  2. B. A CloudWatch alarm that stops the pipeline when the staging deployment finishes, and restarts it when staging is approved.
  3. C. A manual approval action between staging and production, with SNS notifications and a link to the staging site.
  4. D. A second pipeline for production, which the release manager starts by hand once staging looks right.
Show the answer and explanation

Answer: C

  • A. Wrong: A sleeping build uses build minutes and is not an approval. The approver has no approval action to accept or reject, so the decision is not recorded in the pipeline.
  • B. Wrong: Alarms react to metrics and cannot hold a pipeline at a stage for a person's decision. The pipeline would not wait for an approver.
  • C. Right: Correct. A manual approval action pauses the execution until an IAM identity with permission to update the approval action approves or rejects it. The SNS topic notifies approvers, and the review URL points them to staging. Learn more: Add a manual approval action in CodePipeline (opens in a new tab)
  • D. Wrong: A separate pipeline removes the gate from this pipeline, so production is no longer tied to staging's outcome. Nothing pauses for an approver's decision.

Explanation

A manual approval action pauses a pipeline execution between two stages. Only IAM identities granted permission to update that approval action can approve or reject it, and approvers can be notified through an SNS topic and sent to a review URL. Alarms, sleeping builds and separate pipelines cannot provide that gate.

Study

Keep practicing

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

Want more on CI/CD with CodePipeline and CodeBuild? The 5 full-length practice sets have 18 more CI/CD with CodePipeline and CodeBuild questions, 390 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets