DVA-C02 Question 291
Single answerYou are configuring an AWS CodePipeline for an application deployment. The pipeline has multiple stages, and you want to include a step where a manager must manually approve the deployment before it can proceed to the production environment. Which of the following is the MOST appropriate way to achieve this?
- A
Add a Manual Approval action in the stage before the production deployment stage.
- B
Use an AWS Lambda function to request manual approval and delay the pipeline until approval is received.
- C
Configure an SNS topic to send an email for approval, and the pipeline will proceed automatically after the email is sent.
- D
Add an Amazon S3 bucket to store approval status before proceeding to the production stage.
Show answer and explanation
Correct answer: A
Explanation
AWS CodePipeline provides a native Manual Approval action, which is the recommended way to pause the pipeline and require manual intervention before proceeding to sensitive stages, such as deploying to production. This action allows you to specify approvers and include comments or instructions for the approval process.
- A. Correct.
This is correct. AWS CodePipeline provides a built-in Manual Approval action that can be added to a stage, allowing a designated user or group to approve or reject the pipeline before it proceeds.
- B. Incorrect.
This is incorrect. Although Lambda functions can perform custom logic, they are not the recommended or built-in way to implement manual approvals in CodePipeline.
- C. Incorrect.
This is incorrect. While SNS can send notifications, it does not provide an automated mechanism to pause the pipeline and wait for manual approval.
- D. Incorrect.
This is incorrect. Using an S3 bucket for storing approval status is not a standard or supported method for implementing manual approvals in AWS CodePipeline.