Bird
0
0

Why does AWS recommend using long polling instead of short polling when receiving messages from an SQS queue?

hard📝 Conceptual Q10 of 15
AWS - SNS and SQS
Why does AWS recommend using long polling instead of short polling when receiving messages from an SQS queue?
ALong polling reduces empty responses and lowers cost by waiting for messages.
BLong polling increases the speed of message delivery.
CLong polling guarantees message order.
DLong polling encrypts messages automatically.
Step-by-Step Solution
Solution:
  1. Step 1: Understand difference between short and long polling

    Short polling returns immediately even if no messages; long polling waits for messages to arrive.
  2. Step 2: Identify benefits of long polling

    Long polling reduces empty responses, saving cost and improving efficiency.
  3. Final Answer:

    Long polling reduces empty responses and lowers cost by waiting for messages. -> Option A
  4. Quick Check:

    Long polling reduces empty receives and cost [OK]
Quick Trick: Long polling waits for messages, saving cost [OK]
Common Mistakes:
MISTAKES
  • Thinking long polling speeds delivery
  • Assuming it guarantees order
  • Believing it encrypts messages

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes