Courseiva

DVA-C02 Development with AWS Services Practice Question

Which THREE actions can be performed using AWS Lambda and Amazon S3 event notifications? (Choose three.)

⚠ Common exam trap

AWS often tests the distinction between actions that can be automated via S3 event notifications triggering Lambda (asynchronous processing of existing objects) versus actions that require direct SDK calls or bucket-level configuration changes.

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

✓

Resize an image when a new image is uploaded to an S3 bucket.

AWS Lambda can be triggered by S3 event notifications for object creation events. When a new image is uploaded to an S3 bucket, the event notification invokes a Lambda function that can process the image, such as resizing it using libraries like Pillow or Sharp, and save the resized version back to S3.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Resize an image when a new image is uploaded to an S3 bucket.

    Why this is correct

    When an object is uploaded to an S3 bucket, S3 can publish an event notification (e.g., s3:ObjectCreated:Put) to an AWS Lambda function. The Lambda function can then retrieve the newly uploaded image, perform image manipulation like resizing using libraries (e.g., Pillow in Python), and save the processed image back to S3, potentially in a different bucket or with a different key. This is a classic serverless image processing pattern.

  • ✗

    Generate a pre-signed URL for an object.

    Why it's wrong here

    Generating a pre-signed URL for an S3 object is typically an action performed by an application or service that needs to grant temporary, limited-privilege access to a private object. It's an on-demand request initiated by a user or system, not an event-driven action triggered by an S3 object creation or modification. While Lambda could host an API endpoint that generates pre-signed URLs, Lambda itself doesn't automatically generate them in response to S3 events.

  • ✓

    Scan an uploaded file for viruses.

    Why this is correct

    Upon a new file upload to an S3 bucket, an S3 event notification can trigger an AWS Lambda function. This Lambda function can be configured to download the uploaded file, invoke an antivirus scanning engine (either a custom one or an integrated service), and then take action based on the scan results, such as quarantining the file or notifying administrators. This provides an automated, serverless security layer for uploaded content.

  • ✗

    Enable versioning on the S3 bucket.

    Why it's wrong here

    S3 bucket versioning is a static configuration setting applied directly to an S3 bucket to preserve multiple versions of an object. It is enabled or disabled through the S3 console, AWS CLI, or SDKs, and is not an action that can be dynamically triggered or performed by an AWS Lambda function in response to an S3 object event. Lambda functions are for processing object data or initiating workflows, not for modifying bucket-level configurations based on object events.

  • ✓

    Transcode a video when a new video file is created.

    Why this is correct

    When a new video file is uploaded to an S3 bucket, an S3 event notification can trigger an AWS Lambda function. This Lambda function can then initiate a video transcoding job using a service like AWS Elemental MediaConvert, passing the S3 object details as input. MediaConvert processes the video into various formats and resolutions, storing the output back into S3, enabling automated media processing workflows.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This DVA-C02 question is part of Courseiva's 1,135-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.