Bird
0
0

Which of the following is the correct JSON structure to subscribe an SQS queue to an SNS topic using AWS SDK?

easy📝 Syntax Q3 of 15
AWS - SNS and SQS
Which of the following is the correct JSON structure to subscribe an SQS queue to an SNS topic using AWS SDK?
A{"Protocol": "http", "Endpoint": "arn:aws:sqs:region:account-id:queue-name"}
B{"Protocol": "lambda", "Endpoint": "arn:aws:sqs:region:account-id:queue-name"}
C{"Protocol": "email", "Endpoint": "arn:aws:sqs:region:account-id:queue-name"}
D{"Protocol": "sqs", "Endpoint": "arn:aws:sqs:region:account-id:queue-name"}
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct protocol for SQS subscription

    The protocol must be "sqs" to subscribe an SQS queue.
  2. Step 2: Check endpoint format

    The endpoint must be the ARN of the SQS queue.
  3. Final Answer:

    Protocol "sqs" with SQS ARN endpoint is correct. -> Option D
  4. Quick Check:

    Protocol = "sqs" for SQS subscription [OK]
Quick Trick: Use protocol 'sqs' with queue ARN for subscription [OK]
Common Mistakes:
  • Using wrong protocol like http or email
  • Providing queue URL instead of ARN
  • Mixing Lambda protocol with SQS

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes