Soru

Zorluk: KolayAWS CodePipeline

A developer is configuring a continuous delivery pipeline in AWS CodePipeline to deploy a serverless web application. The pipeline needs to pause automatically after the test stage and wait for a QA manager to review the test results before deploying to the production stage. Which of the following is the correct configuration to implement this manual approval step?

  1. Add a manual approval action to a stage in the pipeline before the production deployment action, and optionally configure an Amazon SNS topic for notifications.Cevap
  2. B
    Store the approval state as a SecureString parameter in Systems Manager Parameter Store, and write a script in the build stage to poll for its value.
  3. C
    Modify the trust policy of the IAM service role for CodePipeline to allow the QA manager's IAM user to assume the role and resume the pipeline.
  4. D
    Place a build spec file in a subdirectory of the source repository with instructions to pause the CodeBuild container execution until an approval webhook is called.

Cevap

Add a manual approval action to a stage in the pipeline before the production deployment action, and optionally configure an Amazon SNS topic for notifications.
The correct answer provides the standard, native method for introducing a human review step in AWS CodePipeline. The Manual Approval action type natively pauses the pipeline execution without consuming compute resources, and integrates with Amazon SNS to notify the reviewers.

Adım Adım Çözüm

1
Identify the pipeline requirement for pausing execution for a human reviewer.
The requirement is a manual approval gate before production deployment.
Understanding the design requirements helps select the native AWS CodePipeline feature meant for this purpose.
2
Evaluate native CodePipeline features for approvals versus custom scripting.
CodePipeline provides a built-in 'Manual Approval' action type that halts transition natively.
Using native actions is more cost-effective, secure, and easier to maintain than custom polling mechanisms.
3
Verify correct configuration details for the Manual Approval action.
A manual approval action is added to a pipeline stage, with an optional SNS topic to notify the QA team.
Configuring SNS ensures the team is proactively alerted when an approval is pending.

Anahtar Kavram

AWS CodePipeline manual approval actions allow a pipeline execution to be paused at a specific stage until approval is received.
Bu soruyu puanla