A company wants to define the same AWS infrastructure (such as VPC, EC2, and RDS) in a template so that it can be built and deleted automatically and repeatably any number of times with high reproducibility. Which service is BEST suited for this?

1 / 1
Select an answer
CorrectD

Explanation

A question that asks for the IaC service that builds infrastructure automatically from a template.

  • 1defineDescribing infrastructure as code, that is, IaC
  • 2built and deleted automatically and repeatably any number of times with high reproducibilityReproducing the same configuration without manual effort, any number of times
AIncorrect

AWS Elastic Beanstalk

Elastic Beanstalk is a service that automatically builds and manages a runtime environment such as EC2 and ELB when application code is uploaded.

This question requires defining the entire infrastructure, including VPC and RDS, in a template and building and deleting it any number of times, which Elastic Beanstalk cannot do because it is not an IaC service that defines arbitrary resource configurations as code, so this is incorrect.

BIncorrect

Amazon CloudWatch

CloudWatch is a service that collects and monitors metrics and logs.

It is not used to build infrastructure automatically from a template, so this is incorrect.

CIncorrect

Amazon EC2 Auto Scaling

EC2 Auto Scaling is a feature that increases or decreases the number of instances based on demand.

It is not used to build an entire infrastructure, including VPC and RDS, from a template, so this is incorrect.

DCorrect

AWS CloudFormation

Correct. AWS CloudFormation is an Infrastructure as Code (IaC) service that defines infrastructure as a template (code) and automatically builds, updates, and deletes it. The same template can reproduce the same configuration any number of times and eliminates manual mistakes.

Key Takeaway

'Template', 'reproducibility', 'automated build', and 'Infrastructure as Code' point to CloudFormation. Distinguish it from Elastic Beanstalk (automatically manages a runtime from app code), CloudWatch (monitoring), and Auto Scaling (scaling the instance count).