CV0-004 Deployment Practice Question
A cloud engineer needs to deploy a Lambda function that processes objects uploaded to an S3 bucket. The function code is stored in a .zip file. Which event trigger should the engineer configure to invoke the function automatically?
⚠ Common exam trap
The trap is overcomplicating the trigger — candidates pick EventBridge or SQS thinking they are more 'event-driven,' but the simplest native S3-to-Lambda trigger is an S3 event notification.
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
✓
S3 event notification
S3 event notifications can be configured on a bucket to invoke a Lambda function when objects are created (e.g., s3:ObjectCreated:*), which directly satisfies the requirement to process uploaded objects automatically. This is the native, serverless integration between S3 and Lambda. API Gateway, SQS, and EventBridge are not triggered by S3 PUT events without additional configuration.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
S3 event notification
Why this is correct
S3 event notifications publish ObjectCreated events to Lambda, invoking the function whenever an object lands in the bucket. This satisfies the automatic invocation requirement for uploaded objects, avoiding polling and needing no manual trigger configuration.
- ✗
API Gateway
Why it's wrong here
API Gateway invokes Lambda only on inbound HTTP requests, not on S3 object creation, so uploads would never trigger the function. It is tempting because it is a common Lambda trigger, and it would be correct for exposing the function as a REST endpoint that clients call directly.
- ✗
SQS
Why it's wrong here
SQS queues messages for consumers to poll; it does not receive S3 object-created notifications directly, so nothing invokes the function on upload. It is tempting because queues decouple producers from consumers, and SQS would be correct for buffering asynchronous work that another service explicitly publishes to the queue.
- ✗
EventBridge
Why it's wrong here
EventBridge can route S3 events, but S3 must first be configured to publish them; it is not the direct native trigger for object-created notifications. It is tempting because EventBridge offers content-based filtering and fan-out, and it would be correct for routing events to multiple targets with rules.
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 |
Go deeper
Related to this question
About these practice questions
This CV0-004 question is part of Courseiva's 834-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 →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CompTIA exam blueprint
This CV0-004 practice question is part of Courseiva's free CompTIA 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 CV0-004 exam.