Soru

Zorluk: KolayAWS CodePipeline

A developer is configuring a release pipeline in AWS CodePipeline. The developer wants to pause the pipeline before the deployment stage to allow a team lead to review the changes, and wants the team lead to receive an email notification when the pipeline is paused. Which configuration should the developer use to meet these requirements?

  1. Add a Manual Approval action to the pipeline before the deployment stage, and configure it with an Amazon Simple Notification Service (Amazon SNS) topic ARN.Cevap
  2. B
    Add a Manual Approval action to the pipeline before the deployment stage, and configure it to store approval decision tokens in an AWS Systems Manager Parameter Store parameter.
  3. C
    Modify the CodePipeline service role's IAM trust policy to allow the team lead's IAM user to assume the role and execute the deployment stage.
  4. D
    Configure the deployment stage with an AWS CodeDeploy action, and use the ApplicationStart lifecycle hook to send notifications and pause the deployment.

Cevap

Add a Manual Approval action to the pipeline before the deployment stage, and configure it with an Amazon Simple Notification Service (Amazon SNS) topic ARN.
The correct option adds a Manual Approval action directly into the pipeline stage before the deployment stage. By associating the action with an Amazon SNS topic ARN, CodePipeline automatically sends a notification to the subscribed email address of the team lead when the action runs, pausing the pipeline until the approval is granted or rejected.

Adım Adım Çözüm

1
Identify the requirement to pause the pipeline and notify a reviewer.
The developer needs a mechanism to halt pipeline execution and send an email notification.
AWS CodePipeline provides a native action category called 'Approval' to pause the pipeline.
2
Select the correct action type and configuration details.
A Manual Approval action is added to a pipeline stage. It can be configured with an Amazon SNS topic.
The SNS topic publishes messages to its subscribers (such as email endpoints) to alert reviewers that an approval is pending.

Anahtar Kavram

AWS CodePipeline Manual Approval Actions
Tahmini Süre:45s
Bu soruyu puanla