Bird
0
0

Which AWS CLI command correctly subscribes an email address to an existing SNS topic?

easy📝 Syntax Q3 of 15
AWS - SNS and SQS
Which AWS CLI command correctly subscribes an email address to an existing SNS topic?
Aaws sns subscribe --topic arn:aws:sns:us-east-1:123456789012:MyTopic --protocol email --endpoint user@example.com
Baws sns add-subscription --topic-arn arn:aws:sns:us-east-1:123456789012:MyTopic --protocol email --endpoint user@example.com
Caws sns create-subscription --topic-arn arn:aws:sns:us-east-1:123456789012:MyTopic --protocol email --endpoint user@example.com
Daws sns subscribe --topic-arn arn:aws:sns:us-east-1:123456789012:MyTopic --protocol email --notification-endpoint user@example.com
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct AWS CLI command

    The correct command to subscribe an endpoint to an SNS topic is aws sns subscribe.
  2. Step 2: Use correct parameters

    The parameters are --topic-arn for the topic ARN, --protocol for the protocol type (email), and --notification-endpoint for the email address.
  3. Final Answer:

    aws sns subscribe --topic-arn arn:aws:sns:us-east-1:123456789012:MyTopic --protocol email --notification-endpoint user@example.com -> Option D
  4. Quick Check:

    Command syntax matches AWS CLI documentation [OK]
Quick Trick: Use 'aws sns subscribe' with --notification-endpoint for email [OK]
Common Mistakes:
  • Using incorrect command like 'add-subscription' or 'create-subscription'
  • Using '--endpoint' instead of '--notification-endpoint'
  • Omitting the full topic ARN or using wrong parameter names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes