DVA-C02 Development with AWS Services Practice Question
A developer is creating an API with Amazon API Gateway that needs to accept binary data (e.g., images) and store them directly in an S3 bucket. The developer wants to minimize backend complexity. Which integration type should be used?
⚠ Common exam trap
It's easy for candidates to default to Lambda proxy integration for any data processing task, overlooking that direct AWS service integration can handle binary uploads to S3 without any compute layer, which is the simplest and most cost-effective approach.
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 service integration with S3
AWS service integration with S3 allows API Gateway to directly proxy binary data (e.g., images) to an S3 bucket without invoking a Lambda function or other backend. This minimizes backend complexity because the API Gateway handles the request transformation and passes the payload directly to S3 via the PutObject API action, eliminating the need for custom code.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
AWS service integration with S3
Why this is correct
AWS service integration enables API Gateway to directly invoke actions on other AWS services, such as S3, without requiring an intermediate compute layer like Lambda. For storing objects, this integration type allows API Gateway to map incoming request bodies directly to S3 PUT object operations. This approach significantly minimizes backend complexity and latency by leveraging S3's native capabilities for object storage, making it the most efficient solution for directly accepting and storing data.
- ✗
Lambda proxy integration
Why it's wrong here
Lambda proxy integration forwards the entire request, including headers and body, to a Lambda function for processing. While highly flexible for custom logic, this approach necessitates writing and maintaining a Lambda function to handle the S3 upload logic, which introduces additional development overhead, operational complexity, and potential latency compared to a direct service integration. It's an unnecessary compute layer if the sole purpose is direct S3 storage.
- ✗
HTTP integration
Why it's wrong here
HTTP integration allows API Gateway to forward requests to any publicly accessible HTTP endpoint. To store objects in S3 using this method, an external HTTP server would be required to receive the request from API Gateway and then perform the S3 upload. This introduces an additional layer of infrastructure and management outside of API Gateway and S3, making it less direct and more complex than a native AWS service integration for this specific task.
- ✗
Mock integration
Why it's wrong here
Mock integration is designed to return predefined, static responses directly from API Gateway without invoking any backend endpoint. Its primary purpose is for testing API definitions or providing placeholder responses during development. Since it does not connect to any actual backend service, it inherently lacks the capability to interact with S3 or perform any data storage operations, rendering it unsuitable for accepting and storing data.
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
Courseiva writes every DVA-C02 question from scratch — 724 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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.