Hard1 markMultiple Choice
Domain 2.1: Deployment StrategyDeploymentCloudFormationCI/CD

AWS SAP-C02 · Question 21 · Domain 2.1: Deployment Strategy

A development team uses AWS CDK to define their infrastructure. They need to deploy a new microservice across 5 different AWS Regions simultaneously. The deployment must automatically roll back in all regions if it fails in any single region. How should this be orchestrated?

Answer options:

A.

Use AWS CodeDeploy to deploy to all regions simultaneously.

B.

Use AWS CloudFormation StackSets integrated with AWS CodePipeline. Configure the pipeline to halt and trigger a rollback script on failure.

C.

Write a bash script using the AWS CLI to run 'cdk deploy' in a loop.

D.

Use AWS Systems Manager Automation to run CloudFormation templates.

How to approach this question

Identify the service designed for multi-region infrastructure deployment.

Full Answer

B.Use AWS CloudFormation StackSets integrated with AWS CodePipeline. Configure the pipeline to halt and trigger a rollback script on failure.✓ Correct
AWS CloudFormation StackSets allow you to deploy infrastructure across multiple accounts and regions. CodePipeline can orchestrate this and handle complex rollback logic.

Common mistakes

Confusing CodeDeploy (app deployment) with CloudFormation (infrastructure deployment).

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 6

75 questions · hints · full answers · grading

More questions from this exam