Question

Difficulty: MediumAWS Compute Services

A retail company is deploying a containerized inventory management application on AWS. The operations team needs full access to the underlying operating system of the container host instances to perform custom kernel configurations and security compliance checks, while utilizing a managed service to orchestrate and schedule the containers. Which AWS compute service or configuration best meets these requirements?

  1. A
    AWS Fargate
  2. B
    Amazon Elastic Compute Cloud (Amazon EC2) instances without container orchestration
  3. Amazon Elastic Container Service (Amazon ECS) with the Amazon EC2 launch typeAnswer
  4. D
    AWS Lambda

Answer

Amazon Elastic Container Service (Amazon ECS) with the Amazon EC2 launch type
The correct answer is Amazon Elastic Container Service (Amazon ECS) with the Amazon EC2 launch type. This configuration gives the operations team full administrative access to the underlying EC2 instances, allowing them to customize the operating system and kernel while still using the ECS control plane to manage, schedule, and scale the containers.

Step-by-Step Solution

1
Analyze the business requirements.
The company needs full access to the underlying operating system of the container hosts, and they also require a managed container orchestration and scheduling service.
This establishes the constraints: OS-level administrative control must be maintained, but container lifecycle management must be outsourced to an AWS orchestrator.
2
Compare the hosting models.
AWS Fargate is serverless and abstracts away the OS, preventing custom kernel configuration. Amazon EC2 instances alone provide OS access but lack container orchestration out of the box. Amazon ECS with the EC2 launch type provides a managed container orchestrator (ECS) where the container tasks run on customer-managed EC2 instances, meeting both requirements.
This identifies the correct service type that balances customer-managed host instances with AWS-managed container orchestration.

Key Concept

Understanding container deployment options on AWS, specifically the difference between Amazon ECS with EC2 launch type and AWS Fargate.
Estimated Time:1m 0s
Rate this question