Bird
0
0

You wrote this AWS SNS subscription code:

medium📝 Debug Q6 of 15
AWS - SNS and SQS
You wrote this AWS SNS subscription code:
sns.subscribe({ Protocol: 'sms', Endpoint: '1234567890' });
but SMS messages are not received. What is the likely issue?
ASNS does not support SMS subscriptions
BProtocol 'sms' is invalid
CEndpoint must be an email address for SMS
DPhone number missing country code prefix '+'
Step-by-Step Solution
Solution:
  1. Step 1: Check SMS endpoint format

    SMS endpoints require phone numbers in E.164 format, starting with '+' and country code.
  2. Step 2: Identify the missing '+' prefix

    The given phone number lacks the '+' prefix, causing SNS to reject or not deliver messages.
  3. Final Answer:

    Phone number missing country code prefix '+' -> Option D
  4. Quick Check:

    SMS endpoints need '+' and country code [OK]
Quick Trick: Always include '+' and country code in SMS endpoints [OK]
Common Mistakes:
MISTAKES
  • Using invalid protocol
  • Using email instead of phone number
  • Thinking SNS doesn't support SMS

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes