Amazon Web Services

AWS Certified Developer - Associate (DVA-C02) practice questions

Associate-level AWS certification for developers who build, deploy, secure and troubleshoot cloud-native applications on AWS, with a worked explanation on every practice question.

New to DVA-C02? Read the how to pass AWS Certified Developer - Associate study guide for a domain breakdown, a study plan, and exam-day tips.

Revising? The DVA-C02 cheat sheet puts the domain weightings, key facts, and easy-to-confuse traps on one printable page.

65
Questions
130 min
Time allowed
720 / 1000
Pass mark
$150
Exam cost (USD)
309
Practice questions

Exam domains and weighting

The DVA-C02 blueprint is split across 4 domains. See the official exam guide for the authoritative breakdown.

DVA-C02 exam domain weighting - each domain's share of the exam. Full breakdown with links below.
DVA-C02 domains by share of the exam
DomainWeight
Development with AWS Services32%
Security26%
Deployment24%
Troubleshooting and Optimization18%

Free sample questions

No account needed. Every question has a worked explanation, just like the full bank.

Free sampleDevelopment with AWS Servicesmedium

A developer is building an order service that publishes an OrderPlaced event. Three independent consumers must each receive every event: an email service polls a queue, an analytics service polls a separate queue, and an inventory service is an HTTP endpoint. The developer wants each consumer to process events at its own pace with retry and buffering. Which design implements this fan-out most directly?

  • APublish each event to an SNS topic and subscribe the two queues plus the inventory HTTP endpoint to the topic so SNS delivers a copy to every subscriber. Correct
  • BPublish each event to one SQS standard queue and let all three consumers poll that single shared queue so every service receives the same message body.
  • CPublish each event to an SNS topic with the inventory HTTP endpoint subscribed directly and the two services reading from the topic by long polling it for messages.
  • DPublish each event to an SQS FIFO queue and configure three message group IDs so each consumer reads only the group that matches its own service name reliably.
Use an SNS topic with multiple subscribers to fan out a copy of each event to several independent consumers. SNS implements the publish-subscribe fan-out pattern by pushing a separate copy of every published message to each subscriber, so SQS queues subscribed to the topic buffer messages for their pollers while an HTTP subscriber receives push delivery, letting every consumer process independently.

Why A is correct: SNS fan-out pushes a copy of each message to every subscriber, so both queues buffer for their pollers and the HTTP endpoint receives a direct delivery with retries.

Why B is wrong: A single SQS queue delivers each message to only one consumer that deletes it, so the three services would compete for messages rather than each receiving every event.

Why C is wrong: SNS is push-based and cannot be polled, so subscribing the services by polling the topic is not possible and would lose the buffering the queues provide.

Why D is wrong: Message group IDs order messages within a single FIFO queue but still deliver each message once, so they cannot duplicate every event to three separate consumers.

Free sampleDevelopment with AWS Servicesmedium

A payment service writes transactions to an SQS queue that a worker fleet polls. Each transaction must be processed once and in the exact order it was submitted per customer account. Duplicate processing would double-charge a customer. Which queue configuration meets the ordering and exactly-once processing requirement?

  • AUse an SQS standard queue with a long visibility timeout and rely on the worker to sort messages by a submittedAt timestamp before charging each customer account.
  • BUse an SQS FIFO queue with the customer account as the message group ID and content-based deduplication enabled so order and single processing hold per account. Correct
  • CUse an SQS standard queue with deduplication scope set to message group so repeated transactions are dropped and the workers process each account in arrival order.
  • DUse an SNS standard topic subscribed to one queue with delivery retries tuned so the topic enforces strict order and removes duplicate transactions before workers poll.
Choose an SQS FIFO queue with a message group ID and deduplication to get ordered, exactly-once processing per key. FIFO queues deliver messages in order within a message group and use a deduplication ID, either supplied or content-based, to discard repeated sends inside a five-minute window, so keying the group by customer account gives ordered, exactly-once processing where standard queues cannot.

Why A is wrong: Standard queues offer best-effort ordering and at-least-once delivery, so a long timeout and client sorting cannot guarantee per-account order or prevent duplicate charges.

Why B is correct: A FIFO queue preserves order within each message group and deduplication suppresses repeats, so transactions for one account are processed in order and exactly once.

Why C is wrong: Standard queues do not support deduplication scope or message groups, so this configuration is invalid and would not stop duplicate or out-of-order processing.

Why D is wrong: SNS standard topics do not guarantee ordering or deduplication, and retries can themselves cause duplicates, so the double-charge risk and ordering gap remain.

Free sampleDevelopment with AWS Servicesmedium

A worker reads orders from an SQS standard queue and calls a downstream API. Some messages contain malformed data that always fails, so the worker never deletes them and they reappear after the visibility timeout, blocking the queue and wasting compute. The developer wants poison messages isolated automatically after a few failed attempts. What should the developer configure?

  • ALower the queue's visibility timeout so failing messages reappear faster and the worker can retry them many more times within the same processing window.
  • BIncrease the message retention period so failing messages stay longer, giving the worker additional chances to process them before they are finally deleted.
  • CSet a redrive policy on the queue with a dead-letter queue and a maxReceiveCount so messages move to the dead-letter queue after the failed attempts. Correct
  • DEnable long polling with a higher wait time so the worker batches messages and skips the malformed ones until they expire from the queue on their own.
Attach a dead-letter queue with a redrive policy and maxReceiveCount to isolate repeatedly failing poison messages. SQS tracks how many times each message is received, and a redrive policy compares that count to maxReceiveCount, moving the message to the configured dead-letter queue once it is exceeded, so poison messages stop recirculating in the main queue and can be inspected separately.

Why A is wrong: A shorter visibility timeout only makes poison messages reappear sooner, increasing wasted retries rather than removing them from the main queue.

Why B is wrong: A longer retention period keeps poison messages in the queue even longer, which worsens the blocking and waste rather than isolating the bad messages.

Why C is correct: A redrive policy counts receives and moves a message to the dead-letter queue once maxReceiveCount is exceeded, isolating poison messages from the main queue automatically.

Why D is wrong: Long polling reduces empty receive calls but does not skip or remove failing messages, so poison messages keep returning until retention expires.

Frequently asked questions

How many questions are on the DVA-C02 exam?
The AWS Certified Developer - Associate (DVA-C02) exam has 65 questions and runs for 130 minutes. The format is multiple choice and multiple response.
What score do I need to pass DVA-C02?
The pass mark is 720 / 1000. Examworthy gives you a per-domain readiness score so you can see which domains are holding you back before you book.
How much does the DVA-C02 exam cost?
The exam costs 150 USD to sit. Practising on Examworthy is free to start, with a worked explanation on every question.
How does Examworthy help me prepare for DVA-C02?
Every practice question carries a worked explanation and a per-distractor rationale, mapped to the official blueprint domains. You learn why each answer is right or wrong, not just the letter.
Is Examworthy affiliated with Amazon Web Services?
No. Examworthy is not affiliated with or endorsed by Amazon Web Services. Our questions are original, blueprint-aligned practice material; we never reproduce live exam items.

Related certifications

More certifications you can practise on Examworthy, related to AWS Certified Developer - Associate.

Browse all certifications

Examworthy is not affiliated with or endorsed by Amazon Web Services. All questions are original, blueprint-aligned practice material. We never reproduce live exam items. DVA-C02 and related marks belong to their respective owners.