Bird
0
0

You want a Lambda function to run every day at 6 AM UTC without any external event. Which AWS service and configuration should you use to trigger the Lambda?

hard📝 Best Practice Q15 of 15
AWS - Lambda
You want a Lambda function to run every day at 6 AM UTC without any external event. Which AWS service and configuration should you use to trigger the Lambda?
AConfigure an S3 bucket event to trigger Lambda at 6 AM
BCreate a CloudWatch Events (EventBridge) rule with a cron expression to trigger Lambda
CSet up an SQS queue with a message sent daily at 6 AM
DEnable DynamoDB Streams to trigger Lambda daily
Step-by-Step Solution
Solution:
  1. Step 1: Identify scheduled triggers for Lambda

    To run Lambda on a schedule without external events, use CloudWatch Events (EventBridge) rules.
  2. Step 2: Use cron expression in EventBridge

    Create a rule with a cron expression for 6 AM UTC daily to trigger the Lambda function automatically.
  3. Final Answer:

    Create a CloudWatch Events (EventBridge) rule with a cron expression to trigger Lambda -> Option B
  4. Quick Check:

    Scheduled Lambda uses EventBridge cron rule = B [OK]
Quick Trick: Use EventBridge cron rules for scheduled Lambda runs [OK]
Common Mistakes:
MISTAKES
  • Trying to trigger Lambda via S3 or SQS for schedule
  • Assuming DynamoDB Streams can schedule events
  • Not using cron expressions for timing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes