AWS Cloud Practitioner CLF-C02 Sign in Try 10 free questions

Free CLF-C02 practice questions: AWS Lambda

Serverless is a small topic with a big payoff — the EC2-versus-Lambda choice recurs all over the exam. Six questions, 2026 edition.

Here are 6 typical AWS Lambda questions in the exam's own style — free, with the answer explained, no sign-up.

Straight to the 6 free questions ↓

AWS Lambda is a small topic that pays off far beyond its own questions, because the choice it represents — run your own server, or let AWS run your code — shows up all over the Cloud Technology and Services domain. Learn Lambda well and you also answer a lot of questions that never mention it by name.

What Lambda actually is

Lambda is serverless compute. You give AWS a function; AWS runs it when something triggers it, scales it automatically, and charges you only while it runs. There is no server for you to choose, launch, patch or keep online. That is the entire pitch, and it is also the boundary that separates Lambda from EC2: with EC2 you control a server and its operating system; with Lambda you control only your code.

Because it is fully managed, the shared responsibility line sits high — AWS operates the servers and their OS, and your responsibility is essentially just the function and its configuration. Any question that hands you “who patches the OS for Lambda” is testing exactly this: the answer is AWS.

Event-driven, and billed for what runs

Two facts carry most Lambda questions:

  • It is triggered by events. A file lands in S3, an HTTP request arrives through API Gateway, a timer fires — an event source invokes the function. Lambda does not sit running; it wakes, runs, and stops.
  • You pay per request and per run time, measured in milliseconds, with nothing charged while idle. Compare that to a server you pay for whether or not it is doing anything, and the cost model becomes the reason to choose it.

When Lambda is the wrong answer

Just as useful as knowing when to pick Lambda is knowing when not to. If a workload needs OS-level control, or must run continuously around the clock, Lambda is the wrong fit and a server — EC2 — is right. The exam frames this as a clean fork: short and event-driven points to Lambda; long-running or OS-controlling points to EC2. Reading the scenario for those two signals resolves the choice almost every time.

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. Lambda distractors tend to be other real compute and storage services — EC2, S3, CloudFront — offered where serverless belongs, or Lambda offered where a server belongs. Separating those on sight is the skill the exam rewards, and the reasoning below is built to train it.

AWS Lambda shown as event-driven serverless compute: an event source such as an S3 upload, an API request or a scheduled timer triggers a function, AWS runs the code and scales it automatically, and billing is per request and per millisecond of run time with nothing charged while idle.

6 free CLF-C02 practice questions

Answers and explanations — no email wall
CLF-C02 Question 1 of 6

What is AWS Lambda?

Answer: A — A serverless compute service that runs your code without you provisioning or managing servers

Lambda runs your code on demand with no servers for you to provision, patch or scale — you supply the function, AWS runs it. Why not the others: a virtual server you size and control is EC2. A managed relational database is RDS. Object storage is S3. Lambda is the 'just my code, no server' option.

CLF-C02 Question 2 of 6

How are you charged for AWS Lambda?

Answer: A — By the number of requests and the compute time your code runs, with nothing charged while idle

Lambda billing is per request plus the duration the code actually runs, measured in milliseconds — if it is not running, you pay nothing. Why not the others: there is no flat monthly fee and no hourly charge for merely existing, which is the whole appeal versus a server you pay for around the clock. And there is no EC2 instance you manage or pay for underneath; that is what 'serverless' means here.

CLF-C02 Question 3 of 6

Which scenario is the best fit for AWS Lambda?

Answer: A — Automatically generating a thumbnail whenever an image is uploaded to Amazon S3

A short task triggered by an event — an upload arrives, a function runs, then stops — is exactly what Lambda is built for. Why not the others: a constantly running server with OS-level control is an EC2 job. A relational database belongs on RDS. Long-term file storage belongs in S3. Lambda shines for short, event-driven work, not for anything that must run continuously.

CLF-C02 Question 4 of 6

Under the shared responsibility model, who patches the underlying operating system for AWS Lambda?

Answer: A — AWS — Lambda is fully managed, so there is no OS for the customer to patch

Because Lambda is serverless, AWS manages the servers and their operating systems entirely — you are responsible only for your function code and its configuration. Why not the others: unlike EC2, there is no guest OS handed to the customer. Responsibility is not split for the OS here. And the code does of course run on infrastructure — the point is simply that AWS, not you, operates it.

CLF-C02 Question 5 of 6

What causes an AWS Lambda function to run?

Answer: A — An event from a source such as Amazon S3, API Gateway or a scheduled timer

Lambda is event-driven: an event source invokes the function — a file landing in S3, an HTTP request via API Gateway, a scheduled event, and many others. Why not the others: it does not run continuously; that is precisely what distinguishes it from a server. It is not limited to manual invocation, and it does not depend on anything running on your own machine.

CLF-C02 Question 6 of 6

A workload needs full control over the operating system and must run continuously around the clock. Which service suits it better than Lambda?

Answer: A — Amazon EC2

When you need OS-level control and a process that stays up continuously, a server — Amazon EC2 — is the right tool. Why not the others: stretching Lambda's timeout does not change that it is designed for short, event-driven tasks, not always-on workloads with OS access. S3 is storage and CloudFront is content delivery; neither runs your application. This EC2-versus-Lambda fork is one the exam returns to repeatedly.

That is exactly how every question in the course works — answer, explanation, why-not. The real set continues in the practice player: 10 free questions, no sign-up.

Continue with the 10 free questions →

Those 6 questions were the start.

The exam does not test whether you recognise a term — it tests whether you can rule out three plausible answers under time pressure. That is what the explanations above are for, and there are 390 more questions built exactly like them.

Collecting questions yourself

  • Scattered across forums, of unknown age
  • Answer keys without reasoning
  • No idea which domain you are weak in

Practising with a system

  • 390 questions in 6 full tests, CLF-C02 (2026)
  • Every option explained — including the wrong ones
  • Readiness per exam domain, and drills for your weakest
Start free — 10 questions

Straight into the player. No account, no email.

Frequently asked questions

Is this the current CLF-C02 format?
Yes — these questions follow the CLF-C02 exam guide (2026 edition). Lambda sits in the Cloud Technology and Services domain, the largest on the exam at 34%, and the serverless-versus-server choice appears well beyond the questions that name Lambda directly.
Are these real exam questions?
No. They are our own questions, written in the style and difficulty of the exam. Reproducing real exam items breaks the AWS certification agreement and can cost you your certification — and memorising an item teaches you nothing about the one you have not seen.
Do I need to know a programming language for these questions?
No. CLF-C02 tests what Lambda is, how it is billed, what triggers it and when to choose it over a server. You will never be asked to write function code — only to recognise where serverless is the right fit.
What is the one-line reason to pick Lambda over EC2?
Short, event-driven work with no servers to manage and no charge while idle. If the job is continuous or needs OS control, that reason flips and EC2 wins. The exam almost always frames it as that single choice.

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.