AWS Lambda, Amazon ECS, Amazon EKS, AWS Fargate, and AWS Elastic Beanstalk
AWS offers four categories of compute. Each trades control for convenience. The exam tests whether you can match the use case to the right category.
| Category | Services | You Manage | AWS Manages |
|---|---|---|---|
| Virtual Machines (IaaS) | Amazon EC2 | OS, patching, scaling, availability | Hypervisor, host hardware, network |
| Containers | ECS, EKS, Fargate, ECR | Container images, task definitions | Orchestration, cluster scaling, control plane |
| Serverless | AWS Lambda | Function code and IAM permissions | Servers, scaling, patching, availability |
| Platform (PaaS) | AWS Elastic Beanstalk | Application code | Infrastructure, deployment, load balancing, scaling |
Containers are a method of operating system virtualization. They package an application's code, configurations, and dependencies into a single object. Unlike virtual machines, containers do not contain a full guest operating system. They share the host OS kernel and run as resource-isolated processes.
Docker is the software platform that packages software into containers. You create a container from an image, which is a template that holds everything the software needs to run: libraries, system tools, code, and runtime.
Amazon ECS is a highly scalable container management service that supports Docker containers. It orchestrates the running of containers on a cluster and maintains the fleet of nodes that run them.
To run an application on ECS, you create a task definition. This text file describes one or more containers (up to ten) that form your application. It specifies which container image to use, which ports to open, and what data volumes to mount. A task is the instantiation of a task definition within a cluster.
Amazon EKS is a managed Kubernetes service. Kubernetes is open source software for container orchestration that deploys and manages containerized applications at scale.
EKS makes it easy to run Kubernetes on AWS without installing or maintaining your own Kubernetes control plane. It is certified Kubernetes conformant, so applications that run on upstream Kubernetes are compatible with EKS. EKS automatically manages the availability and scalability of cluster nodes, detects unhealthy control plane nodes, and replaces them.
Amazon ECR is a fully managed Docker container registry. It makes it easy to store, manage, and deploy Docker container images. ECR is integrated with both ECS and EKS. Images are encrypted at rest.
AWS Lambda is an event-driven, serverless compute service. You upload your code as a Lambda function and set it to run on a schedule or in response to an event. Your code runs only when triggered. You pay only for the compute time you consume.
Lambda functions are triggered by event sources. Common event sources include:
Lambda automatically monitors functions through Amazon CloudWatch and stores logs in CloudWatch Logs.
| Limit | Value |
|---|---|
| Maximum execution time (timeout) | 15 minutes |
| Maximum memory allocation | 10,240 MB |
| Concurrent executions per Region (soft limit) | 1,000 |
| Deployment package size (unzipped) | 250 MB |
AWS Elastic Beanstalk is a platform as a service (PaaS) that facilitates the quick deployment, scaling, and management of web applications. You upload your code, and Elastic Beanstalk automatically handles deployment, capacity provisioning, load balancing, automatic scaling, and health monitoring.
| Use Case | Service | Why |
|---|---|---|
| Run code in response to events, pay per execution | AWS Lambda | No servers to manage; millisecond billing |
| Run Docker containers with AWS managing the cluster | Amazon ECS with Fargate | No EC2 instances to provision or scale |
| Run Docker containers with full control over the hosts | Amazon ECS with EC2 | Granular control over instance type and networking |
| Use Kubernetes on AWS without managing the control plane | Amazon EKS | Managed Kubernetes, certified conformant |
| Deploy a web app quickly without managing infrastructure | AWS Elastic Beanstalk | PaaS with auto-deployment, scaling, and monitoring |
| Store and manage Docker images | Amazon ECR | Fully managed registry integrated with ECS and EKS |
Select one answer per question. You will receive immediate feedback.