Question

Difficulty: EasyMethods of Deploying and Operating in AWS

A system administrator wants to automate the process of stopping several Amazon EC2 instances at the end of each day by writing a shell script that runs on their local computer. Which AWS tool should the administrator install to run these administrative commands directly from the terminal?

  1. AWS Command Line Interface (CLI)Answer
  2. B
    AWS Management Console
  3. C
    AWS Software Development Kits (SDKs)
  4. D
    AWS CloudFormation

Answer

AWS Command Line Interface (CLI)
The AWS Command Line Interface (CLI) is the correct tool because it allows administrators to execute commands directly from their local terminal and incorporate them into shell scripts (such as bash or zsh) to automate tasks like stopping EC2 instances.

Step-by-Step Solution

1
Analyze the administrator's requirement: the need to automate a task (stopping instances) using a shell script that runs on a local computer's terminal.
Identified that the solution must support scriptable, command-based execution directly from a shell environment.
This filters out graphical user interfaces and application-level code libraries.
2
Evaluate the available AWS operating methods against the terminal-based command requirement.
The AWS Command Line Interface (CLI) is specifically designed for shell scripting and command execution. The AWS Management Console is a browser-based GUI. AWS SDKs are code libraries. AWS CloudFormation is for provisioning resources using templates.
Selecting the option that matches command-line shell scripts leads directly to the correct operating method.

Key Concept

AWS Command Line Interface (CLI) is used for automating tasks through shell scripts and executing commands directly from a terminal.
Rate this question