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 →
- 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 - Give the role
ecs:RunTaskandiam:PassRole - Add retry and a DLQ
- Alarm on failure
Why → No server to maintain, and time zones and retries are supported.
Interview tip → Mention iam:PassRole as the usual gotcha.
More on Route 53, CloudFront and Messaging
You want users routed to the nearest healthy region. Which Route 53 policy do you use?BeginnerPrimary region fails; how do you fail over DNS in a controlled way?IntermediateWhat is the difference between a CNAME and an alias record in Route 53?BeginnerRoll out a new version to 5 percent of users using DNS. How?IntermediateCloudFront serves stale content after you deployed a new JS bundle. How do you handle cache correctly?IntermediateCloudFront returns 403 from an S3 origin. List the checks.Intermediate