What is Cloud Computing?

Renting computing resources over the internet, on demand, and paying only for what you use.

What is it?

Cloud computing means using someone else's data centers (servers, storage, networking, databases) over the internet instead of buying your own hardware. You ask for what you need, get it in minutes, and pay for what you use.

Most of the web follows the client-server model: a client (your browser or phone app) sends a request and a server sends back a response. Cloud providers like AWS run huge numbers of servers and rent you slices of them.

Three ideas define the cloud:

  • On-demand self-service: you create resources yourself in a console or API. No purchase order, no waiting for delivery.
  • Pay-as-you-go: no big upfront purchase. You pay only while you use something.
  • Elasticity: you grow or shrink capacity as demand changes.

Deployment models say where the infrastructure lives:

  • Cloud: everything runs on a cloud provider, either built there from scratch or migrated.
  • On-premises: everything runs in your own data center. It is called a private cloud when it offers self-service on your own hardware.
  • Hybrid: a mix. Some workloads stay in your data center (for latency, regulation, or because they are hard to move) and others run in the cloud, joined by a network link.

AWS commonly lists six advantages of cloud computing:

  • Trade upfront (capital) expense for variable expense.
  • Benefit from massive economies of scale.
  • Stop guessing capacity.
  • Increase speed and agility.
  • Stop spending money running and maintaining data centers.
  • Go global in minutes.

Cost and licensing ideas that show up on the exam

  • Fixed vs variable costs: fixed costs (buying servers, leasing a building) are paid whether you use them or not. Variable costs (cloud usage) go up and down with use. The cloud moves spending from fixed to variable.
  • License models: License Included means the software license is part of the hourly price (for example Windows Server or SQL Server on EC2/RDS). Bring Your Own License (BYOL) means you reuse a license you already own. That can cost less if your contract allows it.
  • Rightsizing: picking instance types and sizes that match what a workload really needs, so you do not pay for idle CPU or memory. Measure first, then shrink or change type.
  • Managed services: AWS runs the servers, patching, backups and scaling for you (RDS, DynamoDB, Lambda). Your team spends less time on operations and more on the product. The trade-off is less low-level control.

Automation is a core cloud benefit. Infrastructure as code tools such as AWS CloudFormation let you describe resources in a template and create, update and delete whole environments the same way every time. That means fewer manual mistakes, faster recovery, and cheap test copies.

How hosting evolved: a dedicated server gives one customer a whole physical machine (strong isolation, expensive, you guess capacity upfront). A virtual private server splits one machine into virtual machines. Shared hosting puts many customers on one machine (very cheap, weak isolation, few features). Cloud hosting makes many machines act as one flexible, scalable, highly configurable system. The older models still exist; the cloud adds more choice. In everyday use, "cloud computing" covers compute, storage, networking and databases, not only servers.

Service models say how much of the stack the provider runs for you:

  • IaaS (Infrastructure as a Service): raw building blocks (compute, storage, networking) for administrators. Every provider's core four are compute (EC2), storage (EBS, S3), databases (RDS) and networking (VPC).
  • PaaS (Platform as a Service): developers deploy code and the provider manages servers and the OS. Example: AWS Elastic Beanstalk.
  • SaaS (Software as a Service): a finished product for end customers, such as web email or a CRM.

Kinds of compute you will meet, from most to least control:

  • Dedicated / bare-metal servers: one customer, you control virtualization. You must guess capacity and often pay for unused room. Used for special licensing or HPC.
  • Virtual machines: run on a hypervisor and share a physical host, so you pay for a slice. Easy to scale and copy as images, but you can still pay for idle vCPU and memory. The most common option.
  • Containers: run on a container runtime (Docker is the best known) inside a VM and share the OS kernel. They pack workloads tighter and avoid dependency conflicts, but take more operational work.
  • Functions (serverless): you upload code, choose a runtime and memory, and pay only while it runs. The first request after an idle period can be slower (a cold start).

More deployment-model words: public cloud or cloud-native means everything runs with one provider. A private cloud can be built with tools like OpenStack. Hybrid links connect via VPN or Direct Connect. Multi-cloud means using several cloud providers. Exam trap: multi-cloud is not hybrid.

Startups usually go all-cloud. Banks and large companies with existing data centers often go hybrid. Heavily regulated organisations are the most likely to stay on-premises.

What makes a cloud service provider (CSP): many services you can combine, one API behind the console, CLI and SDKs, usage-based billing, built-in auditing of API calls (AWS CloudTrail), IaaS offerings and infrastructure-as-code automation. A company with several products behind one login but few of these traits is a cloud platform, not a CSP.

Benefit words the exam expects you to tell apart:

  • High availability: the service stays reachable because it runs on more than one server or data center, with a load balancer sending traffic only to healthy targets.
  • Scalability: the ability to grow capacity. Vertical scaling (scale up) moves to a bigger server. Horizontal scaling (scale out) adds more servers of the same size. Scaling out is usually preferred because it also adds redundancy.
  • Elasticity: scaling that is automatic and goes both ways: out when demand rises, in when it falls. On AWS this is EC2 Auto Scaling.
  • Fault tolerance: no single point of failure, usually by failing over to a standby copy (for example an RDS Multi-AZ standby in another AZ).
  • Durability: recovering from disaster without losing data. Do backups exist, do they restore, and how fast?

AWS's own longer list of cloud benefits: agility, pay-as-you-go pricing, economies of scale, global reach, security, reliability, high availability, scalability and elasticity.

Money terms:

  • CapEx (capital expenditure): paying upfront for physical infrastructure (servers, storage, network gear, a data center) and depreciating it. You have to guess capacity in advance.
  • OpEx (operational expenditure): ongoing payments for services such as cloud usage, subscriptions, support and training. The provider owns the hardware, so you can try things without buying equipment. The cloud moves spending from CapEx to OpEx.
  • TCO (Total Cost of Ownership): the full direct and indirect cost of running something. For a data center that includes hardware, licences, installation, IT staff, training, physical security, maintenance and taxes. A fair comparison counts these hidden 'below the iceberg' costs, not just a subscription fee.
  • During a migration, costs often rise for a while because you pay for the move while still running on-premises. Savings come afterwards.

Moving to the cloud does not have to make IT staff redundant. They are needed for the migration, can move into cloud roles (a network engineer becomes a cloud network engineer), may run a hybrid setup, and can move from maintaining infrastructure to work that earns revenue. That is the answer the exam favours.

Explain like I'm 10

Owning servers is like buying a truck to move house once a year: you pay for it, insure it, park it, and it sits idle most of the time. The cloud is a van-rental app: tap, a van shows up, and you pay for the hours you drove. Need a bigger one for a week? Tap again.

Examples

On-premises vs cloud: the same need, two ways

Need: a web server for a product launch next month

On-premises:
  1. Forecast peak traffic (guess)
  2. Order hardware, wait weeks for delivery
  3. Rack it, cable it, install the OS
  4. Pay for it whether or not anyone visits
  5. After launch it sits mostly idle

Cloud:
  1. Launch a server (an EC2 instance) in minutes
  2. Add more during the launch spike
  3. Remove them afterwards
  4. Pay only for the hours they ran

The work is the same; the difference is when you pay and how fast you can change your mind.

Your first cloud request, from the terminal

# Ask AWS which account and identity you are using
aws sts get-caller-identity

# List the Regions your account can use
aws ec2 describe-regions --query "Regions[].RegionName" --output text

Every cloud action is just a request to an API. This is the smallest useful one: 'who am I?'

How it works

A cloud provider builds huge data centers and uses virtualization to split physical machines into many isolated virtual ones. Thousands of customers can safely share the same hardware (multi-tenancy). Every resource is an API call: create a server, attach storage, open a network port.

The provider buys hardware in huge volume, so its cost per unit falls. That economy of scale lowers prices. Capacity is pooled, so you can scale up for a spike and release it afterwards instead of guessing capacity months ahead.

Hybrid setups join the two sides with a VPN or a dedicated network line, so on-premises and cloud systems talk as if they were on one network.

   CLIENT                          CLOUD PROVIDER
 +---------+   request    +-----------------------------+
 | browser |------------->|  Region                     |
 | / app   |<-------------|   +-------+  +-----------+  |
 +---------+   response   |   |server |  | database  |  |
                          |   +-------+  +-----------+  |
   You rent these ------->|   (virtualized, pooled)     |
   and pay by usage       +-----------------------------+

Why does it exist?

Your own data centers mean big upfront spending, long waits, and capacity that is too small at peak and too large the rest of the year. Small teams could not afford what large companies had.

The cloud turns infrastructure into a utility, like electricity: you do not build a power plant to run a lamp. A two-person team can experiment cheaply, and a large company can expand to a new continent without building anything.

When to use it

Choose the cloud when demand is uncertain or spiky, you want to launch fast, you need users in many countries, or you would rather spend engineering time on your product than on servers.

Choose hybrid when regulation, latency to local equipment, or a large existing investment keeps some workloads on-premises.

When not to use it

A steady, very large workload on fully paid-off (depreciated) hardware may be cheaper on-premises. Strict data-residency rules, or equipment that must sit next to a factory floor, may also force on-premises or hybrid. Compare real costs.

Common mistakes

  • Thinking 'cloud' means 'someone else handles all security' - you still own your data, identities, and configuration (see the shared responsibility model).

  • Assuming the cloud is always cheaper; unused resources left running still cost money.

  • Confusing a private cloud with plain on-premises servers; a private cloud adds self-service and elasticity.

  • Forgetting that on-demand cuts both ways: resources you forget to turn off keep billing.

  • Treating hybrid as a temporary failure rather than a legitimate long-term design.

  • Treating BYOL as always cheaper - it only helps if your existing license terms allow use on shared cloud hardware.

  • Rightsizing once at launch and never again; usage changes, so review it regularly.

  • Mixing up hybrid (on-premises plus one cloud, connected) with multi-cloud (several cloud providers).

  • Treating scalability and elasticity as the same thing - elasticity is automatic and scales in as well as out.

  • Comparing cloud costs only against hardware prices and ignoring hidden on-premises costs such as staff, power, security and maintenance (TCO).

  • Expecting savings from day one of a migration; you often pay for both environments for a while.

Practice exercises

  1. Easy:

    List the six advantages of cloud computing from memory, and give a one-line example of each.

  2. Easy:

    A news site gets 50x traffic during elections and little otherwise. Explain which cloud benefits apply and why on-premises would struggle.

  3. Medium:

    A bank must keep customer records in its own data center for regulatory reasons but wants to run analytics in the cloud. Sketch a hybrid design and name what connects the two sides.

  4. Medium:

    Run aws sts get-caller-identity (or read its output in the docs) and explain each field it returns.

  5. Easy:

    Classify each as IaaS, PaaS or SaaS: Amazon EC2, AWS Elastic Beanstalk, a hosted email service.

  6. Medium:

    Explain the difference between high availability, fault tolerance, scalability, elasticity and durability, with one AWS example for each.

  7. Medium:

    List ten costs that belong in a TCO estimate for an on-premises data center, marking which are hidden 'below the iceberg' costs.

  8. Hard:

    Roughly compare 3-year costs for a workload that needs 20 servers all year vs one that needs 20 servers for two months a year. Where does the cloud win, and where might it not?

Interview questions

What is cloud computing?

On-demand delivery of IT resources over the internet with pay-as-you-go pricing, instead of owning and running physical infrastructure yourself.

Name the three cloud deployment models.

Cloud (all in the provider), on-premises (all in your own data center, sometimes called private cloud), and hybrid (a connected mix of both).

What does 'trade upfront expense for variable expense' mean?

Instead of buying hardware (capital expense) before you know demand, you pay per use as an operating expense, so cost tracks actual consumption.

Exam-style: A company wants to stop guessing how much server capacity it will need. Which cloud benefit addresses this? (A) Economies of scale (B) Stop guessing capacity (C) Go global in minutes (D) Stop running data centers

B. You can scale up or down as demand changes instead of forecasting months ahead.

Exam-style: Which model keeps some workloads in a company data center and others in AWS, connected together?

Hybrid deployment.

Exam-style: Which statement describes a variable cost? (A) Buying a server (B) Paying per hour for compute (C) Leasing a data center (D) Buying cooling equipment

B. Variable costs scale with usage; the other three are fixed.

What is the benefit of a managed service?

AWS handles infrastructure maintenance such as patching, backups and scaling, reducing the customer's operational effort.

What does CloudFormation automate?

Creating and managing a set of AWS resources from a template, so environments are repeatable.

Exam-style: A team wants to deploy code without managing servers or the operating system. Which service model is this? (A) IaaS (B) PaaS (C) SaaS (D) On-premises

B. Platform as a Service, for example AWS Elastic Beanstalk.

Exam-style: Which describes elasticity? (A) Buying a bigger server (B) Automatically adding and removing capacity as demand changes (C) Keeping a standby database (D) Backing up data

B. Elasticity is automatic and works in both directions.

Scale up vs scale out?

Scaling up (vertical) moves to a larger server; scaling out (horizontal) adds more servers. Scaling out is usually preferred because it also removes the single point of failure.

Exam-style: A company uses AWS and another public cloud provider at the same time. What is this called?

Multi-cloud. Hybrid means on-premises infrastructure connected to a cloud.

What is Total Cost of Ownership (TCO)?

An estimate of all direct and indirect costs of a system, including hidden ones like staff, physical security, maintenance and facilities. It is used to compare on-premises with cloud.

Exam-style: After moving to AWS, what typically happens to the IT staff who ran the data center?

They can shift from maintaining infrastructure to cloud roles and work that adds business value, rather than being made redundant.

CapEx vs OpEx?

CapEx is upfront spending on physical assets that are depreciated over time; OpEx is ongoing pay-as-you-go spending. The cloud shifts spending from CapEx to OpEx.