AWS Certified Developer – Associate (DVA-C02) — Question 218
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
The correct answer is D, as AWS CloudFormation allows for infrastructure as code, enabling the deployment of identical infrastructure copies, staging changes, and reverting to previous versions. Options A and B do not provide the necessary infrastructure management capabilities, while option C, although useful for application management, does not specifically address the requirements for infrastructure as code.