Lab viva guide

Cloud computing viva questions and answers: 62 short answers for the CC lab, from IaaS to Hadoop

25 min read Updated English

Cloud computing viva questions start from what you did in the lab: the examiner asks what the hypervisor does in your VirtualBox setup, how your CloudSim broker assigns cloudlets to VMs, or why your word count ran as a MapReduce job, then moves to service models, scaling and security. This page gives 62 cloud computing viva questions with short, exam-ready answers, grouped the way a CC lab and course run (fundamentals, service and deployment models, virtualisation, containers, scaling and storage, big data with Hadoop, security, and lab tools such as CloudSim and OpenStack), plus a comparison table, the mistakes examiners catch and a plan for the night before.

How the examiner runs a cloud computing lab viva

A cloud computing lab usually includes installing VirtualBox or KVM and running guest operating systems, simulating data centres and scheduling policies in CloudSim, deploying a simple web application on a PaaS such as Google App Engine or on a virtual machine from a public cloud's free tier, working with Docker containers, setting up a private cloud with OpenStack, and running a Hadoop word count with MapReduce. The viva begins with your own experiment.

  • First, your setup: 'what is the host and what is the guest here?', 'which classes did you extend in CloudSim?'
  • Then the concept behind it: hypervisor type, service model, deployment model.
  • Then a comparison: IaaS versus PaaS versus SaaS, VM versus container, vertical versus horizontal scaling.
  • Then a design what-if: 'your site gets ten times the traffic tonight; what do you change?'
  • Then security: the shared responsibility model, IAM and encryption.

Say who manages what

Most cloud questions are really about responsibility. For any service, say what the provider manages and what you still manage: 'On IaaS I patch the guest OS; on PaaS the provider does, and I only deploy code.' That one sentence separates a clear answer from a memorised list.

Cloud fundamentals

What is cloud computing?

NIST defines cloud computing as a model for enabling ubiquitous, convenient, on-demand network access to a shared pool of configurable computing resources, such as networks, servers, storage, applications and services, that can be rapidly provisioned and released with minimal management effort or service provider interaction. In short, renting computing over the network and paying for what you use.

What are the five essential characteristics of cloud computing?

According to NIST: on-demand self-service, where users provision resources without human interaction with the provider; broad network access over standard devices; resource pooling, where a provider serves many customers from shared resources; rapid elasticity, scaling out and in quickly; and measured service, where usage is metered and billed.

What are the advantages of cloud computing?

No upfront hardware cost, since capital expense becomes pay-as-you-go operating expense; quick provisioning in minutes; elastic scaling with demand; global reach through regions; managed services that remove routine administration; and built-in options for backup and disaster recovery. A student startup can launch a web app without buying a single server.

What are the disadvantages or risks of cloud computing?

Dependence on network connectivity, possible vendor lock-in through proprietary services, less direct control over infrastructure, data privacy and compliance concerns about where data is stored, the risk of unexpected bills without cost controls, and shared-responsibility mistakes such as a publicly exposed storage bucket.

How does cloud computing differ from grid and cluster computing?

A cluster is a group of tightly connected, usually identical computers in one place acting as one system. A grid links loosely coupled, often heterogeneous resources across organisations to work on large tasks. Cloud computing offers virtualised resources as on-demand, metered services to many customers, with self-service and elasticity as the defining features.

What is utility computing?

Utility computing is the idea of providing computing resources like electricity or water: metered, available on demand and paid for by use. Cloud computing is the practical realisation of this idea, with billing by the second, hour or gigabyte.

What are the common cloud pricing models?

On-demand pricing charges by usage with no commitment, which suits unpredictable workloads. Reserved or committed-use pricing gives a discount for committing to a certain usage for a year or more, which suits steady workloads. Spot or preemptible capacity sells spare capacity at a deep discount but can be reclaimed at short notice, which suits interruptible batch jobs.

What is multi-tenancy?

Multi-tenancy means a single instance of software or infrastructure serves many customers, called tenants, while keeping each tenant's data and configuration isolated. It lets providers share hardware and software efficiently, lowering cost. A SaaS email service where every company sees only its own mailboxes is multi-tenant.

What is a service level agreement?

An SLA is a contract between the cloud provider and the customer that defines the expected service level, such as monthly availability, support response times and the credits paid if the provider misses them. An availability of 99.9 percent allows about 8.8 hours of downtime in a year; each extra nine cuts that by a factor of ten.

Service and deployment models

What are the three service models?

Infrastructure as a service provides virtual machines, storage and networks, and the customer manages the operating system and everything above it. Platform as a service provides a managed runtime where the customer deploys code. Software as a service provides a complete application used through a browser or app, such as web email or an office suite.

What do you manage in IaaS, PaaS and SaaS?

In IaaS I manage the guest operating system, middleware, runtime, application and data, while the provider manages the hardware, virtualisation and data centre. In PaaS I manage only the application code and data. In SaaS I manage only my data and user settings. Responsibility moves to the provider as we go from IaaS to SaaS.

Give examples of IaaS, PaaS and SaaS.

IaaS: Amazon EC2, Google Compute Engine and Azure Virtual Machines. PaaS: Google App Engine, Azure App Service and Heroku. SaaS: Gmail, Microsoft 365, Salesforce and Zoom. In our lab, deploying the Python app on App Engine was PaaS, and the virtual machine we launched was IaaS.

What are the four deployment models?

Public cloud, owned by a provider and offered to anyone over the internet; private cloud, used by a single organisation, on premises or hosted; community cloud, shared by organisations with common concerns, such as government departments; and hybrid cloud, a combination of two or more of these connected so data and applications can move between them.

When would an organisation choose a private or hybrid cloud?

A private cloud suits organisations with strict data control, compliance or predictable heavy workloads, such as a bank's core systems. A hybrid cloud keeps sensitive data or legacy systems private while using the public cloud for variable workloads, such as bursting to public servers during a festival sale.

What is serverless computing?

In serverless computing, or function as a service, I upload functions that run in response to events, such as an HTTP request or a file upload, and the provider handles servers, scaling and patching entirely. Billing is per invocation and execution time, and it scales to zero when idle. AWS Lambda and Google Cloud Functions are examples.

What is a cold start in serverless computing?

When a function has not run for a while, the provider must create a fresh execution environment and load the code before handling the request, which adds latency to that first call, called a cold start. Later calls reuse the warm environment and respond faster. Smaller packages and keeping functions warm reduce the delay.

What is vendor lock-in, and how is it reduced?

Vendor lock-in is the difficulty and cost of moving away from a provider once an application depends on its proprietary services, data formats and APIs. It is reduced by using open standards and portable tools such as containers, Kubernetes and Terraform, keeping data exportable, and isolating provider-specific code behind interfaces.

What is a REST API, and why do cloud services use it?

REST is an architectural style in which resources are identified by URLs and manipulated with standard HTTP methods: GET to read, POST to create, PUT or PATCH to update and DELETE to remove, usually exchanging JSON. Every cloud service exposes such APIs, so the console, the command-line tools and our own programs all control resources the same way.

Virtualisation

What is virtualisation?

Virtualisation creates virtual versions of computing resources, such as servers, storage and networks, on top of physical hardware. A single physical server can run several isolated virtual machines, each with its own operating system. It is the foundation of cloud computing, because it lets providers pool and share hardware among many customers.

What is a hypervisor? Explain type 1 and type 2.

A hypervisor, or virtual machine monitor, creates and runs virtual machines and shares the hardware among them. A type 1, or bare-metal, hypervisor runs directly on the hardware, such as VMware ESXi, Xen and Microsoft Hyper-V, and is used in data centres. A type 2, or hosted, hypervisor runs on a host operating system, such as VirtualBox and VMware Workstation, which we used in the lab.

What is the difference between full virtualisation and paravirtualisation?

In full virtualisation the guest operating system runs unmodified and does not know it is virtualised; privileged instructions are trapped and handled by the hypervisor, through binary translation or hardware support. In paravirtualisation the guest is modified to call the hypervisor directly through hypercalls, which reduces overhead. Xen supports paravirtualisation.

What is hardware-assisted virtualisation?

Modern processors include extensions, Intel VT-x and AMD-V, that let the CPU run guest operating systems in a special mode and trap sensitive instructions to the hypervisor in hardware. This makes full virtualisation of unmodified guests efficient. KVM requires these extensions and VirtualBox needs them for 64-bit guests, so they must be enabled in the BIOS or UEFI settings.

What are host and guest operating systems?

The host operating system runs directly on the physical machine; with a type 2 hypervisor, the hypervisor runs on top of it. The guest operating system runs inside a virtual machine. In my lab, Windows was the host and Ubuntu ran as a guest in VirtualBox with two virtual CPUs and 4 GB of RAM.

What is live migration of a virtual machine?

Live migration moves a running VM from one physical host to another with little or no noticeable downtime. Memory pages are copied while the VM keeps running, pages changed in the meantime are re-copied, and the VM is paused only briefly to transfer the last pages and its CPU state. It is used for hardware maintenance and load balancing.

What is a VM snapshot?

A snapshot saves the state of a virtual machine, its disk and optionally its memory, at a point in time, so it can be restored later. I took a snapshot before installing Hadoop so I could roll back if the configuration broke. Snapshots are not a full backup, because they usually depend on the original disk.

What are storage and network virtualisation?

Storage virtualisation pools physical storage from many devices into what appears to be a single storage resource, which can be divided into virtual disks for VMs. Network virtualisation creates virtual networks, switches and routers in software over the physical network, so each tenant gets an isolated network, as in a virtual private cloud.

What is server consolidation?

Server consolidation runs the workloads of many under-used physical servers as virtual machines on fewer, well-used hosts. Many standalone servers sit mostly idle, so consolidation cuts hardware, power, cooling and space costs and simplifies management. It was one of the first business reasons for adopting virtualisation.

Containers and orchestration

What is the difference between a virtual machine and a container?

A virtual machine virtualises hardware and runs a complete guest operating system, so it is heavier, takes longer to start and gives strong isolation. A container virtualises the operating system: containers share the host kernel and package only the application and its dependencies, so they start in seconds and use far less memory.

What is Docker? Explain image and container.

Docker is a platform for building and running containers. An image is a read-only template built in layers from a Dockerfile, containing the application, its libraries and settings. A container is a running instance of an image, with its own writable layer. One image can run as many identical containers.

What is a Dockerfile?

A Dockerfile is a text file of instructions to build an image: FROM sets the base image, COPY adds files, RUN executes commands during the build such as installing packages, EXPOSE documents the port, and CMD sets the default command when the container starts. The docker build command turns it into an image.

What is container orchestration, and what is Kubernetes?

Orchestration automates deploying, scaling, networking and healing containers across many machines. Kubernetes is the most widely used open-source orchestrator. Its control plane schedules workloads onto worker nodes, keeps the actual state matching the desired state, restarts failed containers and scales applications up or down.

What are a pod, a deployment and a service in Kubernetes?

A pod is the smallest deployable unit, one or more containers that share network and storage. A deployment declares how many replicas of a pod should run and manages rolling updates. A service gives a stable network address and load balancing to a changing set of pods, since pods come and go.

What is a microservices architecture?

An application is built as a set of small, independently deployable services, each owning one business capability and its data, communicating over APIs. Containers suit microservices because each service can be packaged, scaled and updated separately. The cost is more operational complexity than a single monolithic application.

What is a container registry?

A container registry stores and distributes container images, organised into repositories with version tags. Docker Hub is a public registry, and cloud providers offer private ones. A build pipeline pushes a new image to the registry, and servers or Kubernetes nodes pull it from there to run containers.

What are DevOps and CI/CD?

DevOps is a culture and set of practices that bring development and operations together to deliver software quickly and reliably. Continuous integration builds and tests every code change automatically; continuous delivery or deployment then releases passing builds to environments through an automated pipeline. Cloud services and containers make such pipelines easy to build.

Scaling, load balancing and storage

What is the difference between vertical and horizontal scaling?

Vertical scaling, or scaling up, adds more CPU, memory or storage to an existing machine; it is simple but limited by the largest machine and often needs downtime. Horizontal scaling, or scaling out, adds more machines behind a load balancer; it needs a stateless design but can grow much further and improves fault tolerance.

What is the difference between scalability and elasticity?

Scalability is the ability of a system to handle more load by adding resources. Elasticity is the ability to add and remove resources automatically and quickly as demand changes, so capacity tracks load and you pay only for what is needed. A system can be scalable without being elastic if scaling is manual and slow.

What is auto-scaling?

Auto-scaling automatically adjusts the number of instances in a group according to a metric such as average CPU utilisation or request count, or according to a schedule. For example, a rule might add two instances when average CPU stays above 70 percent for five minutes and remove one when it stays below 30 percent.

What is load balancing, and what algorithms are used?

A load balancer distributes incoming requests across several servers so no single server is overloaded, and stops sending traffic to servers that fail health checks. Common algorithms are round robin, which takes servers in turn; least connections, which picks the least busy server; and IP hash, which keeps a client on the same server.

What are object, block and file storage?

Object storage keeps data as objects with metadata and a unique key in a flat namespace, accessed over HTTP, and scales almost without limit, like Amazon S3; it suits backups and media. Block storage provides raw volumes attached to a VM like a disk, for databases. File storage provides a shared file system accessed over protocols such as NFS by many machines.

What are regions and availability zones?

A region is a separate geographic area where a provider runs data centres, such as Mumbai. Each region has several availability zones, isolated locations with independent power, cooling and networking, connected by low-latency links. Spreading instances across zones keeps an application running if one zone fails.

What is a content delivery network?

A CDN caches static content such as images, videos and scripts on edge servers in many cities, so users are served from a nearby location. It reduces latency and the load on the origin server. A student in Chennai gets a video from a nearby edge server instead of a server in another continent.

What is the CAP theorem?

The CAP theorem states that a distributed data store cannot guarantee all three of consistency, where every read sees the latest write, availability, where every request gets a response, and partition tolerance, where the system works despite network splits. Since partitions do happen, a system must choose between consistency and availability during a partition.

What are edge and fog computing?

Edge computing processes data close to where it is produced, on devices or nearby gateways, instead of sending everything to a distant cloud, which reduces latency and bandwidth. Fog computing is a layer of computing between the devices and the cloud, such as local servers in a factory. Both suit IoT and real-time uses like traffic signals.

What is the difference between high availability and disaster recovery?

High availability keeps a service running through component failures, using redundancy such as instances in several zones behind a load balancer, so users barely notice. Disaster recovery restores service after a major event, such as a whole region failing, from backups or a standby site. It is planned around the recovery time objective, how fast, and the recovery point objective, how much data loss is acceptable.

Big data with Hadoop and MapReduce

What is Hadoop?

Apache Hadoop is an open-source framework for storing and processing very large datasets across clusters of commodity computers. Its core parts are HDFS for distributed storage, YARN for cluster resource management, and MapReduce for batch processing. It moves computation to where the data is stored instead of moving data.

Explain the architecture of HDFS.

HDFS splits files into large blocks, 128 MB by default in current versions, and stores them on DataNodes, replicating each block, three times by default, on different nodes for fault tolerance. The NameNode keeps the file system metadata, which blocks make up each file and where they are, while the DataNodes store the actual data and send heartbeats.

Explain MapReduce with the word count example.

In the map phase, each mapper reads a split of the text and emits a key-value pair of each word and the number 1. The framework then shuffles and sorts, grouping all values by key. In the reduce phase, each reducer receives a word with its list of 1s and sums them, outputting the word and its total count.

What is a combiner in MapReduce?

A combiner is an optional mini-reducer that runs on each mapper's output before the shuffle, aggregating values locally. In word count it sums the 1s for each word on the mapper's own node, so far less data crosses the network. It can be used only when the operation, like sum, gives the same result when applied in parts.

What is YARN?

YARN, yet another resource negotiator, is Hadoop's resource management layer. The ResourceManager allocates cluster resources to applications, NodeManagers run on each node and manage containers there, and each application has an ApplicationMaster that requests resources and tracks its tasks. It lets engines other than MapReduce, such as Spark, share the cluster.

How does Apache Spark differ from Hadoop MapReduce?

MapReduce writes intermediate results to disk between the map and reduce stages, which makes iterative jobs slow. Spark keeps data in memory across steps using resilient distributed datasets and DataFrames, so iterative algorithms such as machine learning and interactive queries run much faster. Spark can run on YARN and read data from HDFS.

Cloud security

What is the shared responsibility model?

Security responsibilities are divided between the provider and the customer. The provider secures the cloud itself: physical data centres, hardware, the hypervisor and the network infrastructure. The customer secures what they put in the cloud: data, identities and access, application code and, in IaaS, the guest operating system and firewall rules. The split shifts towards the provider from IaaS to SaaS.

What is identity and access management?

IAM controls who can access which cloud resources and what actions they can perform. It uses users, groups and roles with policies attached, and should follow the principle of least privilege, giving each identity only the permissions it needs. Multi-factor authentication and avoiding long-lived access keys strengthen it.

How is data protected in the cloud?

Encryption in transit with TLS protects data moving over networks, and encryption at rest protects stored data, with keys managed in a key management service. Access controls, private network settings, regular backups across zones or regions, audit logging and monitoring complete the picture. Misconfigured public storage is one of the most common causes of cloud data leaks.

What is a security group?

A security group is a virtual firewall attached to a cloud instance that controls inbound and outbound traffic by protocol, port and source address. For my web server I allowed inbound port 80 and 443 from anywhere and port 22 only from my own IP address, and denied everything else by default.

What are the common threats to cloud security?

Misconfiguration, such as public storage buckets or open database ports, is the most common. Others are stolen credentials and account hijacking, insecure APIs, excessive permissions, insider misuse, unpatched guest systems and distributed denial-of-service attacks. Least privilege, multi-factor authentication, configuration scanning, logging and patching address most of them.

Lab tools: CloudSim, OpenStack and App Engine

What is CloudSim, and why is it used?

CloudSim is an open-source Java toolkit for modelling and simulating cloud environments, developed at the University of Melbourne. It lets us test VM allocation and task scheduling policies on simulated data centres without real hardware or cost, and measure results such as completion time, which would be impractical to repeat on a real cloud.

Name the main CloudSim entities.

Datacenter models the data centre with its hosts and characteristics; Host is a physical machine with processing elements, memory and bandwidth; Vm is a virtual machine on a host; Cloudlet is a task with a length in million instructions; and DatacenterBroker acts for the user, submitting VMs and cloudlets and binding cloudlets to VMs.

What is the difference between time-shared and space-shared scheduling in CloudSim?

With space-shared scheduling, a processing element runs one task at a time, so tasks queue and each runs at full speed once started. With time-shared scheduling, tasks share the processing elements at the same time, so all start immediately but each runs slower. CloudSim applies either policy at the host level for VMs and at the VM level for cloudlets.

What is OpenStack? Name its main components.

OpenStack is an open-source platform for building private and public IaaS clouds. Its main components are Nova for compute, Neutron for networking, Swift for object storage, Cinder for block storage, Glance for VM images, Keystone for identity and authentication, and Horizon, the web dashboard.

What did you do with Google App Engine?

I deployed a small Python web application on App Engine, a PaaS. I wrote the application and an app.yaml configuration that names the runtime, then deployed it with the gcloud command. App Engine provisioned the servers, ran the app at a public URL and would scale instances automatically with traffic, without my managing any virtual machine.

What is infrastructure as code?

Infrastructure as code describes servers, networks and other cloud resources in configuration files that are kept in version control and applied by a tool, instead of clicking in a console. Terraform and cloud-specific template services are examples. It makes environments repeatable, reviewable and easy to recreate, for example identical testing and production setups.

Comparison table to revise

TopicOption 1Option 2Deciding difference
Service modelIaaS: VMs, storage, networksPaaS: managed runtimeWho manages the OS and runtime
Service modelPaaS: you deploy codeSaaS: you use the applicationWhether you write the application
DeploymentPublic cloudPrivate cloudShared provider versus single organisation
HypervisorType 1: bare metalType 2: hostedRuns on hardware or on a host OS
VirtualisationFull: unmodified guestPara: modified guestHypercalls in paravirtualisation
Isolation unitVirtual machineContainerOwn kernel versus shared host kernel
ScalingVertical: bigger machineHorizontal: more machinesLimit of one machine versus adding nodes
StorageObject: S3-style keys over HTTPBlock: disk volumes for a VMAccess method and use case
MapReduce phaseMap: emit key-value pairsReduce: aggregate values per keyShuffle and sort connects them
CloudSim schedulingSpace-shared: one task at a timeTime-shared: tasks share CPUQueueing versus slower parallel runs

Common mistakes in a cloud computing viva

  • Calling VirtualBox a type 1 hypervisor. It is hosted, type 2.
  • Saying containers include their own kernel. They share the host kernel.
  • Using scalability and elasticity as synonyms.
  • Saying the provider is responsible for all security in the cloud. The customer secures data, identities and configuration.
  • Mixing up PaaS and SaaS examples, such as calling Gmail PaaS.
  • Saying HDFS stores a file on a single machine. It splits it into blocks and replicates each across DataNodes.
  • Not knowing which CloudSim classes your own program used.

What the ExamPilot AI examiner checks when you practise

In a CS/IT lab viva session on ExamPilot you name your cloud experiment, for example VirtualBox setup, a CloudSim scheduling program or a Hadoop word count, and an AI examiner questions you by voice for about twelve minutes: your setup, the concept behind it, a comparison, and a design what-if about scaling or security. It follows up whenever an answer is vague, and you can answer in English or Hindi.

  • Responsibility stated clearly: what the provider manages and what you manage in each model.
  • Correct classification: hypervisor type, service model and deployment model of what you used.
  • Design reasoning for what-ifs: scaling out, load balancing, multiple zones, caching.
  • Security basics: least privilege, encryption in transit and at rest, security group rules.
  • Brevity and honesty: two or three sentences, and a clean 'I am not sure' rather than a guess.

Start with the CS/IT lab viva mock. If you are preparing for a cloud job rather than a lab exam, the cloud and SRE interview mock asks the same concepts at interview depth.

The night before the cloud computing lab exam

  1. 1

    Re-run or re-read each experiment

    For each one, write the tool, what you configured, the commands or classes used and the output, and say it aloud in three sentences.

  2. 2

    Draw two diagrams

    The IaaS, PaaS and SaaS responsibility stack, and the HDFS and MapReduce flow from input split to reducer output.

  3. 3

    Prepare one design answer

    How you would make a web application survive ten times the traffic and one zone failing: load balancer, auto-scaling group across zones, managed database, CDN.

  4. 4

    Run one mock viva

    Twelve minutes with the AI examiner on your own experiment shows which answers come out clearly and which need work.

Cloud builds on networking and operating systems, so revise computer networks viva questions and operating system viva questions. Many cloud projects run ML workloads, covered in machine learning viva questions, and for how every lab viva works, see the engineering viva hub.

Frequently asked questions

What are the most important cloud computing viva questions?
The NIST definition and five characteristics, IaaS, PaaS and SaaS with examples, public, private, community and hybrid clouds, virtualisation and hypervisor types, full versus paravirtualisation, VMs versus containers, Docker and Kubernetes basics, scalability versus elasticity, load balancing, storage types, the shared responsibility model, HDFS and MapReduce, and the tools from your own lab such as CloudSim or OpenStack.
Do I need a paid cloud account for the lab?
Usually not. Most lab work uses VirtualBox or KVM, CloudSim, Docker, OpenStack on a local machine and Hadoop in pseudo-distributed mode, all free. Public cloud providers offer free tiers and student credits under their own terms, which change over time, so check the provider's current offer and set a billing alert before launching anything.
Is cloud computing asked in placement interviews?
Yes, especially for cloud, DevOps, SRE and backend roles, and often in service company interviews. Expect service and deployment models, virtualisation, containers, scaling, load balancing, storage types and security basics, and for experienced roles a design question on making an application highly available. Hands-on experience from your lab is a strong talking point.
How do I answer a design question in a cloud viva?
Start from the requirement, then add one building block at a time with its reason: a load balancer to spread traffic, an auto-scaling group of instances across two availability zones for capacity and fault tolerance, a managed database with a standby, object storage and a CDN for static files, and monitoring with alerts.
How can I practise cloud computing viva questions out loud?
On ExamPilot you can run a CS/IT lab viva by voice. Name your cloud experiment and the AI examiner asks about your setup, service models, virtualisation and scaling, follows up with design what-ifs like an external examiner, then gives you a transcript with tighter answers to repeat. It is free to start.

Practise out loud

Practise your cloud computing viva aloud

The AI examiner asks about your cloud lab setup, service models, virtualisation and scaling, then follows up with design what-ifs like an external examiner.

Engineering Viva · CS / IT lab viva

Read how this interview works

Official sources