SOA-C02 Question 154
Single answerA company wants to automate the deployment and configuration of its web application infrastructure, including EC2 instances, security groups, and an RDS database. The company also requires the ability to roll back changes in case of deployment failures. Which AWS service or combination of services should be used to achieve this?
- A
AWS CloudFormation
- B
AWS Systems Manager Run Command
- C
AWS Elastic Beanstalk
- D
AWS CodeDeploy
Show answer and explanation
Correct answer: A
Explanation
AWS CloudFormation is the ideal service for automating the deployment and configuration of infrastructure, as it enables you to define resources as code, manage dependencies, and automatically roll back changes in case of failures. This makes it a comprehensive solution for the scenario described.
- A. Correct.
AWS CloudFormation is the best choice for automating infrastructure deployment and configuration. It allows you to define infrastructure as code, manage dependencies, and roll back changes automatically in case of deployment failures.
- B. Incorrect.
AWS Systems Manager Run Command is useful for automating tasks on existing resources, such as running scripts or commands, but it does not create or manage infrastructure as code.
- C. Incorrect.
AWS Elastic Beanstalk simplifies application deployment but is limited to certain use cases, such as deploying web applications. It does not provide the same level of control over infrastructure as CloudFormation does.
- D. Incorrect.
AWS CodeDeploy is designed for automating application deployments but does not handle infrastructure provisioning, configuration, or rollback of infrastructure changes.