Question 859 of 1,024
Cloud Technology and ServicesmediumMultiple ChoiceObjective-mapped

Quick Answer

AWS Lambda is the correct choice because it provides the serverless compute environment needed to run image processing code in direct response to S3 upload events. When a user uploads an image to S3, Lambda automatically triggers the function to resize the image into multiple dimensions and store the resized versions under a different prefix, all without provisioning or managing any servers. This architecture directly supports serverless image processing with S3 and Lambda, minimizing operational overhead and billing only for the compute time consumed in 100ms increments. On the AWS Certified Cloud Practitioner CLF-C02 exam, this scenario tests your understanding of event-driven compute services and the Lambda-S3 integration pattern—a common trap is confusing Lambda with EC2 or AWS Batch, but remember that Lambda is purpose-built for short-lived, event-triggered tasks where you pay only for execution time. A helpful memory tip: think of Lambda as the “instant trigger” for S3 events—when a file lands, Lambda handles the heavy lifting without you ever touching a server.

CLF-C02 Cloud Technology and Services Practice Question

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 wants to build a serverless application that processes images uploaded to an Amazon S3 bucket. When a user uploads a new image, the application must automatically resize the image to multiple dimensions and store the resized versions in the same bucket under a different prefix. The company wants to minimize operational overhead and pay only for the compute time used. Which AWS service should be used to run the image processing code?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "minimum / minimize"

    Why it matters: Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

Question 1mediummultiple choice
Full question →

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 S3 events, such as object creation. It automatically scales with the number of uploads, charges only for the compute time consumed (per 100ms increments), and requires no infrastructure management, making it ideal for event-driven image processing tasks.

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.

  • Amazon EC2 Auto Scaling group

    Why it's wrong here

    An Auto Scaling group manages a fleet of EC2 instances, which require provisioning and ongoing management. It is not event-driven and would need additional services to respond to S3 uploads, increasing complexity and cost.

  • AWS Lambda

    Why this is correct

    AWS Lambda is a serverless compute service that can be triggered directly by Amazon S3 events. It runs code only when an image is uploaded, scales automatically, and bills per millisecond of execution. This matches the requirements for minimal overhead and pay-per-use.

    Clue confirmation

    The clue word "minimum / minimize" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Amazon ECS with Fargate

    Why it's wrong here

    Amazon ECS with Fargate runs containerized applications without managing servers, but it is typically used for long-running or scheduled tasks. To trigger it from S3 events, you would need an intermediary service like Amazon EventBridge or a custom polling mechanism, adding complexity and potential cost.

  • AWS Batch

    Why it's wrong here

    AWS Batch is a fully managed batch computing service for running large-scale batch jobs. It is not designed for real-time event-driven processing and would require orchestration to run on each S3 upload, leading to unnecessary overhead and latency.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may choose Amazon ECS with Fargate because they think 'serverless containers' are always the best option, but they overlook that Lambda is simpler, cheaper, and more appropriate for lightweight, event-driven tasks like image resizing, whereas Fargate adds unnecessary overhead for container orchestration.

Detailed technical explanation

How to think about this question

Under the hood, AWS Lambda integrates with S3 via event notifications using the PUT Object API; when an image is uploaded, S3 publishes an event to Lambda, which invokes the function with the object key and bucket name. The function can use the AWS SDK to download the original image, resize it using libraries like Pillow (Python) or Sharp (Node.js), and upload the resized versions back to S3 under a different prefix—all within the 15-minute execution timeout and 512 MB to 10 GB memory range. A real-world scenario is a photo-sharing app where users upload high-resolution images; Lambda resizes them to thumbnails, medium, and large versions, and the cost is minimal because Lambda only runs when a new image is uploaded.

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.

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.

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.

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 S3 events, such as object creation. It automatically scales with the number of uploads, charges only for the compute time consumed (per 100ms increments), and requires no infrastructure management, making it ideal for event-driven image processing tasks.

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.

Are there clue words in this question I should notice?

Yes — watch for: "minimum / minimize". Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

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 →

How Courseiva writes practice questions · Editorial policy

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 development team is building a serverless application that processes image uploads to Amazon S3. The application needs to automatically generate a thumbnail version of each uploaded image and store it in a separate S3 bucket. The team wants to minimize operational overhead and only pay for the compute time used during thumbnail generation. Which AWS service should the team use to execute the thumbnail generation code in response to S3 upload events?

medium
  • A.Amazon EC2 Auto Scaling group
  • B.AWS Lambda
  • C.Amazon ECS with Fargate
  • D.Amazon Elastic Beanstalk

Why B: AWS Lambda is the correct choice because it is a serverless compute service that can be triggered directly by S3 events (e.g., s3:ObjectCreated:*). This allows the thumbnail generation code to run automatically in response to each image upload, with no servers to manage and billing based only on the compute time consumed during execution.

Keep practising

More CLF-C02 practice questions

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

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.