Source label: Mapped from archived CACS402 (2018) outline. This is not a new 2025 detailed micro-syllabus. Explanations and study material are original.
Course overview
The guide maps archived course CACS402 to BCA451. It follows all six units and preserves every topic in source order.
Unit 1: Introduction to Cloud Computing
Teaching hours: 6
Topics in outline order
- 1.1 Overview of Cloud Computing
- 1.2 Evolution of Cloud Computing
- 1.3 Characteristics of Cloud Computing
- 1.4 Types of cloud and its Cloud services
- 1.5 Benefits and challenges of cloud computing
- 1.6 Applications cloud computing
- 1.7 Cloud Storage
- 1.8 Cloud services requirements
- 1.9 cloud and dynamic infrastructure
- 1.10 Cloud adoption
1.1 Overview of Cloud Computing
Plain-language definition and why it matters. Cloud computing is the on-demand delivery of computing services — servers, storage, databases, networking, software, and analytics — over the internet, usually on a pay-as-you-go basis. It matters because organizations avoid buying and maintaining physical data centers and instead rent capacity as needed, shifting cost from upfront capital expense to operating expense.
Core theory. The NIST definition lists five essential characteristics: on-demand self-service, broad network access, resource pooling, rapid elasticity, and measured service. The three service models are IaaS (infrastructure), PaaS (platform), and SaaS (software). The four deployment models are public, private, community, and hybrid clouds. Cloud is an abstraction layer above physical hardware.
Syntax / notation. Conceptual; no code syntax. Access is typically via a web console, API, or CLI, e.g. aws ec2 run-instances ... (illustrative only; exact flags vary by provider).
Worked example. A student hosts a portfolio site. Traditional path: buy a server ($1,200), install OS and web server, patch it, pay electricity and internet, and size for peak traffic that rarely occurs. Cloud path: sign up, launch a virtual server in minutes, pay about $10–20/month, and add capacity only when visitors spike. Intermediate steps: (1) choose region, (2) select VM size, (3) deploy web server image, (4) open port 80/443, (5) point DNS, (6) monitor usage and scale down when idle.
Realistic use case. A startup launches a minimum viable product with no budget for hardware, deploys on a public cloud, and scales as user numbers grow without buying servers.
Comparison table.
| Aspect | Traditional on-premise | Cloud computing |
|---|---|---|
| Upfront cost | High (hardware, facilities) | Low to none |
| Scaling | Buy and install hardware | Elastic, minutes |
| Maintenance | Customer does all | Provider manages hardware |
| Payment | Capital expense | Pay-as-you-go operating expense |
Common mistakes and limitations. Mistake: assuming "cloud" means "the internet" — cloud is a service model delivered over networks, not the network itself. Mistake: assuming cloud is always cheaper; sustained heavy workloads can cost more than owned hardware over years. Limitation: needs internet connectivity; vendor lock-in can make migration hard; shared hardware introduces multi-tenancy trust considerations.
Exam-ready answer points. Define cloud computing; name the five NIST characteristics; name service models (IaaS, PaaS, SaaS); contrast cloud vs on-premise on cost and maintenance.
Self-check questions with answers.
- What is cloud computing? Answer: on-demand delivery of computing services over the internet, typically pay-as-you-go.
- Name two differences between cloud and on-premise hosting. Answer: cloud has low upfront cost and elastic scaling; on-premise requires hardware purchase and manual scaling.
1.2 Evolution of Cloud Computing
Plain-language definition and why it matters. Evolution traces how computing moved from centralized mainframes through client-server, grid, and utility computing to today's cloud. Understanding this prevents the mistake of treating cloud as brand-new technology; it is a recombination of older ideas (virtualization, networking, on-demand billing) under one model.
Core theory. Timeline: (1) 1950s–60s mainframes with time-sharing; (2) 1980s client-server (PCs + servers); (3) 1990s grid computing (loosely coupled, geographically distributed resources); (4) late 1990s virtualization (VMware) and application service providers; (5) 2006 Amazon EC2 (modern public cloud IaaS) and Google Apps (SaaS); (6) 2008+ Microsoft Azure and broader enterprise adoption. Key enablers: broadband internet, virtualization, multicore hardware, automation.
Syntax / notation. Conceptual timeline, no syntax.
Worked example. Trace a payroll application: 1980s — runs on one office server accessed by dumb terminals; 1990s — client-server with PCs connecting to a central server; 2000s — grid across university departments; 2010s — cloud VM with auto-scaling and monthly billing. Intermediate steps show each stage removed a layer of hardware ownership.
Realistic use case. A bank moves legacy mainframe workloads onto cloud VMs (lift-and-shift) while keeping core systems on a private cloud for regulation.
Comparison table.
| Era | Model | Key trait |
|---|---|---|
| Mainframe | Centralized time-sharing | One big computer, many terminals |
| Client-server | Distributed tiers | PCs talk to central servers |
| Grid | Shared owned resources | Loosely coupled, administrative domains |
| Cloud | On-demand pooled services | Self-service, elastic, metered |
Common mistakes and limitations. Mistake: crediting one company with inventing cloud — it evolved over decades. Mistake: equating cloud with grid computing; grids are usually organization-owned and less self-service. Limitation: early mainframes were batch-oriented, not interactive like modern cloud.
Exam-ready answer points. Sketch the evolution timeline (mainframe → client-server → grid → virtualization → cloud); name 2006 AWS EC2 as a milestone; distinguish grid vs cloud.
Self-check questions with answers.
- Name one computing era before cloud computing. Answer: mainframe time-sharing, client-server, or grid computing.
- How does cloud differ from grid computing? Answer: cloud is self-service, on-demand, metered, and provider-managed; grids are usually shared, organization-owned resources.
1.3 Characteristics of Cloud Computing
Plain-language definition and why it matters. Characteristics are the defining properties that separate cloud from ordinary hosted services. Knowing them lets students judge whether a service is truly cloud and explains why cloud scales and bills the way it does.
Core theory. NIST's five essential characteristics: (1) On-demand self-service: users provision resources without human provider interaction. (2) Broad network access: resources reachable over standard networks via diverse clients. (3) Resource pooling: provider's multi-tenant resources serve many consumers, dynamically assigned. (4) Rapid elasticity: capacity scales out or in rapidly, appearing unlimited. (5) Measured service: usage is monitored, controlled, and reported (billing by consumption).
Syntax / notation. Conceptual; no syntax. Measured service often maps to units like vCPU-hours, GB-month, or I/O requests.
Worked example. An e-commerce site prepares for a flash sale. Steps: (1) normal load: 2 web VMs; (2) sale starts: auto-scaling detects CPU > 70%, adds 8 VMs within minutes (rapid elasticity); (3) users log in and provision their own test VM via console without calling support (on-demand self-service); (4) VMs run on shared hardware in a datacenter (resource pooling); (5) at month-end, bill shows vCPU-hours and GB transferred (measured service).
Realistic use case. A video-streaming service scales out during a new series launch and scales in afterward, paying only for the extra hours.
Comparison table.
| Characteristic | Traditional hosting | Cloud |
|---|---|---|
| Self-service | Ticket to IT, days | Console/API, minutes |
| Capacity | Fixed, hard to change | Elastic, appears unlimited |
| Billing | Flat or hardware cost | Metered consumption |
| Access | Often VPN/private | Broad network, standard clients |
Common mistakes and limitations. Mistake: thinking resource pooling removes security isolation — pooling shares hardware, but hypervisors and policies isolate tenants. Mistake: assuming measured service means free — it means metered and billed. Limitation: elasticity depends on application architecture; a monolithic app may not scale out cleanly.
Exam-ready answer points. List and explain the five NIST characteristics with examples; explain measured service and rapid elasticity.
Self-check questions with answers.
- What does rapid elasticity mean? Answer: resources scale out or in quickly, appearing unlimited to the user.
- What is measured service? Answer: usage is monitored, controlled, reported, and billed (pay for what you use).
1.4 Types of cloud and its Cloud services
Plain-language definition and why it matters. "Types of cloud" refers to deployment models (who owns and who can use the infrastructure), while "cloud services" refers to service models (what layer is provided). Students must not confuse a deployment choice with a service choice; an organization can run SaaS on a private cloud, for example.
Core theory. Deployment models: public cloud (provider-owned, shared over public internet), private cloud (dedicated to one organization), community cloud (shared by organizations with common concerns), hybrid cloud (two or more clouds bound together). Service models: IaaS (virtual machines, storage, networks; customer manages OS and above), PaaS (runtime, middleware, OS; customer manages applications and data), SaaS (complete application; provider manages everything).
Syntax / notation. Conceptual; responsibility matrix often drawn as a stack showing what customer vs provider manages.
Worked example. A company needs email for 50 staff. Options: (a) SaaS — subscribe to hosted email; provider manages servers, updates, security; customer only creates accounts. (b) IaaS — rent VMs, install mail server software, patch OS, manage backups; customer controls configuration but does more work. Intermediate decision: low IT staff → SaaS; need custom mail policies → IaaS.
Realistic use case. A hospital stores patient records on a private cloud for regulatory control, while running its public website on a public cloud — a hybrid arrangement.
Comparison table.
| Model | Who manages infrastructure | Best for |
|---|---|---|
| Public cloud | Provider | Startups, variable workloads |
| Private cloud | One organization | Regulated, sensitive data |
| Community cloud | Member organizations | Shared-sector projects |
| Hybrid cloud | Mixed | Sensitive data private, burst public |
| Service | Customer manages | Example |
|---|---|---|
| IaaS | OS, apps, data | AWS EC2 |
| PaaS | Apps, data | Heroku |
| SaaS | Nothing (use only) | Gmail |
Common mistakes and limitations. Mistake: confusing deployment model (public/private) with service model (IaaS/PaaS/SaaS) — they answer different questions. Mistake: assuming private cloud is automatically secure; configuration still matters. Limitation: hybrid clouds add networking and governance complexity.
Exam-ready answer points. Define public/private/community/hybrid; define IaaS/PaaS/SaaS; state what the customer manages in each service model.
Self-check questions with answers.
- Who manages the OS in PaaS? Answer: the provider; the customer manages applications and data.
- Give one example of a community cloud user group. Answer: universities or government agencies with shared concerns.
1.5 Benefits and challenges of cloud computing
Plain-language definition and why it matters. Benefits explain why organizations adopt cloud; challenges explain the risks they must plan for. A balanced view stops students from assuming cloud is a pure upgrade with no downside.
Core theory. Benefits: cost savings (no upfront hardware, pay-as-you-go), scalability (elastic capacity), reliability (provider redundancy), mobility (access from anywhere), automatic updates, disaster recovery (off-site backups), and environmental efficiency (higher utilization). Challenges: security and data privacy, downtime/outages, vendor lock-in, limited control over underlying hardware, bandwidth dependency, compliance/data residency, hidden costs (data egress, support tiers).
Syntax / notation. Conceptual; TCO comparisons use cost tables.
Worked example. Three-year cost comparison for an application needing 4 servers: On-premise: servers $16,000 + facility/power $9,000 + staff $30,000 = ~$55,000. Cloud: equivalent VMs $400/month × 36 = $14,400, plus egress and support ~$3,000 = ~$17,400. Steps: (1) list hardware cost, (2) add power/cooling/space, (3) add staff time, (4) list cloud monthly rate × months, (5) add egress/support, (6) compare totals. Cloud wins here on upfront cost; sustained 24/7 maximum load could narrow the gap.
Realistic use case. A small accounting firm uses cloud backup instead of buying a backup server and rotating tapes off-site.
Comparison table.
| Benefit | Challenge |
|---|---|
| Low upfront cost | Ongoing subscription can accumulate |
| Elastic scaling | Needs internet; outage cuts access |
| Provider-managed updates | Less control; vendor lock-in risk |
Common mistakes and limitations. Mistake: assuming 100% uptime — cloud providers have SLAs like 99.9%, not 100%. Mistake: ignoring data egress fees when moving data out. Limitation: compliance (e.g., health/financial data) may restrict which regions data can reside in.
Exam-ready answer points. List benefits (cost, scalability, reliability, mobility, updates, DR) and challenges (security, downtime, lock-in, control, bandwidth, compliance, hidden costs).
Self-check questions with answers.
- Name two benefits of cloud computing. Answer: cost savings (no upfront hardware) and elastic scalability.
- Name two challenges. Answer: security/privacy and vendor lock-in (or downtime, bandwidth dependency).
1.6 Applications cloud computing
Plain-language definition and why it matters. Applications show where cloud is actually used — from consumer mail to enterprise analytics — grounding abstract concepts in real workloads. This also corrects the narrow view that cloud is only "online storage."
Core theory. Application categories: (1) Communication and email (webmail, VoIP); (2) File storage and sharing (backup, sync); (3) Media streaming (video/audio); (4) Software as a Service (CRM, office suites); (5) Development and testing (sandbox environments); (6) Big data and analytics; (7) E-commerce hosting; (8) Disaster recovery and backup; (9) Internet of Things backends; (10) Education and virtual classrooms.
Syntax / notation. Conceptual; no syntax. Example workflows can be expressed as steps.
Worked example. A photographer backs up 200 GB of raw photos. Steps: (1) install cloud backup client; (2) select photo folder; (3) client encrypts and uploads over the internet; (4) provider stores redundant copies across datacenters; (5) after a laptop failure, the photographer reinstalls the client and restores files. Intermediate check: verify restore by opening a sample file.
Realistic use case. A media company uses cloud transcoding to convert uploaded videos into multiple device formats in parallel.
Comparison table.
| Category | Consumer example | Enterprise example |
|---|---|---|
| Email/storage | Gmail, Dropbox | Microsoft 365, Box |
| Streaming | Netflix, Spotify | Corporate training video platform |
| SaaS | TurboTax | Salesforce CRM |
| Dev/test | Free tier VMs | CI/CD pipelines on cloud |
Common mistakes and limitations. Mistake: thinking cloud applications are only storage — cloud also runs compute, analytics, and entire business applications. Mistake: assuming consumer and enterprise cloud apps differ only in scale — enterprise versions add SLAs, admin controls, compliance, and support.
Exam-ready answer points. List application categories with examples; distinguish consumer vs enterprise cloud applications.
Self-check questions with answers.
- Give one cloud application for file storage. Answer: Dropbox / Google Drive / OneDrive (any one).
- Name one enterprise cloud application category. Answer: CRM (Salesforce), office suite (Microsoft 365), or backup/disaster recovery.
1.7 Cloud Storage
Plain-language definition and why it matters. Cloud storage keeps data on remote servers managed by a provider, accessed over the internet. It matters because it separates data from any single device, enables sharing and backup, and is billed by volume and access patterns.
Core theory. Three primary storage types: (1) Block storage — raw volumes attached to VMs, good for databases and OS disks (low latency, random access). (2) File storage — shared file systems via protocols like NFS/SMB, good for home directories and shared content. (3) Object storage — data as objects in buckets accessed via HTTP/API, good for backups, media, and unstructured data (high durability, cheap, not directly mountable as a disk). Features: durability, replication across zones, versioning, lifecycle policies, access control.
Syntax / notation. Conceptual; object storage access often via GET /bucket/key style HTTP or SDK calls like put_object(bucket, key, data).
Worked example. A company archives 10 TB of legal documents. Steps: (1) choose object storage (cheapest, durable); (2) create a bucket in a compliant region; (3) upload files with encryption enabled; (4) set a lifecycle policy to move older files to a cheaper archive tier after 30 days; (5) enable versioning to protect against accidental deletion. Intermediate check: verify the bucket is not publicly accessible.
Realistic use case. A news site stores article images in object storage and serves them directly to readers via URLs.
Comparison table.
| Type | Access | Typical use |
|---|---|---|
| Block | VM-attached volume | Databases, boot disks |
| File | NFS/SMB shares | Shared folders, home dirs |
| Object | HTTP/API, buckets | Backups, media, archives |
Common mistakes and limitations. Mistake: assuming deleted cloud files vanish instantly — backups and versioning may retain them; deletion must be explicit across replicas. Mistake: confusing sync (files stay on devices too) with backup (copy in cloud). Limitation: object storage is not suitable for low-latency random writes like a running database.
Exam-ready answer points. Define block, file, and object storage; give one use case each; explain lifecycle policies and versioning.
Self-check questions with answers.
- Which cloud storage type suits a database? Answer: block storage (low-latency, random access).
- What is object storage good for? Answer: backups, media, and unstructured archives accessed via HTTP/API.
1.8 Cloud services requirements
Plain-language definition and why it matters. Requirements are the criteria used to choose and evaluate a cloud provider. Skipping this leads to signing contracts without uptime guarantees, data-residency clarity, or an exit plan.
Core theory. Checklist: (1) Internet connectivity and bandwidth; (2) Service Level Agreement — guaranteed uptime (e.g., 99.9%), support response times, remedies/credits; (3) Security — encryption at rest/in transit, identity management, certifications; (4) Compliance and data sovereignty — where data physically resides, industry rules (health, finance); (5) Latency and performance; (6) Pricing model — compute, storage, egress, support tiers; (7) Support channels and response times; (8) Exit strategy — data portability, export formats, contract termination.
Syntax / notation. Conceptual; an SLA is a written contract, e.g. "99.9% monthly uptime, service credits below threshold."
Worked example. A bank evaluates two providers for customer data. Steps: (1) confirm provider has a datacenter region inside the country (data sovereignty); (2) read SLA: 99.95% uptime with credit if missed; (3) verify encryption at rest and customer-managed keys; (4) estimate monthly bill including data egress; (5) test data export format for exit; (6) select provider meeting all items, document residual risks.
Realistic use case. A government agency selects a cloud provider that keeps citizen data within national borders and offers local support.
Comparison table.
| Requirement | Consumer cloud | Enterprise cloud |
|---|---|---|
| SLA | Best effort, no credits | Guaranteed uptime, penalties |
| Data location | Provider chooses | Customer selects region |
| Support | Community/ticket | Dedicated, fast response |
Common mistakes and limitations. Mistake: signing without reading the SLA, then assuming guaranteed availability. Mistake: ignoring egress fees, which can dominate bills when moving data out. Limitation: even enterprise clouds cannot guarantee 100% availability.
Exam-ready answer points. List the evaluation checklist (SLA, security, compliance/data residency, pricing/egress, support, exit/portability).
Self-check questions with answers.
- Name one item in a cloud SLA. Answer: guaranteed uptime percentage (e.g., 99.9%) with remedies/credits.
- What is data sovereignty? Answer: the rule that data is subject to the laws of the country/region where it is physically stored.
1.9 cloud and dynamic infrastructure
Plain-language definition and why it matters. Dynamic infrastructure means computing resources (servers, storage, network) can be provisioned, resized, and removed on demand, often automatically, rather than being fixed hardware. This is what makes cloud elasticity possible.
Core theory. Features: on-demand provisioning via API/console; auto-scaling (rules like "add VMs when CPU > 70%, remove when < 30%"); load balancing (traffic spread across healthy instances); infrastructure as code (defining infrastructure in templates); programmable networks (virtual networks, subnets, security groups). Contrast with static infrastructure: fixed servers bought upfront, slow to change, idle most of the time.
Syntax / notation. Conceptual; example auto-scaling rule: if avg_cpu > 70% for 2 minutes: add 2 instances; cooldown 5 minutes.
Worked example. A ticketing site expects a sale at 10:00. Steps: (1) create a launch template (VM image, size, security group); (2) create an auto-scaling group with min 2, max 12, desired 4; (3) attach a load balancer; (4) set scale-out policy at CPU > 70%; (5) at 09:55, pre-warm to 6 instances; (6) sale starts, load spikes, group adds instances automatically; (7) after the event, scale back to 4. Intermediate check: confirm new instances pass health checks before receiving traffic.
Realistic use case. A retail site uses cloud bursting: normal traffic on private cloud, peak holiday traffic bursts into public cloud.
Comparison table.
| Static infrastructure | Dynamic infrastructure |
|---|---|
| Fixed capacity bought upfront | Provisioned on demand |
| Slow changes (weeks) | Changes in minutes |
| Idle resources common | Pay for active use only |
| Manual scaling | Auto-scaling rules |
Common mistakes and limitations. Mistake: assuming dynamic infrastructure always saves money — unchecked auto-scaling can launch many expensive instances during a runaway workload (cost spike). Mistake: forgetting that applications must be designed to run across multiple interchangeable instances (statelessness) to benefit.
Exam-ready answer points. Define dynamic infrastructure; list features (auto-scaling, load balancing, IaC, on-demand provisioning); contrast with static infrastructure.
Self-check questions with answers.
- What does auto-scaling do? Answer: automatically adds or removes resources based on load rules.
- Name one dynamic-infrastructure feature besides auto-scaling. Answer: load balancing or infrastructure as code.
1.10 Cloud adoption
Plain-language definition and why it matters. Cloud adoption is the process of moving workloads to cloud and operating them there. A structured adoption reduces failed migrations, unexpected costs, and security gaps.
Core theory. Adoption phases: assess (inventory workloads, dependencies, costs), plan (choose models, design architecture, security/compliance), migrate, operate (monitor, optimize, govern). Migration strategies (the "6 Rs"): Rehost (lift-and-shift, move as-is), Replatform (small optimizations, e.g., change database), Refactor / re-architect (redesign for cloud-native), Repurchase (move to SaaS), Retire (decommission unneeded), Retain (keep on-premise). Success factors: executive sponsorship, skills/training, change management, pilot first, governance and cost controls.
Syntax / notation. Conceptual; a migration decision matrix lists application, complexity, strategy, reason.
Worked example. Three applications: (1) legacy payroll, hard to change → Rehost (lift-and-shift to VM). (2) customer portal needing small DB change → Replatform to managed database. (3) on-prem email → Repurchase to SaaS email. Steps: (1) inventory apps and dependencies, (2) assign each an R strategy, (3) pilot one low-risk app, (4) migrate in waves, (5) decommission old servers, (6) monitor cost and performance. Intermediate check: verify each app works in cloud before cutting over users.
Realistic use case. A university migrates its student portal to cloud in phases, starting with the public website (low risk), then the enrollment system.
Comparison table.
| Strategy | Effort | Cloud benefit | When to use |
|---|---|---|---|
| Rehost | Low | Fast move | Legacy, urgent |
| Replatform | Medium | Some cloud benefits | Minor modernization |
| Refactor | High | Full cloud-native | Long-term strategic |
| Repurchase | Medium | SaaS features | Replace with subscription |
Swipe to see all columns
Common mistakes and limitations. Mistake: migrating without assessment (unknown dependencies break after move). Mistake: underestimating data transfer time for large datasets. Limitation: some legacy apps tightly bound to old hardware/OS may not run well in cloud without refactoring.
Exam-ready answer points. Describe adoption phases; list the 6 Rs with one-line meanings; name success factors.
Self-check questions with answers.
- What does "rehost" mean in migration? Answer: lift-and-shift — move an application to cloud with little or no change.
- Name one cloud adoption phase. Answer: assess, plan, migrate, or operate (any one).
Unit 2: Cloud Computing Architecture
Teaching hours: 16
Topics in outline order
- 2.1 Cloud reference model
- 2.1.1 Platform as service
- 2.1.2 Software as a service
- 2.1.3 Infrastructure as service
- 2.2 Cloud deployment models
- 2.2.1 Public clouds
- 2.2.2 Private clouds
- 2.2.3 Community cloud
- 2.2.4 Hybrid clouds
- 2.3 Cloud design and implementation using SOA
- 2.4 security, trust and privacy
2.1 Cloud reference model
Plain-language definition and why it matters. A cloud reference model organizes cloud computing into layers and roles, showing how users, providers, and services relate. It gives students a mental map for where each technology belongs in a cloud solution.
Core theory. Logical layers (bottom to top): hardware/physical layer (servers, storage, network), infrastructure/virtualization layer (hypervisors, pooled resources), platform layer (OS, middleware, runtime), application layer (SaaS applications), and client/access layer (browsers, mobile apps, thin clients). NIST cloud reference architecture defines actors and roles: cloud consumer, cloud provider, cloud carrier (network), cloud auditor, and cloud broker, with activities like contract, orchestration, monitoring, and reporting.
Syntax / notation. Conceptual; layer diagrams show data/control flow from client down to hardware and back.
Worked example. Trace a user opening a webmail app: (1) client layer — browser on a laptop; (2) application layer — the mail SaaS running in the provider's cloud; (3) platform layer — runtime and services hosting the mail app; (4) infrastructure layer — virtualized servers and storage; (5) hardware layer — physical racks in a datacenter. The request flows down, the response flows up. Roles: user = cloud consumer; provider runs layers 2–5; carrier is the ISP; auditor checks security compliance.
Realistic use case. An enterprise maps its private cloud onto the reference model to decide which teams manage hardware vs platform vs applications.
Comparison table.
| Layer | What it provides | Example |
|---|---|---|
| Hardware | physical servers, storage, network | racks in datacenter |
| Infrastructure | virtualized pooled resources | VMs, virtual networks |
| Platform | OS, middleware, runtime | app server, database service |
| Application | end-user applications | webmail, CRM |
| Client/access | user devices and apps | browser, mobile app |
Common mistakes and limitations. Mistake: confusing the reference model (layers of technology) with service models (IaaS/PaaS/SaaS) or deployment models (public/private). Limitation: real providers blend layers; boundaries are not always sharp.
Exam-ready answer points. Draw/describe cloud layers from client to hardware; name NIST actors (consumer, provider, carrier, auditor, broker).
Self-check questions with answers.
- Name the bottom and top layers of the cloud reference model. Answer: bottom = hardware/physical; top = client/access (or application layer, depending on convention).
- Name one NIST cloud actor. Answer: cloud consumer, cloud provider, cloud carrier, cloud auditor, or cloud broker.
2.1.1 Platform as service
Plain-language definition and why it matters. PaaS provides a ready-to-use platform (operating system, middleware, programming runtimes, databases) so developers can build, test, and deploy applications without managing servers. It matters because it removes infrastructure work and speeds up development.
Core theory. Provider manages: hardware, virtualization, operating system, middleware, runtime, scaling, patching. Customer manages: applications and data. Typical PaaS offerings include app hosting (Heroku, Google App Engine, Azure App Service), managed databases, message queues, and CI/CD integration. Deployment is usually via git push or a CLI command such as gcloud app deploy (illustrative).
Syntax / notation. Conceptual; deployment example: git push heroku main pushes code; the platform builds and runs it (illustrative command).
Worked example. A team builds a Python booking API. Steps: (1) write the app and a requirements.txt; (2) create a PaaS app instance via console/CLI; (3) connect a managed database service; (4) deploy code with git push or CLI deploy; (5) platform assigns a URL, provisions compute, and runs the app; (6) team monitors logs through the platform dashboard. No one logs into a server to patch the OS.
Realistic use case. A startup launches its MVP on PaaS so two developers can ship without hiring an ops team.
Comparison table.
| Managed by | IaaS | PaaS | SaaS |
|---|---|---|---|
| Hardware, virtualization | Provider | Provider | Provider |
| Operating system | Customer | Provider | Provider |
| Middleware/runtime | Customer | Provider | Provider |
| Applications and data | Customer | Customer | Provider |
Swipe to see all columns
Common mistakes and limitations. Mistake: thinking PaaS gives zero control — customers still configure app settings, environment variables, and scaling rules. Limitation: PaaS can lock you into a provider's stack and makes moving to another platform harder (vendor lock-in). Not suited for workloads needing OS-level customization or kernel modules.
Exam-ready answer points. Define PaaS; state what provider vs customer manages; give examples; contrast with IaaS and SaaS.
Self-check questions with answers.
- What does the customer manage in PaaS? Answer: applications and data.
- Name one PaaS example. Answer: Heroku, Google App Engine, or Azure App Service.
2.1.2 Software as a service
Plain-language definition and why it matters. SaaS delivers complete applications over the internet, typically through a browser, with the provider managing everything from infrastructure to the application itself. It matters because end users need no installation, updates, or maintenance — they simply subscribe and use.
Core theory. Provider manages all layers: hardware, infrastructure, platform, application, and data hosting; customers manage only user accounts and configuration. Access is via thin clients (web browsers) or lightweight apps. Examples: webmail (Gmail), CRM (Salesforce), office suites (Microsoft 365), file sharing (Dropbox). Billing is usually per user per month.
Syntax / notation. Conceptual; access pattern: user logs in via HTTPS to a provider URL; no installation command needed.
Worked example. A 10-person firm adopts SaaS accounting software. Steps: (1) sign up and create organization; (2) add employee user accounts with roles; (3) configure company settings and tax rates; (4) staff log in through browsers and enter invoices; (5) provider applies updates and backups automatically; (6) firm pays monthly per user. No server is purchased or maintained by the firm.
Realistic use case. A school uses SaaS email and collaboration tools so students and teachers access mail from any device without IT installing software.
Comparison table.
| Installed software | SaaS |
|---|---|
| Installed per device | Browser-based, any device |
| Customer installs updates | Provider updates automatically |
| Customer manages server | Provider manages everything |
| License per device/year | Subscription per user/month |
Common mistakes and limitations. Mistake: assuming data ownership and portability are automatic — check export options and terms before committing. Mistake: assuming SaaS works offline — it generally needs internet. Limitation: customization is limited to provider-supported configuration; deep customization may be unavailable.
Exam-ready answer points. Define SaaS; list examples; state what provider manages; contrast with installed software; mention internet dependency and data export considerations.
Self-check questions with answers.
- How does a user typically access SaaS? Answer: through a web browser over the internet (thin client).
- Who manages updates in SaaS? Answer: the provider.
2.1.3 Infrastructure as a service
Plain-language definition and why it matters. IaaS provides virtualized computing resources — virtual machines, storage, and networks — over the internet. It matters because it gives customers the most control among cloud models while removing the need to buy physical hardware.
Core theory. Provider manages the physical hardware and virtualization layer. Customer manages the guest operating system, middleware, runtime, applications, and data. Core components: compute (VMs/instances), storage (block, file, object), network (virtual networks, subnets, load balancers, IP addresses). Customers provision via console, CLI (e.g., aws ec2 run-instances, illustrative), or templates. Responsibility: customer patches the guest OS and secures applications.
Syntax / notation. Conceptual; CLI example (illustrative): aws ec2 run-instances --image-id ami-123 --count 1 --instance-type t2.micro launches one VM (exact flags vary by provider).
Worked example. A company lifts an on-premise web app to IaaS. Steps: (1) create a virtual network and subnet; (2) launch a VM with the needed OS; (3) attach block storage for the app and database; (4) configure a security group (firewall) allowing HTTP/HTTPS and SSH from admin IPs only; (5) install the web server and app inside the guest OS; (6) patch the OS regularly; (7) attach a load balancer and DNS. Intermediate check: confirm the security group does not expose SSH (port 22) to the whole internet.
Realistic use case. An enterprise moves legacy servers to cloud VMs (rehost) without rewriting the application.
Comparison table.
| IaaS vs on-premise | On-premise | IaaS |
|---|---|---|
| Hardware purchase | Customer buys | Provider owns, customer rents |
| OS patching | Customer | Customer (guest OS) |
| Physical maintenance | Customer | Provider |
| Scaling speed | Weeks (buy hardware) | Minutes (API) |
Common mistakes and limitations. Mistake: assuming the provider secures the guest OS — the customer must patch and harden it (shared responsibility). Mistake: leaving default open security groups, exposing VMs to the internet. Limitation: customer still does substantial ops work (OS, middleware, patching), so it is not "no management."
Exam-ready answer points. Define IaaS; name components (compute, storage, network); state what customer manages (OS and above); contrast IaaS with on-premise.
Self-check questions with answers.
- What does the customer manage in IaaS? Answer: guest OS, middleware, applications, and data.
- Name two IaaS components. Answer: virtual machines and virtual networks (or block storage, load balancers).
2.2 Cloud deployment models
Plain-language definition and why it matters. Deployment models answer "who owns the cloud and who can use it?" Choosing the wrong model can breach compliance, overspend, or limit control. This topic sets up the four specific models that follow.
Core theory. A cloud deployment model defines ownership, access, and location of infrastructure. The four models: public (open to the general public, provider-owned), private (single organization), community (specific group with shared concerns), hybrid (two or more models connected, allowing data/application portability). Choice factors: security, compliance, cost, control, and performance.
Syntax / notation. Conceptual; no syntax.
Worked example. A consultancy compares models for a client project: Public — quick setup, shared hardware, lowest cost, good for the public website. Private — dedicated hardware, full control, higher cost, good for client confidential data. Community — shared with partner consultancies on a joint project. Hybrid — keep confidential data on private cloud, run the public site on public cloud, connect them securely.
Realistic use case. A retailer runs its public e-commerce site on a public cloud and its payment processing on a private cloud for PCI compliance — hybrid.
Comparison table.
| Model | Ownership | Access | Cost | Control |
|---|---|---|---|---|
| Public | Provider | General public | Low (pay per use) | Low |
| Private | One organization | That organization | High | High |
| Community | Member group | Group members | Shared | Medium-high |
| Hybrid | Mixed | Defined per workload | Mixed | Mixed |
Swipe to see all columns
Common mistakes and limitations. Mistake: treating deployment model and service model as the same thing. Mistake: assuming public cloud is inherently insecure — security depends on configuration and shared responsibility. Limitation: hybrid adds networking and governance complexity.
Exam-ready answer points. Define the four deployment models; list choice factors; compare cost, control, and access.
Self-check questions with answers.
- Which deployment model is dedicated to a single organization? Answer: private cloud.
- Which model combines two or more clouds? Answer: hybrid cloud.
2.2.1 Public clouds
Plain-language definition and why it matters. Public clouds are owned and operated by providers who sell computing resources to the general public over the internet. They are the most familiar cloud form and the usual starting point for cloud adoption.
Core theory. Resources are multi-tenant and pooled; customers self-provision via web console or API; billing is metered (pay per use). Providers operate massive datacenters globally. Major examples: Amazon Web Services, Microsoft Azure, Google Cloud Platform. Strengths: low entry cost, elastic scale, global reach, no hardware ownership. Weaknesses: shared infrastructure, data residency constraints, internet dependency, egress costs.
Syntax / notation. Conceptual; access pattern: create account → console/API → provision resource → pay monthly.
Worked example. An individual developer deploys a personal blog. Steps: (1) create a free-tier account on a public cloud; (2) launch a small virtual machine; (3) install a web server and upload the blog; (4) open port 80/443 in the cloud firewall; (5) point a domain name to the VM's public IP; (6) monitor the free-tier usage to avoid unexpected charges. Cost: near zero within free limits; beyond that, billed hourly and per GB.
Realistic use case. A startup hosts its MVP and development environments on public cloud, paying only while instances run.
Comparison table.
| Public cloud | Private cloud |
|---|---|
| Shared, multi-tenant | Dedicated, single tenant |
| Provider manages hardware | Customer (or host) manages hardware |
| Low upfront cost | Higher upfront cost |
| Best for variable workloads | Best for sensitive/regulated workloads |
Common mistakes and limitations. Mistake: assuming public cloud is insecure by default — major providers invest heavily in physical and network security; breaches usually come from customer misconfiguration. Mistake: ignoring egress fees when downloading large datasets. Limitation: compliance may forbid certain data (e.g., health records) from public cloud without controls.
Exam-ready answer points. Define public cloud; list characteristics (multi-tenant, self-service, metered); name providers; state strengths and weaknesses.
Self-check questions with answers.
- Who can use a public cloud? Answer: the general public / any customer who signs up.
- Name one public cloud provider. Answer: Amazon Web Services, Microsoft Azure, or Google Cloud Platform.
2.2.2 Private clouds
Plain-language definition and why it matters. Private clouds are cloud infrastructure dedicated to a single organization, either on-premise or hosted by a third party. They matter for organizations that need cloud-like self-service with strict control, privacy, or regulatory compliance.
Core theory. Resources are not shared with other organizations. Can be on-premise (company datacenter with virtualization and a self-service portal) or hosted (dedicated servers at a provider). Delivers cloud characteristics (self-service, elasticity, metering internally) within a single-tenant boundary. Examples: VMware-based private clouds, OpenStack clouds. Strengths: maximum control, data sovereignty, custom security policies. Weaknesses: high cost (buy and run hardware), limited elasticity compared to public cloud, in-house expertise required.
Syntax / notation. Conceptual; no syntax.
Worked example. A bank builds a private cloud for customer data. Steps: (1) install virtualization (hypervisor) on cluster servers; (2) layer a cloud management platform (self-service portal); (3) create virtual networks and storage pools; (4) let application teams provision VMs through the portal without contacting hardware staff; (5) apply the bank's encryption and access policies; (6) monitor capacity and add hosts as needed. All data remains within the bank's facilities.
Realistic use case. A government department runs citizen services on a private cloud to satisfy data-locality laws.
Comparison table.
| Private cloud | Public cloud |
|---|---|
| Single tenant | Multi-tenant |
| High control, high cost | Low control, low cost |
| Data stays in-house | Data on provider infrastructure |
| Elasticity limited by owned hardware | Near-unlimited elasticity |
Common mistakes and limitations. Mistake: assuming private cloud equals automatic security — misconfigured internal controls still leak data. Mistake: expecting public-cloud elasticity from owned hardware — capacity is finite. Limitation: the organization bears hardware refresh, power, cooling, and staffing costs.
Exam-ready answer points. Define private cloud; list deployment options (on-premise/hosted); state strengths (control, sovereignty) and weaknesses (cost, finite capacity).
Self-check questions with answers.
- Is a private cloud shared with other organizations? Answer: no, it is dedicated to one organization.
- Name one weakness of private cloud. Answer: high cost (hardware, power, staffing) or limited elasticity.
2.2.3 Community cloud
Plain-language definition and why it matters. A community cloud is shared infrastructure for a specific community of organizations with common concerns (mission, security, compliance, jurisdiction). It matters because it lets similar organizations share costs while retaining shared governance and policy alignment.
Core theory. Infrastructure is provisioned for a defined community (e.g., universities, healthcare providers, government agencies). Management may be by the community, a member, or a third party; it can exist on-premise or off-premise. Benefits: shared cost, shared policies, aligned compliance. Drawbacks: shared governance can be slow; agreeing on cost-sharing and rules takes effort; fewer providers offer community-specific clouds.
Syntax / notation. Conceptual; no syntax.
Worked example. Five regional hospitals build a community cloud to share medical imaging. Steps: (1) agree on governance and cost-sharing (e.g., equal shares or usage-based); (2) deploy shared infrastructure in a neutral datacenter or one member's site; (3) apply common health-data privacy and security policies; (4) each hospital provisions workloads through a shared portal; (5) a joint board audits access and approves new members. Cost is split, so each pays less than a private cloud.
Realistic use case. A consortium of universities shares a research cloud for student projects and grant-funded computing.
Comparison table.
| Community cloud | Public cloud |
|---|---|
| Specific community with shared concerns | General public |
| Shared governance and policies | Provider-set terms |
| Cost shared among members | Pay per use by each customer |
| Aligned compliance needs | Broad, varied compliance |
Common mistakes and limitations. Mistake: assuming community cloud is just a small public cloud — governance and membership rules are central, not incidental. Limitation: exit from a community cloud can be legally and technically complex due to shared agreements.
Exam-ready answer points. Define community cloud; name example communities; list benefits (shared cost, aligned policies) and drawbacks (governance complexity, cost-sharing disputes).
Self-check questions with answers.
- Who uses a community cloud? Answer: a specific community of organizations with common concerns (e.g., hospitals, universities, government).
- Name one benefit of community cloud. Answer: shared infrastructure cost (or aligned security/compliance policies).
2.2.4 Hybrid clouds
Plain-language definition and why it matters. Hybrid clouds combine two or more distinct clouds (public, private, community) bound by technology that enables data and application portability. They matter because most real organizations run a mix, not a single model.
Core theory. A hybrid cloud lets workloads move between environments based on cost, performance, compliance, or capacity. Key pattern: cloud bursting — routine workloads run on private infrastructure; during peak demand, excess traffic bursts into the public cloud. Requires consistent networking, identity, security policies, and management tools across environments. Not the same as multi-cloud (multiple public clouds without necessarily integrating private infrastructure).
Syntax / notation. Conceptual; bursting rule: if private_cluster_util > 80%: overflow to public cloud.
Worked example. A retailer operates a private cloud for inventory and customer data. Steps: (1) normal days: all traffic on private cloud; (2) holiday sale: private cloud hits 85% utilization; (3) burst policy launches web front-end instances in a public cloud; (4) load balancer splits traffic between private and public front ends; (5) sensitive checkout and customer data stay on the private cloud; (6) after the sale, public instances are shut down to stop charges.
Realistic use case. A bank keeps core banking on a private cloud and hosts its public website and mobile API on a public cloud, connected by a dedicated link.
Comparison table.
| Hybrid cloud | Multi-cloud |
|---|---|
| Mixes private + public (or community) | Multiple clouds, often all public |
| Integrates environments (portability) | May or may not integrate |
| Typical pattern: cloud bursting | Typical pattern: best-of-breed services |
Common mistakes and limitations. Mistake: confusing hybrid cloud with multi-cloud — hybrid implies integration across different models; multi-cloud is using several clouds (often public). Limitation: hybrid needs consistent security, identity, and networking across environments, increasing complexity and cost.
Exam-ready answer points. Define hybrid cloud; explain cloud bursting; contrast hybrid vs multi-cloud; list integration requirements.
Self-check questions with answers.
- What is cloud bursting? Answer: running routine workloads on private cloud and overflowing peak demand into public cloud.
- How does hybrid cloud differ from multi-cloud? Answer: hybrid mixes private and public (integrated); multi-cloud uses multiple clouds, often all public.
2.3 Cloud design and implementation using SOA
Plain-language definition and why it matters. SOA (Service-Oriented Architecture) designs software as a set of loosely coupled, reusable services with well-defined interfaces. Implementing cloud solutions using SOA means building cloud applications from services accessed through APIs, which matches cloud's on-demand, multi-tenant nature.
Core theory. SOA principles: service autonomy, loose coupling, reusability, abstraction, discoverability (service registry), and composability. A service exposes a contract (interface, often WSDL/REST) and is invoked over a network. Cloud implementation: each cloud capability (compute, storage, database, messaging) is exposed as a service; applications compose services via APIs. Service registry lets consumers find services; service contracts define inputs/outputs; governance manages versions and policies.
Syntax / notation. Conceptual; a service call pattern: response = service.operation(input) over HTTP/REST or SOAP (illustrative).
Worked example. An e-commerce site decomposes into services: Catalog, Inventory, Cart, Payment, Order. Steps: (1) each service owns its data and exposes a REST API; (2) a service registry lists service endpoints; (3) the Cart service calls Inventory to check stock before adding an item; (4) Order calls Payment, then Catalog to confirm; (5) services can be scaled independently — Payment gets more instances during a sale. Intermediate check: if Inventory is down, Cart degrades gracefully instead of failing the whole site.
Realistic use case. An enterprise wraps legacy mainframe systems as services so cloud applications can reuse them without replacing the legacy core.
Comparison table.
| Monolithic | SOA |
|---|---|
| One codebase, one deploy | Multiple services, independent deploy |
| Tightly coupled | Loosely coupled via contracts |
| Hard to scale parts | Scale individual services |
| Single failure can take all down | Service failure can be isolated |
Common mistakes and limitations. Mistake: making services too fine-grained, causing excessive network calls ("chatty" interfaces) and latency. Mistake: ignoring service governance — uncontrolled versions break consumers. Limitation: SOA adds operational complexity (service discovery, monitoring, distributed transactions) versus a monolith.
Exam-ready answer points. Define SOA; list principles (loose coupling, reusability, registry, contract); explain how cloud services implement SOA; contrast monolith vs SOA.
Self-check questions with answers.
- What is a service contract in SOA? Answer: the defined interface (inputs/outputs) a service exposes to consumers.
- Name one SOA principle. Answer: loose coupling, reusability, autonomy, discoverability, or composability.
2.4 security, trust and privacy
Plain-language definition and why it matters. Security protects cloud resources and data from attack; trust is the confidence that the provider and other tenants behave reliably; privacy governs how personal data is collected, used, and shared. Together they determine whether cloud adoption is safe and lawful.
Core theory. Security: shared responsibility model — provider secures the cloud (physical, hypervisor, host infrastructure); customer secures in the cloud (guest OS, applications, data, identity, configuration). Controls: encryption at rest and in transit (TLS), identity and access management (IAM), firewalls/security groups, logging and monitoring. Trust: based on provider reputation, certifications (e.g., SOC reports), transparency, and audit rights. Privacy: data minimization, consent, purpose limitation, data residency/regulatory rules, breach notification, and the right to access/delete personal data.
Syntax / notation. Conceptual; an IAM policy example (illustrative JSON-like): Allow user Alice to read bucket X, deny write.
Worked example. A company stores customer records in cloud object storage. Steps: (1) enable encryption at rest for the bucket and TLS in transit; (2) create an IAM role granting read access only to the application service account; (3) block public access to the bucket; (4) enable logging and an alert on unusual downloads; (5) classify records by sensitivity and apply retention/deletion rules for privacy. Intermediate check: test that an unauthorized user cannot list or download the bucket.
Realistic use case. A healthcare app encrypts patient data and restricts access via role-based IAM to satisfy health privacy rules.
Comparison table.
| Security | Trust | Privacy |
|---|---|---|
| Protects assets from threats | Confidence in provider/tenant | Governs personal data handling |
| Controls: encryption, IAM, firewalls | Evidence: certs, audits, reputation | Rules: consent, residency, deletion |
| Customer + provider share duty | Built over time | Often legally regulated |
Common mistakes and limitations. Mistake: assuming the cloud provider is responsible for all security (shared responsibility means customers must secure their own configurations and data). Mistake: storing encryption keys alongside the encrypted data in the same account. Limitation: privacy laws vary by country, so data location matters; cloud use does not remove legal obligations.
Exam-ready answer points. Explain shared responsibility; name security controls (encryption, TLS, IAM, firewalls, logging); define trust evidence (certifications, audits); list privacy principles (consent, residency, deletion).
Self-check questions with answers.
- What is the shared responsibility model? Answer: provider secures the cloud infrastructure; customer secures data, applications, identity, and guest OS configuration.
- Name one privacy principle. Answer: consent, data minimization, purpose limitation, data residency, or deletion/retention.
Unit 3: Cloud Virtualization technology
Teaching hours: 10
Topics in outline order
- 3.1 Overview of Virtualization techniques
- 3.2 Types of Virtualizations
- 3.3 Implementation Levels of Virtualization Structures
- 3.4 virtualization benefits
- 3.5 server virtualization
- 3.6 hypervisor management software
- 3.7 virtual infrastructure requirements
3.1 Overview of Virtualization techniques
Plain-language definition and why it matters. Virtualization abstracts physical hardware into one or more virtual resources using a hypervisor, letting multiple operating systems run on one machine. It matters because it is the foundational technology that makes cloud pooling and elasticity possible.
Core theory. A hypervisor sits between hardware and guest operating systems and allocates CPU, memory, storage, and network to virtual machines. Techniques: (1) Full virtualization — guests run unmodified, hypervisor translates privileged instructions (binary translation/trapping); (2) Paravirtualization — guests are modified to cooperate with the hypervisor via hypercalls; (3) OS-level virtualization / containers — one OS kernel hosts isolated user-space instances (lighter weight, less isolation); (4) Hardware-assisted virtualization — CPU features (Intel VT-x, AMD-V) help the hypervisor run guests efficiently.
Syntax / notation. Conceptual; no syntax. Hypervisor call pattern: guest issues privileged instruction → hypervisor traps and emulates → result returned (illustrative).
Worked example. One physical server runs three VMs: VM A (Windows, legacy app), VM B (Linux, web server), VM C (Linux, database). Steps: (1) install hypervisor on bare metal; (2) create VM A with 4 vCPU, 8 GB RAM, 100 GB disk; (3) create VM B and C similarly; (4) hypervisor schedules each VM's vCPU on physical cores and maps virtual RAM to physical pages; (5) if VM A crashes, VMs B and C keep running (isolation). Intermediate check: confirm total allocated RAM does not exceed physical RAM plus sustainable swap.
Realistic use case. A data center consolidates ten underused physical servers onto two virtualization hosts, cutting power and space.
Comparison table.
| Virtualization vs cloud | Virtualization | Cloud computing |
|---|---|---|
| What it is | Technology abstracting hardware | Delivery model of services over network |
| Scope | Single host/datacenter typically | Broad, self-service, metered, elastic |
| Relationship | Enables cloud | Uses virtualization (among other tech) |
Common mistakes and limitations. Mistake: treating virtualization as synonymous with cloud — virtualization is a technology; cloud is a service model that uses it (plus self-service, metering, elasticity). Limitation: virtualization adds a small performance overhead (hypervisor tax), usually negligible for most workloads.
Exam-ready answer points. Define virtualization and the hypervisor role; list techniques (full, para, OS-level, hardware-assisted); state one benefit (isolation, consolidation).
Self-check questions with answers.
- What does a hypervisor do? Answer: creates and manages virtual machines, allocating hardware resources to guests.
- Is virtualization the same as cloud computing? Answer: no — virtualization is a technology; cloud is a delivery model that uses virtualization.
3.2 Types of Virtualizations
Plain-language definition and why it matters. Virtualization can apply to servers, storage, networks, desktops, and applications. Knowing the types lets students match the right technique to a problem instead of assuming virtualization only means virtual machines.
Core theory. Types: (1) Server virtualization — partition one physical server into multiple virtual servers. (2) Storage virtualization — pool physical storage from multiple devices into a single virtual storage device managed centrally. (3) Network virtualization — combine physical network resources into virtual networks (VLANs, virtual switches, software-defined networking) independent of hardware. (4) Desktop virtualization — run desktop OS on a server; users access remotely (VDI). (5) Application virtualization — deliver applications without installing them locally (streamed or isolated runtimes).
Syntax / notation. Conceptual; no syntax. Example: VLAN ID tags traffic on a virtual network.
Worked example. A company with three departments virtualizes its network. Steps: (1) physical switches carry traffic for all departments; (2) create VLAN 10 (HR), VLAN 20 (Finance), VLAN 30 (Engineering); (3) configure virtual switches and trunk ports; (4) department traffic is logically isolated even over shared cables; (5) move a user's desktop to another VLAN by reconfiguring the port, no recabling. Intermediate check: confirm inter-VLAN traffic passes through a firewall/router with access rules.
Realistic use case. A call center uses desktop virtualization so agents log in from any thin client and see the same desktop.
Comparison table.
| Type | What is virtualized | Example |
|---|---|---|
| Server | Physical server into VMs | VMware ESXi host running many VMs |
| Storage | Multiple storage devices into one pool | SAN presented as virtual LUNs |
| Network | Physical network into virtual networks | VLANs, SDN |
| Desktop | Desktop OS on central server | VDI |
| Application | Application from local install | Streamed app runtime |
Common mistakes and limitations. Mistake: conflating types — a VLAN is network virtualization, not server virtualization. Limitation: each type needs its own management tools and skills; storage virtualization can add latency if poorly tuned.
Exam-ready answer points. List five types of virtualization; state what each virtualizes and give an example.
Self-check questions with answers.
- What does network virtualization do? Answer: creates virtual networks (e.g., VLANs) independent of physical hardware.
- Name one type of virtualization besides server virtualization. Answer: storage, network, desktop, or application virtualization.
3.3 Implementation Levels of Virtualization Structures
Plain-language definition and why it matters. Virtualization can be implemented at different levels of the computing stack, from the instruction set down to the application. The level chosen affects isolation, performance, and which software can run unmodified.
Core theory. Implementation levels: (1) Instruction Set Architecture (ISA) level — virtualizes the instruction set; different ISA software can run (e.g., emulation), but it is slow. (2) Hardware level — virtualizes physical resources (CPU, memory, devices) via hypervisor; strong isolation, near-native speed with hardware assistance. (3) Operating system level — containers share one OS kernel; lightweight, fast startup, weaker isolation than VMs. (4) Library level — applications use virtualized libraries/APIs rather than the full OS. (5) Application level — individual applications run in isolated environments (e.g., sandboxed apps).
Syntax / notation. Conceptual; no syntax. Level order from strongest isolation to lightest: ISA/hardware → OS → library → application.
Worked example. A team needs to run an old Windows XP app on modern hardware. Steps: (1) choose hardware-level virtualization (full VM) so the unmodified XP guest runs intact; (2) allocate virtual CPU, RAM, disk; (3) install hypervisor and the XP VM; (4) run the legacy app inside. Contrast: if they only needed a lightweight Linux tool, OS-level containers would start faster but share the kernel. Intermediate check: confirm the VM's virtual devices (disk, network) are presented compatibly to the guest.
Realistic use case. A developer uses containers (OS level) to build and test microservices quickly, while running production databases in VMs (hardware level) for stronger isolation.
Comparison table.
| Level | Isolation | Performance | Typical use |
|---|---|---|---|
| ISA | Strong | Slow (emulation) | Run foreign-ISA software |
| Hardware | Strong | Near-native | Server VMs, cloud instances |
| OS | Weaker (shared kernel) | Very fast | Containers, microservices |
| Library | Moderate | Fast | App portability across distros |
| Application | Moderate | Fast | Sandboxed apps |
Swipe to see all columns
Common mistakes and limitations. Mistake: assuming higher stack level means stronger isolation — in reality, hardware-level VMs isolate more than OS-level containers (which share a kernel). Limitation: ISA emulation is slow and rarely used for production cloud workloads.
Exam-ready answer points. List the five implementation levels; compare isolation and performance; explain when hardware vs OS level is chosen.
Self-check questions with answers.
- Which level gives the strongest isolation? Answer: hardware-level virtualization (separate guest OS per VM).
- Name the lightest-weight level. Answer: OS-level virtualization (containers) or application level.
3.4 virtualization benefits
Plain-language definition and why it matters. Benefits explain why organizations virtualize: run more workloads on less hardware, isolate failures, move VMs easily, and test safely. These benefits directly enable cloud economics.
Core theory. Benefits: (1) Server consolidation — many VMs on fewer physical hosts, reducing hardware, power, and cooling. (2) Isolation — a crash in one VM does not affect others. (3) Hardware independence — VMs run on different host hardware; easy migration. (4) Snapshots and cloning — save VM state, clone for testing, roll back after failure. (5) Sandboxing — safely test untrusted software or OS patches. (6) High availability and disaster recovery — live migration and replication. (7) Energy savings — fewer physical servers powered on.
Syntax / notation. Conceptual; consolidation ratio example: 10 physical servers → 2 hosts = 5:1 consolidation.
Worked example. A company has 10 underused servers at 15% average utilization. Steps: (1) virtualize onto 2 hosts running 5 VMs each (consolidation ratio 5:1); (2) decommission 8 servers; (3) measure power/cooling savings; (4) take snapshots before each patch so bad updates can be rolled back in minutes; (5) use cloning to create identical test VMs for developers. Intermediate check: confirm combined VM RAM fits within the 2 hosts' physical RAM with headroom.
Realistic use case. A development team clones a production VM snapshot into an isolated test environment to try an upgrade without risking live data.
Comparison table.
| Physical servers | Virtualized servers |
|---|---|
| One OS per machine | Many VMs per machine |
| Low utilization (idle resources) | Higher utilization (consolidation) |
| Hardware tied to one OS | Hardware independent, movable |
| Slower provisioning (order hardware) | Fast provisioning (clone/deploy VM) |
Common mistakes and limitations. Mistake: assuming consolidation is free — overcommitting CPU/RAM (assigning more virtual resources than physical) causes contention and slow performance. Mistake: ignoring VM sprawl — uncontrolled VM creation wastes licenses and resources. Limitation: all VMs on a host share the host's physical resources; a noisy neighbor can affect others.
Exam-ready answer points. List benefits (consolidation, isolation, hardware independence, snapshots, sandboxing, HA/DR, energy savings); explain consolidation ratio.
Self-check questions with answers.
- Name one benefit of virtualization. Answer: server consolidation (or isolation, snapshots, hardware independence, etc.).
- What does a snapshot do? Answer: saves the VM state at a point in time so it can be restored later.
3.5 server virtualization
Plain-language definition and why it matters. Server virtualization partitions a physical server into multiple isolated virtual servers, each with its own OS. It is the most common form of virtualization and the basis of public cloud compute instances.
Core theory. A physical host runs a hypervisor; each virtual server (VM) gets virtual CPU, virtual RAM, virtual disk, and virtual NIC. Types: full virtualization (unmodified guests), paravirtualization (guest-aware), and OS-level virtualization (containers). The hypervisor schedules CPU time and maps virtual memory to physical memory. Virtual hardware is presented to each guest, so guests believe they own dedicated hardware.
Syntax / notation. Conceptual; no syntax. Scheduling example: hypervisor gives each vCPU a time slice on physical cores.
Worked example. One physical host (16 cores, 64 GB RAM) runs four VMs: web (4 vCPU, 16 GB), app (4 vCPU, 16 GB), db (4 vCPU, 16 GB), dev (2 vCPU, 8 GB) = 14 vCPU, 56 GB used, leaving headroom. Steps: (1) install hypervisor on the host; (2) create each VM with its virtual hardware; (3) install guest OS in each; (4) hypervisor schedules vCPU and maps memory; (5) if the web VM reboots, the others are unaffected. Intermediate check: confirm total vCPU can be scheduled (oversubscription is possible but risks contention).
Realistic use case. A hosting company runs hundreds of customer websites as VMs on shared physical hosts, billing each customer by their VM's resources.
Comparison table.
| Bare-metal server | Virtualized server |
|---|---|
| One OS directly on hardware | Multiple VMs via hypervisor on hardware |
| Fixed resources | Flexible, adjustable virtual resources |
| Hardware tied to OS | VM portable across hosts |
| One failure = whole server down | One VM failure isolated from others |
Common mistakes and limitations. Mistake: overcommitting memory — assigning VMs more total RAM than physically available leads to swapping and severe slowdowns. Mistake: assuming each VM is a separate physical machine — they share the host, so host failure affects all VMs unless clustered with HA.
Exam-ready answer points. Define server virtualization; name components (vCPU, vRAM, virtual disk, virtual NIC); list types; state isolation benefit and host-failure caveat.
Self-check questions with answers.
- What is a VM in server virtualization? Answer: an isolated virtual server with its own OS running on a hypervisor.
- What happens if the physical host fails without HA? Answer: all VMs on that host go down.
3.6 hypervisor management software
Plain-language definition and why it matters. Hypervisor management software creates, runs, monitors, and manages virtual machines and hosts. It is the operational layer of virtualization; without it, virtualization is hard to operate at scale.
Core theory. Hypervisor types: Type 1 (bare-metal) runs directly on hardware (VMware ESXi, Microsoft Hyper-V, KVM, Xen) — used in production servers and clouds. Type 2 (hosted) runs on top of a host OS (VirtualBox, VMware Workstation) — used for desktops, testing, and development. Management software provides: VM creation, start/stop, snapshots, resource allocation, live migration, monitoring, and centralized control (e.g., vCenter for ESXi).
Syntax / notation. Conceptual; no syntax. Management actions: create VM → install guest → allocate resources → monitor → migrate/backup.
Worked example. A laptop user runs Linux inside Windows for testing. Steps: (1) install Type 2 hypervisor (VirtualBox) on Windows; (2) create a new VM, allocate 2 vCPU and 4 GB RAM; (3) attach a Linux ISO and install the guest; (4) start the VM; it runs in a window on Windows; (5) take a snapshot before trying a risky change; revert if it breaks. Contrast production: a data center uses Type 1 ESXi managed by vCenter across many hosts.
Realistic use case. A cloud provider runs customer VMs on Type 1 hypervisors (ESXi/KVM) managed by a central cloud platform.
Comparison table.
| Type 1 (bare metal) | Type 2 (hosted) |
|---|---|
| Runs directly on hardware | Runs on a host OS |
| High performance, low overhead | Slightly lower performance |
| Production servers, clouds | Desktops, testing, development |
| Examples: ESXi, Hyper-V, KVM, Xen | Examples: VirtualBox, VMware Workstation |
Common mistakes and limitations. Mistake: using Type 2 hypervisors for production servers — they add the host OS layer, reducing performance and reliability. Mistake: thinking the hypervisor alone is enough — production needs management software (backups, monitoring, HA) beyond the hypervisor.
Exam-ready answer points. Define hypervisor; contrast Type 1 vs Type 2 with examples; name management functions (create, monitor, migrate, snapshot).
Self-check questions with answers.
- Which hypervisor type is used for production servers? Answer: Type 1 (bare metal), e.g., ESXi, Hyper-V, KVM, Xen.
- Name one Type 2 hypervisor. Answer: VirtualBox or VMware Workstation.
3.7 virtual infrastructure requirements
Plain-language definition and why it matters. Virtual infrastructure requirements are the hardware and software needed to run virtualization. Planning them correctly avoids under-powered hosts, failed live migrations, and wasted spend.
Core theory. Hardware requirements: 64-bit CPU with virtualization extensions (Intel VT-x or AMD-V) enabled in BIOS/UEFI; sufficient RAM (sum of guest VMs plus host overhead, with headroom); storage (fast disks/SSD or shared SAN for VM images and live migration); network (gigabit+ NICs, separate networks for management, storage, and VM traffic). Software requirements: hypervisor (Type 1 or 2), guest OS images, management platform, shared storage for features like live migration and HA, and a cluster of hosts for high availability.
Syntax / notation. Conceptual; sizing formula (illustrative): host_RAM ≥ Σ(guest_RAM) + host_overhead + headroom.
Worked example. Sizing a host for 20 VMs, each needing 2 vCPU and 8 GB RAM. Steps: (1) guest RAM total = 20 × 8 GB = 160 GB; (2) add host overhead ~4 GB and 20% headroom (~33 GB) → ~197 GB, so choose 256 GB RAM; (3) vCPU = 20 × 2 = 40 vCPU; choose a host with enough cores (e.g., 2×20-core = 40 physical threads, noting vCPU can be oversubscribed carefully); (4) storage: 20 VMs × 100 GB = 2 TB, use SSD/SAN; (5) networking: dual 10 GbE NICs (one for management, one for VM/storage traffic); (6) enable VT-x/AMD-V in BIOS. Intermediate check: confirm the CPU supports the required 64-bit guest instruction set.
Realistic use case. A small company builds a three-host private cloud cluster with shared SAN so VMs can live-migrate during host maintenance.
Comparison table.
| Minimum | Recommended |
|---|---|
| VT-x/AMD-V CPU | Multiple cores, modern generation |
| Just enough RAM for guests | RAM + 20–30% headroom |
| Local disk | Shared SSD/SAN for migration/HA |
| Single NIC | Separate management/storage/VM networks |
Common mistakes and limitations. Mistake: disabling virtualization extensions in BIOS, so VMs won't start or run very slowly. Mistake: under-provisioning RAM — the most common cause of virtualization performance problems. Limitation: live migration between hosts requires compatible CPUs and shared storage; not all hosts can participate in the same cluster.
Exam-ready answer points. List hardware requirements (64-bit CPU with VT-x/AMD-V, RAM, storage, NICs) and software requirements (hypervisor, management, shared storage); explain sizing with headroom.
Self-check questions with answers.
- Name one CPU requirement for virtualization. Answer: 64-bit processor with virtualization extensions (Intel VT-x or AMD-V).
- Name one software requirement. Answer: hypervisor (or management platform / shared storage for live migration).
Key terms (Units 1–3)
cloud computing · NIST characteristics · on-demand self-service · broad network access · resource pooling · rapid elasticity · measured service · IaaS · PaaS · SaaS · public cloud · private cloud · community cloud · hybrid cloud · cloud reference model · cloud consumer · cloud provider · cloud carrier · cloud auditor · cloud broker · SOA · service contract · service registry · shared responsibility · security · trust · privacy · encryption · IAM · SLA · data sovereignty · auto-scaling · load balancing · infrastructure as code · cloud bursting · multi-cloud · rehost · replatform · refactor · repurchase · retire · retain · virtualization · hypervisor · Type 1 · Type 2 · full virtualization · paravirtualization · OS-level virtualization · containers · hardware-assisted virtualization · VM · vCPU · server consolidation · VM sprawl · snapshot · live migration · virtual infrastructure requirements
Unit summary (Units 1–3)
Unit 1: Introduction to Cloud Computing — definition, evolution (mainframe → client-server → grid → cloud), five NIST characteristics, deployment models (public/private/community/hybrid), service models (IaaS/PaaS/SaaS), benefits and challenges, applications, cloud storage types (block/file/object), service requirements (SLA, security, compliance, egress, exit), dynamic infrastructure and auto-scaling, and cloud adoption phases and the 6 Rs. Unit 2: Cloud Computing Architecture — cloud reference layers and NIST actors; IaaS/PaaS/SaaS responsibility split; deployment models in depth; cloud bursting; hybrid vs multi-cloud; SOA principles and cloud service composition; security, trust, privacy, and shared responsibility. Unit 3: Cloud Virtualization Technology — virtualization and hypervisors, techniques (full/para/OS-level/hardware-assisted), types (server/storage/network/desktop/application), implementation levels (ISA/hardware/OS/library/application), benefits (consolidation, isolation, snapshots), server virtualization, Type 1 vs Type 2 hypervisors, and virtual infrastructure hardware/software requirements.
Detailed practice questions and answer keys
-
Define cloud computing and list the five NIST essential characteristics with one-line meanings. Answer: Cloud computing is the on-demand delivery of computing services over the internet, typically pay-as-you-go. Five characteristics: (1) on-demand self-service — users provision without provider interaction; (2) broad network access — resources reachable over standard networks; (3) resource pooling — multi-tenant resources dynamically assigned; (4) rapid elasticity — capacity scales quickly, appearing unlimited; (5) measured service — usage monitored, controlled, reported, and billed.
-
Contrast IaaS, PaaS, and SaaS using a responsibility table. Answer: IaaS — provider manages hardware/virtualization; customer manages OS, middleware, apps, data (e.g., EC2). PaaS — provider manages through runtime; customer manages apps and data (e.g., App Engine). SaaS — provider manages everything; customer only uses and configures (e.g., Gmail).
-
Compare public, private, community, and hybrid clouds. Answer: Public — provider-owned, multi-tenant, open to all, low cost. Private — dedicated to one organization, high control, high cost. Community — shared by organizations with common concerns, shared governance. Hybrid — two or more clouds integrated, enabling cloud bursting; differs from multi-cloud (multiple clouds, often all public).
-
Explain the shared responsibility model and give two customer-side security controls. Answer: Provider secures the cloud (physical, hypervisor, host); customer secures in the cloud (guest OS, applications, data, identity, configuration). Customer controls: IAM least-privilege roles, encryption at rest/in transit, security groups/firewalls, logging and monitoring, not exposing SSH to the internet.
-
Describe server virtualization and the hypervisor's role. Answer: A hypervisor on a physical host creates VMs, each with virtual CPU, RAM, disk, and NIC, running its own guest OS. The hypervisor schedules vCPU on physical cores and maps virtual memory to physical memory; VMs are isolated, so one guest crash does not affect others.
-
Contrast Type 1 and Type 2 hypervisors with examples. Answer: Type 1 (bare metal) runs directly on hardware — ESXi, Hyper-V, KVM, Xen — for production/cloud. Type 2 (hosted) runs on a host OS — VirtualBox, VMware Workstation — for desktops and testing.
-
List five virtualization benefits and explain server consolidation with a numeric example. Answer: Benefits: consolidation, isolation, hardware independence, snapshots/cloning, sandboxing, high availability/disaster recovery, energy savings. Consolidation example: 10 underused physical servers virtualized onto 2 hosts (5:1 ratio), decommissioning 8 servers and cutting power/cooling cost.
-
Outline cloud adoption phases and the 6 migration strategies. Answer: Phases: assess, plan, migrate, operate. 6 Rs: Rehost (lift-and-shift), Replatform (small optimization), Refactor/re-architect (redesign cloud-native), Repurchase (move to SaaS), Retire (decommission), Retain (keep on-premise).
-
Explain cloud bursting in a hybrid cloud. Answer: Routine workloads run on private cloud; during peak demand, excess traffic overflows ("bursts") into public cloud, then public instances are shut down after the peak. Requires integrated networking, identity, and security across environments.
-
List virtual infrastructure hardware requirements. Answer: 64-bit CPU with virtualization extensions (Intel VT-x/AMD-V) enabled, sufficient RAM (guests + overhead + headroom), fast storage (SSD/SAN, shared for live migration), gigabit+ NICs with separate management/storage/VM networks; plus hypervisor and management software.
References from the source syllabus
- TU document: https://portal.tu.edu.np/downloads/BCA_Syllabus-compressed_compre_2024_01_30_18_33_22.pdf
- Location: PDF p. 109-112
- Source file: the course outline
- SHA-256: sha256:d126d513c1051b176b03e56e067608546786d279b596b7b431ecff4d944496cb
- Original course code: CACS402; mapped course code: BCA451; curriculum key: 2018; semester: 7.
- Class load: 6 Hrs./Week (Theory: 3 Hrs, Practical: 3 Hrs); Credits: 3.
Note: The 2018 curriculum key cites older TU source material; confirm the edition before publication. This guide covers Units 1–3 only and follows an archived outline; it is not a new 2025 detailed micro-syllabus.
Unit 4: Map Reduce
Key terms
- Parallel computing: simultaneous execution of computations using multiple processors.
- Speedup: ratio of serial execution time to parallel execution time.
- Efficiency: speedup divided by the number of processors.
- Map function: transforms input key-value pairs into intermediate key-value pairs.
- Reduce function: merges all intermediate values associated with the same intermediate key.
- Master node: assigns tasks and tracks worker status in MapReduce infrastructure.
- Worker node: executes map and reduce tasks on data splits.
4.1 Introduction to parallel computing
Plain-language definition. Parallel computing means breaking a problem into smaller parts and solving those parts at the same time on multiple processors instead of one after another on a single processor. It matters because many cloud workloads (video rendering, scientific simulations, web search) are too large for one machine to finish in reasonable time.
Core theory. Parallel computing can be classified by granularity: bit-level, instruction-level, data, and task parallelism. Data parallelism applies the same operation to many data elements; task parallelism runs different tasks concurrently. Two fundamental limits govern gains: Amdahl's Law and communication overhead. Amdahl's Law states:
Speedup = 1 / [(1 - P) + (P / N)]
P = parallelizable fraction of the program (0 to 1), N = number of processors.
Worked example. A program takes 100 seconds serially. 80 seconds (P = 0.8) can be parallelized across 4 processors (N = 4).
Serial part: 100 - 80 = 20 seconds
Parallel part on 4 processors: 80 / 4 = 20 seconds
Total parallel time: 20 + 20 = 40 seconds
Speedup: 100 / 40 = 2.5
Efficiency: 2.5 / 4 = 0.625 (62.5%)
Even with perfect parallel code, adding more processors yields diminishing returns because the serial part (20 seconds) cannot shrink.
Use case. Weather forecasting divides the atmosphere into a grid; each processor computes weather for one grid cell for the same time step, then results are exchanged before the next step.
Comparison.
| Concept | Meaning | Example |
|---|---|---|
| Serial computing | One task after another on one processor | A calculator adding a list one by one |
| Parallel computing | Multiple parts at once on multiple processors | Four processors each adding a quarter of the list |
| Distributed computing | Parallel across networked machines | Cloud cluster processing web logs |
Common mistakes. Assuming speedup equals processor count (ignoring the serial fraction and communication cost); parallelizing a tiny problem where communication overhead exceeds compute gain.
Exam-ready answer points. Define parallel computing; state Amdahl's Law formula and variable meanings; explain why speedup is limited by the serial fraction; distinguish data and task parallelism.
Likely question patterns. "Explain Amdahl's Law with an example." "Differentiate serial and parallel computing." "Why does adding processors not always reduce execution time linearly?"
Self-check questions.
- If 90% of a program is parallelizable and you use 10 processors, what is the theoretical speedup? Answer: 1 / [0.1 + (0.9 / 10)] = 1 / 0.19 ≈ 5.26.
- Name one reason actual speedup is lower than theoretical speedup. Answer: communication overhead between processors / the serial fraction.
mermaid
flowchart TD
A[Problem] --> B[Split into independent parts]
B --> C[Processor 1 computes part A]
B --> D[Processor 2 computes part B]
B --> E[Processor N computes part N]
C --> F[Combine partial results]
D --> F
E --> F
F --> G[Final result]
A problem is divided into independent parts computed simultaneously by multiple processors, then partial results are combined into the final result.
4.2 Map-reduce model
Plain-language definition. MapReduce is a programming model for processing large datasets across many machines in two stages: Map transforms input into intermediate key-value pairs, and Reduce merges values sharing the same key. It matters because it lets programmers write distributed data jobs without managing network failures, task scheduling, or disk I/O manually.
Core theory. Input data is split into chunks. The Map phase runs a user-defined map function over each chunk, emitting (key, value) pairs. Intermediate pairs are shuffled and sorted by key so all values for one key go to the same reducer. The Reduce phase runs a user-defined reduce function over each (key, list of values) group and emits the final output.
Map: (k1, v1) → list(k2, v2) Reduce: (k2, list(v2)) → list(v3)
Worked example — word count across two input splits.
Split 1: "cloud cloud cloud" Split 2: "cloud map reduce map"
Map outputs:
- (cloud, 1), (cloud, 1), (cloud, 1)
- (cloud, 1), (map, 1), (reduce, 1), (map, 1)
Shuffle groups by key:
- cloud → [1, 1, 1, 1]
- map → [1, 1]
- reduce → [1]
Reduce sums each list:
- (cloud, 4), (map, 2), (reduce, 1)
Use case. A retail company counts daily sales per product across millions of transactions stored on a cloud cluster.
Comparison.
| Phase | Input | Output | Purpose |
|---|---|---|---|
| Map | Input split records | Intermediate (key, value) pairs | Transform and filter |
| Reduce | Grouped (key, list of values) | Final results | Aggregate and summarize |
Swipe to see all columns
Common mistakes. Emitting non-serializable keys; assuming reducers see values in arrival order (they do not); writing stateful map/reduce functions (jobs may retry on different nodes).
Exam-ready answer points. Describe map, shuffle/sort, and reduce steps with input/output types; give the word-count example trace; explain why the shuffle guarantees all values of a key reach one reducer.
Likely question patterns. "Explain the MapReduce model with an example." "Trace word count through map and reduce phases." "What happens during the shuffle phase?"
Self-check questions.
- In word count, what does the map function emit for each word? Answer: (word, 1).
- What is the purpose of the shuffle phase? Answer: to group all intermediate values with the same key and send them to the same reducer.
mermaid
flowchart TD
A[Input splits] --> B[Map: (k1,v1) -> list(k2,v2)]
B --> C[Shuffle and sort by key]
C --> D[Reduce: (k2, list v2) -> list v3]
D --> E[Final output]
Input is mapped into intermediate pairs, shuffled so equal keys gather together, then reduced to final outputs.
4.3 Applications of map reduce
Plain-language definition. MapReduce applies to any large computation expressible as independent per-record transformations followed by aggregation by key. Common applications include grep, sort, term-vector construction, inverted index construction, and PageRank. It matters because these workloads appear in web search, log analysis, and data warehousing.
Core theory.
- Grep: map emits matching lines; reduce passes them through unchanged.
- Sort: map emits (line, null); reduce sorts values by key and emits sorted lines.
- Inverted index: map emits (word, docID) for each word in each document; reduce groups by word and emits (word, [docID1, docID2, ...]).
- PageRank: map distributes a page's rank to its out-links; reduce sums incoming rank per page and recomputes ranks iteratively.
Worked example — inverted index from two documents.
Doc 1 (id=1): "cloud computing" Doc 2 (id=2): "cloud storage"
Map outputs:
- (cloud, 1), (computing, 1)
- (cloud, 2), (storage, 2)
Shuffle groups:
- cloud → [1, 2]
- computing → [1]
- storage → [2]
Reduce outputs:
- (cloud, [1, 2]), (computing, [1]), (storage, [2])
Use case. A search engine builds an inverted index over billions of web pages so a query like "cloud" returns the list of pages containing that word.
Comparison.
| Application | Map emits | Reduce produces |
|---|---|---|
| Grep | (matching line, null) | matching lines |
| Sort | (line, null) | sorted lines |
| Inverted index | (word, docID) | (word, list of docIDs) |
Common mistakes. Confusing sort stability (MapReduce sort is by key only, not secondary keys unless designed); expecting a single reduce to finish before others (reducers run independently).
Exam-ready answer points. List at least four MapReduce applications; trace inverted index construction; explain how PageRank distributes rank across map and reduce phases.
Likely question patterns. "Explain any two applications of MapReduce." "How is an inverted index built using MapReduce?" "Describe sort using MapReduce."
Self-check questions.
- In inverted index construction, what key does the map phase emit? Answer: each word.
- What does reduce output for inverted index? Answer: (word, list of document IDs containing that word).
4.4 Parallel efficiency of Map-Reduce
Plain-language definition. Parallel efficiency measures how well added processors translate into reduced runtime. It matters because a MapReduce job on 100 machines should not take longer than one on 10 machines due to scheduling, data movement, or skew.
Core theory. Speedup S(N) = T(1) / T(N). Efficiency E(N) = S(N) / N. Ideally S(N) = N and E(N) = 1 (100%). In practice efficiency falls because of: (1) the serial fraction (Amdahl's Law), (2) data skew where one reducer gets far more keys than others, (3) network and disk shuffle costs, (4) task startup and heartbeat overhead.
Worked example. A job takes 200 seconds serially and 40 seconds on 8 processors.
Speedup S(8) = 200 / 40 = 5
Efficiency E(8) = 5 / 8 = 0.625 = 62.5%
Ideal speedup would be 8; actual speedup is 5, so 37.5% of potential parallel gain is lost to overhead and serialization.
Use case. A nightly log-analysis MapReduce job: doubling the cluster from 20 to 40 nodes cuts runtime from 60 to 35 minutes, not 30, because shuffle traffic and reducer skew grow with node count.
Comparison.
| Metric | Formula | Ideal value | Meaning |
|---|---|---|---|
| Speedup | T(1) / T(N) | N | How many times faster |
| Efficiency | Speedup / N | 1 (100%) | Fraction of ideal speedup achieved |
Swipe to see all columns
Common mistakes. Reporting speedup without measuring the serial baseline on identical hardware; ignoring skew where a "hot key" makes one reducer a bottleneck.
Exam-ready answer points. Define speedup and efficiency formulas with units (seconds, processors, dimensionless ratio); compute efficiency from a worked example; list causes of efficiency loss in MapReduce.
Likely question patterns. "Define speedup and parallel efficiency." "A job takes X seconds serially and Y seconds on N processors — compute speedup and efficiency." "Why is MapReduce efficiency usually below 100%?"
Self-check questions.
- If a job runs in 120 seconds serially and 30 seconds on 6 processors, what are speedup and efficiency? Answer: Speedup = 120/30 = 4; Efficiency = 4/6 ≈ 66.7%.
- Name one cause of reduced MapReduce efficiency besides Amdahl's serial fraction. Answer: data skew / shuffle network cost / task startup overhead.
mermaid
flowchart LR
A[Serial time T(1)] --> B[Parallel time T(N)]
B --> C[Speedup = T(1)/T(N)]
C --> D[Efficiency = Speedup / N]
D --> E[Ideal: Efficiency = 100%]
Efficiency compares achieved speedup against the ideal of one times speedup per added processor.
4.5 MapReduce infrastructure
Plain-language definition. MapReduce infrastructure is the system layer that runs map and reduce tasks on a cluster: it splits data, assigns tasks to workers, monitors progress, handles failures, and retries work. It matters because it hides hardware faults and network issues from the application programmer.
Core theory. The architecture has a master node and worker nodes. The master divides input into splits (typically 16–64 MB each), assigns map tasks to workers near the data (data locality), and assigns reduce tasks after maps complete. Workers send heartbeats to the master; if a worker misses heartbeats, the master reassigns its incomplete tasks elsewhere (fault tolerance). Speculative execution launches backup copies of slow tasks and takes the first result to finish.
Worked example. Six input splits, four workers (W1–W4), one master.
- Master assigns: W1→split1, W2→split2, W3→split3, W4→split4.
- W3 fails midway through split3 (no heartbeat for 60 seconds).
- Master reassigns split3 to W1 after W1 finishes split1.
- Meanwhile W4 is slow on split4; master starts speculative copy on W2; W2 finishes first, result accepted.
Use case. A nightly ETL job processing 10 TB of server logs continues correctly even when two worker VMs are preempted by the cloud provider mid-job.
Comparison.
| Component | Role |
|---|---|
| Master | Task assignment, scheduling, failure detection, bookkeeping |
| Worker | Executes map/reduce tasks, reports heartbeat, stores intermediate output locally |
Common mistakes. Assuming the master stores the actual data (it only tracks metadata); assuming one worker failure kills the whole job (tasks are retried); ignoring that reduce tasks cannot start until all maps finish.
Exam-ready answer points. Describe master/worker roles; explain heartbeat-based failure detection and task reassignment; explain speculative execution; state that reducers wait for all mappers.
Likely question patterns. "Describe MapReduce infrastructure architecture." "How does MapReduce handle worker failure?" "What is speculative execution and why is it used?"
Self-check questions.
- What does a worker send to the master periodically? Answer: a heartbeat.
- What happens if a worker stops sending heartbeats? Answer: the master marks it failed and reassigns its tasks.
mermaid
sequenceDiagram
participant M as Master
participant W1 as Worker 1
participant W2 as Worker 2
M->>W1: Assign map task split-1
M->>W2: Assign map task split-2
W1->>M: Heartbeat (alive)
W2->>M: Heartbeat (stopped)
M->>W1: Reassign split-2 (failure recovery)
M->>W1: Assign speculative copy of split-3
W1->>M: Task complete (first finisher)
The master assigns tasks, watches heartbeats, reassigns work from failed workers, and launches speculative copies of slow tasks.
Unit 5: Cloud Security
Key terms
- CIA triad: Confidentiality, Integrity, Availability — the core goals of information security.
- Threat: a potential cause of harm to an asset.
- Vulnerability: a weakness that a threat can exploit.
- Risk: likelihood and impact of a threat exploiting a vulnerability.
- Multi-tenancy: multiple customers sharing the same physical infrastructure.
- RBAC: Role-Based Access Control — permissions assigned to roles, not individuals.
- MFA: Multi-Factor Authentication — proof using two or more factors.
- VM escape: an attack breaking out of a virtual machine to the hypervisor.
5.1 Introduction to Security
Plain-language definition. Security is the practice of protecting information and systems from unauthorized access, use, disclosure, disruption, modification, or destruction. It matters in cloud computing because data and computation move from a user's own hardware to shared infrastructure operated by a provider.
Core theory. The CIA triad defines security goals:
- Confidentiality: only authorized parties can read data (encryption, access control).
- Integrity: data is not altered improperly (hashes, signatures, change detection).
- Availability: systems and data are usable when needed (redundancy, backups, DDoS protection).
Related terms: an asset is anything of value; a threat is any event that could harm an asset; a vulnerability is a weakness a threat can exploit; risk is the combination of likelihood and impact of a threat exploiting a vulnerability.
Worked example. A hospital stores patient records in the cloud.
- Confidentiality control: records are encrypted; only treating clinicians have decryption keys.
- Integrity control: each record is hashed; the hash is recomputed on read to detect tampering.
- Availability control: records are replicated across two regions; if one region fails, the other serves requests.
Use case. An e-commerce site protects customer credit-card numbers using encryption (confidentiality), transaction logs with tamper-evident hashing (integrity), and redundant servers across zones (availability).
Comparison.
| Security goal | Question it answers | Example control |
|---|---|---|
| Confidentiality | Who can read the data? | Encryption, access control |
| Integrity | Has the data changed? | Hashes, digital signatures |
| Availability | Is the system up when needed? | Backups, redundancy, failover |
Common mistakes. Confusing a threat with a vulnerability (a threat is the danger; a vulnerability is the open door); focusing only on confidentiality while ignoring availability (backups untested).
Exam-ready answer points. Define the CIA triad with one example control per goal; define asset, threat, vulnerability, and risk; explain why all three goals are needed together.
Likely question patterns. "Explain the CIA triad in cloud computing." "Distinguish threat, vulnerability, and risk." "Why is availability part of security?"
Self-check questions.
- What does the "I" in CIA stand for? Answer: Integrity.
- Give one example of a vulnerability. Answer: unpatched software, weak password, or open cloud storage bucket (any one).
5.2 Cloud Security challenges and Risks
Plain-language definition. Cloud security challenges arise because resources are shared, accessed over the internet, and operated by a provider the customer does not fully control. Risks include data breaches, account hijacking, insecure APIs, and insider threats. It matters because a single misconfiguration can expose data to the public internet.
Core theory. Major cloud security challenges:
- Data breaches: attackers exfiltrate stored data.
- Account hijacking: stolen credentials give attackers control of cloud resources.
- Insecure APIs: poorly protected management APIs let attackers create, read, or delete resources.
- Insider threats: provider or customer employees misuse access.
- Shared technology issues: one customer's VM affects another on the same hardware.
- Data loss: accidental deletion or provider failure without backups.
Worked example. A developer uploads a database backup to cloud storage and forgets to set it to private.
Risk scenario:
1. Backup bucket created with default "public read" access.
2. Backup contains customer names and email addresses.
3. Attacker scans the internet, finds the open bucket, downloads all records.
4. Impact: regulatory fines, loss of customer trust, mandatory breach notification.
Use case. A startup hosts its application on a public cloud; an exposed admin API allows anyone to delete customer accounts, so the team adds authentication and IP restrictions.
Comparison.
| Risk | Cause | Typical consequence |
|---|---|---|
| Data breach | Weak access control or encryption | Stolen customer data |
| Account hijacking | Stolen credentials, no MFA | Full resource control by attacker |
| Insecure API | Missing authentication on APIs | Unauthorized create/read/delete |
Common mistakes. Treating "cloud is secure by default" as true (responsibility is shared); using default passwords on cloud management consoles.
Exam-ready answer points. List at least four cloud security challenges with short descriptions; explain shared responsibility basics; give one worked risk scenario.
Likely question patterns. "Explain cloud security challenges and risks." "What is account hijacking in cloud computing?" "Describe a data breach scenario in the cloud."
Self-check questions.
- Name two cloud security challenges. Answer: data breaches and account hijacking (accept any two from the list).
- Why is an insecure API a risk? Answer: attackers can use it to read, create, modify, or delete cloud resources without permission.
5.3 Software-as-a-Service Security
Plain-language definition. SaaS security concerns protecting software delivered over the internet (email, CRM, office suites) where the provider manages the application and infrastructure, and the customer manages its users and data. It matters because customers cannot patch the application themselves; they must configure the provider's security controls correctly.
Core theory. Responsibility is shared:
- Provider secures: the application code, underlying servers, network, physical data centers, and patching.
- Customer secures: user accounts, authentication (SSO/MFA), data classification, sharing settings, user offboarding, and configuration of the SaaS tenant.
Key SaaS security controls: data isolation between tenants, strong authentication with MFA, single sign-on (SSO), audit logging of user actions, encryption of data at rest and in transit, and API access tokens with least privilege.
Worked example. A company uses a SaaS CRM.
Customer security checklist:
1. Enforce MFA for all CRM users.
2. Connect CRM login to corporate SSO.
3. Set sharing so sales reps see only their region's leads.
4. Disable accounts immediately when employees leave.
5. Review audit logs monthly for bulk data exports.
If step 3 is missed, one sales rep can download every lead in the company — a data exposure caused by customer misconfiguration, not a provider bug.
Use case. A school adopts SaaS email for students and staff; IT enables MFA and disables automatic email forwarding to outside addresses to prevent data exfiltration.
Comparison.
| Layer | IaaS customer secures | PaaS customer secures | SaaS customer secures |
|---|---|---|---|
| Physical, hypervisor | Provider | Provider | Provider |
| OS, runtime | Customer | Provider | Provider |
| Application, data | Customer | Customer | Customer (configuration & users) |
Swipe to see all columns
Common mistakes. Believing the provider backs up and restores customer data on demand (not always true); sharing admin credentials among multiple users (no accountability).
Exam-ready answer points. Describe shared responsibility in SaaS; list customer-controlled SaaS security controls; explain tenant data isolation; give a misconfiguration consequence example.
Likely question patterns. "Explain SaaS security and shared responsibility." "What security tasks remain with the customer in SaaS?" "How does multi-tenant data isolation work in SaaS?"
Self-check questions.
- In SaaS, who patches the application? Answer: the provider.
- Name one customer responsibility in SaaS security. Answer: user authentication/MFA, access configuration, or offboarding (any one).
5.4 Security Monitoring
Plain-language definition. Security monitoring continuously collects and analyzes logs and events from cloud resources to detect attacks or policy violations as they happen. It matters because cloud resources are created and destroyed rapidly; without monitoring, a breach can go unnoticed for months.
Core theory. Monitoring pipeline: collect logs (VM, network, application, API audit logs) → normalize and store → correlate and alert (rules or anomaly detection) → respond. Tools categories: SIEM (Security Information and Event Management), IDS (Intrusion Detection System, alerts only), IPS (Intrusion Prevention System, blocks traffic). Key log sources: login events, API calls, firewall logs, object storage access logs.
Worked example. An admin account calls the "delete database" API at 3:00 AM from a new country.
Monitoring trace:
1. Cloud API audit log records: user=admin, action=DeleteDatabase, time=03:00, source IP=new country.
2. SIEM rule matches: "destructive API call outside business hours from unusual location."
3. Alert generated with severity Critical; security team receives notification.
4. Team verifies with the admin; if unauthorized, revokes session and restores from backup.
Use case. A bank monitors all cloud storage bucket policy changes; an alert fires when a bucket becomes public, and automation reverts the policy within minutes.
Comparison.
| Tool | Detects? | Prevents? | Example use |
|---|---|---|---|
| IDS | Yes | No | Alert on port scan |
| IPS | Yes | Yes | Block malicious IP |
| SIEM | Yes (across sources) | No (alerts only) | Correlate login + API delete |
Swipe to see all columns
Common mistakes. Collecting logs but never reviewing them (alert fatigue); alerting on every minor event so real incidents are missed; not centralizing logs, so an attacker who deletes logs on one VM removes all evidence.
Exam-ready answer points. Describe the monitoring collection→correlate→alert pipeline; distinguish IDS vs IPS vs SIEM; give an example detection scenario; explain why centralized logging matters.
Likely question patterns. "Explain security monitoring in the cloud." "Distinguish IDS and IPS." "What is SIEM and how is it used?"
Self-check questions.
- What does IDS stand for? Answer: Intrusion Detection System.
- What is the difference between IDS and IPS? Answer: IDS only alerts; IPS can also block traffic.
mermaid
flowchart LR
A[Cloud logs: VM, API, network, app] --> B[Collect & centralize]
B --> C[Correlate / rules & anomaly detection]
C --> D[Alert: security team]
D --> E[Respond: revoke, restore, block]
Logs flow from cloud resources into centralized monitoring, where rules detect anomalies and trigger response.
5.5 Security Architecture Design
Plain-language definition. Security architecture design plans how security controls are layered across a cloud system so that no single failure exposes everything. It matters because retrofitting security after deployment is more expensive and less effective than designing it in from the start.
Core theory. Principles: defense in depth (multiple layers, so one layer's failure is caught by another), least privilege (each component gets only the permissions it needs), fail-safe (failures default to secure), separation of duties (no single person can approve and execute a sensitive action), and zero trust (verify every request, never trust by network location).
Layers example: network (firewalls, VPCs, security groups), identity (MFA, SSO), data (encryption, key management), application (input validation), and operations (monitoring, logging, incident response).
Worked example. Designing a cloud web application:
Layer 1 Network: public load balancer in a public subnet; app servers in private subnets; security groups allow only ports 80/443 from the load balancer.
Layer 2 Identity: users authenticate with MFA; app service uses a role with read-only access to its database.
Layer 3 Data: database encrypted at rest; TLS 1.2 in transit.
Layer 4 Monitoring: API audit logs sent to SIEM; alerts on failed logins and config changes.
If an attacker compromises the web server, the private subnet and least-privilege role limit what they can reach.
Use case. An enterprise moves payroll to the cloud and designs architecture so HR and Finance roles cannot approve and execute the same payment (separation of duties).
Comparison.
| Principle | Meaning | Cloud example |
|---|---|---|
| Defense in depth | Multiple independent layers | Firewall + WAF + app validation + encryption |
| Least privilege | Minimum needed permissions | DB role can read but not drop tables |
| Zero trust | Verify every request | MFA required even from corporate network |
Common mistakes. Relying on a single layer (only a firewall, no encryption); giving every service a full-admin key for convenience.
Exam-ready answer points. Define defense in depth and least privilege; describe security layers in a cloud architecture; explain separation of duties with an example; state why architecture should be designed before deployment.
Likely question patterns. "Explain security architecture design principles." "What is defense in depth?" "Describe layers of cloud security architecture."
Self-check questions.
- What does least privilege mean? Answer: each user/service gets only the permissions it needs to do its job.
- Name two layers of cloud security architecture. Answer: network and identity (also data, application, operations).
5.6 Data Security
Plain-language definition. Data security protects data from unauthorized access, modification, or loss throughout its life: at rest (stored), in transit (moving over networks), and in use (being processed). It matters because data is often the most valuable cloud asset and the target of most attacks.
Core theory. Controls: encryption at rest (provider-managed or customer-managed keys), encryption in transit (TLS), key management (rotation, storage in a dedicated key service, not alongside data), data classification (public/internal/confidential), data loss prevention (DLP) scanning, and secure deletion.
Worked example — envelope encryption concept.
Data: "salary = 50000"
1. Generate a data encryption key (DEK).
2. Encrypt data with DEK → ciphertext.
3. Encrypt DEK with a master key (KEK) → wrapped DEK.
4. Store ciphertext + wrapped DEK together.
5. To decrypt: unwrap DEK with KEK, then decrypt data with DEK.
Rotating the master key only requires rewrapping DEKs, not re-encrypting all data.
Use case. A health app encrypts patient records at rest with AES-256 and in transit with TLS; only the patient's care team holds decryption access.
Comparison.
| State | Risk | Primary control |
|---|---|---|
| At rest | Unauthorized disk access | Encryption at rest + access control |
| In transit | Network eavesdropping | TLS / HTTPS |
| In use | Memory scraping by malware | Hardware isolation, confidential computing |
Common mistakes. Storing encryption keys in the same bucket as encrypted data (equivalent to no encryption); losing the only copy of a key (data becomes unrecoverable).
Exam-ready answer points. Define encryption at rest vs in transit with examples; describe key management and rotation; explain envelope encryption briefly; give one data-security failure scenario.
Likely question patterns. "Explain data security in cloud computing." "How is data protected at rest and in transit?" "What is key management and why does it matter?"
Self-check questions.
- What protocol commonly protects data in transit over the web? Answer: TLS/HTTPS.
- Why should keys not be stored with the encrypted data? Answer: anyone who gets the data also gets the key and can decrypt.
5.7 Application Security
Plain-language definition. Application security builds secure software so attackers cannot exploit the application to steal data, run commands, or deface services. It matters because cloud applications are reachable from the public internet and are frequent attack targets.
Core theory. Common vulnerabilities: injection (SQL injection, command injection), cross-site scripting (XSS), broken authentication, insecure direct object references, and security misconfiguration. Controls: input validation, output encoding, parameterized queries, secure SDLC (threat modeling, code review, testing), and dependency scanning.
Worked example — SQL injection and fix.
Vulnerable code (pseudo):
query = "SELECT * FROM users WHERE username = '" + input + "'"
Attacker input: admin' --
Resulting SQL: SELECT * FROM users WHERE username = 'admin' --' (comment removes password check)
Fix — parameterized query:
query = "SELECT * FROM users WHERE username = ?"
execute(query, [input])
The ? placeholder treats input as data, not executable SQL, so admin' -- is looked up as a literal username and no rows match.
Use case. A cloud-hosted login form uses parameterized queries so an attacker cannot bypass authentication with admin' --.
Comparison.
| Vulnerability | How it works | Prevention |
|---|---|---|
| SQL injection | Attacker injects SQL via input fields | Parameterized queries |
| XSS | Attacker injects scripts executed in other users' browsers | Output encoding, input validation |
| Broken auth | Weak session handling or credentials | MFA, strong session tokens |
Common mistakes. Trusting input from "internal" users; displaying raw error messages that reveal database structure to attackers.
Exam-ready answer points. Name three application vulnerabilities with how each works; show a parameterized-query fix for SQL injection; explain output encoding for XSS; describe secure SDLC steps.
Likely question patterns. "Explain SQL injection with an example and fix." "What is XSS and how is it prevented?" "List common web application vulnerabilities."
Self-check questions.
- What does a parameterized query do with user input? Answer: treats it as data, not executable SQL.
- What does XSS stand for? Answer: Cross-Site Scripting.
5.8 Virtual Machine Security
Plain-language definition. Virtual machine security protects guest VMs and the hypervisor layer that runs them, including preventing attacks where a compromised guest escapes to attack other guests or the host. It matters because cloud compute is usually delivered as VMs sharing physical hardware.
Core theory. Hypervisor types: Type 1 (bare metal, runs directly on hardware, e.g., enterprise cloud hosts) and Type 2 (runs on a host OS, e.g., desktop virtualization). Risks: VM escape (guest breaks out to hypervisor), side-channel attacks (one VM infers another's data via shared CPU caches), hypervisor vulnerabilities, and unpatched guest OS. Controls: hypervisor hardening, patching guests, isolating management networks, disabling unused virtual devices, and VM introspection/agent-based monitoring.
Worked example. Two VMs on one physical host: VM-A (customer A) and VM-B (customer B).
Risk: VM-A runs malware that exploits a hypervisor bug to read VM-B's memory (VM escape).
Controls: hypervisor patched; VMs assigned to different trust levels; unused virtual USB/CD-ROM devices disabled; hypervisor management network isolated from guest traffic.
Use case. A cloud provider hosts VMs for many unrelated customers; hardware-assisted virtualization and patched hypervisors keep customer A's VM from accessing customer B's data.
Comparison.
| Type | Runs on | Typical use |
|---|---|---|
| Type 1 hypervisor | Bare metal hardware | Public cloud hosts, enterprise virtualization |
| Type 2 hypervisor | Host operating system | Developer desktops, labs, testing |
Common mistakes. Forgetting to patch the guest OS because "the provider secures the cloud"; leaving the hypervisor management interface reachable from the public internet.
Exam-ready answer points. Define Type 1 vs Type 2 hypervisors; explain VM escape and side-channel risk; list hypervisor and guest hardening controls; state the shared responsibility for VM patching.
Likely question patterns. "Explain virtual machine security risks." "Distinguish Type 1 and Type 2 hypervisors." "What is VM escape?"
Self-check questions.
- Where does a Type 1 hypervisor run? Answer: directly on bare metal hardware.
- What is VM escape? Answer: an attack where a guest VM breaks out to the hypervisor or host.
mermaid
flowchart TD
A[Hardware] --> B[Type 1 hypervisor]
B --> C[Guest VM 1]
B --> D[Guest VM 2]
C --> E[Application A]
D --> F[Application B]
The hypervisor sits directly on hardware and isolates guest VMs from one another.
5.9 Identity Management and Access Control
Plain-language definition. Identity management proves who a user is (authentication) and decides what they may do (authorization). Access control enforces those decisions consistently across cloud resources. It matters because cloud resources are accessed over the internet, so identity is the new perimeter.
Core theory. Authentication factors: something you know (password), something you have (phone/token), something you are (biometric). MFA requires two or more factors. Authorization models: RBAC (permissions assigned to roles; users assigned to roles), ABAC (permissions based on attributes like department, location, time). SSO lets one login access multiple applications. Access decision flow: identify → authenticate → authorize → audit.
Worked example — RBAC in a cloud project.
Roles:
- Viewer: can read storage buckets and VMs.
- Editor: can create, update, delete resources but not manage IAM.
- Admin: full access including IAM and billing.
User Alice is assigned role Viewer on Project X.
Request: Alice tries to delete a VM in Project X.
Decision: Denied — Viewer role has no delete permission.
If Alice were assigned Editor, the same request would be allowed.
Use case. A company gives contractors the Viewer role on production and Editor only on a sandbox project, so contractors cannot accidentally delete live customer data.
Comparison.
| Model | Basis | Best for |
|---|---|---|
| RBAC | Job role | Stable teams with clear job functions |
| ABAC | Attributes (dept, location, time) | Dynamic, large, or regulated organizations |
Common mistakes. Assigning individuals permissions directly instead of roles (hard to audit at scale); giving everyone Admin "so things just work."
Exam-ready answer points. Distinguish authentication vs authorization; describe RBAC and ABAC; explain MFA and SSO; show an RBAC allow/deny decision example.
Likely question patterns. "Explain identity management and access control." "Compare RBAC and ABAC." "What is MFA and why use it in the cloud?"
Self-check questions.
- What is the difference between authentication and authorization? Answer: authentication proves identity; authorization decides what that identity may do.
- In RBAC, where are permissions assigned? Answer: to roles, not directly to users.
Unit 6: Cloud platforms and applications
Key terms
- Web service: application functionality exposed over the web via standard protocols (SOAP/REST) and described with WSDL.
- AppEngine: Google's platform for building and hosting web applications in a managed sandbox.
- Azure Platform: Microsoft's cloud platform offering compute, storage, and managed services.
- Aneka: a .NET-based cloud application platform supporting task and execution models.
- Open challenges: unresolved cloud issues such as interoperability, energy use, and data lock-in.
6.1 Web services
Plain-language definition. A web service exposes application functions over the web using standard protocols so different systems, possibly built with different languages, can interoperate. It matters because cloud platforms integrate through web services rather than direct database access.
Core theory. Architecture roles: service provider publishes a service; service consumer requests it; service registry (UDDI) helps discovery. Key standards: WSDL (Web Services Description Language, describes operations and message formats in XML), SOAP (Simple Object Access Protocol, XML-based messaging with envelope, header, body), UDDI (Universal Description, Discovery and Integration, a directory of services), and REST (Representational State Transfer, uses HTTP methods GET/POST/PUT/DELETE on resources identified by URLs).
REST request format: METHOD /resource HTTP/1.1 with headers and optional body; response includes status code (200 OK, 201 Created, 404 Not Found, 500 Server Error) and body (JSON/XML).
Worked example. A weather web service.
Request:
GET /weather?city=Kathmandu HTTP/1.1
Host: api.example.com
Accept: application/json
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{"city": "Kathmandu", "temperature": 22, "unit": "celsius"}
The consumer parses JSON and displays temperature; no direct database access is needed.
Use case. A travel booking site calls airline and hotel web services to check prices in real time.
Comparison.
| Feature | SOAP | REST |
|---|---|---|
| Message format | XML only | JSON, XML, text, HTML |
| Protocol | HTTP, SMTP, etc. | HTTP primarily |
| Coupling | High (strict contract via WSDL) | Loose |
| Typical use | Enterprise, financial transactions | Public web APIs, mobile backends |
Common mistakes. Using GET for operations that change data (violates REST semantics, can be prefetched/cached unsafely); treating WSDL as optional when SOAP clients depend on it.
Exam-ready answer points. Define web service and its roles; explain WSDL, SOAP, UDDI, REST; show a sample HTTP request/response with status codes; distinguish SOAP vs REST.
Likely question patterns. "Explain web services architecture." "Compare SOAP and REST." "What is WSDL and what does it describe?"
Self-check questions.
- What does WSDL stand for? Answer: Web Services Description Language.
- Which HTTP method is typically used to retrieve a resource in REST? Answer: GET.
mermaid
sequenceDiagram
participant C as Consumer
participant R as Registry (UDDI)
participant S as Service Provider
C->>R: Look up service
R-->>C: Return WSDL location
C->>S: SOAP/REST request
S-->>C: Response
A consumer discovers a service via a registry, reads its WSDL, then exchanges requests and responses with the provider.
6.2 AppEngine
Plain-language definition. AppEngine is a cloud platform (Google App Engine) where developers upload application code and the platform runs and scales it automatically without managing servers. It matters because it lets teams focus on code rather than operating systems, patching, or capacity planning.
Core theory. App Engine environments: Standard (sandboxed, fast startup, limited languages, free tier) and Flexible (runs in containers, more language/runtime freedom, always-running instances). Core concepts: instances (running copies of the app), automatic scaling (instances added/removed by traffic), quotas (daily limits on requests, CPU, storage), and sandbox restrictions (no local file writes, no arbitrary sockets, background task limits).
Worked example. A Python "Hello world" App Engine app (Standard):
# main.py
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return 'Hello, Cloud!'
# app.yaml
runtime: python39
entrypoint: gunicorn -b :$PORT main:app
Deployment: gcloud app deploy builds the image, creates a version, routes traffic, and scales instances based on demand. If traffic doubles, App Engine adds instances; if traffic drops to zero, instances scale down (including to zero in standard).
Use case. A startup hosts a public API on App Engine so it handles launch-day traffic spikes without manually adding servers.
Comparison.
| Feature | Standard | Flexible |
|---|---|---|
| Startup | Milliseconds, scales to zero | Slower, min instances run |
| Languages | Restricted set | Any via Docker |
| Local file system | Not writable | Writable (ephemeral) |
| Pricing | Free tier available | Billed for running instances |
Common mistakes. Writing files to local disk expecting them to persist (instances are ephemeral); assuming standard environment supports any Python package (sandbox restrictions apply).
Exam-ready answer points. Describe App Engine standard vs flexible; explain automatic scaling and instances; list sandbox restrictions; give a minimal app.yaml and main.py example.
Likely question patterns. "Explain Google App Engine." "Compare standard and flexible environments." "What are quotas in App Engine?"
Self-check questions.
- What does App Engine manage automatically? Answer: servers, scaling, patching, and capacity (accept any).
- Can App Engine standard write to the local file system? Answer: No (instances are ephemeral and sandboxed).
6.3 Azures Platform
Plain-language definition. Azure Platform (Microsoft Azure, originally Windows Azure) is a cloud platform offering compute, storage, networking, and managed services for building and running applications. It matters because it is one of the major public clouds used by enterprises, especially shops using Windows and .NET.
Core theory. Core services: Azure Virtual Machines (IaaS compute), Azure App Service (PaaS web apps), Azure Storage (blobs, queues, tables, files), Azure SQL Database (managed relational database), and Azure Active Directory (identity). Deployment models: cloud-only, hybrid (on-premises connected to Azure), and Azure Stack (Azure services on-premises). Resources are grouped into resource groups for lifecycle and billing management.
Worked example. Deploying a web app on Azure:
1. Create a resource group: myAppRG (region: East US).
2. Create an App Service plan: Free tier (F1).
3. Create a web app: mycloudapp.azurewebsites.net.
4. Push code via Git or ZIP deploy.
5. App Service provisions an IIS host, runs the app, and provides a public HTTPS endpoint.
The developer never provisions a VM or installs IIS manually.
Use case. An enterprise runs its .NET accounting application on Azure App Service with Azure SQL Database and authenticates users via Azure AD.
Comparison.
| Service | Type | Purpose |
|---|---|---|
| Azure VM | IaaS | Full control of OS, lift-and-shift |
| Azure App Service | PaaS | Host web apps without VM management |
| Azure Storage | Storage | Blobs, queues, tables, files |
| Azure SQL DB | PaaS database | Managed relational database |
Common mistakes. Placing all resources in one resource group (harder to delete or bill by project); choosing the wrong region (latency and data residency issues).
Exam-ready answer points. Name four core Azure services; distinguish IaaS VM vs PaaS App Service; describe resource groups; give a deployment sequence.
Likely question patterns. "Explain Azure Platform services." "Compare Azure VM and Azure App Service." "What is a resource group in Azure?"
Self-check questions.
- Name two core Azure services. Answer: Azure Virtual Machines and Azure App Service (accept any two from the list).
- What is a resource group used for? Answer: grouping related resources for management and billing.
6.4 Aneka
Plain-language definition. Aneka is a .NET-based cloud application platform that lets developers build distributed applications using task and execution models and run them on private or public clouds. It matters because it abstracts cloud resources so .NET applications can scale across clusters without rewriting for each infrastructure.
Core theory. Aneka components: Aneka Cloud (the cloud infrastructure), Aneka SDK (development libraries), and Aneka tools (management and monitoring). Programming models: Task model (independent tasks, e.g., parameter sweeps) and Thread model (shared-memory style threads mapped across machines). Execution: applications are submitted, the scheduler places tasks on executors, results are collected. Supports hybrid clouds (on-premise cluster + public cloud bursting).
Worked example. A parameter sweep application (simulate a model with 100 different input values).
Task model approach:
1. Create 100 tasks, each with one input value.
2. Submit to Aneka scheduler.
3. Executors run tasks in parallel across cloud VMs.
4. Results collected; fastest configuration identified.
Without Aneka, the developer would manage VMs, SSH, and result collection manually.
Use case. A financial firm runs risk simulations across thousands of market scenarios using Aneka on a private cloud, bursting to public cloud during peak months.
Comparison.
| Feature | Aneka task model | Aneka thread model |
|---|---|---|
| Parallelism | Independent tasks across machines | Shared-memory threads across machines |
| Fit | Parameter sweeps, independent jobs | Divide-and-conquer with shared data |
| Communication | Minimal between tasks | Higher (shared data) |
Common mistakes. Assuming Aneka is only for public cloud (it supports private/hybrid); expecting task model to suit tightly coupled algorithms needing constant communication.
Exam-ready answer points. Describe Aneka components; explain task and thread models with examples; name one supported cloud deployment mode; give a parameter-sweep worked example.
Likely question patterns. "Explain Aneka cloud platform." "Compare Aneka task and thread models." "What programming models does Aneka support?"
Self-check questions.
- Name one Aneka programming model. Answer: Task model or Thread model.
- What does the Aneka scheduler do? Answer: places submitted tasks on executors across the cloud.
6.5 Open challenges
Plain-language definition. Open challenges are problems in cloud computing that remain unsolved or actively researched, such as interoperability between clouds, energy efficiency, data lock-in, privacy across borders, and reliable performance. It matters because architects must design around these limitations rather than assume clouds are fully interchangeable.
Core theory. Key open challenges:
- Interoperability and standards: moving workloads between providers is hard due to different APIs and formats.
- Vendor lock-in / data lock-in: data and apps built on one provider's proprietary services are costly to move.
- Energy consumption: data centers use large amounts of power; green computing remains a challenge.
- Privacy and jurisdiction: data stored in one country may be subject to that country's laws, conflicting with the user's home-country rules.
- Performance predictability: shared resources ("noisy neighbors") can cause variable latency.
- Security at scale: managing identities, keys, and policies across thousands of resources.
Worked example. A company stores 1 PB of archives in one provider's proprietary storage format with a custom API.
Lock-in scenario:
1. All backup software is written against Provider A's API.
2. Provider A raises prices 40%.
3. Migrating to Provider B requires rewriting software and transferring 1 PB over the network (weeks of transfer, egress fees).
4. Result: high switching cost = data lock-in.
Mitigation: use open formats, keep metadata and access abstraction layers, and plan egress paths.
Use case. A multinational stores EU citizens' data in EU regions to satisfy GDPR while running compute elsewhere — addressing privacy/jurisdiction challenge.
Comparison.
| Challenge | Example symptom | Mitigation direction |
|---|---|---|
| Lock-in | Cannot move app off Provider A | Open standards, abstraction layers |
| Interoperability | APIs differ between providers | Multi-cloud tooling, containers |
| Energy | High data-center power use | Efficient scheduling, green energy |
| Jurisdiction | Data laws conflict across borders | Region selection, data residency controls |
Common mistakes. Believing all clouds are identical (they are not; APIs and SLAs differ); ignoring egress fees when planning migration.
Exam-ready answer points. List four open challenges with short explanations; describe data lock-in with a scenario; explain why interoperability matters; give one mitigation per challenge.
Likely question patterns. "Explain open challenges in cloud computing." "What is vendor lock-in and how does it occur?" "Name challenges of moving data between cloud providers."
Self-check questions.
- Name two open challenges in cloud computing. Answer: vendor lock-in and interoperability (accept any two).
- What is data lock-in? Answer: high cost/effort of moving data and applications off one cloud provider due to proprietary formats or APIs.
6.6 Scientific applications
Plain-language definition. Scientific applications are research workloads (weather modeling, genomics, physics simulations, astronomy) run on cloud platforms because they need large compute, storage, and collaboration. It matters because clouds let researchers rent supercomputer-scale capacity temporarily instead of buying it.
Core theory. Characteristics: high compute demand (CPU/GPU hours), large data sets (petabytes of sensor or sequencing data), parallelism (embarrassingly parallel or MPI-style), and collaboration (shared data and results across institutions). Cloud models used: IaaS for VM clusters, PaaS for analysis portals, SaaS for scientific instruments' web interfaces. Examples: weather forecasting (ensemble runs), bioinformatics (gene sequencing pipelines), particle physics (event processing), astronomy (sky survey image processing).
Worked example. Genomic variant calling across 1,000 human genomes.
Steps:
1. Store raw sequencing files in object storage.
2. Launch 100 VM instances, each assigned 10 genomes.
3. Each instance runs aligner + variant caller independently (embarrassingly parallel).
4. Write results to shared output bucket.
5. Terminate instances when done; pay only for hours used.
Without cloud, the lab would need 100 servers sitting idle most of the year.
Use case. A university runs a seasonal weather ensemble (50 simulations with slightly different initial conditions) on cloud VMs for two weeks, then shuts them down.
Comparison.
| Model | Fit for scientific workloads |
|---|---|
| IaaS | Full control of cluster software (MPI, schedulers) |
| PaaS | Web portals for submitting jobs and viewing results |
| SaaS | Ready-made analysis tools (no install) |
Common mistakes. Leaving large clusters running after the experiment (unexpected bills); storing the only copy of results on ephemeral instance storage (lost on termination).
Exam-ready answer points. Name three scientific application domains; explain why cloud suits temporary large-scale compute; describe the genomic variant calling example; list cloud service models used in science.
Likely question patterns. "Explain scientific applications of cloud computing." "Give an example of running a scientific workload on cloud." "Why do researchers use cloud instead of buying clusters?"
Self-check questions.
- Name one scientific application of cloud computing. Answer: weather forecasting / genomics / particle physics / astronomy (any one).
- Why is cloud attractive for a one-off large simulation? Answer: rent capacity temporarily; no need to buy and maintain idle hardware.
6.7 Business and Consumer applications
Plain-language definition. Business applications serve organizations (CRM, ERP, accounting, collaboration), while consumer applications serve individuals (email, social media, storage, streaming). Cloud delivery makes both available as services over the internet, often on subscription. It matters because most users encounter cloud computing through these applications.
Core theory. Business examples: CRM (customer relationship management), ERP (enterprise resource planning), HR/payroll, collaboration suites, file sharing and backup. Consumer examples: webmail (Gmail-style), photo/video storage, music/video streaming, social networks, online games. Common traits: multi-tenant, accessed via browser or mobile app, subscription or ad-supported, provider manages updates and infrastructure.
Worked example. A small business adopts cloud CRM and accounting.
Before: servers in the office, manual backups, software installed on each PC.
After: CRM and accounting run in the cloud; staff log in via browser; provider backs up data nightly; new staff added by creating an account, no software install.
Impact: lower upfront cost, automatic updates, access from anywhere, but dependence on internet connectivity and the provider.
Use case. A student stores class notes in consumer cloud storage and accesses them from phone, laptop, and lab computer.
Comparison.
| Aspect | Business applications | Consumer applications |
|---|---|---|
| Users | Employees, partners, customers | Individuals |
| Pricing | Per-seat or per-month subscriptions | Free tier, subscriptions, ads |
| SLA | Often guaranteed uptime with penalties | Best-effort, weaker guarantees |
| Examples | CRM, ERP, payroll | Webmail, streaming, photo storage |
Common mistakes. Choosing a consumer storage service for sensitive business records (weaker access controls, no business SLA); assuming cloud apps never need backups (provider retention is not the same as customer backup).
Exam-ready answer points. Name two business and two consumer cloud applications with examples; compare business vs consumer cloud applications; describe before/after cloud adoption for a small business; state one risk of using consumer services for business data.
Likely question patterns. "Explain business and consumer cloud applications with examples." "Compare business and consumer applications in cloud computing." "Give examples of cloud-based business applications."
Self-check questions.
- Name one business cloud application. Answer: CRM / ERP / collaboration suite / accounting (any one).
- Name one consumer cloud application. Answer: webmail / streaming / photo storage / social media (any one).
Source numbering note
The archived source numbers “Open challenges” as a second 6.4. This guide renumbers it to 6.5, then advances the next topics to 6.6 and 6.7. Unit order and topic wording remain intact. The source spells “Azures Platform”; this guide normalizes it to “Azure Platform.”