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

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.