DVA-C02 Development with AWS Services Practice Question
A developer is building a serverless application that needs to process messages from an Amazon SQS queue and store the results in an Amazon DynamoDB table. Which AWS service should the developer use to orchestrate the processing logic without managing servers?
⚠ Common exam trap
Candidates often confuse AWS Step Functions as a serverless orchestrator for simple tasks, but Step Functions is designed for coordinating multi-step workflows and state machines, not for directly processing individual SQS messages, which is a core Lambda use case.
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
AWS Lambda is the correct choice because it is a serverless compute service that can be triggered by SQS messages via event source mappings, process each message, and write results to DynamoDB without provisioning or managing any servers. The developer simply uploads the processing code, and Lambda handles scaling, concurrency, and execution, making it ideal for this event-driven, serverless workflow.
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 Elastic Container Service (ECS) with Fargate
Why it's wrong here
Amazon Elastic Container Service (ECS) with Fargate is a serverless compute option that runs containers without managing servers. However, for simple message processing, it introduces the overhead of defining, building, and managing container images and their orchestration, which is more complex than directly deploying code as a function. This approach is generally overkill when a simpler function-as-a-service model suffices for event-driven tasks.
- ✗
Amazon EC2 instances with a custom application
Why it's wrong here
Amazon EC2 instances with a custom application directly contradict the fundamental principle of serverless computing. EC2 requires manual provisioning, configuration, patching, and scaling of virtual servers, placing significant operational burden on the developer. This approach necessitates active server management, which is precisely what serverless architectures aim to eliminate to reduce operational overhead and improve agility.
- ✓
AWS Lambda
Why this is correct
AWS Lambda is the ideal serverless compute service for processing messages in an event-driven architecture. It automatically executes code in response to triggers, such as messages arriving in an SQS queue, without requiring any server provisioning or management. Lambda scales seamlessly with demand, offers a cost-effective pay-per-execution model, and integrates natively with other AWS services, making it perfectly suited for building highly scalable and resilient message processing components.
- ✗
AWS Step Functions
Why it's wrong here
AWS Step Functions is a serverless workflow orchestrator designed to coordinate multiple distributed application components into complex, multi-step processes. While powerful for managing stateful workflows, using it solely for simple message processing introduces unnecessary complexity and overhead. A single AWS Lambda function is sufficient and more direct for handling straightforward message processing tasks, without the need to define a state machine for a non-orchestrated operation.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
About these practice questions
One of 724 original DVA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.