Soru

Zorluk: KolayMethods of Deploying and Operating in AWS

A developer needs to write a shell script that runs on a local machine to automatically stop several Amazon EC2 instances every night. Which AWS tool is designed to support this type of command-line interaction and scripting?

  1. A
    AWS Management Console
  2. B
    AWS Software Development Kit (AWS SDK)
  3. AWS Command Line Interface (AWS CLI)Cevap
  4. D
    AWS CloudFormation

Cevap

AWS Command Line Interface (AWS CLI)
The AWS Command Line Interface (AWS CLI) is the correct choice because it is a unified tool that allows users to interact with and control AWS services via command-line commands and scripts, making it ideal for automating task execution from a local shell script.

Adım Adım Çözüm

1
Identify the primary requirement in the scenario.
The requirement is to automate the stopping of EC2 instances using a shell script from a local command-line environment.
This helps determine whether a graphical, programmatic, or command-line tool is needed.
2
Evaluate the capabilities of the available AWS interaction methods.
The AWS Command Line Interface (AWS CLI) is specifically designed to execute AWS commands directly from shell scripts and terminal environments.
Matching the tool's core design to the requirement leads to the correct choice.

Anahtar Kavram

Command-line automation using the AWS CLI
Tahmini Süre:45s
Bu soruyu puanla