DVA-C02 Question 290
Single answerYou are developing a deployment pipeline for a web application using AWS CodePipeline. The pipeline includes a stage where a manual review is required before deploying changes to the production environment. The approval should only be granted by the operations team. Which feature of AWS CodePipeline can you use to implement this requirement?
- A
Add a Manual Approval action to the pipeline and configure an SNS topic to notify the operations team
- B
Use a Lambda function to pause the pipeline and wait for input from the operations team
- C
Integrate CodePipeline with Amazon CloudWatch Events to notify the operations team and wait for their response
- D
Configure a deployment strategy in CodeDeploy to require manual approval before deployment
Show answer and explanation
Correct answer: A
Explanation
The Manual Approval action in AWS CodePipeline is specifically designed for scenarios where human intervention is required before proceeding with the next stage of the pipeline. By configuring an SNS topic, teams can be notified when their approval is needed. This feature ensures that operations teams can review and approve changes before deploying to production.
- A. Correct.
This is the correct answer. AWS CodePipeline provides a 'Manual Approval' action that pauses the pipeline and allows specific IAM users or roles (e.g., the operations team) to approve or reject the stage. Notifications can be sent using SNS.
- B. Incorrect.
This is incorrect. While Lambda can be used to automate parts of the pipeline, it is not designed to pause the pipeline for manual approval.
- C. Incorrect.
This is incorrect. While you can use Amazon CloudWatch Events to send notifications, it does not provide a mechanism to pause the pipeline and wait for manual input.
- D. Incorrect.
This is incorrect. Deployment strategies in CodeDeploy are used for deployment configurations like rolling updates or blue/green deployments, not for manual approvals in CodePipeline.