An operations engineer wants to script the launch of dozens of identical Amazon EC2 instances from a terminal and re-run that script as part of a nightly job. Which way of interacting with AWS best supports this automated, repeatable approach?
- AThe AWS Command Line Interface, a tool that issues AWS service commands from a terminal and can be placed inside scripts Correct
- BThe AWS Management Console, a web interface where each instance is launched by pointing and clicking through the browser pages
- CAWS Trusted Advisor, a tool that inspects an account and recommends improvements for cost, security and fault tolerance
- DAmazon CloudWatch, a monitoring service that gathers metrics and alarms from resources once those resources are already running
Why A is correct: The AWS CLI sends commands from a terminal, so the launch can be written into a script and re-run automatically on a schedule as the engineer wants.
Why B is wrong: The console is a manual web interface, so it cannot be scripted into a nightly job and would force the engineer to click through every launch by hand.
Why C is wrong: Trusted Advisor only reviews an account and suggests improvements, so it does not launch instances or run scripted provisioning at all.
Why D is wrong: CloudWatch watches resources after they exist, so it reports on instances but cannot launch them from a scriptable terminal command.