(a) Distinguish between IaaS, PaaS, and SaaS as cloud service models. For each, give one practical example and identify which layer of the computing stack the customer manages. (15 marks)
(b) Explain how server virtualization enables efficient cloud computing by discussing the roles of the hypervisor and virtual machines. (10 marks)
(c) Why might a small software startup prefer PaaS over IaaS? Justify your answer. (5 marks)
(a) Define the following core characteristics of distributed systems and explain why each is important: (i) Transparency, (ii) Scalability, (iii) Fault tolerance, (iv) Concurrency. (16 marks)
(b) Describe the Client-Server architectural model. Using a diagrammatic narration, explain how a simple web request from a browser is handled by this model. (12 marks)
(c) Identify and explain two major challenges that distributed systems face that traditional centralized systems do not. (7 marks)
(a) Explain the term middleware in the context of distributed systems. Describe how Remote Procedure Call (RPC) serves as a middleware abstraction, clearly outlining the roles of the client stub and server stub. (16 marks)
(b) State the CAP theorem and explain what it means for distributed database systems. (9 marks)
(c) A university registration system is being designed as a distributed system. It must remain available during network partitions, especially during course registration deadlines. Discuss which two CAP properties the designers should prioritise and justify your answer. (10 marks)
| Trap | What Examiners Often Penalise | Safe Strategy |
|---|---|---|
| Confusing cloud models | Saying "the cloud provider manages everything in IaaS" | Always state exactly what the customer manages vs. what the provider manages for each model |
| Vague transparency definitions | Writing "transparency means invisible" without examples | Name at least one type (location, access, failure, replication, etc.) and explain it |
| Treating RPC as ordinary functions | Forgetting network delays, marshalling, or stubs | Always mention: client stub → network → server stub → server procedure → return |
| CAP as "pick any two" oversimplification | Claiming a system can have all three except during partitions | Emphasise that CA/CP/AP trade-offs only matter when a network partition occurs |
| Ignoring fault tolerance definitions | Equating fault tolerance with no errors ever occurring | Define it as graceful continuation or recovery in the presence of failures |
| Mixing vertical and horizontal scaling | Saying "adding more RAM is horizontal scaling" | Vertical = bigger machine; Horizontal = more machines |
| Neglecting real-world examples | Theoretical answers with no practical illustration | Use examples such as Google Docs, AWS EC2, Azure App Service, or university registration systems |
Part (a) — IaaS, PaaS, SaaS (15 marks)
| Model | Provider Manages | Customer Manages | Example |
|---|---|---|---|
| IaaS | Physical servers, storage, networking, data centres | Operating systems, middleware, runtime, data, applications | Amazon EC2, Google Compute Engine |
| PaaS | Infrastructure + OS + runtime + middleware | Application code and data | Google App Engine, Heroku, Azure App Service |
| SaaS | Everything: infrastructure, platform, and application software | Configuration and end-user data | Gmail, Google Docs, Salesforce |
Part (b) — Server Virtualization (10 marks)
Part (c) — Startup Preference for PaaS (5 marks)
Part (a) — Core Characteristics (16 marks)
Part (b) — Client-Server Model (12 marks)
The client-server model divides tasks between service providers (servers) and service requesters (clients). Servers wait passively; clients initiate requests.
Part (c) — Two Major Challenges (7 marks)
Part (a) — Middleware and RPC (16 marks)
Middleware is software that lies between the operating system and applications. It provides services such as communication, data management, and security, enabling distributed components to interact seamlessly.
Remote Procedure Call (RPC) allows a program on one machine to call a procedure on another machine as if it were local, abstracting network communication from the programmer.
Client Stub Procedure:
Server Stub Procedure:
Part (b) — CAP Theorem (9 marks)
The CAP theorem states that a distributed data store cannot simultaneously guarantee all three of the following properties:
When a network partition occurs, a system must choose between consistency and availability.
Part (c) — University Registration System Design (10 marks)
The system should prioritise Availability and Partition Tolerance (AP). Even if some data is temporarily inconsistent during a partition, students can still register, and conflicts can be resolved later. Consistency can be achieved eventually through data synchronisation after the partition heals.
| Criterion | Excellent (A) | Good (B) | Satisfactory (C) | Needs Improvement |
|---|---|---|---|---|
| Knowledge of concepts | Accurate definitions with precise terminology | Minor terminology slips but sound understanding | Basic understanding with some gaps | Significant misunderstanding |
| Application to examples | Relevant, well-explained examples | Examples mostly relevant | Examples vague or generic | No examples or irrelevant examples |
| Logical structure | Clear step-by-step reasoning | Mostly organised with minor jumps | Some organisation, some confusion | Disorganised or incomplete |
| Diagrams / flow descriptions | Clear, labelled, accurate | Mostly clear | Partial or unclear | Absent or misleading |
| Awareness of examiner traps | Avoids all common traps | Avoids most traps | Falls into 1–2 traps | Falls into multiple traps |
End of Preparation Pack