Which AWS service allows you to run Docker apps across a cluster of EC2?

Sharpen your skills for the AWS Certified Solutions Architect Professional Exam. Dive into flashcards, multiple choice questions, each with detailed explanations and hints. Perfect your knowledge and get ready to ace the AWS exam!

Multiple Choice

Which AWS service allows you to run Docker apps across a cluster of EC2?

Explanation:
Running Docker containers on a cluster of EC2 instances is what Amazon Elastic Container Service provides. ECS creates and manages a cluster of EC2 instances and lets you deploy Docker images as tasks. You define a task definition that specifies the container image, CPU and memory requirements, networking, and other runtime settings. ECS then schedules those tasks across the EC2 cluster, handles placement and health checks, restarts, and scaling, and can integrate with load balancing for distributing traffic. If you want a serverless approach where you don’t manage the EC2 instances, you’d look at Fargate, but the scenario described—running Docker apps across a cluster of EC2—points to ECS as the relevant service. The other options involve Kubernetes on AWS (EKS), on-prem extension (Outposts), or serverless container runtimes, which don’t fit the “cluster of EC2” pattern as directly.

Running Docker containers on a cluster of EC2 instances is what Amazon Elastic Container Service provides. ECS creates and manages a cluster of EC2 instances and lets you deploy Docker images as tasks. You define a task definition that specifies the container image, CPU and memory requirements, networking, and other runtime settings. ECS then schedules those tasks across the EC2 cluster, handles placement and health checks, restarts, and scaling, and can integrate with load balancing for distributing traffic. If you want a serverless approach where you don’t manage the EC2 instances, you’d look at Fargate, but the scenario described—running Docker apps across a cluster of EC2—points to ECS as the relevant service. The other options involve Kubernetes on AWS (EKS), on-prem extension (Outposts), or serverless container runtimes, which don’t fit the “cluster of EC2” pattern as directly.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy