Volume 1 · Chapter 1 — AWS Foundations and Cloud Computing
How Cloud Computing Really Works
1.1 Introduction
Cloud computing is the foundation every other topic in this series builds on, so it is worth understanding precisely rather than as a slogan. At its core, cloud computing means renting computing resources - servers, storage, databases, networking, and higher-level managed services - on demand from a provider like AWS, over the internet, and paying only for what you use, instead of buying, housing, and maintaining physical hardware yourself. The shift sounds simple, but it changes the economics and the engineering: capacity becomes elastic rather than fixed, infrastructure becomes software you provision in seconds through an API rather than hardware you procure over weeks, and a large amount of undifferentiated operational work - racking servers, replacing failed disks, patching hypervisors - moves to the provider. For a bank, that trade is compelling because it means faster delivery and strong, auditable controls without running data centres as a core competency.
1.2 On-Premises vs Cloud: What Actually Changes
The clearest way to understand cloud computing is to compare who is responsible for what. In a traditional on-premises data centre, your organization owns and operates everything: the building, power, cooling, network cables, physical servers, the hypervisor, the operating system, and the application. You pay for peak capacity up front and it sits idle most of the time. In the cloud, the provider operates the physical and virtualization layers, and you consume virtual resources on demand. The deeper you go up the service stack - from renting virtual machines, to managed databases, to fully serverless functions - the more operational responsibility shifts to the provider, and the more you focus purely on your application and data.
flowchart LR
subgraph OnPrem[On-Premises: you run everything]
A1[Application] --> A2[OS] --> A3[Virtualization] --> A4[Servers] --> A5[Networking] --> A6[Data Centre]
end
subgraph Cloud[AWS: provider runs the lower layers]
B1[Your App & Data] --> B2[Managed Services]
B2 --> B3[(AWS operates HW, network, virtualization)]
end
OnPrem -. move undifferentiated work to provider .-> Cloud 1.3 The Service Models: IaaS, PaaS, SaaS
Cloud services are commonly grouped into three models that describe how much the provider manages. Infrastructure as a Service (IaaS) gives you raw virtual infrastructure - EC2 virtual machines, EBS disks, VPC networking - and you manage the operating system and everything above it; it offers maximum control. Platform as a Service (PaaS) manages the runtime for you - services like AWS Elastic Beanstalk, RDS managed databases, or Lambda functions - so you deploy code or data and the platform handles the servers, patching, and scaling. Software as a Service (SaaS) is a finished application you simply use, like a hosted email or CRM. The senior instinct is to choose the highest level of managed service that still meets your control and compliance requirements, because every layer you hand to AWS is a layer you no longer have to operate, secure, and patch yourself.
1.4 Virtualization and EC2
The technology that makes IaaS possible is virtualization. A hypervisor divides one powerful physical server into many isolated virtual machines, each with its own operating system, CPU allocation, memory, and virtual disks, unaware of the others sharing the hardware. Amazon EC2 (Elastic Compute Cloud) is AWS’s core IaaS offering: it lets you launch virtual servers - instances - on demand, choosing the CPU and memory (the instance type), the operating system (via an AMI), the network, and the storage. Because an instance is software-defined, you can create, resize, replicate, or destroy it in seconds through the console, CLI, or an API - which is precisely what enables elasticity and infrastructure as code.
# Launch a virtual server on demand - infrastructure provisioned in seconds, not weeks.
aws ec2 run-instances \
--image-id ami-0abcd1234efgh5678 \ # the OS image (AMI)
--instance-type t3.medium \ # CPU/memory sizing
--subnet-id subnet-0a1b2c3d \ # place it inside a private subnet (Volume 2)
--iam-instance-profile Name=app-role \ # grant permissions via a role, not keys (Volume 3)
--tag-specifications 'ResourceType=instance,Tags=[{Key=app,Value=banking-core}]'
1.5 The Five Characteristics of Cloud and Why Banks Adopt It
The formal definition of cloud computing rests on five characteristics: on-demand self-service (provision resources yourself without human intervention), broad network access, resource pooling (multi-tenant shared hardware), rapid elasticity (scale out and back in quickly), and measured service (pay-as-you-go metering). For a bank these translate into concrete benefits: elastic scaling to absorb month-end or payday transaction spikes without permanently over-provisioning; high availability and far better disaster recovery than a single data centre; faster deployment of new products; strong, auditable security controls; and a shift from large capital expenditure to operational spend that tracks real usage. The trade-off is that you must design for the cloud’s model - failure is normal, the network is shared, and security is a shared responsibility - which is the subject of the rest of this series.
1.6 Banking Production Scenario
A bank runs its core transaction-processing application on EC2 instances inside a private network, with no public IP address, so it is unreachable directly from the internet. Customer requests arrive through a mobile app, hit a load balancer in a public-facing tier, and are forwarded over private networking to the application, which reads and writes a managed PostgreSQL database. When payday drives a surge in balance checks and transfers, an Auto Scaling group adds EC2 instances automatically and removes them afterwards, so the bank pays for the extra capacity only during the spike. None of this requires buying hardware, and every provisioning action is logged for audit - the everyday reality that makes the cloud model attractive to regulated institutions.
1.7 Troubleshooting: Common Early Misconceptions
Two misconceptions cause most early production pain. The first is treating the cloud like a rented data centre - lifting a fragile, manually-configured server into EC2 and assuming it is now resilient. It is not: a single instance can fail at any time, and resilience comes from designing across multiple Availability Zones with automated replacement, not from the cloud itself. The second is assuming the cloud is automatically cheaper. It is cheaper only when you exploit elasticity - shutting down or scaling in idle capacity - because an always-on, over-sized instance running 24/7 can cost more than on-premises. The fix for both is to embrace the cloud’s model deliberately: design for failure, automate provisioning, and let capacity follow demand.
1.8 The Six Advantages of Cloud (Exam Framing)
The certifications frame the value of cloud as six advantages, worth knowing in these exact terms because questions echo them.Trade capital expense for variable expense- pay for what you consume instead of buying data centres up front.Benefit from massive economies of scale- AWS’s aggregate scale produces lower prices than you could achieve alone.Stop guessing capacity- scale elastically with demand rather than provisioning for a speculative peak.Increase speed and agility- new resources are minutes away, so experimentation is cheap.Stop spending money running and maintaining data centres- focus on your applications, not racking servers.Go global in minutes- deploy to Regions worldwide easily. These map directly onto the economics and elasticity themes and are a reliable source of foundational exam questions.
1.9 Cloud Deployment Models
Another tested distinction is the deployment model. Acloud(or “cloud-native”) deployment runs entirely in the cloud, with no on-premises component. Ahybriddeployment connects cloud resources to on-premises infrastructure - common for enterprises mid-migration or with workloads that must stay on-premises for latency, residency, or legacy reasons, using services like Direct Connect, VPN, Storage Gateway, and Outposts to bridge the two. Anon-premises(or “private cloud”) deployment uses virtualization and resource management in your own data centre. Most banks are hybrid for years during migration, and AWS provides a spectrum of hybrid tools (covered in the migration volume) precisely to support that transition. Recognizing whether a scenario is cloud, hybrid, or on-premises frames which services apply.
What is cloud computing, and why do banks adopt AWS despite running highly sensitive workloads?
Cloud computing is the on-demand delivery of computing resources - servers, storage, databases, networking, and higher-level managed services - over the internet on a pay-as-you-go basis, instead of buying and operating physical hardware yourself. Rather than procuring servers over weeks and paying for peak capacity that sits idle, you provision virtual resources in seconds through an API and pay only for what you use, while the provider operates the physical data centres, networking, and virtualization underneath. It rests on five characteristics: on-demand self-service, broad network access, resource pooling across multi-tenant hardware, rapid elasticity, and measured pay-per-use billing. Banks adopt it, even for sensitive workloads, because the benefits are substantial and the controls are strong. Elasticity lets them absorb transaction spikes - payday, month-end, market events - by scaling out automatically and scaling back in afterwards, so they neither fail under load nor pay year-round for peak capacity. High availability and disaster recovery are dramatically better than a single data centre because AWS offers multiple isolated Availability Zones and Regions to spread workloads across. Deployment is faster, so new products reach customers sooner. And crucially, security and compliance are not sacrificed: AWS provides fine-grained identity controls, encryption everywhere, private networking so sensitive systems have no public exposure, and comprehensive audit logging of every action - often making a well-architected cloud environment more controlled and auditable than a legacy data centre. The reason banks can use it confidently is the shared responsibility model: AWS secures the underlying infrastructure, and the bank secures what it puts on top - identity, network design, encryption, and application security. So the adoption is not despite sensitivity but because the cloud delivers elasticity, resilience, and speed while still allowing the strict, auditable controls that regulated finance demands. The senior framing is that the cloud changes the economics and operating model - capacity becomes elastic software you provision on demand - and banks embrace it deliberately, designing for the cloud’s assumptions (failure is normal, security is shared, the network is multi-tenant) rather than lifting a fragile data centre into it unchanged.
Explain IaaS, PaaS, and SaaS, and how you decide which to use.
IaaS, PaaS, and SaaS describe how much of the stack the provider manages versus you. Infrastructure as a Service gives you raw virtual infrastructure - virtual machines (EC2), block storage (EBS), and networking (VPC) - and you manage the operating system, runtime, and application on top; it offers the most control and is the right choice when you need full control of the OS or are migrating a system that expects one. Platform as a Service manages the runtime and infrastructure for you - services like RDS for managed databases, Elastic Beanstalk, or Lambda for functions - so you provide code or data and the platform handles servers, patching, scaling, and availability; you trade some control for far less operational work. Software as a Service is a complete application you simply consume, such as hosted email or a CRM, where you manage nothing but your usage and data within it. The way I decide is to choose the highest level of managed service that still meets my control, compliance, and technical requirements, because every layer I hand to AWS is a layer I no longer have to operate, secure, patch, and scale. Concretely: if a managed database (PaaS, e.g. RDS or Aurora) meets my needs, I use it rather than running a database on EC2 myself, because AWS then handles backups, patching, failover, and replication far more reliably than I would. I drop down to IaaS only when I genuinely need OS-level control, have a workload that can’t run on a managed service, or face a licensing or compliance constraint. I go all the way to SaaS for commodity capabilities that aren’t my differentiator. The trade-off is control versus operational burden: IaaS is maximum control and maximum work; SaaS is minimum work and minimum control; PaaS sits in between and is often the sweet spot for custom applications. So the senior answer isn’t “always serverless” or “always VMs” - it’s matching each workload to the highest managed tier that fits, defaulting to managed services to eliminate undifferentiated heavy lifting, and reserving lower tiers for the cases that truly require them.
What is virtualization, and how does it relate to EC2?
Virtualization is the technology that lets one powerful physical server be divided into many isolated virtual machines, each behaving like an independent computer with its own operating system, CPU allocation, memory, and virtual disks, and each unaware of the others sharing the same physical hardware. The component that makes this possible is the hypervisor, which sits between the physical hardware and the virtual machines, allocating real CPU, memory, and I/O to each VM while keeping them strongly isolated from one another. This is what enables resource pooling and multi-tenancy - the provider can safely run many customers’ workloads on shared hardware, driving the utilization and economics that make cloud pricing work. Amazon EC2 is the direct application of this: an EC2 instance is a virtual machine created through AWS’s virtualization layer. When you launch an instance you choose its size (the instance type, which maps to CPU and memory), its operating system (via an Amazon Machine Image, or AMI), its networking, and its storage, and AWS provisions a VM matching that specification on its fleet of physical hosts. Because the instance is software-defined rather than physical, you can create, start, stop, resize, replicate, or terminate it in seconds through the console, CLI, or API - which is exactly what makes the cloud elastic and enables infrastructure as code, auto scaling, and rapid disaster recovery. The important mental model is that EC2 gives you the illusion and isolation of a dedicated server while actually running as one tenant on shared, pooled hardware managed by AWS. Understanding this also clarifies the shared responsibility boundary: AWS secures and operates the hypervisor and physical hosts, while you are responsible for the guest operating system, patching, and everything you run inside the instance. So virtualization is the underlying mechanism, and EC2 is the on-demand, API-driven virtual machine service built on top of it.
Is moving to the cloud automatically cheaper and more reliable? Explain.
No - and being able to say why is what separates someone who understands the cloud from someone repeating marketing. The cloud is cheaper only when you actively exploit elasticity, and it is more reliable only when you design for its failure model; simply moving a workload into it guarantees neither. On cost: cloud pricing is pay-as-you-go, which is a huge advantage if capacity follows demand - you scale out for a spike and scale back in afterwards, paying for peak only while it lasts. But if you take a fragile, over-sized, always-on server and run it 24/7 on an equivalently large EC2 instance, it can easily cost more than on-premises, because you are paying a premium for flexibility you aren’t using. Realizing savings requires right-sizing, shutting down non-production environments when idle, using auto scaling, and choosing the appropriate managed services and pricing models - it is an engineering discipline, not an automatic outcome. On reliability: a single EC2 instance is not inherently more reliable than a single physical server - it can fail at any moment, and AWS explicitly designs for the assumption that any individual component will fail. Reliability comes from architecture: running across multiple Availability Zones so the loss of one doesn’t take you down, using Auto Scaling to replace failed instances automatically, putting data in managed services that replicate and back up automatically, and load-balancing across healthy targets. If instead you lift a single-server, manually-configured application into one instance and assume the cloud makes it resilient, the first hardware failure will prove otherwise. So the honest answer is that the cloud provides the ingredients for both lower cost and higher reliability - elasticity, pay-per-use, multiple AZs, managed services, automation - but you only get those outcomes by designing for them. The two classic failures are treating the cloud as a rented data centre (lifting fragile servers in unchanged) and assuming it is automatically cheap (running idle, over-provisioned capacity). The senior approach is to embrace the model deliberately: design for failure, automate provisioning, right-size, and let capacity follow demand.
Chapter Revision Notes
- Cloud computing = on-demand, pay-per-use rental of compute, storage, networking, and managed services instead of owning hardware.
- Five characteristics: on-demand self-service, broad network access, resource pooling, rapid elasticity, measured (metered) service.
- IaaS/PaaS/SaaS = increasing provider management; prefer the highest managed tier that meets your control/compliance needs.
- Virtualization + a hypervisor split one physical host into many isolated VMs; EC2 is on-demand, API-driven VMs built on it.
- The cloud is cheaper only if you exploit elasticity, and reliable only if you design across multiple AZs with automation.