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.
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.