- A
AWS Lambda
AWS Lambda is correct. It executes code in response to S3 events, scales automatically, and is serverless, meaning no server management is needed.
- B
AWS Batch
Why wrong: AWS Batch is designed for batch computing jobs that run on managed EC2 instances or Fargate. It is not event-driven by default and would require provisioning and managing compute environments, making it less suitable for this simple event-triggered task.
- C
Amazon EC2
Why wrong: Amazon EC2 instances run continuously and require manual scaling and management. Using EC2 for occasional thumbnail creation would lead to idle resource costs and operational overhead, contradicting the requirement for a serverless, event-driven solution.
- D
Amazon ECS with EC2 launch type
Why wrong: Amazon ECS with the EC2 launch type requires managing a cluster of EC2 instances. While it can run containers, it is not serverless and does not automatically trigger based on S3 events without additional components like Lambda or EventBridge.
AWS Lambda for S3 Event-Driven Processing
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 company has a mobile application that allows users to upload profile photos. When a new photo is uploaded to an Amazon S3 bucket, the application must automatically create a thumbnail version and store it in another S3 bucket. The company wants a solution that runs only when needed, scales automatically, and requires no management of underlying servers. Which AWS service should the company 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 Lambda
AWS Lambda is the correct choice because it is a serverless compute service that runs code in response to events, such as an S3 PUT object event. It automatically scales from zero to thousands of concurrent executions based on the number of incoming uploads, and requires no server management, perfectly meeting the requirement for an on-demand, auto-scaling thumbnail generation solution.
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 Lambda
Why this is correct
AWS Lambda is correct. It executes code in response to S3 events, scales automatically, and is serverless, meaning no server management is needed.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
AWS Batch
Why it's wrong here
AWS Batch is designed for batch computing jobs that run on managed EC2 instances or Fargate. It is not event-driven by default and would require provisioning and managing compute environments, making it less suitable for this simple event-triggered task.
When this WOULD be correct
A company needs to run a large-scale, compute-intensive batch job (e.g., video transcoding or genomic analysis) that can be split into multiple parallel tasks, and they want to manage job dependencies and retries. AWS Batch would be the correct answer because it orchestrates batch workloads across EC2 or Fargate with automatic scaling.
- ✗
Amazon EC2
Why it's wrong here
Amazon EC2 instances run continuously and require manual scaling and management. Using EC2 for occasional thumbnail creation would lead to idle resource costs and operational overhead, contradicting the requirement for a serverless, event-driven solution.
When this WOULD be correct
If the question required a long-running application with custom OS configurations, persistent storage, or specific software installations that cannot be containerized or run in a serverless function, Amazon EC2 would be the correct choice.
- ✗
Amazon ECS with EC2 launch type
Why it's wrong here
Amazon ECS with the EC2 launch type requires managing a cluster of EC2 instances. While it can run containers, it is not serverless and does not automatically trigger based on S3 events without additional components like Lambda or EventBridge.
When this WOULD be correct
A company needs to run containerized batch processing jobs that require persistent storage or GPU resources, and is willing to manage EC2 instances for cost optimization or compliance reasons.
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 LambdaCorrect answer▾
Why this is correct
AWS Lambda is correct. It executes code in response to S3 events, scales automatically, and is serverless, meaning no server management is needed.
✗AWS BatchWrong answer — click to see why▾
Why this is wrong here
AWS Batch is designed for batch computing jobs that require orchestration of compute resources, not for event-driven, short-lived tasks like image processing triggered by S3 uploads. It does not natively integrate with S3 events to trigger jobs automatically without additional setup.
★ When this WOULD be the correct answer
A company needs to run a large-scale, compute-intensive batch job (e.g., video transcoding or genomic analysis) that can be split into multiple parallel tasks, and they want to manage job dependencies and retries. AWS Batch would be the correct answer because it orchestrates batch workloads across EC2 or Fargate with automatic scaling.
Why candidates choose this
Candidates might think 'batch processing' applies to any automated processing task, including thumbnail generation, and overlook that AWS Lambda is simpler and more appropriate for event-driven, short-duration tasks.
✗Amazon EC2Wrong answer — click to see why▾
Why this is wrong here
Amazon EC2 requires manual management of underlying servers and does not automatically scale based on S3 events. It would need constant running instances or complex auto-scaling setups, violating the 'runs only when needed' and 'no management' requirements.
★ When this WOULD be the correct answer
If the question required a long-running application with custom OS configurations, persistent storage, or specific software installations that cannot be containerized or run in a serverless function, Amazon EC2 would be the correct choice.
Why candidates choose this
Candidates may think EC2 is the default compute service for any workload, overlooking the serverless and event-driven nature of the requirement. They might not realize that Lambda can directly respond to S3 events without provisioning servers.
✗Amazon ECS with EC2 launch typeWrong answer — click to see why▾
Why this is wrong here
Amazon ECS with EC2 launch type requires managing EC2 instances, which does not meet the requirement of no server management. It also does not automatically trigger on S3 uploads without additional setup like EventBridge.
★ When this WOULD be the correct answer
A company needs to run containerized batch processing jobs that require persistent storage or GPU resources, and is willing to manage EC2 instances for cost optimization or compliance reasons.
Why candidates choose this
Candidates may think ECS is serverless, but the EC2 launch type involves managing servers, confusing it with Fargate. They might also assume containers are needed for image processing.
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 may confuse AWS Batch with event-driven processing, but Batch is optimized for scheduled or queued batch jobs, not for real-time, per-object triggers like S3 uploads.
Detailed technical explanation
How to think about this question
Under the hood, AWS Lambda integrates with S3 via event notifications: when a new object is created, S3 publishes a notification to Lambda, which then invokes the function with the event payload containing the bucket name and object key. The function can use the AWS SDK to download the original image, generate a thumbnail using a library like Pillow, and upload the result to the destination bucket. A key subtlety is that Lambda has a maximum execution timeout of 15 minutes and a maximum deployment package size of 250 MB (uncompressed), so for very large images or complex processing, you might need to consider AWS Lambda Extensions or step functions.
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.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
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.
- →
Cloud Technology and Services — study guide chapter
Learn the concepts, then practise the questions
- →
Cloud Technology and Services practice questions
Targeted practice on this topic area only
- →
All CLF-C02 questions
1,024 questions across all exam domains
- →
AWS Certified Cloud Practitioner CLF-C02 study guide
Full concept coverage aligned to exam objectives
- →
CLF-C02 practice test guide
How to use practice tests most effectively before exam day
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.
Cloud Concepts practice questions
Practise CLF-C02 questions linked to Cloud Concepts.
Security and Compliance practice questions
Practise CLF-C02 questions linked to Security and Compliance.
Cloud Technology and Services practice questions
Practise CLF-C02 questions linked to Cloud Technology and Services.
Billing, Pricing, and Support practice questions
Practise CLF-C02 questions linked to Billing, Pricing, and Support.
AWS shared responsibility model practice questions
Practise CLF-C02 questions linked to AWS shared responsibility model.
AWS IAM practice questions
Practise CLF-C02 questions linked to AWS IAM.
AWS pricing practice questions
Practise CLF-C02 questions linked to AWS pricing.
AWS support plans practice questions
Practise CLF-C02 questions linked to AWS support plans.
AWS S3 practice questions
Practise CLF-C02 questions linked to AWS S3.
AWS EC2 practice questions
Practise CLF-C02 questions linked to AWS EC2.
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 Lambda — AWS Lambda is the correct choice because it is a serverless compute service that runs code in response to events, such as an S3 PUT object event. It automatically scales from zero to thousands of concurrent executions based on the number of incoming uploads, and requires no server management, perfectly meeting the requirement for an on-demand, auto-scaling thumbnail generation solution.
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 →
Same concept, more angles
1 more ways this is tested on CLF-C02
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company runs a web application that allows users to upload images. After each upload, the application must perform several background processing tasks (e.g., resizing, generating thumbnails) that take up to 30 seconds each. Users should receive an immediate response and the processing should continue asynchronously. The company wants a solution that scales automatically with the number of uploads and requires no server management. Which AWS service should the company use to run these background processing tasks?
medium- ✓ A.AWS Lambda
- B.Amazon EC2 with Auto Scaling
- C.Amazon ECS with AWS Fargate
- D.AWS Batch
Why A: AWS Lambda is the correct choice because it is a serverless compute service that executes code in response to events, such as an image upload to Amazon S3. It scales automatically with the number of uploads, requires no server management, and can run background tasks like resizing and thumbnail generation within its 15-minute maximum execution time, easily accommodating the 30-second processing requirement. Users receive an immediate response because the upload triggers Lambda asynchronously, decoupling the frontend from the processing.
Keep practising
More CLF-C02 practice questions
- A company publishes a message each time a new product is added to its catalogue. Three services need to receive this mes…
- A media company stores frequently accessed video thumbnails in Amazon S3. The thumbnails are read multiple times every d…
- A company needs a service to translate domain names (like www.example.com) into IP addresses, check the health of their…
- A startup runs an application on AWS and receives a monthly bill that charges exactly for the number of compute hours us…
- A financial institution runs its core banking application on-premises due to regulatory requirements. It has connected i…
- A company wants to run a MySQL database in AWS without managing database software installation, applying patches, settin…
Last reviewed: Jun 11, 2026
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.
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.
Sign in to join the discussion.