AWS-101 · Lesson 3 of 12 · 18 min
Cloud deployment and service models
▶ Video coming soon A video version of this lesson is on the way.
Hannah Weiss, Cascade Ridge's privacy and security lead, has one question for every new system: who is responsible when something goes wrong? When Gwen presents the migration plan, Hannah wants to know, for each system moving to AWS, which parts Cascade Ridge will still look after and which parts become AWS's job. Gwen says the answer depends on two choices that the exam calls the service model and the deployment model. She spends a long afternoon with Mateo and Hannah working through both, using every system Cascade Ridge runs as an example.
Service models
A service model describes how much of the technology stack the provider manages and how much the customer manages. Picture the stack as layers: the building and power at the bottom, then physical servers, storage and networking, then virtualization, then the operating system, then middleware and runtime, then the application, and at the top the data and the decisions about who can use it. The three classic service models draw the line between provider and customer at different heights.
Infrastructure as a service
With infrastructure as a service (IaaS), the provider supplies the basic building blocks: virtual servers, block storage, networks and the facilities they run in. The customer chooses an operating system, installs and patches it, installs the application, and configures firewalls, users and backups. IaaS gives the most control and is closest to running a physical server, which makes it the easiest home for existing applications.
On AWS, the most common IaaS service is Amazon EC2, which provides virtual servers called instances. Disks for those instances come from Amazon EBS (Elastic Block Store), and networking comes from Amazon VPC (Virtual Private Cloud). Cascade Ridge's VetLedger application servers will run on EC2 at first, because the vendor supports a specific version of Windows Server and wants the software installed in a particular way. Mateo will keep patching Windows, just as he does now; what disappears is the hardware, the room and the air conditioner.
Platform as a service
With platform as a service (PaaS), the provider also manages the operating system, the runtime and often the scaling. The customer supplies an application or data and settings, and the platform does the rest. PaaS removes routine work, such as patching and capacity planning, but asks the customer to work within the platform's rules.
On AWS, Amazon RDS is a managed relational database: AWS installs the database engine, patches it, takes automated backups and can keep a standby copy in another zone, while the customer manages the database schema, the data and who may connect. AWS Elastic Beanstalk runs web applications from uploaded code. Cascade Ridge will move VetLedger's SQL Server database to Amazon RDS for SQL Server, so the nightly backup job Mateo wrote in 2020 will be replaced by RDS automated backups.
Software as a service
With software as a service (SaaS), the customer uses a complete application delivered over the internet. The provider runs everything, including the application itself, and the customer manages users, settings and its own data. Cascade Ridge's email and office documents run on Microsoft 365, its phones run on a hosted voice service, and its payroll runs on a SaaS payroll platform. All three are SaaS, and none of them runs on Cascade Ridge's AWS account, which is a useful reminder that the cloud is broader than one provider.
| Layer | On premises | IaaS (EC2) | PaaS (RDS) | SaaS (email) |
|---|---|---|---|---|
| Data and access decisions | Customer | Customer | Customer | Customer |
| Application | Customer | Customer | Customer (schema) | Provider |
| Runtime, middleware, database engine | Customer | Customer | Provider | Provider |
| Operating system and patches | Customer | Customer | Provider | Provider |
| Virtualization and hardware | Customer | Provider | Provider | Provider |
| Facilities, power, cooling | Customer | Provider | Provider | Provider |
Serverless
A newer term sits across the models: serverless. A serverless service has no servers for the customer to choose, size or patch. It scales automatically, often down to nothing when idle, and is billed for the work it does, such as each request or each second of computation. AWS Lambda runs code in response to events; Amazon S3 (Simple Storage Service) stores objects with no capacity to plan; Amazon DynamoDB is a serverless NoSQL database.
Kwame's longer-term plan for BookVet is serverless: the booking form would call Lambda functions that write to DynamoDB, and the whole app would cost almost nothing at three in the morning. That redesign is phase 2. For now, Gwen notes only that serverless pushes even more of the stack to AWS, so the customer's share of the work shrinks to code, configuration, data and access.
The shared responsibility model
Hannah's question has a formal answer that the exam treats as essential: the AWS shared responsibility model. AWS is responsible for security of the cloud, meaning the physical facilities, hardware, network and the software that runs AWS services. The customer is responsible for security in the cloud, meaning its data, its identities and permissions, its operating systems where it runs them, its network settings and its applications. The service model decides where the dividing line falls: on EC2 the customer patches the guest operating system; on RDS AWS patches the database engine; on Lambda AWS manages the whole runtime.
Gwen gives Hannah a sentence to remember: no matter the service, the customer always owns its data and decides who can reach it. AWS-102 covers the model in detail, including encryption, identity and compliance reports.
Deployment models
A deployment model describes where the cloud resources run and who they serve. The exam names three.
- Cloud (sometimes called public cloud or all-in cloud): applications run entirely in a provider's cloud, built either by migrating existing systems or by designing new ones for the cloud. A start-up that has never owned a server is fully cloud.
- On-premises (also called private cloud): resources run in the organization's own facilities using virtualization and management tools, sometimes with cloud-style self-service. It offers control but keeps all the costs and duties of running hardware.
- Hybrid: cloud resources are connected to on-premises infrastructure, so workloads and data can move or work together. A typical hybrid design keeps some systems on site for legal, latency or practical reasons and runs the rest in the cloud.
Related terms appear too. Multicloud means using more than one public cloud provider. A community cloud is shared by several organizations with common needs, such as a group of agencies. The exam focuses on cloud, on-premises and hybrid.
Cascade Ridge will be hybrid for the foreseeable future. Each clinic keeps its desktop computers, card terminals and printers; the emergency hospital keeps the pharmacy's automated dispensing cabinet, which is controlled by a small PC that must sit beside it. Everything else moves to AWS, connected to the clinics over encrypted internet links at first and possibly over a dedicated connection later. Lesson 9 shows how the team decided which systems move and how.
| System | Service model after the move | Where it runs |
|---|---|---|
| VetLedger application servers | IaaS (Amazon EC2) | AWS |
| VetLedger database | PaaS (Amazon RDS for SQL Server) | AWS |
| Radiograph and ultrasound archive | Object storage (Amazon S3) | AWS |
| BookVet booking app | IaaS now, serverless in phase 2 | AWS |
| Email and documents | SaaS | Another provider |
| Pharmacy dispensing PC | On-premises | Emergency hospital |
Common mistakes
MistakeThinking IaaS, PaaS and SaaS are product names.
InsteadThey describe how much the provider manages. One provider offers all three, and many services sit between them.
MistakeAssuming a managed service removes all customer responsibility.
InsteadEven on SaaS, the customer manages its users, its settings and its data.
MistakeCalling any mix of providers 'hybrid'.
InsteadHybrid connects on-premises infrastructure with the cloud; using two public providers is multicloud.
MistakeBelieving serverless means there are no servers.
InsteadThere are servers; the provider manages them completely, so the customer never sees or sizes them.
Shared responsibility by service
Hannah asks for one more table, showing exactly what Cascade Ridge must still do for each kind of service it will use. Gwen builds it on the whiteboard, and it becomes the page Hannah pins above her desk.
| Service type | AWS handles | Cascade Ridge still handles |
|---|---|---|
| Amazon EC2 (IaaS) | Facilities, hardware, hypervisor, network infrastructure | Operating system patches, installed software, firewall rules, data, access |
| Amazon RDS (managed database) | All of the above, plus the operating system and database engine patches and backup mechanics | Database design, users and permissions, network access, encryption settings, backup retention |
| Amazon S3 (object storage) | Storage hardware, redundancy across zones, service software | Bucket policies, who can read or write, encryption choice, life cycle rules |
| AWS Lambda (serverless) | Servers, operating system, runtime, scaling | Function code, its permissions, its configuration and the data it handles |
Reading down the right-hand column, Hannah sees the pattern Gwen described: the list gets shorter as services become more managed, but it never becomes empty. Every row ends with data and access. Her new cloud security policy therefore starts with two sections that apply to every service, data classification and access control, before it says anything about particular products.
Why the models matter for cost and skills
The service model also changes the kind of work Mateo will do and the way costs behave. On EC2, Cascade Ridge pays for every hour an instance runs, whether it is busy or idle, and Mateo spends time on patching and monitoring the operating system. On RDS, the hourly price is higher than a bare instance of the same size, but it includes work Mateo no longer does: backups, engine patching and failover. On Lambda, the bill depends on how many requests arrive and how long each takes, so an idle system costs almost nothing.
Gwen's rule of thumb for Cascade Ridge is to choose the most managed option that meets the requirement. A managed service may cost more per hour, but it usually costs less in total once staff time and risk are counted, a point lesson 10 develops. The exceptions are systems like VetLedger's application servers, where a vendor's support rules dictate a particular operating system setup and therefore IaaS.
A note on terminology
Exam questions sometimes describe a service rather than name a model. A question that mentions choosing the operating system and installing software points to IaaS. One that mentions uploading code while the provider manages servers and scaling points to PaaS or serverless. One that mentions using a finished application through a browser points to SaaS. Mateo practises by labelling every service he meets in the console with its model, and he finds that a few, such as Amazon RDS, sit comfortably between the textbook categories.
Hannah adds one practical step to her policy: every new AWS service the team wants to use must first be labelled with its model and its customer responsibilities, using the same table. The label tells the team what work it is signing up for before the service reaches production, and it gives Hannah a list to check during her quarterly reviews.
Worked problem
Drawing the line for one system
Hannah asks who is responsible for applying a security patch to the SQL Server database engine, and who decides which clinic staff can read client records, after VetLedger's database moves to Amazon RDS.
Show solution
- RDS is a managed database service, so AWS installs and patches the database engine and the operating system beneath it, within a maintenance window that Cascade Ridge chooses.
- Client records are customer data, and who can read them is an access decision, so that stays with Cascade Ridge.
- Cascade Ridge also controls network access to the database, encryption settings and backup retention.
Answer: AWS patches the engine; Cascade Ridge decides who can reach the data and how it is protected.
Hannah leaves with a one-page table for every system, and with a new phrase for her policy documents: security of the cloud and security in the cloud. Lesson 4 turns to where AWS's cloud physically lives.
Summary and key terms
- Service models describe how much of the stack the provider manages.
- IaaS (for example EC2) supplies virtual servers, storage and networks; the customer manages the operating system up.
- PaaS (for example RDS or Elastic Beanstalk) also manages the operating system and runtime.
- SaaS delivers complete applications.
- Serverless services such as Lambda, S3 and DynamoDB remove server management entirely.
- The shared responsibility model splits security of the cloud (AWS) from security in the cloud (customer); the service model moves the line.
- Deployment models are cloud, on-premises (private) and hybrid; multicloud means more than one public provider.
- Service model
- How much of the stack the provider manages: IaaS, PaaS or SaaS.
- Deployment model
- Where resources run and whom they serve: cloud, on-premises or hybrid.
- Amazon EC2
- AWS virtual servers (instances); a classic IaaS service.
- Amazon RDS
- AWS managed relational database service.
- Serverless
- Services with no servers for the customer to manage, scaling automatically and billed for use.
- Shared responsibility model
- AWS secures the cloud; the customer secures what it puts in the cloud.
- Hybrid deployment
- Cloud resources connected to on-premises infrastructure.
- Multicloud
- Use of more than one public cloud provider.
Practice problems
Work each problem on paper first, then reveal the answer to check.
On Amazon EC2, who patches the guest operating system?
Show answer
The customer.
A company runs all its applications in AWS and owns no servers. Which deployment model is this?
Show answer
Cloud (all-in cloud).
Which layer of responsibility never moves to the provider?
Show answer
The customer's data and decisions about who can access it.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.