Bird
0
0

Using the AWS CLI, which command correctly subscribes a phone number to an SNS topic for SMS notifications?

easy📝 Syntax Q3 of 15
AWS - SNS and SQS
Using the AWS CLI, which command correctly subscribes a phone number to an SNS topic for SMS notifications?
Aaws sns subscribe --topic-arn <topic_arn> --protocol sms --notification-endpoint +1234567890
Baws sns subscribe --topic-arn <topic_arn> --protocol sms --notification-endpoint 1234567890
C0987654321+ tniopdne-noitacifiton-- sms locotorp-- >nra_cipot< nra-cipot-- ebircsbus sns swa
Dws sns subscribe --topic-arn <topic_arn> --protocol sms --notification-endpoint +1234567890
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct CLI syntax

    The correct parameter for the endpoint is '--notification-endpoint' or '--endpoint' depending on CLI version; the protocol must be 'sms'.
  2. Step 2: Format phone number

    Phone numbers must be in E.164 format, starting with '+' and country code.
  3. Step 3: Select correct option

    aws sns subscribe --topic-arn --protocol sms --notification-endpoint +1234567890 correctly uses 'sms' protocol and a properly formatted phone number.
  4. Final Answer:

    Option A -> Option A
  5. Quick Check:

    SMS protocol with E.164 phone number [OK]
Quick Trick: Use 'sms' protocol and E.164 phone number format [OK]
Common Mistakes:
  • Omitting the '+' sign in phone number
  • Using incorrect parameter names
  • Using 'notification-endpoint' inconsistently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes