A systems administrator must run a scheduled nightly job from a terminal that stops all development EC2 instances and produces a report of running resources. The steps should be captured in a script that runs the same way every night. Which access method fits this requirement?
Choose one.
The AWS Command Line Interface (AWS CLI) controls AWS services through terminal commands, which can be combined into scripts for repeatable, schedulable administrative automation.
The scenario contains the two classic CLI triggers: a person's operational task performed from a terminal, and a requirement that it be scripted and scheduled to run identically every night. The CLI converts each step into a text command, so the whole sequence becomes a script that a scheduler can invoke. The Management Console fails because manual browser work cannot be scheduled and does not reproduce itself consistently. The Console Mobile Application fails for the same reason — it is a monitoring convenience for humans. Direct Connect fails because it is a network connectivity option and has nothing to do with executing administrative tasks.
- Identify the actor and context: an administrator working from a terminal.
- Spot the keywords: scheduled, script, runs the same way every time.
- Match scripted, repeatable admin operations to the AWS CLI.
- Eliminate both console options as manual human interfaces and Direct Connect as a networking service.
Exam tip: Scripted, scheduled administrative tasks from a terminal are the home turf of the AWS CLI.
Deploying and Operating in AWS: Console, CLI, SDKs, IaC, and Connectivity — the lesson that teaches this.