ANS-C01 Question 220
Select 2Your organization is building a multi-region architecture to host a web application. To ensure consistent infrastructure deployment across regions, you decide to use AWS CloudFormation. The application stack includes an Application Load Balancer (ALB), Auto Scaling groups, and RDS instances. Which of the following actions will help you automate and manage the infrastructure efficiently across regions?
- A
Use AWS CloudFormation StackSets to deploy the application stack across multiple regions.
- B
Manually create separate CloudFormation templates for each region to handle resource deployment.
- C
Enable cross-region replication for the ALB to ensure traffic is routed correctly between regions.
- D
Define parameters in a single CloudFormation template to customize resource properties for each region.
- E
Use AWS Systems Manager to run scripts that launch resources in each region.
Show answer and explanation
Correct answers: A, D
Explanation
To automate and manage infrastructure across multiple regions efficiently, AWS CloudFormation StackSets are ideal for deploying consistent stacks across regions. Additionally, using parameters in a single CloudFormation template allows customization for region-specific requirements without duplicating templates. These approaches align with infrastructure automation best practices, reducing manual effort and the risk of errors.
- A. Correct.
This is correct. AWS CloudFormation StackSets allow you to deploy a single stack template across multiple AWS accounts and regions, ensuring consistency and automation.
- B. Incorrect.
This is incorrect. Manually creating separate templates for each region goes against the principle of automation and increases the risk of inconsistencies.
- C. Incorrect.
This is incorrect. ALBs do not support cross-region replication. You need to deploy separate ALBs in each region and use Route 53 for global traffic routing.
- D. Correct.
This is correct. Defining parameters in a single CloudFormation template enables customization for regional-specific resource properties, maintaining consistency across deployments.
- E. Incorrect.
This is incorrect. While AWS Systems Manager can run scripts, it is not the most efficient or scalable way to define and deploy infrastructure across multiple regions compared to using CloudFormation.