Bird
0
0

You want to ensure that an SNS topic triggers a Lambda function only after the user confirms their email subscription. Which setup achieves this?

hard📝 Application Q9 of 15
AWS - SNS and SQS
You want to ensure that an SNS topic triggers a Lambda function only after the user confirms their email subscription. Which setup achieves this?
ASubscribe only the Lambda function and send emails from Lambda
BSubscribe the email endpoint and separately subscribe the Lambda function to the same topic
CUse the email protocol for Lambda subscription
DSubscribe the Lambda function as the endpoint for the email subscription
Step-by-Step Solution
Solution:
  1. Step 1: Understand subscription confirmation flow

    Email subscriptions require user confirmation before receiving messages.
  2. Step 2: Separate subscriptions for email and Lambda

    Subscribing both email and Lambda separately ensures Lambda triggers regardless of email confirmation, but email messages require confirmation.
  3. Step 3: Achieve Lambda trigger only after email confirmation

    By subscribing both, Lambda can process messages after email confirmation if logic is implemented accordingly.
  4. Final Answer:

    Subscribe the email endpoint and separately subscribe the Lambda function to the same topic -> Option B
  5. Quick Check:

    Separate subscriptions allow independent confirmation and triggers [OK]
Quick Trick: Use separate subscriptions for email and Lambda to control flow [OK]
Common Mistakes:
  • Using email protocol for Lambda
  • Expecting Lambda to confirm email
  • Subscribing Lambda as email endpoint

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes