Bird
0
0

What happens when an Amazon SNS topic is configured as a trigger for a Lambda function?

easy📝 Conceptual Q2 of 15
AWS - Lambda
What happens when an Amazon SNS topic is configured as a trigger for a Lambda function?
ALambda runs on a fixed schedule
BLambda runs only when the SNS topic is deleted
CLambda runs when an S3 bucket is updated
DLambda runs when a message is published to the SNS topic
Step-by-Step Solution
Solution:
  1. Step 1: Understand SNS trigger behavior

    When a message is published to an SNS topic, it triggers the connected Lambda function.
  2. Step 2: Check other options for correctness

    Lambda does not run on SNS topic deletion, S3 updates trigger S3 events, and fixed schedules use EventBridge.
  3. Final Answer:

    Lambda runs when a message is published to the SNS topic -> Option D
  4. Quick Check:

    SNS message triggers Lambda = True [OK]
Quick Trick: SNS triggers Lambda on message publish, not deletion or schedule [OK]
Common Mistakes:
  • Confusing SNS deletion with message publish
  • Mixing SNS triggers with S3 events
  • Assuming schedule triggers come from SNS

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes