Question

Difficulty: MediumMethods of Deploying and Operating in AWS

A system administrator is tasked with adding a new inbound rule to allow traffic from a new partner network across several hundred Amazon EC2 security groups. The administrator wants to automate these updates by running a shell script from their local command terminal. Which AWS tool is best suited for executing these commands within the script?

  1. A
    AWS Management Console
  2. B
    AWS CloudFormation
  3. AWS Command Line Interface (CLI)Answer
  4. D
    AWS Elastic Beanstalk

Answer

AWS Command Line Interface (CLI)
The AWS Command Line Interface (CLI) allows administrators to control and automate AWS services through local terminal shell scripts, making it the ideal tool for bulk procedural operations such as updating hundreds of security groups.

Step-by-Step Solution

1
Identify the administrative requirement to automate repetitive, bulk configuration changes across hundreds of resources using a shell script.
Recognized that manual configuration is not scalable and that the solution requires programmatically executing command-line instructions.
This rules out graphical user interfaces designed for manual operations.
2
Select the tool that allows running shell commands and scripts from a local terminal to interact with AWS services.
Identified the AWS Command Line Interface (CLI) as the tool designed for shell scripting and automation.
The CLI is built specifically for executing API operations from local shell environments without the need to compile full application code or use templates.

Key Concept

The AWS Command Line Interface (CLI) is a unified command-line tool designed for scripting and automating AWS resource management tasks.
Rate this question