AWS Certified DevOps Engineer – ProfessionalConfiguration Management and Infrastructure as CodeEasy
A company is migrating its on-premises applications to AWS. They want to adopt an Infrastructure as Code (IaC) approach for managing their AWS resources. The team needs a solution that allows them to define their infrastructure in a declarative way, supports version control, and can be used to deploy resources consistently across multiple environments (development, staging, production). Which AWS service is best suited for this requirement?
- AAWS CloudFormation
- BAmazon EC2 User Data
- CAWS Systems Manager Session Manager
- DAWS Management Console
Show answer & explanationAnswer & explanation
Correct answer: A. AWS CloudFormation
AWS CloudFormation allows you to model, provision, and manage AWS and third-party resources using a declarative template. It supports version control, consistent deployments, and infrastructure as code principles.
Why the other options are wrong
- B. Amazon EC2 User Data is used for running scripts during instance launch, not for defining and managing entire infrastructure stacks.
- C. AWS Systems Manager Session Manager provides secure and auditable instance access, not IaC for resource provisioning.
- D. The AWS Management Console is a web-based UI for managing resources manually, which contradicts the IaC requirement.
AWS CloudFormation
An AWS service that helps you model and set up your AWS resources so that you can spend less time managing those resources and more time focusing on your applications that run in AWS.
- Uses declarative templates (YAML or JSON).
- Supports version control and consistent deployments.
- Manages entire stacks of resources as a single unit.
Memory trick: CloudFormation builds your cloud, code by code, true and bold.