Question

Difficulty: EasyAWS Compute Services

A business wants to move two distinct workloads to the AWS Cloud:

1. A legacy system that requires direct access to the operating system to install custom software and configure low-level settings.
2. A lightweight background task that runs for only a few seconds to resize images whenever customers upload them.

Which two AWS compute services should the business select to host these workloads? (Select two.)

  1. Amazon Elastic Compute Cloud (Amazon EC2) to host the legacy system, providing full control over the guest operating systemAnswer
  2. AWS Lambda to run the short image-resizing tasks when images are uploadedAnswer
  3. C
    AWS Fargate to host the legacy system, allowing access to customize the underlying host kernel
  4. D
    Amazon Elastic Compute Cloud (Amazon EC2) to host the legacy system, assuming AWS automatically manages and patches its guest operating system
  5. E
    AWS Lambda to run the legacy system continuously to ensure constant availability

Answer

Amazon Elastic Compute Cloud (Amazon EC2) and AWS Lambda
Amazon Elastic Compute Cloud (Amazon EC2) is correct for the legacy workload because it provides virtual machines where users have complete administrative control over the guest operating system, which is required for custom installations. AWS Lambda is correct for the image-resizing workload because it is a serverless, event-driven compute service designed to run code for short durations in response to events (like file uploads) without provisioning or managing servers.

Step-by-Step Solution

1
Analyze the legacy workload requirement of direct access to the operating system for custom configuration.
Identify that virtual machines like Amazon Elastic Compute Cloud (Amazon EC2) provide full administrative control over the guest operating system, whereas container or serverless platforms do not.
To ensure the legacy application can be installed and configured at the OS level.
2
Analyze the image-resizing workload requirement of running for a few seconds in response to uploads.
Identify that AWS Lambda is an event-driven, serverless service that executes code in response to triggers and only runs for the duration of the task, offering high efficiency.
To minimize management overhead and costs for short-lived, event-driven tasks.

Key Concept

Selecting the appropriate AWS compute services based on operational control and workload duration.
Rate this question