Bird
0
0

What will be the output of this AWS CLI command if the message is successfully deleted from the queue?

medium📝 Predict Output Q5 of 15
AWS - SNS and SQS
What will be the output of this AWS CLI command if the message is successfully deleted from the queue? `aws sqs delete-message --queue-url https://sqs.region.amazonaws.com/123456789012/MyQueue --receipt-handle abc123`
A{}
BMessage deleted successfully
CError: Receipt handle invalid
DNo output
Step-by-Step Solution
Solution:
  1. Step 1: Understand AWS CLI delete-message response

    When delete-message succeeds, AWS CLI returns an empty JSON object '{}'.
  2. Step 2: Confirm no success message string is printed

    The CLI does not print a success string, just '{}'.
  3. Final Answer:

    The output is an empty JSON object '{}'. -> Option A
  4. Quick Check:

    Successful delete-message output = '{}' [OK]
Quick Trick: Successful delete-message returns empty JSON {} [OK]
Common Mistakes:
  • Expecting a success string message
  • Confusing error output with success
  • Assuming no output means success

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes