AWS - LambdaWhat happens when an Amazon SNS topic is configured as a trigger for a Lambda function?ALambda runs on a fixed scheduleBLambda runs only when the SNS topic is deletedCLambda runs when an S3 bucket is updatedDLambda runs when a message is published to the SNS topicCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand SNS trigger behaviorWhen a message is published to an SNS topic, it triggers the connected Lambda function.Step 2: Check other options for correctnessLambda does not run on SNS topic deletion, S3 updates trigger S3 events, and fixed schedules use EventBridge.Final Answer:Lambda runs when a message is published to the SNS topic -> Option DQuick 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 publishMixing SNS triggers with S3 eventsAssuming schedule triggers come from SNS
Master "Lambda" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes AWS Lambda - Lambda concurrency and throttling - Quiz 9hard AWS Lambda - Lambda handler function structure - Quiz 2easy Auto Scaling - Cooldown periods - Quiz 7medium Auto Scaling - Launch templates - Quiz 4medium CloudWatch - CloudWatch alarms - Quiz 7medium DynamoDB - Why DynamoDB for NoSQL - Quiz 10hard Elastic Load Balancing - ALB vs NLB decision - Quiz 9hard RDS and Relational Databases - RDS pricing considerations - Quiz 4medium RDS and Relational Databases - Multi-AZ deployment for high availability - Quiz 5medium RDS and Relational Databases - RDS backup and snapshots - Quiz 1easy