Q82 — AWS DVA-C02 Ch.3
Question 82 of 100 | ← Chapter 3
A developer needs to manage AWS infrastructure as code and must be able to deploy identical copies of infrastructure, perform staged changes, and revert to previous versions. Which approach meets these requirements?
- A. Use Cost Allocation Reports and AWS OpsWorks to deploy and manage infrastructure.
- B. Use Amazon CloudWatch metrics and alarms along with resource tagging to deploy and manage infrastructure.
- C. Use AWS Elastic Beanstalk and AWS CodeCommit to deploy and manage infrastructure.
- D. Use AWS CloudFormation and AWS CodeCommit to deploy and manage infrastructure. ✓
Correct Answer: D. Use AWS CloudFormation and AWS CodeCommit to deploy and manage infrastructure.
Explanation
AWS CloudFormation is an Infrastructure-as-Code (IaC) service that enables declarative definition and repeatable deployment of AWS resources via templates. Coupled with AWS CodeCommit—a fully managed Git source control service—it allows versioning of infrastructure templates, enabling deployment of identical stacks, staged rollouts (e.g., via change sets), and easy rollback to prior versions via Git history. Options A, B, and C lack native IaC capabilities: OpsWorks is configuration management (not IaC), CloudWatch/Tagging are monitoring/resource labeling tools, and Elastic Beanstalk abstracts infrastructure definition, limiting version control and reproducibility. Thus, Option D is the correct solution. 【Provided by Lantern Certification: swufelp1999】