CLF-C02 Cloud Technology and Services Practice Question
A media company runs a website that serves video content globally. Users request video previews, which require the generation of thumbnail images on-the-fly. The company wants to generate these thumbnails at AWS edge locations so that the processing occurs close to users, reducing latency and offloading the origin servers. The solution must run custom code in response to CloudFront events without provisioning any servers. Which AWS service should the company use to meet these requirements?
⚠ Common exam trap
Watch out — candidates often confuse standard AWS Lambda with Lambda@Edge, assuming Lambda can run at edge locations, but standard Lambda is region-bound and cannot intercept CloudFront events at the edge.
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 Lambda@Edge
AWS Lambda@Edge is the correct service because it allows you to run custom code in response to CloudFront events (such as viewer request, origin request, viewer response, and origin response) at AWS edge locations, enabling on-the-fly thumbnail generation close to users without provisioning any servers. This reduces latency and offloads origin servers, meeting the requirement for serverless edge processing.
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
Standard AWS Lambda functions run in regional endpoints (e.g., us-east-1), not at CloudFront edge locations. While Lambda is serverless and can generate thumbnails, the latency for a user in Mumbai reaching a function in us-east-1 is significantly higher than running the same code at an edge location closer to that user. Lambda@Edge is specifically designed for this use case by running Lambda functions at the 400+ CloudFront points of presence, so plain Lambda misses the core requirement of low-latency, edge-based content processing.
When this WOULD be correct
A company needs to process uploaded images in a central S3 bucket, generating thumbnails asynchronously. The solution must run custom code without servers, triggered by S3 events. AWS Lambda would be correct because it can be triggered by S3 events and does not require edge processing.
- ✓
AWS Lambda@Edge
Why this is correct
AWS Lambda@Edge is a feature of Amazon CloudFront that runs Lambda functions at AWS edge locations in response to CloudFront events. It is serverless, scales automatically, and is ideal for processing content close to users, such as on-the-fly thumbnail generation.
- ✗
Amazon EC2 instances in an Auto Scaling group
Why it's wrong here
Amazon EC2 instances in an Auto Scaling group still run in specific AWS Regions, not at CloudFront edge locations, so requests from global viewers must traverse the internet back to that region, adding latency. Even with auto scaling, you must manage EC2 capacity, patch the operating system, and handle failover yourself, making it far more operational overhead than a serverless edge function. While it could generate thumbnails, it cannot do so with the same sub-100ms edge performance or pay-per-request cost profile as Lambda@Edge.
When this WOULD be correct
A company needs to run a custom video transcoding application that requires significant CPU and memory resources, and the processing must be scalable and fault-tolerant. The solution can provision EC2 instances in an Auto Scaling group behind an Application Load Balancer to handle the workload, and server management is acceptable.
- ✗
Amazon ElastiCache
Why it's wrong here
Amazon ElastiCache is an in-memory data store (Redis or Memcached) that caches frequently accessed data like database query results or session state. It does not execute user-provided code, so it cannot generate thumbnail images or transform video content. Even if you cached pre-generated thumbnails, ElastiCache nodes run regionally, not at edge locations, and you would still need a separate compute service (like Lambda) to generate the thumbnails in the first place.
When this WOULD be correct
A company wants to reduce latency for frequently accessed database query results by caching them at edge locations. The solution must use a managed caching service that integrates with CloudFront without provisioning servers.
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 Lambda@EdgeCorrect answer▾
Why this is correct
AWS Lambda@Edge is a feature of Amazon CloudFront that runs Lambda functions at AWS edge locations in response to CloudFront events. It is serverless, scales automatically, and is ideal for processing content close to users, such as on-the-fly thumbnail generation.
✗AWS LambdaWrong answer — click to see why▾
Why this is wrong here
AWS Lambda cannot be triggered directly by CloudFront events at edge locations; it runs only in specific AWS regions, not at edge locations, so it cannot process requests close to users globally.
★ When this WOULD be the correct answer
A company needs to process uploaded images in a central S3 bucket, generating thumbnails asynchronously. The solution must run custom code without servers, triggered by S3 events. AWS Lambda would be correct because it can be triggered by S3 events and does not require edge processing.
Why candidates choose this
Candidates know Lambda is serverless and runs custom code, but they overlook that Lambda@Edge is the variant designed to run at CloudFront edge locations in response to CloudFront events.
✗Amazon EC2 instances in an Auto Scaling groupWrong answer — click to see why▾
Why this is wrong here
Amazon EC2 instances in an Auto Scaling group require provisioning and managing servers, which contradicts the requirement to run custom code without provisioning any servers. Additionally, EC2 instances are not integrated with CloudFront events at edge locations.
★ When this WOULD be the correct answer
A company needs to run a custom video transcoding application that requires significant CPU and memory resources, and the processing must be scalable and fault-tolerant. The solution can provision EC2 instances in an Auto Scaling group behind an Application Load Balancer to handle the workload, and server management is acceptable.
Why candidates choose this
Candidates may think that EC2 instances can be used to run custom code for thumbnail generation, and Auto Scaling can handle variable loads, overlooking the serverless and edge-processing requirements specified in the question.
✗Amazon ElastiCacheWrong answer — click to see why▾
Why this is wrong here
Amazon ElastiCache is a caching service for in-memory data, not for running custom code at edge locations. It cannot generate thumbnail images on-the-fly in response to CloudFront events.
★ When this WOULD be the correct answer
A company wants to reduce latency for frequently accessed database query results by caching them at edge locations. The solution must use a managed caching service that integrates with CloudFront without provisioning servers.
Why candidates choose this
Candidates may confuse caching (ElastiCache) with edge compute (Lambda@Edge), thinking that caching thumbnails at the edge would solve the problem, but the requirement is to generate thumbnails on-the-fly, not cache pre-generated ones.
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?”
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
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 →
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.