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

Quick Answer

The answer is AWS Lambda with an S3 bucket notification trigger. This is the correct choice because Lambda is a fully managed, event-driven compute service that executes code in response to specific events, such as an s3:ObjectCreated:* event when a file is uploaded to S3. The custom Python script runs inside the Lambda function, which automatically scales to handle each new log file independently, and the 10-second execution time fits comfortably within Lambda’s 15-minute maximum duration—all without any server provisioning or management. On the AWS Certified Cloud Practitioner CLF-C02 exam, this scenario tests your understanding of serverless compute triggered by S3 upload as a core integration pattern. A common trap is to confuse Lambda with AWS Fargate or EC2, but remember that Lambda is purely event-driven and requires no infrastructure to manage. Memory tip: think “S3 upload → Lambda launch” to recall the direct, serverless trigger chain.

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's data analytics team needs to process log files immediately after they are uploaded to an Amazon S3 bucket. The processing logic is implemented as a custom Python script that runs for about 10 seconds per file. The team wants a fully managed solution that does not require provisioning or managing servers, automatically scales with the number of incoming log files, and executes the script only when new files are uploaded. Which AWS service should the team use to meet these requirements?

Clue words in this question

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

  • Clue: "immediately / without restart"

    Why it matters: Time or reboot constraint — the correct answer must take effect right away without requiring a reboot or reload.

Question 1mediummultiple choice
Study the full Python automation breakdown →

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 with an S3 bucket notification trigger

AWS Lambda is the correct choice because it is a fully managed, serverless compute service that can be triggered directly by S3 bucket notifications (e.g., s3:ObjectCreated:* events). The custom Python script runs within the Lambda function, which automatically scales to handle concurrent invocations for each new log file, and the 10-second execution time is well within the 15-minute maximum duration for Lambda functions. This meets all requirements without provisioning or managing servers.

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 with an Auto Scaling group configured to launch instances based on S3 events

    Why it's wrong here

    This option requires provisioning and managing EC2 instances, even with Auto Scaling. It introduces unnecessary overhead and complexity for a short-running, event-driven task. AWS Lambda eliminates this operational burden.

  • AWS Lambda with an S3 bucket notification trigger

    Why this is correct

    Correct. AWS Lambda is a serverless compute service that runs code in response to events, such as S3 object creation. It automatically scales, requires no server management, and executes the function only when new files are uploaded, making it the best fit for this use case.

    Clue confirmation

    The clue word "immediately / without restart" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • AWS Elastic Beanstalk configured with a worker environment

    Why it's wrong here

    Elastic Beanstalk simplifies deployment but still runs on managed EC2 instances. It is better suited for long-running or web applications, not for short, event-driven tasks. Using it for log processing would introduce more complexity and cost than necessary.

  • Amazon EMR with a scheduled step to process new files

    Why it's wrong here

    Amazon EMR is designed for big data processing using frameworks like Apache Spark and Hadoop. It is overkill for a simple Python script that runs in 10 seconds and would require manual scheduling or custom logic to trigger based on S3 events, adding unnecessary cost and complexity.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may confuse 'fully managed' with services like EC2 Auto Scaling or Elastic Beanstalk, which still require server management, or think EMR is suitable for small, event-driven tasks, when in fact Lambda is the only serverless option that directly integrates with S3 events for immediate, per-file processing.

Detailed technical explanation

How to think about this question

Under the hood, S3 bucket notifications send an event payload to Lambda via the AWS internal event bus, and Lambda automatically creates a new execution environment (sandbox) for each invocation, allowing massive concurrency. A subtle behavior is that if the Python script takes longer than 15 minutes, Lambda would time out, but at 10 seconds per file this is not an issue. In a real-world scenario, if log files arrive in bursts, Lambda's concurrency limit (default 1,000 per region) could be reached, requiring a request for a quota increase.

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 with an S3 bucket notification trigger — AWS Lambda is the correct choice because it is a fully managed, serverless compute service that can be triggered directly by S3 bucket notifications (e.g., s3:ObjectCreated:* events). The custom Python script runs within the Lambda function, which automatically scales to handle concurrent invocations for each new log file, and the 10-second execution time is well within the 15-minute maximum duration for Lambda functions. This meets all requirements without provisioning or managing servers.

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: "immediately / without restart". Time or reboot constraint — the correct answer must take effect right away without requiring a reboot or reload.

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

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.