ANS-C01 Question 219
Single answerYour organization is building a highly available and scalable web application in AWS across multiple regions. The team wants to automate the deployment of the networking infrastructure, including VPCs, subnets, route tables, and security groups, to ensure consistency and version control. Which approach should you take to achieve this goal?
- A
Use AWS CloudFormation to define the networking infrastructure as code and deploy it across regions.
- B
Manually create the networking infrastructure in each region using the AWS Management Console.
- C
Write custom Python scripts using the AWS SDK (Boto3) to create and manage the networking resources.
- D
Use AWS OpsWorks to automate the deployment of networking resources across multiple regions.
Show answer and explanation
Correct answer: A
Explanation
The best approach to automate the deployment of networking infrastructure across multiple regions in AWS is to use AWS CloudFormation. It provides a declarative way to define and provision resources in a predictable and repeatable manner. This ensures consistency across regions, integrates with version control systems, and minimizes the risk of configuration drift.
- A. Correct.
This is the correct answer. AWS CloudFormation allows you to define your infrastructure as code, enabling consistent deployment across multiple regions and providing version control for changes.
- B. Incorrect.
This is not recommended because manual creation of resources is prone to errors, lacks scalability, and does not provide version control or automation.
- C. Incorrect.
While using the AWS SDK (Boto3) is possible, it requires significant custom development and lacks the simplicity and robust features provided by AWS CloudFormation.
- D. Incorrect.
AWS OpsWorks is primarily used for application configuration and deployment using Chef and Puppet. It is not intended for automating the deployment of networking infrastructure.