Question

Difficulty: MediumMethods of Deploying and Operating in AWS

A startup is deploying a three-tier web application on AWS and needs to accomplish two operational tasks:

1. Define the infrastructure resources (such as Amazon VPCs and RDS databases) in a declarative template file to ensure consistent deployments across test and production environments.
2. Enable the web application's backend code to programmatically upload user files to Amazon Simple Storage Service (Amazon S3).

Which two AWS services or tools are best suited to meet these requirements? (Select TWO.)

  1. AWS CloudFormation to define infrastructure resources in a template fileAnswer
  2. AWS Software Development Kit (AWS SDK) to programmatically upload files from the application codeAnswer
  3. C
    AWS Elastic Beanstalk to define the infrastructure resources in a declarative template file
  4. D
    AWS Command Line Interface (AWS CLI) configured with root user access keys for programmatic application integration
  5. E
    AWS Management Console to upload files directly to an Amazon EBS volume

Answer

AWS CloudFormation and AWS Software Development Kit (AWS SDK)
AWS CloudFormation enables Infrastructure as Code (IaC) to define resources in templates, ensuring consistent and repeatable deployments. The AWS SDK (Software Development Kit) provides APIs to programmatically integrate AWS services within application code, which is ideal for uploading files from the backend application.

Step-by-Step Solution

1
Identify the method required for defining infrastructure consistently using template files.
AWS CloudFormation is the service designed for Infrastructure as Code (IaC), allowing declarative resource definition in JSON or YAML templates.
This matches the requirement to deploy resources repeatedly and consistently across multiple environments.
2
Identify the method required for programmatically interacting with AWS services from application backend code.
The AWS SDK (Software Development Kit) provides language-specific libraries to integrate AWS actions directly into application code.
This matches the requirement to programmatically upload files to Amazon S3 from the backend code.

Key Concept

AWS deployment and operating methods including Infrastructure as Code (IaC) and programmatic access.
Rate this question