Courseiva

CLF-C02 Cloud Technology and Services Practice Question

A company wants to define their entire AWS infrastructure — VPCs, EC2 instances, RDS databases, and load balancers — as code in a text template so they can version-control the infrastructure, deploy it consistently across multiple environments, and recreate it reliably after deletion. Which AWS service enables this?

⚠ Common exam trap

A common mix-up: candidates confuse AWS CloudFormation with AWS Elastic Beanstalk or AWS OpsWorks, but the question specifically asks for defining infrastructure as code in a text template, which is the core function of CloudFormation, not a deployment or management service.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

AWS CloudFormation

AWS CloudFormation is the correct service because it enables you to model your entire AWS infrastructure as a text template (JSON or YAML), which can be version-controlled, deployed consistently across environments, and used to recreate resources reliably. It is an Infrastructure as Code (IaC) service that provisions and manages AWS resources in an orderly and predictable fashion, directly matching the company's requirements.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    AWS Systems Manager

    Why it's wrong here

    AWS Systems Manager is an operations and management service that gives visibility and control over AWS resources, including EC2 instances at the OS level. It performs tasks like patch baselines, Run Command, Session Manager, and stores configuration data in Parameter Store, but it never defines or provisions infrastructure from templates. Systems Manager operates on already-deployed resources rather than creating them from infrastructure-as-code definitions.

  • ✗

    AWS CodePipeline

    Why it's wrong here

    AWS CodePipeline is a fully managed continuous delivery service that orchestrates the build, test, and deployment phases of an application release process. It can integrate with CloudFormation by using a CloudFormation deployment action to apply infrastructure templates, but it does not itself interpret or define the infrastructure. CodePipeline is a pipeline engine, not an infrastructure provisioning engine, so it is not the right answer for infrastructure as code.

  • ✗

    Amazon CloudWatch

    Why it's wrong here

    Amazon CloudWatch is the native monitoring and observability service for AWS, collecting metrics, logs, and events from resources and applications. It enables alarming, dashboards, log analytics, and anomaly detection, but it is purely reactive and observational. CloudWatch does not define, create, or manage AWS resources, so it cannot serve as an infrastructure-as-code tool.

  • ✓

    AWS CloudFormation

    Why this is correct

    AWS CloudFormation is the core infrastructure-as-code service on AWS, allowing you to define entire stacks of AWS resources using declarative YAML or JSON templates. These templates are version-controlled files that can be deployed repeatedly to create identical environments, supporting updates, rollbacks, and drift detection. CloudFormation manages the lifecycle of all resources in a stack in a safe and predictable manner, making it the correct choice for defining infrastructure from code.

About these practice questions

Courseiva writes every CLF-C02 question from scratch — 993 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CLF-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CLF-C02 exam.