Cloud, Mobile and Distributed Computing: Concepts and MCQs

Modern computer papers expect candidates to know how cloud services are delivered, what virtualisation does, how mobile phones and their networks work, and how computers share work across a network. These ideas change slowly even though products change fast, so examiners test the concepts: which deployment model suits a group of organisations, what a hypervisor is, what each mobile generation added, and how peer-to-peer differs from client-server.

Asked in: PPSC, FPSC, NTS, ETEA, KPPSC, SSC, IBPS and ICS/ECAT computer

What makes a service cloud computing

Cloud computing delivers computing resources such as servers, storage, databases and software over the Internet on demand, usually paid for according to use. The widely used NIST definition lists five essential characteristics: on-demand self-service (users get resources without asking a person), broad network access (available over the network from phones, laptops and other devices), resource pooling (the provider serves many customers, or tenants, from shared hardware), rapid elasticity (resources grow and shrink quickly with demand) and measured service (usage is metered, which allows pay-as-you-go billing).

Benefits include no large upfront cost for hardware, fast scaling, access from anywhere and the provider looking after maintenance. Concerns include dependence on an Internet connection, data privacy and the laws of the country where data is stored, and the difficulty of moving from one provider to another (vendor lock-in).

Service and deployment models

The three classic service models differ in how much the provider manages. In Infrastructure as a Service (IaaS) the provider supplies virtual machines, storage and networks, and the customer installs and manages the operating system and everything above it. In Platform as a Service (PaaS) the provider also manages the operating system, runtime and middleware, so developers only write and deploy their code and data. In Software as a Service (SaaS) the whole application is delivered ready to use in a browser or app. Function as a Service, often called serverless computing, goes further: small pieces of code run only when triggered, and billing is per execution.

There are four deployment models. A public cloud is owned by a provider and offered to the general public. A private cloud is used by one organisation only, whether in its own data centre or hosted by a provider. A community cloud is shared by several organisations with common concerns, such as a group of government departments or hospitals with the same security rules. A hybrid cloud combines two or more of these and lets data and applications move between them.

Virtualisation and containers

Virtualisation creates several virtual machines (VMs) on one physical computer, each with its own operating system, so one server can run Windows and Linux side by side. It is the technology that makes cloud resource pooling possible. The software that creates and manages VMs is the hypervisor, or virtual machine monitor. A Type 1 (bare-metal) hypervisor runs directly on the hardware and is used in data centres; VMware ESXi is an example. A Type 2 (hosted) hypervisor runs as an application on top of an ordinary operating system, as Oracle VirtualBox and VMware Workstation do on a desktop.

Besides servers, storage, networks and desktops can be virtualised; in desktop virtualisation (VDI) a user’s desktop runs on a central server and is viewed remotely. Containers, such as those made with Docker, are a lighter alternative to VMs: they package an application with its libraries but share the host operating system’s kernel instead of each carrying a full operating system, so they start faster and use less memory.

Mobile operating systems and apps

A mobile operating system manages a phone’s hardware, touch screen, sensors, battery and radios. Android, developed by Google, is built on the Linux kernel and its core is open source (the Android Open Source Project), so many manufacturers use it; its apps are packaged as APK files. iOS, developed by Apple, runs only on Apple’s own devices and is closed source; its apps come from Apple’s App Store.

Mobile operating systems run each app in a sandbox, isolated from other apps, and ask the user for permissions before an app can use the camera, location or contacts. A native app is built for one platform and installed on the phone; a web app runs in the browser; a hybrid app wraps web code inside a native shell. Updates are delivered over the air (OTA). A SIM (Subscriber Identity Module) identifies the subscriber to the network through its IMSI, while the 15-digit IMEI identifies the handset itself.

Cellular networks: 1G to 5G

A cellular network divides an area into cells, each served by a base station (tower). Cells far apart can reuse the same frequencies (frequency reuse), which lets millions of users share limited spectrum. When a user moves from one cell to another during a call, the call is passed to the new base station without being dropped; this is called handover or handoff.

1G (1980s) was analog and carried voice only. 2G (1990s) was the first digital generation, with GSM as the most widespread standard; it brought SMS text messages and better call security, and its upgrades GPRS and EDGE added slow data. 3G (2000s, for example UMTS) brought mobile Internet at broadband speeds and video calls. 4G, mainly LTE (Long Term Evolution), is an all-IP network that carries even voice as data (VoLTE) and made HD video streaming common. 5G, using 5G New Radio, adds much higher speeds, very low latency and support for a huge number of connected devices, aimed at uses such as IoT, smart factories and connected vehicles.

Client-server, peer-to-peer and distributed computing

In the client-server model, clients request services and a central server provides them, as when a browser asks a web server for a page or an ATM contacts a bank’s server. Control, security and backups are centralised, but the server can become a bottleneck or a single point of failure. A three-tier design separates the presentation layer, the application (business logic) layer and the database layer. A thin client depends on the server for most processing; a thick (fat) client does much of the work itself.

In a peer-to-peer (P2P) network every computer, or peer, acts as both client and server and shares its resources directly, as in a small office workgroup or BitTorrent file sharing. It is cheap and has no single point of failure, but security and backup are harder to manage. A distributed system is a group of independent computers that appears to its users as one system. A cluster is a set of closely connected computers, usually in one place, working as one. Grid computing links loosely connected, often geographically spread computers to work on one large problem using their spare capacity. Edge computing processes data close to where it is produced, such as on a local gateway, to cut delay and bandwidth.

Solved examples

  1. Usman and Kavya start a software company. They want to deploy their web application without installing or patching any operating system or database server, and only upload their code. Which cloud service model suits them, and what would change under IaaS?
    1. They want the provider to manage the operating system, runtime and middleware, leaving them only their code and data: that is PaaS.
    2. Under IaaS they would receive virtual machines and would have to install, update and secure the operating system and software themselves.
    Answer: PaaS; under IaaS they would manage the OS themselves
  2. A provincial health department and four district hospitals set up a cloud that only they share, built to meet the patient-privacy rules they all follow. Which deployment model is this?
    1. It is not public, because the general public cannot use it.
    2. It is not private, because more than one organisation uses it.
    3. Several organisations with shared concerns using one cloud is a community cloud.
    Answer: Community cloud
  3. A college has one powerful server and wants it to run a Windows server for admissions and two Linux servers for its website and library at the same time. What technology and software layer are needed, and which type of that software suits a data centre?
    1. Running several operating systems on one physical machine is virtualisation; each runs inside its own virtual machine.
    2. The hypervisor creates and manages the virtual machines.
    3. For a dedicated server, a Type 1 (bare-metal) hypervisor installed directly on the hardware is the usual choice.
    Answer: Virtualisation with a Type 1 hypervisor
  4. Match each feature with its mobile generation: (a) SMS and digital voice, (b) analog voice calls only, (c) all-IP network using LTE, (d) very low latency for connected vehicles and massive IoT, (e) first mobile broadband with video calls.
    1. Analog voice only was 1G.
    2. Digital voice and SMS came with 2G (GSM).
    3. Mobile broadband and video calls arrived with 3G.
    4. LTE and an all-IP core define 4G.
    5. Very low latency and massive device connectivity are aims of 5G.
    Answer: (a) 2G, (b) 1G, (c) 4G, (d) 5G, (e) 3G
  5. Neha’s office has five PCs that share files and a printer with each other directly, with no dedicated server. A bank’s ATMs all connect to one central computer to check balances. Name the model used in each case.
    1. In the office every PC both offers and uses shared resources, so each is a peer: a peer-to-peer network.
    2. The ATMs only request services and the central computer provides them: a client-server system.
    Answer: Office: peer-to-peer; ATMs: client-server
  6. Ravi is on a phone call while travelling on a motorway. His call does not drop even though he passes through the coverage areas of several towers. What makes this possible, and why can the same frequencies be used again in distant cells?
    1. As he leaves one cell, the network transfers the ongoing call to the base station of the next cell: handover (handoff).
    2. Cells far enough apart do not interfere with each other, so the same frequencies can be assigned to them again: frequency reuse.
    Answer: Handover between cells; frequency reuse

Exam shortcuts

Common mistakes

Practice MCQs

  1. In a peer-to-peer network, each computer:
    A) Acts as both a client and a server
    B) Only requests services from a central server
    C) Only provides services to other computers
    D) Must be connected through a mainframe
    Answer: A) Acts as both a client and a server — Peers share resources directly, so each one both uses and provides services. Only requesting services describes a client in a client-server network, only providing them describes a dedicated server, and no mainframe is needed.
  2. GSM, the most widely used 2G mobile standard, stands for:
    A) General Service for Mobile Calls
    B) Global Standard for Mobile Signals
    C) Global System for Mobile Communications
    D) Global Satellite for Mobiles
    Answer: C) Global System for Mobile Communications — GSM today stands for Global System for Mobile Communications. The other expansions are invented; the letters first came from Groupe Spécial Mobile, the European committee that designed the standard.
  3. Which was the first generation of mobile networks to use digital transmission and offer SMS text messaging?
    A) 1G
    B) 3G
    C) 4G
    D) 2G
    Answer: D) 2G — 2G systems such as GSM were digital and introduced SMS. 1G was analog and voice-only, while 3G and 4G came later and added mobile broadband and an all-IP network.
  4. LTE, the main standard of 4G mobile networks, stands for:
    A) Low Transmission Energy
    B) Long Term Evolution
    C) Linked Terminal Exchange
    D) Large Traffic Extension
    Answer: B) Long Term Evolution — LTE means Long Term Evolution, the standard that made 4G an all-IP network. The other expansions do not exist as mobile standards.
  5. Very low latency, support for a massive number of connected IoT devices and use in connected vehicles are key goals of which generation?
    A) 3G
    B) 4G
    C) 5G
    D) 2G
    Answer: C) 5G — These goals define 5G. 3G was about mobile broadband and video calls, 4G about high-speed all-IP data, and 2G about digital voice and SMS.
  6. A mobile user’s ongoing call is transferred from one base station to another as the user moves between cells. This is called:
    A) Handover
    B) Roaming
    C) Frequency reuse
    D) Multiplexing
    Answer: A) Handover — Handover (handoff) keeps a call alive while moving between cells. Roaming means using another operator’s network, often abroad; frequency reuse is assigning the same frequencies to distant cells; multiplexing shares one channel among several signals.
  7. Which number uniquely identifies a mobile handset (the device itself), regardless of the SIM inserted in it?
    A) IMSI
    B) IMEI
    C) MSISDN
    D) PIN
    Answer: B) IMEI — The 15-digit IMEI identifies the phone itself. The IMSI on the SIM identifies the subscriber, the MSISDN is the phone number, and a PIN is a security code that identifies nothing.
  8. The Android operating system is built on which kernel?
    A) Windows NT
    B) Unix System V
    C) Darwin (XNU)
    D) Linux
    Answer: D) Linux — Android uses a modified Linux kernel. Windows NT is the basis of Windows, System V is an older Unix family, and the Darwin XNU kernel is used by Apple’s operating systems such as iOS.
  9. Ayesha’s team writes code and deploys it on a cloud platform that already manages the operating system, runtime and database server, so they never patch any server. Which service model is this?
    A) PaaS
    B) IaaS
    C) SaaS
    D) On-premises hosting
    Answer: A) PaaS — In PaaS the provider runs the operating system and runtime, and developers only bring code and data. IaaS would leave the operating system to them, SaaS offers a finished application rather than a platform to build on, and on-premises hosting means running their own servers.
  10. Several government departments that follow the same security and compliance rules share one cloud infrastructure that is closed to everyone else. This deployment model is a:
    A) Public cloud
    B) Private cloud
    C) Community cloud
    D) Hybrid cloud
    Answer: C) Community cloud — A cloud shared by several organisations with common concerns is a community cloud. A public cloud is open to anyone, a private cloud serves only one organisation, and a hybrid cloud is a combination of different models.
  11. A Type 1 (bare-metal) hypervisor is one that:
    A) Runs as an application inside a host operating system
    B) Runs only inside a web browser
    C) Emulates a mobile phone for app testing
    D) Runs directly on the physical hardware
    Answer: D) Runs directly on the physical hardware — A Type 1 hypervisor is installed directly on the server hardware, which makes it efficient for data centres. Running as an application inside a host operating system describes a Type 2 hypervisor, and browser or phone emulation is not what the term means.
  12. What is the main difference between a container and a virtual machine?
    A) Containers need a hypervisor for each one
    B) Containers share the host OS kernel
    C) Containers always run slower than VMs
    D) Containers can run only on mobile phones
    Answer: B) Containers share the host OS kernel — A container packages an application with its libraries but uses the host operating system’s kernel, while each VM runs its own full operating system on a hypervisor. That is why containers are lighter and usually start faster, and they run on servers and desktops, not only phones.
  13. An online shop’s cloud servers automatically increase from 4 to 20 during an Eid or Diwali sale and drop back to 4 afterwards. Which cloud characteristic does this show?
    A) Rapid elasticity
    B) Broad network access
    C) Measured service
    D) Resource pooling
    Answer: A) Rapid elasticity — Growing and shrinking resources quickly with demand is rapid elasticity. Broad network access is reachability from many devices, measured service is metering for billing, and resource pooling is serving many customers from shared hardware.
  14. A research project links thousands of loosely connected computers spread across many countries, using their spare processing power to analyse one huge data set. This is:
    A) Cluster computing
    B) Edge computing
    C) Grid computing
    D) Mobile computing
    Answer: C) Grid computing — Loosely coupled, geographically spread computers sharing spare capacity for one task is grid computing. A cluster is closely connected machines usually in one place, edge computing processes data near its source, and mobile computing is about portable devices.
  15. A factory processes sensor readings on a local gateway beside its machines, instead of sending all raw data to a distant cloud data centre, to get faster responses. This approach is called:
    A) Grid computing
    B) Edge computing
    C) Utility computing
    D) Mainframe computing
    Answer: B) Edge computing — Processing data close to where it is produced to cut delay and bandwidth is edge computing. Grid computing pools spread-out machines for one large job, utility computing means paying for computing like electricity, and mainframe computing uses one large central machine.

Questions

Is cloud storage the same as cloud computing?

Cloud storage, such as online file backup, is one service within cloud computing. Cloud computing also includes processing power, databases, platforms and complete applications.

Why are virtual machines important for cloud providers?

They let one physical server be shared safely by many customers, each with an isolated machine, and let resources be created or removed in minutes. This is what makes pooling and elasticity possible.

Which mobile generation facts are safest to learn for exams?

The key feature of each generation: 1G analog voice, 2G digital voice and SMS with GSM, 3G mobile broadband and video calls, 4G LTE and all-IP, 5G low latency and massive IoT. Exact speeds differ between sources, so learn the features.