Question

Difficulty: MediumMethods of Deploying and Operating in AWS

A software development company is building a custom developer portal. The portal needs to programmatically launch and terminate Amazon EC2 instances on behalf of users by executing backend application code written in Python. Additionally, the development team wants to run quick, ad-hoc queries from their local command-line terminals to list active resources without opening a web browser. Which of the following tools or methods should the team use to meet these requirements? (Select TWO.)

  1. AWS Software Development Kit (SDK)Answer
  2. AWS Command Line Interface (CLI)Answer
  3. C
    AWS Management Console
  4. D
    AWS CloudFormation
  5. E
    AWS Elastic Beanstalk

Answer

AWS Software Development Kit (SDK) and AWS Command Line Interface (CLI)
The requirement to programmatically launch and terminate instances from Python code is solved by the AWS Software Development Kit (SDK), which offers libraries for languages like Python. The requirement to run ad-hoc command-line queries from a terminal is solved by the AWS Command Line Interface (CLI), which allows direct control of AWS services from a local command shell.

Step-by-Step Solution

1
Analyze the first requirement: programmatically launching and terminating instances via Python backend code.
Identify that the AWS Software Development Kit (SDK) is designed for programmatic interaction using programming languages.
The SDK provides language-specific APIs to interact with AWS resources directly from application code.
2
Analyze the second requirement: running quick, ad-hoc queries from a local command-line terminal without a web browser.
Identify that the AWS Command Line Interface (CLI) is the primary tool for running commands from terminal shells.
The CLI enables quick execution of commands to query and manage resources from a command-line environment.

Key Concept

Differentiation and application of AWS interaction methods (Console, CLI, SDK, CloudFormation)
Rate this question