Question

Difficulty: MediumAWS Compute Services

A company has two new requirements for its cloud workloads. First, they need to host a legacy database application that requires custom operating system kernel modifications and administrative root access. Second, they need to quickly deploy a simple web application using a pre-configured LAMP stack with a predictable, flat-rate monthly pricing structure. Which two AWS compute services should the company select to meet these requirements?

  1. Amazon EC2Answer
  2. B
    AWS Fargate
  3. Amazon LightsailAnswer
  4. D
    AWS Lambda

Answer

Amazon EC2 and Amazon Lightsail
Amazon Elastic Compute Cloud (Amazon EC2) provides full virtual machine control, allowing users to modify OS configurations and install custom kernels. Amazon Lightsail provides pre-configured application packages (such as LAMP) under a simple, predictable monthly pricing model.

Step-by-Step Solution

1
Analyze the first requirement: host a legacy database requiring custom operating system kernel modifications and root access.
This requires Infrastructure as a Service (IaaS) where the user has full administrative control over the virtual machine's OS. Amazon EC2 meets this requirement.
Managed or serverless services (such as AWS Fargate or AWS Lambda) abstract the operating system and do not allow custom kernel modifications.
2
Analyze the second requirement: deploy a simple web application using a pre-configured LAMP stack with predictable, flat-rate monthly pricing.
Amazon Lightsail is designed specifically for simple, low-cost application hosting with bundled resources (compute, storage, databases) and predictable monthly plans. It supports one-click pre-configured stacks like LAMP.
While Amazon EC2 could host this, it does not offer flat-rate pricing out-of-the-box, and other options like AWS Lambda require refactoring the application to fit a serverless model.

Key Concept

Selecting appropriate AWS compute services based on OS access, management overhead, and pricing models.
Rate this question