Courseiva
Cloud ConceptsmediumMultiple ChoiceObjective-mapped

CLF-C02 Cloud Concepts Practice Question

A company is adopting the cloud and wants to improve operational efficiency by treating their infrastructure as code. Which AWS service allows them to define and provision AWS infrastructure using JSON or YAML templates?

⚠ Common exam trap

Many exam-takers confuse AWS CloudFormation with AWS OpsWorks or AWS Systems Manager, as both can manage infrastructure but use different paradigms (declarative templates vs. configuration management) and are not designed for JSON/YAML-based infrastructure provisioning.

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 allows you to define and provision AWS infrastructure as code using JSON or YAML templates. This enables repeatable, version-controlled deployments, directly supporting the goal of improving operational efficiency through infrastructure as code.

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 for viewing and controlling infrastructure at runtime. It offers capabilities such as Patch Manager, Run Command, and Parameter Store to automate operational tasks like patching and executing scripts, but it does not use declarative templates to provision, update, and delete an entire collection of AWS resources. Therefore, it is not an infrastructure-as-code templating service, so it does not fit the use case described in the question.

  • AWS CloudFormation

    Why this is correct

    AWS CloudFormation is the native infrastructure-as-code service that lets you define every AWS resource in a declarative JSON or YAML template. CloudFormation treats those templates as a single stack, automatically handling dependency ordering, rollback on failure, and updates, which makes resource provisioning consistent and repeatable across environments. Because the question asks for a service that provisions infrastructure stacks in this way, CloudFormation is the correct choice.

  • AWS OpsWorks

    Why it's wrong here

    AWS OpsWorks is a configuration management service based on Chef and Puppet that primarily automates the configuration, deployment, and lifecycle of applications on EC2 instances. While it can help manage server state through recipes and cookbooks, it is not a generic templating engine for declaring all AWS resources, and its model is centered on instances rather than a broad stack of infrastructure. That makes it wrong for this scenario.

  • AWS Config

    Why it's wrong here

    AWS Config is a compliance and audit service that records the configuration history of your resources and evaluates them against desired rules. It can detect drift and show whether a resource complies with policies, but it has no provisioning or templating engine, so it never creates, modifies, or deletes resources. Because the question asks about an infrastructure-as-code service that builds stacks, Config is incorrect.

About these practice questions

One of 988 original CLF-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.