Question 878 of 1,024
Cloud Technology and ServicesmediumMultiple ChoiceObjective-mapped

CLF-C02 Cloud Technology and Services Practice Question

This CLF-C02 practice question tests your understanding of cloud technology and services. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A DevOps team needs to deploy a multi-tier web application on AWS. The application consists of Amazon EC2 instances, an Application Load Balancer, an Amazon RDS database, and security groups. The team wants to define all these resources in a single declarative template, automatically manage the creation order and dependencies, and version control the template for repeatable deployments. Which AWS service should the team use to meet these requirements?

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 all AWS resources (EC2, ALB, RDS, security groups) in a single declarative JSON or YAML template. It automatically manages the creation order based on resource dependencies (e.g., EC2 instances depend on security groups), supports version control of templates, and enables repeatable, consistent deployments across environments.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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 CloudFormation

    Why this is correct

    CloudFormation is the correct choice because it provides infrastructure as code using declarative templates, automatically manages resource dependencies and creation order, and supports version control.

    Related concept

    Read the scenario before looking for a memorised answer.

  • AWS Elastic Beanstalk

    Why it's wrong here

    Elastic Beanstalk is a platform-as-a-service (PaaS) that simplifies application deployment but does not give the team granular control over individual resources like RDS or security groups in a single declarative template. It abstracts the infrastructure.

    When this WOULD be correct

    A team needs to quickly deploy a web application without managing underlying infrastructure, and they want automatic scaling, load balancing, and health monitoring. The question would specify that the team prefers a managed platform with minimal configuration and does not require granular control over resources or version-controlled templates.

  • AWS OpsWorks

    Why it's wrong here

    OpsWorks uses Chef or Puppet for configuration management, focusing on automating server configuration rather than provisioning an entire multi-tier infrastructure from a declarative template.

    When this WOULD be correct

    A team needs to manage application configuration and automate server updates using Chef recipes or Puppet modules across a fleet of EC2 instances, and they require integration with existing configuration management tools.

  • AWS CodePipeline

    Why it's wrong here

    CodePipeline is a continuous integration and continuous delivery (CI/CD) service used to automate build, test, and deploy phases. It does not directly provision or manage infrastructure resources.

    When this WOULD be correct

    A team needs to automate the build, test, and deployment phases of their application whenever code is pushed to a repository, requiring a continuous delivery pipeline that integrates with source control and deployment services.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The CLF-C02 exam frequently reuses these exact scenarios with slightly different constraints.

AWS CloudFormationCorrect answer

Why this is correct

CloudFormation is the correct choice because it provides infrastructure as code using declarative templates, automatically manages resource dependencies and creation order, and supports version control.

AWS Elastic BeanstalkWrong answer — click to see why

Why this is wrong here

AWS Elastic Beanstalk is a PaaS service that abstracts infrastructure management, but it does not provide a single declarative template for defining all resources like EC2, ALB, RDS, and security groups with explicit dependency management and version control. It focuses on application deployment and scaling rather than infrastructure-as-code.

★ When this WOULD be the correct answer

A team needs to quickly deploy a web application without managing underlying infrastructure, and they want automatic scaling, load balancing, and health monitoring. The question would specify that the team prefers a managed platform with minimal configuration and does not require granular control over resources or version-controlled templates.

Why candidates choose this

Candidates may confuse Elastic Beanstalk's ability to provision resources automatically with the declarative template and dependency management of CloudFormation, overlooking that Elastic Beanstalk does not expose a user-defined template for version control.

AWS OpsWorksWrong answer — click to see why

Why this is wrong here

AWS OpsWorks is a configuration management service that uses Chef and Puppet, not a declarative template for defining resources like EC2, ALB, RDS, and security groups. It does not provide a single template for infrastructure as code with automatic dependency management.

★ When this WOULD be the correct answer

A team needs to manage application configuration and automate server updates using Chef recipes or Puppet modules across a fleet of EC2 instances, and they require integration with existing configuration management tools.

Why candidates choose this

Candidates may confuse OpsWorks with CloudFormation because both can manage AWS resources, but OpsWorks focuses on configuration management rather than declarative infrastructure provisioning.

AWS CodePipelineWrong answer — click to see why

Why this is wrong here

AWS CodePipeline is a CI/CD service for automating build, test, and deploy phases, not for defining infrastructure resources declaratively or managing creation order and dependencies.

★ When this WOULD be the correct answer

A team needs to automate the build, test, and deployment phases of their application whenever code is pushed to a repository, requiring a continuous delivery pipeline that integrates with source control and deployment services.

Why candidates choose this

Candidates may confuse CodePipeline's deployment automation with infrastructure provisioning, thinking it can define resources like CloudFormation does, but CodePipeline focuses on the software release process, not resource definition.

Analysis generated from the official CLF-C02blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse AWS Elastic Beanstalk (a PaaS service) with CloudFormation, thinking it can also define all resources declaratively, but Elastic Beanstalk only manages the environment and does not give you control over individual resource dependencies or a single version-controlled template.

Detailed technical explanation

How to think about this question

CloudFormation uses a stack-based model where each resource is defined with a DependsOn attribute or implicit references (e.g., Ref, Fn::GetAtt) to control creation order. Under the hood, it uses a change set mechanism to compare template updates against current stack state, enabling safe updates. In real-world scenarios, this prevents race conditions like launching EC2 instances before security group rules are applied, which would cause deployment failures.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related CLF-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free CLF-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this CLF-C02 question test?

Cloud Technology and Services — This question tests Cloud Technology and Services — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: AWS CloudFormation — AWS CloudFormation is the correct service because it allows you to define all AWS resources (EC2, ALB, RDS, security groups) in a single declarative JSON or YAML template. It automatically manages the creation order based on resource dependencies (e.g., EC2 instances depend on security groups), supports version control of templates, and enables repeatable, consistent deployments across environments.

What should I do if I get this CLF-C02 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More CLF-C02 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.