Chapter 9. AWS Compute, Containers, and Serverless
Compute is the engine behind running applications, crunching data, and delivering services. On AWS, compute takes several forms. You’ve got virtual servers through Amazon Elastic Compute Cloud (EC2), container-based setups with Elastic Container Service (ECS) and Elastic Kubernetes Service (EKS), and lightweight, event-driven code with AWS Lambda. Each option strikes a different balance between control, scalability, and how much management you want to handle yourself.
When preparing for the AWS Certified Cloud Practitioner exam, understanding compute is critical. So this chapter walks you through the essentials—how to launch and secure EC2 instances, what containers bring to the table, and how serverless can take infrastructure off your plate entirely. You’ll also get familiar with features like Auto Scaling and Elastic Load Balancing (ELB), which help applications stay responsive and cost-effective, even under changing loads.
EC2
In Chapter 2, we saw how Amazon EC2 is one of the core building blocks in AWS’s IaaS offerings. At its simplest, EC2 lets you spin up VMs in the cloud. You can launch them, shut them down, configure them to your needs, and manage them remotely. It’s one of the most widely used services in AWS, and not surprisingly, it shows up frequently on the exam.
A big draw of EC2 is how quickly you can get started. Launching an instance usually takes just a few minutes once configured. But there are some important ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access