Question 525 of 1,616
Development with AWS ServiceseasyMultiple ChoiceObjective-mapped

DVA-C02 Development with AWS Services Practice Question

This DVA-C02 practice question tests your understanding of development with aws services. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. A key principle to apply: s3 event notifications can trigger Lambda functions.. 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 developer configures an AWS Lambda function to process image files uploaded to an S3 bucket. The bucket receives a mix of .jpg, .png, and .pdf files. The developer wants to invoke the Lambda function only for image files to reduce costs. Which configuration should the developer use?

Question 1easymultiple 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

Configure an S3 event notification with a suffix filter '.jpg' and '.png'

Option B is correct because S3 event notifications support suffix filtering, allowing you to specify object key suffixes like '.jpg' and '.png'. This ensures the Lambda function is invoked only when objects with those extensions are uploaded, filtering out .pdf files and reducing unnecessary invocations and costs.

Key principle: S3 event notifications can trigger Lambda functions.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Configure an S3 event notification with a prefix filter 'images/'

    Why it's wrong here

    A prefix filter only matches object keys starting with the given prefix. It does not filter by file extension, so .pdf files could still trigger the function.

  • Configure an S3 event notification with a suffix filter '.jpg' and '.png'

    Why this is correct

    Suffix filters allow you to invoke the Lambda function only for objects with specific file extensions, e.g., '.jpg' and '.png'.

    Related concept

    S3 event notifications can trigger Lambda functions.

  • Create a Lambda resource-based policy that denies invocation from S3 for .pdf objects

    Why it's wrong here

    Lambda resource-based policies control who can invoke the function, but they cannot filter based on object key or extension at the trigger level.

  • Add an S3 bucket policy that denies PutObject for any object that is not a .jpg or .png

    Why it's wrong here

    A bucket policy can deny uploads of non-image files, but that would prevent them from being stored at all, which may not be desired. It also does not affect event notifications.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates confuse S3 event notification filters (which control which objects trigger the event) with resource-based policies (which control invocation permissions), leading them to choose option C or D instead of the correct suffix filter.

Detailed technical explanation

How to think about this question

S3 event notification filters use XML-based configuration with <FilterRule> elements for name (prefix or suffix) and value. Suffix filtering matches the end of the object key, so '.jpg' and '.png' must be configured as separate rules because S3 does not support OR logic within a single filter—each suffix requires its own notification configuration. This is important when dealing with mixed file types in a single bucket to avoid unintended invocations.

KKey Concepts to Remember

  • S3 event notifications can trigger Lambda functions.
  • Suffix filters in S3 event notifications match file extensions.
  • Multiple suffixes can be specified for a single S3 event notification.
  • Filtering occurs at the S3 service level, reducing unnecessary Lambda invocations.

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

S3 event notifications can trigger Lambda functions.

Real-world example

How this comes up in practice

A startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.

What to study next

Got this wrong? Here's your next step.

Review s3 event notifications can trigger Lambda functions., then practise related DVA-C02 questions on the same topic to reinforce the concept.

Related practice questions

Related DVA-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 DVA-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 DVA-C02 question test?

Development with AWS Services — This question tests Development with AWS Services — S3 event notifications can trigger Lambda functions..

What is the correct answer to this question?

The correct answer is: Configure an S3 event notification with a suffix filter '.jpg' and '.png' — Option B is correct because S3 event notifications support suffix filtering, allowing you to specify object key suffixes like '.jpg' and '.png'. This ensures the Lambda function is invoked only when objects with those extensions are uploaded, filtering out .pdf files and reducing unnecessary invocations and costs.

What should I do if I get this DVA-C02 question wrong?

Review s3 event notifications can trigger Lambda functions., then practise related DVA-C02 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

S3 event notifications can trigger Lambda functions.

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 DVA-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 DVA-C02 exam.