Courseiva
Question 1,289 of 724
Troubleshooting and OptimizationhardMultiple ChoiceObjective-mapped

DVA-C02 Troubleshooting and Optimization Practice Question

Messages in an SQS queue are processed successfully but later reappear and are processed again. What is the most likely configuration issue?

⚠ Common exam trap

Many exam-takers confuse message reappearance with dead-letter queue behavior, but dead-letter queues only trigger after a configurable number of receive attempts, not after a single successful processing cycle.

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

The visibility timeout is shorter than the processing time or messages are not deleted after processing

When a message is processed but not deleted from the SQS queue, or when the visibility timeout expires before processing completes, the message becomes visible again in the queue and can be consumed by another worker. This causes duplicate processing. The correct fix is to ensure the visibility timeout is set longer than the expected processing time and that the message is explicitly deleted after successful processing.

Answer analysis

Option-by-option breakdown

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

  • The queue uses long polling

    Why it's wrong here

    Long polling in SQS is a mechanism to reduce the number of empty responses and API calls by allowing consumers to wait for messages to arrive for up to 20 seconds. While it improves the efficiency of message retrieval, it does not influence the message's visibility after it has been received and processed. Therefore, long polling would not directly cause successfully processed messages to reappear or be reprocessed.

  • The queue has a dead-letter queue

    Why it's wrong here

    A Dead-Letter Queue (DLQ) in SQS is designed to capture messages that a consumer has failed to process successfully after a specified number of retries, indicated by the `maxReceiveCount` attribute. The question states messages are 'processed successfully,' meaning they would not typically be routed to a DLQ. The mere presence of a DLQ does not explain why successfully processed messages would be re-queued or require re-processing.

  • The messages are encrypted with SSE-SQS

    Why it's wrong here

    Server-Side Encryption for SQS (SSE-SQS) provides encryption of messages at rest and in transit using AWS Key Management Service (KMS) keys. This security feature ensures data confidentiality but has no impact on the operational lifecycle of a message within the queue, such as its visibility, processing time, or deletion status. Therefore, SSE-SQS would not cause successfully processed messages to reappear or be reprocessed by consumers.

  • The visibility timeout is shorter than the processing time or messages are not deleted after processing

    Why this is correct

    If the visibility timeout is shorter than the actual time required to process a message, the message will become visible again to other consumers before the initial consumer finishes and deletes it, leading to duplicate processing. Alternatively, if a consumer successfully processes a message but fails to explicitly call the `DeleteMessage` API, the message will remain in the queue and become visible again once its timeout expires, resulting in reprocessing. Both scenarios directly explain why messages might be processed successfully but still reappear.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.