Skip to content

Lesson 1 of 30Core services

Cloud Basics

Explain what the cloud is, how AWS is laid out around the world, and set up an account safely.

14 min read0/5 questions

Almost every backend job posting lists AWS, and almost every team that runs on it learned the same lessons the hard way: a leaked key, a surprise bill, an outage in one data center. This lesson gives you the map (what the cloud is, where AWS physically lives, who is responsible for what) and the five-minute setup that prevents the classic disasters.

What "the cloud" actually is

The cloud is someone else's computers, rented by the second through an API. Instead of buying a server, waiting weeks for it to arrive and racking it in a room, you call an API (or click a button) and a virtual server exists 40 seconds later. When you are done, you delete it and stop paying.

Three things make that different from renting a server the old way:

  • On demand. No contracts, no tickets. One API call creates a database.
  • Elastic. Scale from 1 server to 100 for a sales spike, then back down.
  • Pay as you go. You pay per second, per request or per gigabyte, not per year.

AWS (Amazon Web Services) is the largest cloud provider, with over 200 services. You do not need most of them. A typical web app uses about ten, and this track covers those ten.

IaaS, PaaS, SaaS and serverless

Cloud services differ in how much AWS manages for you. The more it manages, the less you can tweak and the less you have to babysit.

ModelYou rentYou still manageAWS example
IaaS (infrastructure)Virtual machines, disks, networksOS patches, runtime, app, scalingEC2
PaaS (platform)A place to run your appYour code and configElastic Beanstalk, App Runner
ServerlessFunctions and managed services billed per useYour codeLambda, DynamoDB, S3
SaaS (software)A finished productYour data and usersAmazon WorkMail, or Gmail elsewhere

Serverless does not mean there are no servers. It means you never see them: no instances to patch, it scales to zero, and you pay per request.

Quick check
Your team wants to run a Python API without patching operating systems, but still needs a long-running process with a container. Which model fits best?
Need a nudge? A hint rules out a wrong answer.

Regions, availability zones and edge locations

AWS is physically split up so that one fire, flood or power cut cannot take everything down.

  • A Region is a geographic area, like us-east-1 (N. Virginia) or eu-west-2 (London). Regions are independent. Data does not leave a Region unless you move it.
  • An Availability Zone (AZ) is one or more data centers inside a Region with separate power, cooling and networking. Most Regions have 3 or more, named like us-east-1a, us-east-1b. They are a few miles apart and linked by fast private fiber (single-digit millisecond latency).
  • An edge location is a smaller site in a big city, used by CloudFront (the CDN) and Route 53 (DNS) to serve users close to where they are. There are hundreds of them, far more than Regions.
How AWS is laid out
Region us-east-1AZ us-east-1aAZ us-east-1bAZ us-east-1cEdgeUser: in ChicagoUserin ChicagoLoad balancer: spans AZsLoad balancerspans AZsApp server: 1aApp server1aApp server: 1bApp server1bApp server: 1cApp server1cDB primary: 1aDB primary1aDB standby: 1bDB standby1bCloudFront: edge cacheCloudFrontedge cacheRoute 53: edge DNSRoute 53edge DNSHTTPSreplicateorigin

A user's request reaches a load balancer that lives in the Region and spans all three AZs.

1/4

Two practical rules fall out of this picture. Pick the Region closest to your users (latency) that offers the services you need (not every service exists in every Region) and keeps data where the law says it must stay. And for anything important, spread across at least two AZs.

Quick check
Your app runs on one EC2 instance in eu-west-2a. An AZ outage hits eu-west-2a. What happens?
Need a nudge? A hint rules out a wrong answer.

The shared responsibility model

AWS secures the cloud itself. You secure what you put in it. Almost every breach you read about is on the customer's side of the line: a public S3 bucket, a leaked access key, an open database port.

Who secures what (EC2 example)
  1. Your dataEncryption, backups, who can read it
  2. Identity and accessIAM users, roles, MFA, policies
  3. Application and runtimeYour code, dependencies, secrets
  4. Guest OS and firewall rulesPatching, security groups
  5. Virtualization layerHypervisor, isolation between customers
  6. Hardware and networkServers, disks, cabling
  7. FacilitiesData centers, guards, power

AWS's side: security *of* the cloud. Physical buildings, hardware, and the hypervisor that keeps your VM isolated from other customers.

1/3
Quick check
Which of these is AWS's responsibility, not yours?
Need a nudge? A hint rules out a wrong answer.

Four ways to talk to AWS

Every action in AWS is an API call. The console, the CLI and the SDKs are just different ways to make those calls.

ToolWhat it isGood for
ConsoleThe website at console.aws.amazon.comExploring, one-off checks, billing
AWS CLIThe aws command in your terminalScripts, quick inspection
SDKsLibraries like boto3 (Python) and @aws-sdk/client-s3 (JS)Your app's code calling AWS
Infrastructure as code (IaC)AWS CDK, CloudFormation, TerraformCreating real environments repeatably

The same "list my buckets" call, three ways:

terminal
aws configure sso          # sign in with IAM Identity Center (next lesson)aws s3 ls                  # list bucketsaws sts get-caller-identity  # "who am I right now?"
list_buckets.py
import boto3
 
s3 = boto3.client("s3")
for bucket in s3.list_buckets()["Buckets"]:
    print(bucket["Name"])

Clicking in the console is fine for learning, but production is built with IaC. Code can be reviewed, versioned in git, and recreated identically in a new account. "I clicked something in March" cannot. You will see CDK and Terraform throughout this track.

Match the pairs0/4 matched

Match each task to the best tool.

Choose an item, then its match on the other side.

Setting up an account safely

When you create an AWS account, you get a root user: the email and password you signed up with. Root can do everything, including closing the account and changing billing. It cannot be restricted by policies. Treat it like the master key to your house: lock it in a drawer.

Do these on day one, in this order:

  1. Turn on MFA for the root user (a passkey or an authenticator app).
  2. Do not create access keys for root. Ever.
  3. Create an everyday identity: set up IAM Identity Center and sign in through it (covered in the next lesson). Use that for daily work.
  4. Create a budget in AWS Budgets, for example $10 a month, with email alerts at 50%, 80% and 100% (and forecasted 100%).
  5. Turn on billing alerts in the billing preferences so CloudWatch can alarm on estimated charges (Monitoring and Logs builds one).
create a $10 monthly budget with an 80% alert
aws budgets create-budget \  --account-id 123456789012 \  --budget '{"BudgetName":"monthly-10","BudgetLimit":{"Amount":"10","Unit":"USD"},"TimeUnit":"MONTHLY","BudgetType":"COST"}' \  --notifications-with-subscribers '[{"Notification":{"NotificationType":"ACTUAL","ComparisonOperator":"GREATER_THAN","Threshold":80},"Subscribers":[{"SubscriptionType":"EMAIL","Address":"you@example.com"}]}]'

A budget does not stop spending. It tells you. A forgotten NAT gateway or a GPU instance will keep billing until you delete it, so look at the alert when it arrives.

Put it in order4 steps

Put the safe account setup steps in a sensible order.

  1. Tap the steps below in the right order.
Need a nudge? A hint shows where it starts.

How this course is laid out

  • Core services: IAM, EC2, S3, VPCs and databases, the building blocks almost every system uses.
  • Identity and security: policies in depth, multiple accounts, encryption keys, secrets and incident response.
  • Modern AWS: Lambda, load balancers, containers, CloudFront, queues, monitoring, the SDK and deeper networking and data modeling.
  • Infrastructure as code: Terraform, CDK and keyless CI/CD, so everything you built by hand becomes reviewed code.
  • Putting it together: cost, certifications, and one full-stack app deployed end to end.

By the end you can design, secure, deploy and pay for a production web app on AWS and defend each choice. The course closes with a wrap-up that ties it all together.

Key terms
Region
A geographic area like us-east-1 with its own independent set of AZs and services.
Availability Zone
One or more isolated data centers inside a Region. Spread across 2+ for high availability.
edge location
A small site close to users, used by CloudFront and Route 53. Far more of them than Regions.
shared responsibility model
AWS secures the cloud (hardware, facilities, hypervisor); you secure what you put in it (data, IAM, config).
root user
The account's all-powerful sign-up identity. Protect with MFA, never create access keys, do not use day to day.
infrastructure as code
Defining cloud resources in reviewed, versioned code (CDK, CloudFormation, Terraform) instead of clicking.