AWS Certified Developer – Associate (DVA-C02)DeploymentEasy

A developer needs to automate the deployment of an application that consists of an Amazon EC2 instance and an Amazon RDS database. The deployment process should create or update these resources, including their configurations (e.g., instance type, database size, security groups), in a repeatable and version-controlled manner. Which AWS service is best suited for this infrastructure as code (IaC) requirement?

  1. AAWS CloudFormation
  2. BAWS CodeDeploy
  3. CAWS Systems Manager
  4. DAWS CodeBuild
Show answer & explanation

Correct answer: A. AWS CloudFormation

AWS CloudFormation is an infrastructure as code (IaC) service that allows you to define and provision AWS infrastructure resources (like EC2 instances and RDS databases) in a declarative template, enabling repeatable and version-controlled deployments.

Why the other options are wrong

  • B. CodeDeploy is for deploying application code to existing infrastructure, not for provisioning the infrastructure itself.
  • C. Systems Manager provides operational insights and automation for managing existing AWS resources, not for defining and provisioning them.
  • D. CodeBuild is for compiling source code and running tests, not for provisioning infrastructure.

AWS CloudFormation

An AWS service that helps you model and set up your Amazon Web Services resources so that you can spend less time managing those resources and more time focusing on your applications that run in AWS. You create a template that describes all the AWS resources that you want (like Amazon EC2 instances or Amazon RDS DB instances), and CloudFormation takes care of provisioning and configuring those resources for you.

  • Infrastructure as Code (IaC).
  • Uses declarative templates (JSON/YAML).
  • Manages entire stacks of resources.
  • Enables repeatable, version-controlled deployments.

Memory trick: CloudFormation builds your cloud, just like a blueprint, loud and proud.

More Deployment questions