Question

Difficulty: MediumAWS Compute Services

A financial services firm wants to deploy two distinct workloads to AWS. The first workload consists of short-lived, event-driven image rendering tasks that run for approximately 30 seconds after a user uploads a document. The second workload is a legacy SQL database that requires custom kernel patches and direct root access to configure specialized storage volumes. Which two of the following AWS compute services are the most appropriate to run these workloads? (Select TWO.)

  1. AWS Lambda for the image rendering tasksAnswer
  2. Amazon Elastic Compute Cloud (Amazon EC2) for the legacy databaseAnswer
  3. C
    AWS Fargate for the legacy database
  4. D
    Amazon Lightsail for the legacy database
  5. E
    AWS Lambda for the legacy database

Answer

The correct compute choices are AWS Lambda for the short-lived image rendering tasks and Amazon Elastic Compute Cloud (Amazon EC2) for the legacy database workload.
AWS Lambda is ideal for event-driven, short-lived tasks like the image rendering workload because it is serverless and executes code only when triggered. Amazon EC2 is the correct choice for the legacy database because it provides full administrative control over the operating system, allowing the installation of custom kernel patches and specialized configurations.

Step-by-Step Solution

1
Analyze the requirements for the first workload.
The first workload requires short-lived (30 seconds), event-driven execution with zero server administration.
This aligns perfectly with serverless event-driven computing (AWS Lambda).
2
Analyze the requirements for the second workload.
The second workload requires direct root-level operating system access and custom kernel patching.
This requires infrastructure-as-a-service (IaaS), which gives full administrative control (Amazon EC2).

Key Concept

Matching specific workload requirements (event-driven vs. administrative control) to the appropriate AWS compute service.
Rate this question