Courseiva
Cloud Technology and ServicesmediumMultiple ChoiceObjective-mapped

CLF-C02 Cloud Technology and Services Practice Question

A startup is building a Node.js web application. The development team has limited DevOps experience and wants to focus on writing code. They need a managed platform that automatically deploys their application code, provisions the necessary AWS resources (such as EC2 instances, a load balancer, and Auto Scaling), and handles health monitoring and scaling. However, they want the ability to later customize the underlying EC2 instances and configure environment variables without switching to a different compute service. Which AWS service should the startup use?

⚠ Common exam trap

It's easy for candidates to confuse AWS Elastic Beanstalk with AWS CloudFormation, thinking both are Infrastructure as Code tools, but Elastic Beanstalk is a managed PaaS that abstracts the underlying resources, while CloudFormation requires manual resource definition and does not handle application deployment or health monitoring automatically.

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 Elastic Beanstalk

AWS Elastic Beanstalk is a Platform as a Service (PaaS) that automatically handles deployment, capacity provisioning, load balancing, Auto Scaling, and health monitoring for web applications. It allows developers to upload their Node.js code and have Elastic Beanstalk provision the underlying EC2 instances, load balancer, and Auto Scaling group while still providing the option to later customize the EC2 instances (e.g., via .ebextensions or SSH) and configure environment variables through the Elastic Beanstalk console or CLI. This matches the startup's need for a managed platform with future customization flexibility.

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 Lambda

    Why it's wrong here

    AWS Lambda is a serverless compute service designed for event-driven, short-running functions. It does not provide a platform for deploying a traditional Node.js web application with load balancing and auto scaling, nor does it allow direct customization of EC2 instances. Lambda is not suitable for this use case.

    When this WOULD be correct

    A question where the application is event-driven, stateless, and can be broken into small functions, and the team wants to avoid managing any servers or infrastructure. For example: 'A startup wants to run a backend API that processes image uploads and resizes them on demand, with no server management.'

  • AWS Elastic Beanstalk

    Why this is correct

    AWS Elastic Beanstalk is a PaaS service that automatically deploys application code, manages capacity provisioning, load balancing, and auto scaling for web applications. It provides full control over the underlying AWS resources when needed, making it the best fit for a team that wants a managed platform with the option to customize later.

  • Amazon ECS

    Why it's wrong here

    Amazon ECS is a container orchestration service, not a platform that automatically provisions EC2 instances, load balancers, and Auto Scaling groups from application code alone; it requires the team to define container images and task definitions, whereas the startup needs a service that abstracts infrastructure provisioning entirely. It is tempting because ECS does handle health monitoring and scaling for containerised workloads, and would be the correct choice if the team were already packaging their Node.js application as Docker containers and wanted fine-grained control over container orchestration.

    When this WOULD be correct

    A company wants to run microservices using Docker containers on AWS, needs fine-grained control over container placement and networking, and plans to use AWS Fargate or EC2 launch types. They require integration with other AWS services like VPC, IAM, and CloudWatch for logging and monitoring.

  • AWS CloudFormation

    Why it's wrong here

    AWS CloudFormation is an infrastructure-as-code service that provisions and manages AWS resources based on templates. It does not provide a platform for automated application deployment of code or built-in load balancing and health monitoring. It is a tool for creating and managing resources, not for running the application directly.

    When this WOULD be correct

    A company needs to provision and manage a standardized, repeatable infrastructure stack across multiple environments (e.g., dev, test, prod) using code, and they have the expertise to write and maintain CloudFormation templates. They want full control over resource definitions and versioning.

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 Elastic BeanstalkCorrect answer

Why this is correct

AWS Elastic Beanstalk is a PaaS service that automatically deploys application code, manages capacity provisioning, load balancing, and auto scaling for web applications. It provides full control over the underlying AWS resources when needed, making it the best fit for a team that wants a managed platform with the option to customize later.

AWS LambdaWrong answer — click to see why

Why this is wrong here

AWS Lambda is a serverless compute service for running code in response to events, not designed for deploying full web applications with EC2 instances, load balancers, and Auto Scaling. It does not provision or manage EC2 resources.

★ When this WOULD be the correct answer

A question where the application is event-driven, stateless, and can be broken into small functions, and the team wants to avoid managing any servers or infrastructure. For example: 'A startup wants to run a backend API that processes image uploads and resizes them on demand, with no server management.'

Why candidates choose this

Candidates may confuse 'managed platform' with 'serverless' and think Lambda can handle any web application, overlooking its limitations for long-running, stateful, or full-stack apps that require persistent compute resources.

Amazon ECSWrong answer — click to see why

Why this is wrong here

Amazon ECS is a container orchestration service that requires users to manage Docker containers and task definitions, which is more complex than the fully managed platform the startup needs. It does not automatically provision EC2 instances, load balancers, or Auto Scaling groups without additional configuration, and it does not directly deploy application code from source.

★ When this WOULD be the correct answer

A company wants to run microservices using Docker containers on AWS, needs fine-grained control over container placement and networking, and plans to use AWS Fargate or EC2 launch types. They require integration with other AWS services like VPC, IAM, and CloudWatch for logging and monitoring.

Why candidates choose this

Candidates may confuse ECS as a managed service similar to Elastic Beanstalk, not realizing that ECS focuses on containers rather than directly deploying application code and managing underlying resources automatically.

AWS CloudFormationWrong answer — click to see why

Why this is wrong here

AWS CloudFormation is an infrastructure-as-code service that requires users to define and manage resources manually, not a managed platform that automatically deploys application code and handles health monitoring and scaling without DevOps expertise.

★ When this WOULD be the correct answer

A company needs to provision and manage a standardized, repeatable infrastructure stack across multiple environments (e.g., dev, test, prod) using code, and they have the expertise to write and maintain CloudFormation templates. They want full control over resource definitions and versioning.

Why candidates choose this

Candidates may confuse CloudFormation as a deployment service because it can automate resource provisioning, but it lacks the built-in application lifecycle management, health monitoring, and automatic scaling that Elastic Beanstalk provides.

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?”

About these practice questions

Courseiva writes every CLF-C02 question from scratch — 988 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.