Bird
0
0

Which syntax correctly describes a serverless function trigger in AWS Lambda?

easy📝 Syntax Q3 of 15
AWS - Lambda
Which syntax correctly describes a serverless function trigger in AWS Lambda?
A"Action": {"EBS": {"VolumeId": "vol-0abcd1234efgh5678"}}
B"Trigger": {"EC2": {"InstanceId": "i-1234567890abcdef0"}}
C"Source": {"RDS": {"Database": "mydb"}}
D"Events": {"S3": {"Bucket": "my-bucket", "Event": "s3:ObjectCreated:*"}}
Step-by-Step Solution
Solution:
  1. Step 1: Identify valid AWS Lambda event trigger syntax

    Lambda triggers often use event sources like S3 with event types such as ObjectCreated.
  2. Step 2: Check each option for correct event source and syntax

    "Events": {"S3": {"Bucket": "my-bucket", "Event": "s3:ObjectCreated:*"}} correctly shows an S3 event trigger; others mention unrelated AWS services not used as Lambda triggers.
  3. Final Answer:

    "Events": {"S3": {"Bucket": "my-bucket", "Event": "s3:ObjectCreated:*"}} -> Option D
  4. Quick Check:

    Lambda trigger syntax = S3 event format [OK]
Quick Trick: Lambda triggers use event sources like S3 [OK]
Common Mistakes:
  • Confusing EC2 or EBS as Lambda triggers
  • Using incorrect JSON keys
  • Mixing unrelated AWS services

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes