CloudFormation is the exam’s answer whenever a question is about infrastructure as code: describing your AWS resources in a file and letting AWS provision them for you. It is a small concept at this level, and it comes up reliably in the largest domain.
What it is
AWS CloudFormation lets you define your infrastructure in a template — a text file in YAML or JSON — and it creates those resources for you. The group of resources created from one template is a stack, managed together: create, update or delete the whole set in one action. Because the infrastructure is code, you can deploy it repeatably and consistently across accounts and Regions, and rebuild it exactly if you ever need to.
Why it matters
The benefit the exam tests is repeatability, not speed or cost. Building resources by hand in the console is fine once; doing it identically ten times, or recreating an environment after a mistake, is where a template wins. Any option claiming CloudFormation makes applications faster, makes resources free, or encrypts data automatically is a distractor — it provisions infrastructure, nothing more.
The distinction to keep straight
CloudFormation is often confused with Elastic Beanstalk:
- CloudFormation provisions any AWS infrastructure from a template — the general-purpose infrastructure-as-code tool.
- Elastic Beanstalk takes an application and runs it on a managed platform, handling the servers and scaling for you.
Provision infrastructure, versus run an application. If a question is about defining resources as code, it is CloudFormation; if it is about deploying an app without managing the platform, it is Beanstalk.
How to use the questions below
Answer each one before you reveal the explanation, and when you miss, read past the correct letter to why the other three fail. The distractors here are usually other services offered where infrastructure-as-code belongs, or an overstated benefit. Recognising “define infrastructure as a template” as CloudFormation is the whole skill, and the reasoning below drills it. For the wider picture, see the cheat sheet.
Updated for CLF-C02 (July 2026). The sample questions above are our own work
in the style of the exam — not real exam items. The exam itself is set and marked
by the certification body.