Exam: AWS Certified Cloud Practitioner 0 Likes
A company needs to install an application in a Docker container (CLF-C02)
A company needs to install an application in a Docker container.
Which AWS service eliminates the need to provision and manage the container hosts?
A) AWS Fargate
B) Amazon FSx for Windows File Server
C) Amazon Elastic Container Service (Amazon ECS)
D) Amazon EC2
Solution
Correct answer: A) AWS Fargate.
AWS Fargate is a compute engine for Amazon ECS and EKS that allows you to run containers without managing the underlying infrastructure. With Fargate, you only need to define your application containers, CPU and memory requirements, and networking configuration, and AWS takes care of the rest, including provisioning and managing the underlying compute resources.
Understand why alternative C is not correct:
Alternative C is Amazon Elastic Container Service (Amazon ECS), which is a container orchestration platform that allows you to run, stop, and manage Docker containers in a cluster. However, Amazon ECS alone does not eliminate the need to provision and manage container hosts.
When you use Amazon ECS, you still need to provision and manage the underlying infrastructure on which your containers will run. This means you need to provision and manage EC2 instances or clusters of EC2 instances to host your ECS containers. You need to ensure that these EC2 instances are correctly configured, updated, and sized to meet the needs of your container workload.
On the other hand, AWS Fargate (option A) is a more managed option. With Fargate, you don't have to worry about the underlying infrastructure. You simply define your container workload, including CPU and memory resources, and AWS Fargate takes care of running your containers on an AWS-managed infrastructure, without you needing to provision or manage container hosts.
In summary, while Amazon ECS (Option C) offers a container orchestration platform, it still requires management of the underlying infrastructure. AWS Fargate (Option A), on the other hand, eliminates this need by providing a fully managed container execution platform.
Category: Basic AWS services