Question

Difficulty: MediumAWS Compute Services

A retail company is migrating its microservices-based application to AWS. Each microservice is packaged as a Docker container. The company wants to run these containers without provisioning, configuring, or scaling the underlying virtual servers, and wishes to pay only for the vCPU and memory resources requested by the running containers. Which AWS compute option or launch type best meets these requirements?

  1. AWS FargateAnswer
  2. B
    Amazon EC2
  3. C
    Amazon Lightsail
  4. D
    AWS Lambda

Answer

AWS Fargate
The correct option is the serverless container compute engine that enables running containers without managing underlying EC2 instances. It abstracts the server layer and bills dynamically based on the container configuration.

Step-by-Step Solution

1
Identify the key constraints in the scenario: running Docker-packaged microservices, eliminating the need to manage virtual servers (serverless), and paying only for the allocated CPU/memory resources.
The workload requires a serverless container environment.
This rules out traditional instance-based compute models like EC2 and Lightsail, which require virtual machine management.
2
Evaluate the remaining serverless options against the container orchestration requirement.
AWS Fargate is identified as the correct service because it runs containers serverlessly, whereas AWS Lambda is meant for event-driven functions.
AWS Fargate removes the operational overhead of scaling and provisioning instances while natively supporting containerized applications.

Key Concept

Serverless container compute on AWS
Rate this question