Question

Difficulty: MediumMethods of Deploying and Operating in AWS

A company's system administration team needs to implement two specific tasks on AWS:

1. Define the architecture and resource settings of a new Virtual Private Cloud (VPC) using version-controlled, reusable templates.
2. Automate a nightly task that scripts the upload of local backup logs from an on-premises administrative server to an Amazon S3 bucket.

Which of the following AWS deployment and operating methods are best suited for these respective tasks? (Select TWO.)

  1. AWS CloudFormation to define and deploy the Virtual Private Cloud (VPC) infrastructure using templatesAnswer
  2. AWS Command Line Interface (AWS CLI) to run scripts that upload files from the on-premises serverAnswer
  3. C
    AWS Elastic Beanstalk to define the Virtual Private Cloud (VPC) infrastructure via templates
  4. D
    AWS CloudTrail to automate the scripting and execution of the nightly file uploads
  5. E
    Amazon EBS to directly store and sync the on-premises backup logs over the internet

Answer

AWS CloudFormation is used to define and deploy infrastructure as code, while the AWS CLI is used to write scripts to automate tasks such as file uploads.
AWS CloudFormation is the service designed to model and provision AWS infrastructure deployments using templates. The AWS CLI allows administrators to control services from a command-line shell and automate tasks using custom scripts, making it ideal for automating file transfers from on-premises environments.

Step-by-Step Solution

1
Analyze the first requirement: defining a VPC configuration using reusable templates.
Identify AWS CloudFormation as the service that enables Infrastructure as Code (IaC) using templates.
CloudFormation allows declarative modeling of AWS infrastructure using JSON or YAML, ensuring consistency and version control.
2
Analyze the second requirement: automating file uploads to S3 from an on-premises server via scripting.
Identify AWS CLI as the tool of choice for executing commands from scripts on administrative servers.
The AWS CLI allows administrators to write standard shell scripts that interact with AWS services like Amazon S3 without needing full programming environments required by SDKs.

Key Concept

Deployment and operating methods in AWS, including AWS CloudFormation and AWS CLI
Rate this question