ANS-C01 Question 261
Select 2You are managing a large-scale AWS environment that spans multiple accounts and regions. The infrastructure includes Amazon VPCs, EC2 instances, and application load balancers. To ensure consistency and scalability, you need to automate the provisioning and management of this infrastructure. Which solution(s) would be the most appropriate for achieving this goal?
- A
Use AWS CloudFormation to define infrastructure as code and deploy consistent stacks across accounts and regions.
- B
Manually create resources in each region and account using the AWS Management Console to ensure precise control.
- C
Use AWS Config to automatically provision resources based on configuration compliance rules.
- D
Adopt AWS CDK (Cloud Development Kit) to define infrastructure using familiar programming languages and deploy resources programmatically.
- E
Leverage AWS Elastic Beanstalk for automating the deployment of infrastructure resources in multi-account environments.
Show answer and explanation
Correct answers: A, D
Explanation
AWS CloudFormation and AWS CDK are the most appropriate solutions for infrastructure automation in large-scale, multi-account, and multi-region AWS environments. They allow you to define and provision resources programmatically or declaratively, ensuring consistency, repeatability, and scalability. Manually creating resources is error-prone and inefficient, while AWS Config and Elastic Beanstalk are not designed for infrastructure automation in this context.
- A. Correct.
AWS CloudFormation is a highly effective solution for automating infrastructure provisioning and management. It allows you to define infrastructure as code, ensuring consistency across accounts and regions.
- B. Incorrect.
Manually creating resources is not scalable or efficient for large-scale environments. It is prone to human error and does not align with the principles of infrastructure automation.
- C. Incorrect.
AWS Config is a tool for monitoring compliance and resource configurations, but it does not provision resources. It is not suitable for automating infrastructure deployment.
- D. Correct.
AWS CDK enables you to define infrastructure using programming languages like Python or JavaScript, providing flexibility and automation for managing complex environments.
- E. Incorrect.
AWS Elastic Beanstalk is a platform-as-a-service (PaaS) solution designed for deploying and managing applications, not infrastructure resources in multi-account or multi-region environments.