Question

Difficulty: HardAWS Compute Services

A company is designing a new container-based e-commerce platform on AWS. The platform consists of two main workloads:

1. A front-end web service that runs continuously, handles unpredictable traffic spikes, and requires full control over the underlying operating system and Docker daemon configuration to install third-party security agents.
2. A short-lived, event-driven image processing task that runs automatically whenever a new product image is uploaded, taking between 1010 and 3030 seconds to complete.

Which combination of AWS compute services should the company select to meet these requirements with the minimum operational overhead? (Select TWO.)

  1. Amazon EC2 to host the front-end web serviceAnswer
  2. AWS Lambda to run the image processing taskAnswer
  3. C
    AWS Fargate to host the front-end web service
  4. D
    Amazon Lightsail to host both the web service and the processing task
  5. E
    Amazon EC2 Spot Instances to run the image processing task

Answer

The correct combination is Amazon EC2 to host the front-end web service and AWS Lambda to run the image processing task.
The correct combination requires using Amazon EC2 for the web service and AWS Lambda for the processing task. Amazon EC2 gives the user full root-level control over the virtual machine's operating system, allowing installation of custom software and Docker daemon modifications. AWS Lambda is a serverless, event-driven service that automatically scales to execute code for short durations, which perfectly matches the brief image-processing task with zero host management.

Step-by-Step Solution

1
Analyze the requirements for the front-end web service.
The web service requires full control over the underlying operating system and Docker daemon configuration to install third-party security agents.
This requirement rules out serverless container environments like AWS Fargate, where the host OS is managed by AWS, making Amazon EC2 the necessary choice.
2
Analyze the requirements for the image processing task.
The task is short-lived (1010 to 3030 seconds), event-driven (triggered by image uploads), and needs minimal operational overhead.
AWS Lambda is the most suitable service for this pattern because it runs code in response to events, scales automatically, and charges only for the compute time consumed, eliminating server management.

Key Concept

Selecting appropriate AWS compute services based on operational control, scaling needs, and workload characteristics.
Estimated Time:2m 0s
Rate this question