AWS Certified Developer – Associate — Question 339
A developer needs to manage AWS infrastructure as code and must be able to deploy multiple identical copies of the infrastructure, stage changes, and revert to previous versions.
Which approach addresses these requirements?
Answer options
- A. Use cost allocation reports and AWS OpsWorks to deploy and manage the infrastructure.
- B. Use Amazon CloudWatch metrics and alerts along with resource tagging to deploy and manage the infrastructure.
- C. Use AWS Elastic Beanstalk and AWS CodeCommit to deploy and manage the infrastructure.
- D. Use AWS CloudFormation and AWS CodeCommit to deploy and manage the infrastructure.
Correct answer: D
Explanation
AWS CloudFormation allows developers to define and provision AWS infrastructure as code, making it easy to deploy multiple identical copies of environments. Storing these CloudFormation templates in AWS CodeCommit, a managed source control service, enables version control, allowing developers to stage changes and easily revert to previous versions of the infrastructure. Other options like AWS OpsWorks, Amazon CloudWatch, or AWS Elastic Beanstalk do not provide the combined infrastructure-as-code and version-control capabilities required to fully satisfy these requirements.