Question

Difficulty: EasyAWS Management, Governance, and Developer Tools

A startup company wants to define and provision their AWS infrastructure, such as Amazon EC2 instances and Amazon RDS databases, using a declarative template file. Which AWS service should the company use to automate this provisioning process through Infrastructure as Code (IaC)?

  1. AWS CloudFormationAnswer
  2. B
    AWS Elastic Beanstalk
  3. C
    Amazon CloudWatch
  4. D
    AWS CloudTrail

Answer

AWS CloudFormation is the correct service because it provides a template-based mechanism to automate the creation and management of AWS infrastructure as code.
AWS CloudFormation is designed specifically for Infrastructure as Code (IaC), allowing users to define resources in JSON or YAML templates and automatically provision them in a predictable order.

Step-by-Step Solution

1
Identify the requirement of defining and provisioning infrastructure using a declarative template file (Infrastructure as Code).
This points to AWS provisioning tools rather than monitoring or auditing tools.
The scenario requires automating infrastructure creation via templates.
2
Differentiate between infrastructure-as-code template tools and application deployment platforms.
AWS CloudFormation is selected as it directly uses templates to provision resources, whereas AWS Elastic Beanstalk focuses on deploying applications.
This confirms the correct service for raw template-based provisioning.

Key Concept

Infrastructure as Code (IaC) with AWS CloudFormation
Rate this question