AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 140

A company has an application that runs on Amazon EC2 instances. The company uses an AWS CodePipeline pipeline to deploy the application into multiple AWS Regions. The pipeline is configured with a stage for each Region. Each stage contains an AWS CloudFormation action for each Region.

When the pipeline deploys the application to a Region, the company wants to confirm that the application is in a healthy state before the pipeline moves on to the next Region. Amazon Route 53 record sets are configured for the application in each Region. A DevOps engineer creates a Route 53 health check that is based on an Amazon CloudWatch alarm for each Region where the application is deployed.

What should the DevOps engineer do next to meet the requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A because using an AWS Step Functions workflow allows for a structured approach to monitor the CloudWatch alarm's state and handle errors effectively between deployments. Option B is incorrect as it removes the CloudFormation actions, which are essential for deployment management. Option C doesn't utilize a workflow, which lacks the error handling needed for multiple Regions. Option D adds unnecessary complexity by requiring a CloudWatch agent, which is not needed for this purpose.