AWS Fundamentals

How Amazon Web Services is organised — regions, availability zones and edge locations, global vs regional services, accounts and Organizations, the shared responsibility model, ARNs, the console, CLI and SDKs, the free tier, and a map of the core services.

Beginner 6 min readLesson 1 of 19 Interview Q&A

Amazon Web Services (AWS) is the largest public cloud: 200+ services you rent by the second, hour or request through an API. Everything you can click in the console is an API call underneath — which is why AWS can be scripted, automated and described as code. This track assumes the general ideas from Cloud fundamentals and goes deep on how AWS specifically works.

Global infrastructure

Region ap-south-1 (Mumbai)low-latency linksAZ ap-south-1a1+ data centresAZ ap-south-1b1+ data centresAZ ap-south-1c1+ data centresEdge locationsCloudFront · Route 53
ConceptWhat it isWhy it matters
RegionA geographic area (us-east-1, eu-west-1, ap-south-1) — fully independentLatency to users, data residency law, price and which services are available
Availability Zone (AZ)One or more isolated data centres in a region with separate power, cooling and networking, a few kilometres to tens of kilometres apartSurvive a data-centre failure by running in 2–3 AZs
Edge locationHundreds of points of presence worldwideCloudFront caching, Route 53 DNS, Global Accelerator
Local Zones / Wavelength / OutpostsAWS infrastructure in metro areas, telco networks or your own data centreSingle-digit-millisecond latency or on-premises requirements

AZ names like ap-south-1a are shuffled per account; use AZ IDs (aps1-az1) when coordinating between accounts.

Regional vs global services

Most services are regional: an EC2 instance, S3 bucket or DynamoDB table lives in one region, and the console only shows the region you selected (the classic "where did my instances go?" moment). A few are global: IAM, Route 53, CloudFront, Organizations. S3 bucket names are globally unique even though buckets are regional.

us-east-1 is special: it's the oldest and largest region, hosts the control plane for some global services (ACM certificates for CloudFront must be created there), and gets new features first — but it's also historically had the most high-profile outages. Don't default to it for production without thinking.

Accounts and Organizations

An AWS account is the fundamental boundary for resources, security and billing. Real companies use many accounts, not one:

Management accountbilling, Organizations, nothing else runs hereSecurity / log-archive accountscentral CloudTrail logs, GuardDuty, auditShared servicesnetworking (Transit Gateway), CI/CD, container registriesWorkload accountsdev · staging · prod per team or product
  • AWS Organizations groups accounts into organisational units (OUs), consolidates billing and applies Service Control Policies (SCPs) — guardrails like "nobody may leave the approved regions" or "nobody may disable CloudTrail".
  • Control Tower sets up this landing zone with sensible defaults.
  • IAM Identity Center (formerly AWS SSO) gives people one login across all accounts.

Separate accounts give a hard blast radius: a leaked dev credential can't touch prod, and per-account bills show who spends what.

The shared responsibility model

AWS is responsible for security OF the cloud
  • Physical data centres, hardware, power
  • The hypervisor and host OS
  • Global network infrastructure
  • Managed-service internals (e.g. RDS patching the database engine)
You are responsible for security IN the cloud
  • IAM users, roles and policies
  • Data and its encryption
  • Security groups, network ACLs, routing
  • Guest OS patches on EC2, your application code
  • Bucket policies and public-access settings

The line moves with the service: on EC2 you patch the OS; on Lambda AWS does; on S3 you only control data and access. The overwhelming majority of cloud breaches are on your side — public buckets, leaked keys, over-permissive IAM.

Identifying resources: ARNs

Every resource has an Amazon Resource Name:

arn:partition:service:region:account-id:resource
arn:aws:s3:::invoices-prod/2026/12/inv-1043.pdf        # S3: no region or account
arn:aws:lambda:ap-south-1:123456789012:function:resize-image
arn:aws:iam::123456789012:role/OrderServiceRole        # IAM is global: no region

ARNs appear everywhere in IAM policies, so learn to read them.

Ways to use AWS

InterfaceUse
Management consoleExploring, learning, one-off inspection — avoid "click-ops" for production changes
AWS CLIScripts and quick queries
SDKs (boto3, AWS SDK for JavaScript v3, Java v2…)Application code calling AWS
Infrastructure as codeCloudFormation, CDK, Terraform — how production should be built (CloudFormation and CDK)
CloudShellA browser terminal with the CLI preinstalled and your credentials
Shell
aws configure sso                       # log in via IAM Identity Center (preferred over access keys)
aws sts get-caller-identity             # who am I?
aws s3 ls                               # list buckets
aws ec2 describe-instances --region ap-south-1 \
  --query 'Reservations[].Instances[].[InstanceId,State.Name,InstanceType]' --output table
import boto3

s3 = boto3.client("s3", region_name="ap-south-1")
s3.put_object(Bucket="invoices-prod", Key="hello.txt", Body=b"hi")
for obj in s3.list_objects_v2(Bucket="invoices-prod").get("Contents", []):
    print(obj["Key"], obj["Size"])

SDKs find credentials through a credential provider chain: environment variables, the shared config/SSO cache, then the instance/task/function role when running on AWS. In code running on AWS you should never hard-code keys — the role provides short-lived credentials automatically (IAM).

A map of the core services

NeedServiceLesson
Virtual machinesEC2EC2
Load balancing, scalingELB, Auto ScalingLoad balancing and auto scaling
FunctionsLambdaLambda
ContainersECS, EKS, Fargate, ECRContainers on AWS
Object storageS3S3
Disks and shared filesEBS, EFSEBS and EFS
Relational databasesRDS, AuroraRDS and Aurora
Key-value / documentDynamoDBDynamoDB
NetworkingVPCVPC
DNS and CDNRoute 53, CloudFrontRoute 53 and CloudFront
Queues, pub/sub, eventsSQS, SNS, EventBridgeSQS, SNS and EventBridge
APIs and workflowsAPI Gateway, Step FunctionsAPI Gateway and Step Functions
MonitoringCloudWatch, X-Ray, CloudTrailCloudWatch and observability
SecurityKMS, Secrets Manager, WAF, GuardDutySecurity on AWS

Getting started safely

  1. Create the account, then enable MFA on the root user and lock its credentials away — use root only for the handful of tasks that require it.
  2. Set up IAM Identity Center and log in as an ordinary user with admin permissions.
  3. Create a budget with email alerts (AWS Budgets) before launching anything (Cost optimisation).
  4. Turn on CloudTrail (an organisation trail if you have Organizations) so every API call is logged.
  5. Use the free tier for learning, and delete what you create — NAT gateways, idle load balancers and forgotten instances are the classic surprise bills.
Interview questions
QWhat's the difference between a region and an availability zone?easy

A region is an independent geographic area with its own set of services and endpoints; an availability zone is one of several isolated data-centre groups inside a region, each with independent power and networking but connected to the others by low-latency links. You deploy across multiple AZs for high availability against a data-centre failure, and across multiple regions for disaster recovery, data residency or latency to global users.

QExplain the shared responsibility model with an example.easy

AWS secures the infrastructure — buildings, hardware, hypervisors, the network and the internals of managed services. The customer secures what they put in it: identities and permissions, data and encryption, network rules and, for IaaS, the operating system. For EC2 you patch the guest OS; for RDS AWS patches the database engine but you still control who can connect and whether storage is encrypted; for S3 you're responsible for bucket policies — a public bucket is the customer's mistake, not AWS's.

QWhy do organisations use multiple AWS accounts?medium

An account is the strongest isolation boundary AWS offers. Separate accounts limit blast radius (a compromised dev credential can't reach prod), separate quotas so one team can't exhaust another's limits, make cost attribution trivial, and let you apply different guardrails through SCPs. Organizations, Control Tower and IAM Identity Center make managing dozens or hundreds of accounts practical.

Key takeaways
  • AWS is regions made of isolated availability zones, plus global edge locations; most services are regional, a few (IAM, Route 53, CloudFront) are global.
  • Run production across at least two AZs; choose regions for latency, data residency, price and service availability.
  • Use multiple accounts under AWS Organizations with SCP guardrails and IAM Identity Center for people.
  • Shared responsibility: AWS secures the cloud, you secure what's in it — identities, data, network rules and (on EC2) the OS.
  • Everything is an API identified by ARNs; use the CLI, SDKs and infrastructure as code rather than console clicks.
  • Secure the root user with MFA, set budgets and enable CloudTrail on day one.