Interview Prep/AWS/Route 53, CloudFront and Messaging

You need a nightly job that runs at 02:00 UTC and triggers an ECS task. How?

IntermediateScenarioRoute 53, CloudFront and Messaging
Answer

Situation read → EventBridge Scheduler is the managed cron.

What I'd do →

  1. Create the schedule: aws scheduler create-schedule --name nightly --schedule-expression "cron(0 2 * * ? *)" --target '{"Arn":"<cluster-arn>","RoleArn":"<role>","EcsParameters":{...}}' --flexible-time-window Mode=OFF
  2. Give the role ecs:RunTask and iam:PassRole
  3. Add retry and a DLQ
  4. Alarm on failure

Why → No server to maintain, and time zones and retries are supported.

Interview tip → Mention iam:PassRole as the usual gotcha.

aws All AWS questions Roadmap: AWS core services

More on Route 53, CloudFront and Messaging