Chapter 5
Cloud Computing
TU BIT past exam questions
Past questions and answers
36 questions set from this chapter. Most repeated first.
- 2080 · 10 marks
Describe the cloud deployment models. Discuss about different cloud platforms.
Answer
Cloud deployment models
A deployment model defines who owns the cloud infrastructure, who can access it and where it is located.
1. Public cloud. Resources are owned by a provider and shared by many tenants over the internet on a pay-as-you-go basis. Low cost, huge scalability, no maintenance; less control and weaker customisation. Examples: AWS, Microsoft Azure, Google Cloud.
2. Private cloud. Infrastructure is dedicated to a single organisation, hosted on-premises or by a third party. Gives high security, control and regulatory compliance, but needs high capital and operating cost. Examples: VMware vSphere, OpenStack deployments in banks or government.
3. Community cloud. Shared by several organisations with common concerns (security, compliance, mission), e.g. a group of universities or hospitals. Costs are shared, but capacity and governance are more limited than public cloud.
4. Hybrid cloud. A combination of two or more of the above, joined by technology that allows data and application portability. Sensitive workloads stay in the private cloud while peak load "bursts" to the public cloud. It is flexible but complex to manage and secure.
5. Multi-cloud (extension). Services from several public providers are used to avoid vendor lock-in.
Different cloud platforms
| Platform | Provider | Key services |
|---|---|---|
| Amazon Web Services | Amazon | EC2, S3, RDS, Lambda, DynamoDB |
| Microsoft Azure | Microsoft | Virtual Machines, Blob Storage, Azure Functions, Azure SQL |
| Google Cloud Platform | Compute Engine, App Engine, BigQuery, Cloud Functions | |
| IBM Cloud | IBM | Bare-metal servers, Watson AI |
| Oracle Cloud | Oracle | Autonomous Database, OCI compute |
| Salesforce | Salesforce | SaaS CRM, Force.com PaaS |
| OpenStack | Open source | Private cloud IaaS platform (Nova, Swift, Neutron) |
| Hadoop/Heroku/Aneka | Various | Big data PaaS, application PaaS, .NET PaaS |
These platforms offer IaaS, PaaS and SaaS service models on top of the deployment models above.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 10 marks
What is VMware? Can you explain what a hypervisor does? What are the benefits of using a hypervisor for an organization.
Answer
VMware
VMware is a company (now part of Broadcom) and a family of virtualization products. Its products, such as ESXi, vSphere, vCenter, Workstation and Fusion, let one physical machine run many isolated virtual machines (VMs), each with its own operating system, CPU, memory, storage and network share.
Hypervisor
A hypervisor (Virtual Machine Monitor) is software or firmware layer that creates, runs and manages virtual machines on a physical host. It does the following:
- Abstracts and partitions the hardware (CPU, RAM, disk, NIC) among VMs.
- Schedules VM CPU time and allocates memory.
- Isolates VMs so that a crash or attack in one does not affect others.
- Provides management functions such as creation, snapshots, live migration and cloning.
Type 1 (bare-metal): runs directly on hardware, e.g. VMware ESXi, Xen, Hyper-V. Best performance; used in data centres. Type 2 (hosted): runs on a host OS, e.g. VMware Workstation, VirtualBox. Easier to set up; used on desktops.
Benefits of a hypervisor to an organisation
- Server consolidation: many workloads on fewer servers, lowering hardware, power, cooling and space cost.
- Better resource utilisation: idle capacity is shared instead of wasted.
- Isolation and security: each VM is separate.
- High availability and disaster recovery: snapshots, backups and live migration (vMotion) move VMs away from failing hardware without downtime.
- Scalability and agility: new VMs are provisioned in minutes.
- Testing and development: safe sandbox environments, and different OSes on the same hardware.
- Easier management: centralised control of all VMs.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5+5 marks
Explain the advantages and disadvantages of cloud computing. Explain the mechanism of detecting and eliminating intruders in private cloud.
Answer
Advantages of cloud computing
- Cost saving: no upfront capital expense; pay only for what is used.
- Scalability and elasticity: resources grow or shrink with demand.
- Accessibility: services are reachable from anywhere with internet.
- Reliability and disaster recovery: replicated data centres and backups.
- Automatic updates and maintenance handled by the provider.
- Speed and agility: quick provisioning and deployment.
- Collaboration: shared access to data and applications.
Disadvantages
- Dependence on internet: no connectivity means no access.
- Security and privacy concerns: data is held by a third party.
- Vendor lock-in: moving between providers is difficult.
- Limited control over infrastructure and customisation.
- Downtime and outages of the provider affect all customers.
- Compliance/legal issues about data location.
- Hidden or growing costs for large data transfer and long-term use.
Detecting and eliminating intruders in a private cloud
Intrusion handling combines detection, response and removal:
- Intrusion Detection Systems (IDS):
- Network-based IDS monitors traffic between VMs and at the cloud boundary.
- Host-based IDS monitors logs, file integrity and system calls on each VM or hypervisor.
- Signature-based detection matches known attack patterns; anomaly-based detection flags behaviour that deviates from a normal baseline (unusual logins, traffic spikes, port scans).
- Log collection and SIEM: logs from servers, firewalls and the hypervisor are correlated centrally to raise alerts.
- Access monitoring: failed logins, privilege escalation and unusual access times are checked against IAM records.
- Honeypots attract and study attackers.
- Elimination (IPS and incident response):
- Intrusion Prevention System blocks malicious packets automatically.
- Compromised VMs are isolated/quarantined, their network access cut and their accounts or keys revoked.
- Malware is removed, systems are restored from clean snapshots/backups, and vulnerabilities are patched.
- Firewall rules and credentials are updated, and the incident is analysed to prevent recurrence.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
What are the main configuration parameters that are specified in MapReduce? Explain.
Answer
Main configuration parameters in MapReduce
A MapReduce job is configured through the job configuration (Job/Configuration in Hadoop). The main parameters are:
- Input location(s) and format: HDFS path of the input and the
InputFormat(e.g.TextInputFormat) that splits data and reads records. - Output location and format: the output directory (must not already exist) and the
OutputFormat. - Map class (Mapper): the function that converts input key-value pairs to intermediate key-value pairs.
- Reduce class (Reducer): the function that merges all values of one key into the final result.
- Combiner class (optional): a local mini-reducer that cuts the data shipped across the network.
- Partitioner: decides which reducer receives which key (default is hash of key modulo number of reducers).
- Data types: classes of input/output keys and values (e.g.
Text,IntWritable). - Number of reducers (
mapreduce.job.reduces) and the number of map tasks (determined by input splits). - JAR file / main driver class containing the job code.
- Resource settings: memory and CPU per task, sort buffer size, block/split size, number of task retries and speculative execution.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
How do you choose between SOAP and REST web services? Explain.
Answer
Choosing between SOAP and REST
| Criterion | SOAP | REST |
|---|---|---|
| Type | Protocol with strict standards | Architectural style |
| Message format | XML only (envelope, header, body) | JSON, XML, HTML, text |
| Transport | HTTP, SMTP, TCP, JMS | Mainly HTTP |
| Contract | WSDL, strongly typed | Optional (OpenAPI), loosely defined |
| State | Can be stateful | Stateless |
| Performance | Heavier, slower | Lightweight, cacheable, faster |
| Security | WS-Security, built-in standards | HTTPS, OAuth, tokens |
| Transactions | WS-AtomicTransaction, ACID support | No built-in support |
Choose SOAP when:
- enterprise-level security, reliable messaging and ACID transactions are needed (banking, payment, telecom);
- a formal contract (WSDL) between systems is required;
- the transport is not HTTP.
Choose REST when:
- building public, web and mobile APIs where simplicity, speed and scalability matter;
- bandwidth is limited and JSON is preferred;
- caching and stateless, loosely coupled services are desired.
In most modern cloud and mobile applications REST is preferred; SOAP remains in legacy and highly regulated systems.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
What are the advantages of using a data lake? Explain.
Answer
Advantages of a data lake
A data lake is a central repository that stores large amounts of raw data in its native format (structured, semi-structured and unstructured) until it is needed.
- Stores all data types: tables, logs, JSON, images, audio, video, sensor data.
- Schema-on-read: structure is applied only when data is analysed, so ingestion is fast and flexible.
- Low-cost scalable storage: built on cheap object storage or HDFS, scaling to petabytes.
- Supports advanced analytics: machine learning, real-time analytics, data mining and big data processing on the same data.
- Removes data silos: one place for data from many sources, giving a single view.
- Preserves raw data: it can be reprocessed later for new questions.
- Faster access for data scientists because they do not wait for ETL and modelling beforehand.
- Integration with tools such as Spark, Hive, Presto and cloud services.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Explain the backup strategy for systems, data and other critical resources.
Answer
Backup strategy for systems, data and critical resources
A backup strategy ensures that data and systems can be restored after loss, corruption, attack or disaster.
- Identify critical assets: classify systems, databases, configurations and applications by importance, and define RPO (acceptable data loss) and RTO (acceptable recovery time).
- Backup types:
- Full: a complete copy; slow but simple to restore.
- Incremental: only changes since the last backup of any type; fast and small.
- Differential: changes since the last full backup.
- Snapshots/image backups for VMs and system state.
- The 3-2-1 rule: keep 3 copies of data, on 2 different media, with 1 copy offsite (or in another cloud region).
- Schedule and automation: regular, automated backups (e.g. weekly full, daily incremental), with continuous replication for critical databases.
- Security: encrypt backups in transit and at rest, control access, and keep an immutable/offline copy against ransomware.
- Storage location: on-site for fast restore, offsite or cloud for disaster protection.
- Testing and verification: run periodic restore tests and integrity checks.
- Retention and documentation: define how long copies are kept, and document the recovery procedure and responsibilities.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
What is the difference between thread programming and task programming in cloud computing? Describe.
Answer
Thread programming vs task programming
Thread programming is a model in which an application is split into threads, the basic units of execution within a process, and the programmer creates, starts, synchronises and terminates them explicitly. Threads share memory, so locks, semaphores and monitors are needed to avoid race conditions and deadlocks. In the cloud it uses the threads of one (virtual) machine or a distributed thread abstraction such as Aneka threads.
Task programming expresses an application as a set of independent (or loosely dependent) tasks, each a unit of work such as a command or a program, that a runtime scheduler places on available resources. The programmer defines the tasks and their dependencies, not how they run; the middleware handles distribution, fault tolerance and scheduling. It suits bag-of-tasks applications and workflows.
| Aspect | Thread programming | Task programming |
|---|---|---|
| Unit | Thread | Task (a job or process) |
| Control | Programmer manages creation and synchronisation | Runtime/scheduler manages execution |
| Memory | Shared memory within one machine | Usually no shared state; independent |
| Scale | Limited to one node or a fine-grained distributed set | Scales across many nodes |
| Communication | Shared variables, locks | Input/output files or messages |
| Complexity | High (race conditions, deadlocks) | Lower |
| Fault tolerance | Manual | Task can be rerun automatically |
| Suitable for | Fine-grained parallelism | Coarse-grained, embarrassingly parallel jobs |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
List the issues in fast data processing and streaming in cloud.
Answer
Issues in fast data processing and streaming in the cloud
- High velocity and volume: continuous, large-scale streams must be ingested without loss and with low latency.
- Latency requirements: real-time decisions need millisecond to second response, hard over network hops and shared resources.
- Scalability and elasticity: load fluctuates; scaling processing nodes without interrupting the stream is difficult.
- Data quality: out-of-order, late, duplicate or missing events, and noisy data.
- State management: maintaining windows and aggregates reliably across distributed nodes.
- Fault tolerance and delivery guarantees: achieving at-least-once or exactly-once processing after failures.
- Network bandwidth and cost: moving huge streams to the cloud is expensive and slow.
- Security and privacy: protecting data in motion and meeting compliance rules.
- Integration and heterogeneity: many sources, formats and tools (Kafka, Spark Streaming, Flink, Kinesis).
- Resource contention and cost control: multi-tenancy performance variation and unpredictable bills.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
What are the key components of an AWS architecture? Discuss about cloud governance.
Answer
Key components of an AWS architecture
- Compute: EC2 virtual servers, Lambda (serverless), ECS/EKS containers, Elastic Beanstalk.
- Storage: S3 object storage, EBS block storage, EFS file storage, Glacier archive.
- Database: RDS, DynamoDB, Redshift, ElastiCache.
- Networking and content delivery: VPC, subnets, route tables, Elastic Load Balancer, Route 53 DNS, CloudFront CDN.
- Security and identity: IAM, security groups, KMS, WAF, Shield.
- Management and monitoring: CloudWatch, CloudTrail, CloudFormation, Auto Scaling.
- Global infrastructure: Regions and Availability Zones for resilience and low latency.
Cloud governance
Cloud governance is the set of policies, roles, processes and controls used to manage cloud use so that it meets business, security and compliance goals. Key elements are:
- Policies and standards for usage, data classification and approved services.
- Roles and responsibilities (ownership, shared responsibility model).
- Security and compliance controls, audit and regulation requirements.
- Cost management through budgets, tagging and usage reports.
- Risk management and monitoring.
- Automation of guardrails with tools such as AWS Organizations, Config and Service Control Policies.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Explain parallel efficiency of MapReduce.
Answer
Parallel efficiency of MapReduce
Parallel efficiency measures how well added processors are used:
where is the time on one node, the time on nodes, the speedup and the efficiency ().
In MapReduce, map tasks work on independent input splits, so they parallelise almost perfectly and give high efficiency for large data. Efficiency drops because of:
- Shuffle and sort phase: moving intermediate data across the network.
- Reduce phase: reducers start after maps and may be limited by few keys (data skew gives stragglers).
- Framework overhead: job start-up, task scheduling and fault-tolerance (writing to disk).
- Stragglers: slow nodes delay the whole job (mitigated by speculative execution).
- Load imbalance between splits or keys.
Efficiency can be improved by data locality (moving computation to data), using combiners, a good partitioner, a suitable number of reducers and appropriate split size. Efficiency is best when the data is large relative to overhead, so it improves with problem size.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Differentiate between PAAS and SAAS with examples.
Answer
PaaS vs SaaS
| Aspect | PaaS (Platform as a Service) | SaaS (Software as a Service) |
|---|---|---|
| What is provided | Platform to develop, test, deploy and run applications | Complete ready-to-use software application |
| Target user | Developers | End users / businesses |
| User control | Application code and data; provider manages OS, runtime, servers | Only settings and own data; provider manages everything |
| Customisation | High (build any app) | Limited to configuration |
| Installation | Developer deploys own code | Nothing to install; accessed via browser |
| Examples | Google App Engine, AWS Elastic Beanstalk, Heroku, Azure App Service | Gmail, Google Docs, Salesforce, Microsoft 365, Dropbox |
| Cost model | Pay for resources used by the platform | Subscription per user |
PaaS sits between IaaS and SaaS: it removes infrastructure management so developers focus on code, whereas SaaS removes all management so users just use the software.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 10 marks
Explain the roles of hypervisor in virtualization. Briefly describe different types of virtualizations.
Answer
Role of the hypervisor in virtualization
A hypervisor (virtual machine monitor) sits between the hardware and the virtual machines. Its roles:
- Abstraction: presents virtual CPU, memory, storage and network devices to each VM.
- Resource allocation and scheduling: divides physical CPU time, RAM and I/O among VMs fairly.
- Isolation: keeps VMs separate so faults and security breaches do not spread.
- VM lifecycle management: create, start, pause, snapshot, clone and migrate VMs.
- Hardware sharing and consolidation: runs several OSes on one machine.
- Monitoring and control: tracks usage, enforces limits and supports live migration and high availability.
Type 1 hypervisors (ESXi, Xen, Hyper-V) run on bare metal; Type 2 (VirtualBox, VMware Workstation) run on a host OS.
Types of virtualization
- Hardware/server virtualization: one physical server is divided into multiple VMs (full virtualization, para-virtualization, hardware-assisted).
- Operating-system-level virtualization: multiple isolated user spaces (containers) share one kernel, e.g. Docker, LXC.
- Storage virtualization: several physical storage devices appear as one pool (SAN, NAS, RAID).
- Network virtualization: virtual networks (VLAN, VPN, SDN) abstracted from physical network hardware.
- Desktop virtualization: desktops run on a central server and are accessed remotely (VDI).
- Application virtualization: applications run in isolation from the underlying OS, e.g. Citrix, App-V.
- Data virtualization: data from different sources is accessed through one logical layer.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 10 marks
What is Server less computing? Explain different cloud deployment model in brief.
Answer
Serverless computing
Serverless computing is a cloud execution model in which the provider dynamically manages servers, scaling and capacity. Developers only write and upload code (usually small functions), and are billed per execution time and memory used, not for idle servers. Servers still exist, but they are hidden from the developer. Examples: AWS Lambda, Azure Functions, Google Cloud Functions.
Features: no server management, automatic scaling (down to zero), event-driven triggers, pay-per-use billing, and short-lived stateless functions (Function as a Service, FaaS).
Cloud deployment models
- Public cloud: owned by a provider, shared by many customers via the internet; cheap and scalable (AWS, Azure, GCP).
- Private cloud: exclusively for one organisation, on-premises or hosted; more control and security but higher cost.
- Community cloud: shared by organisations with common requirements (e.g. several banks or universities).
- Hybrid cloud: combination of public and private (or community) clouds, allowing data and application portability and cloud bursting.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 10 marks
What is service? Explain the SOAP based web service model? How it differs from RESTful architecture?
Answer
Service
A service is a self-contained, reusable unit of software functionality that is offered over a network through a well-defined interface and can be discovered and invoked independent of platform and language. A web service is such a service exposed over web protocols, the basis of Service-Oriented Architecture (SOA).
SOAP-based web service model
SOAP (Simple Object Access Protocol) uses XML messages over HTTP/SMTP. The model has three roles:
- Service provider: implements the service and publishes its description.
- Service registry (UDDI): a directory where services are published and discovered.
- Service requester (consumer): finds the service in the registry, fetches its WSDL and calls it.
Steps: the provider publishes a WSDL (Web Services Description Language) file describing operations, messages and endpoints to the UDDI registry; the requester finds it (find), binds to it (bind) and sends a SOAP message consisting of an Envelope containing an optional Header and a mandatory Body; the provider processes the request and returns a SOAP response.
Difference from RESTful architecture
| SOAP | REST |
|---|---|
| Protocol with strict rules | Architectural style |
| XML messages only | JSON, XML, text |
| Uses WSDL contract and UDDI | Uses URIs and standard HTTP methods (GET, POST, PUT, DELETE) |
| Heavier, slower | Lightweight, faster, cacheable |
| Built-in security (WS-Security) and transactions | Relies on HTTPS/OAuth |
| Operation-oriented (methods) | Resource-oriented |
| Can be stateful | Stateless |
| Suited for enterprise and banking systems | Suited for web and mobile APIs |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Explain the cloud computing security challenges and risks.
Answer
Cloud computing security challenges and risks
Challenges
- Data security and privacy: data is stored off-premises under a provider's control; encryption and key management are essential.
- Loss of control and visibility over infrastructure.
- Multi-tenancy: shared hardware raises the chance of data leakage between tenants.
- Identity and access management: weak authentication and mismanaged privileges.
- Compliance and legal issues: data location and regulations (GDPR etc.).
- Interface and API insecurity: poorly secured APIs are attack points.
- Network security during transmission over the internet.
Risks
- Data breaches and data loss.
- Account or service hijacking.
- Insider threats, including malicious provider staff.
- Denial of Service (DoS/DDoS) attacks.
- Misconfiguration of cloud resources (open storage buckets).
- Vendor lock-in and provider failure or outage.
- Malware and insecure virtual machines or hypervisor vulnerabilities.
- Insecure data deletion and weak backup/recovery.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
What is Graph Database? Explain different application of Graph Database.
Answer
Graph database
A graph database stores data as a graph of nodes (entities), edges (relationships) and properties (attributes on both). Relationships are stored directly, so traversing connections is fast and does not need costly joins as in relational databases. Examples: Neo4j, Amazon Neptune, ArangoDB, JanusGraph. Queries use languages such as Cypher, Gremlin and SPARQL.
Applications
- Social networks: friend suggestions, communities, influence analysis.
- Recommendation engines: "customers who bought this also bought" in e-commerce and streaming.
- Fraud detection: finding suspicious rings and unusual links among accounts and transactions.
- Knowledge graphs and search: semantic search, as used by search engines and AI assistants.
- Network and IT operations: impact analysis and root-cause finding in telecom and cloud networks.
- Route and logistics optimisation: shortest paths in maps and supply chains.
- Identity and access management: relationships between users, roles and resources.
- Bioinformatics and drug discovery: protein and gene interaction networks.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
How can we design the security architecture in the cloud? Explain.
Answer
Designing security architecture in the cloud
A cloud security architecture is designed in layers following the shared responsibility model (provider secures the cloud itself; customer secures what is in the cloud).
- Requirements and risk assessment: identify assets, threats, compliance needs and data classification.
- Identity and access management: strong authentication (MFA), role-based access, least privilege, single sign-on.
- Network security: virtual private clouds, subnets, firewalls, security groups, network segmentation, VPN, IDS/IPS and DDoS protection.
- Data security: encryption at rest and in transit, key management (KMS/HSM), data masking, backup and secure deletion.
- Application security: secure coding, web application firewall, API protection, vulnerability scanning.
- Infrastructure and host security: hardened VM images, patching, hypervisor and container security.
- Monitoring, logging and incident response: central logging, SIEM, alerts, audit trails and a response plan.
- Governance and compliance: policies, audits and standards such as ISO 27001.
- Resilience: redundancy, availability zones, disaster recovery.
Principles: defence in depth, zero trust, least privilege and automation of security controls.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Explain the Elasticity and On-demand provisioning in cloud computing.
Answer
Elasticity
Elasticity is the ability of a cloud to automatically and rapidly add or remove resources (CPU, memory, instances, storage) to match the current workload, so that capacity follows demand closely. When traffic rises (e.g. an exam result day or a sale) resources scale out; when it falls they scale in. This avoids both under-provisioning (slow service) and over-provisioning (wasted money), and is typically implemented with auto-scaling groups and load balancers. Scaling may be vertical (bigger machine) or horizontal (more machines).
On-demand provisioning
On-demand (self-service) provisioning lets users obtain computing resources whenever they need them, instantly and without human interaction with the provider, usually through a web portal or API. Resources are released when no longer needed, and the user pays only for usage. It supports quick deployment, removes procurement delays and upfront capital cost, and works through virtualization and automation.
Together they give flexibility, cost efficiency and fast response to changing business needs.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
What are the main characteristics of Platform as a Service Solution?
Answer
Main characteristics of Platform as a Service (PaaS)
PaaS provides a ready environment for developing, testing, deploying and managing applications without handling the underlying infrastructure.
- Development environment: built-in tools, programming languages, frameworks, libraries and IDE integration.
- Managed infrastructure: the provider looks after servers, OS, storage, networking, patching and runtime.
- Automatic scalability and load balancing of applications.
- Middleware and services: databases, messaging, web servers, APIs and analytics as ready components.
- Multi-tenancy: many users share the platform securely.
- Support for the whole lifecycle: build, test, deploy, version and monitor in one place, with collaboration for teams.
- Pay-as-you-go pricing and reduced cost and time to market.
- Integration with other services and databases through web services.
Examples: Google App Engine, Heroku, AWS Elastic Beanstalk, Azure App Service.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Explain Map Reduce in brief with suitable example.
Answer
MapReduce
MapReduce is a programming model and framework for processing large data sets in parallel across a cluster. A job has two user-written functions and a framework-managed shuffle:
- Map: reads input split records and emits intermediate pairs .
- Shuffle and sort: the framework groups all values by key.
- Reduce: combines the values of each key: .
The framework handles splitting, scheduling near the data, and fault tolerance by rerunning failed tasks.
Example: word count
Input lines: "cloud is big", "big data is cloud".
- Map output: (cloud,1), (is,1), (big,1), (big,1), (data,1), (is,1), (cloud,1)
- After shuffle: big: [1,1]; cloud: [1,1]; data: [1]; is: [1,1]
- Reduce output: (big,2), (cloud,2), (data,1), (is,2)
def map(line):
for w in line.split():
emit(w, 1)
def reduce(word, counts):
emit(word, sum(counts))
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Explain the fundamental principles of cloud security design.
Answer
Fundamental principles of cloud security design
- Defence in depth: multiple layers of controls (network, host, application, data) so one failure does not expose everything.
- Least privilege: users and services get only the permissions they need.
- Zero trust: never trust implicitly; verify every user, device and request.
- Confidentiality, integrity and availability (CIA): encryption, hashing and access control, plus redundancy.
- Separation of duties and isolation: segregate tenants, workloads and administrative roles.
- Secure by default and fail-safe defaults: deny access unless explicitly allowed.
- Strong identity and authentication: MFA and centralised identity management.
- Shared responsibility: be clear which controls belong to provider and which to customer.
- Continuous monitoring, logging and auditing with fast incident response.
- Compliance, privacy and data protection by design.
- Resilience and recoverability: backups, replication and disaster recovery.
- Automation and minimal attack surface: infrastructure as code, patching, and disabling unneeded services.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Differentiate between Thread Programming and Task Programming.
Answer
Thread programming vs task programming
| Aspect | Thread programming | Task programming |
|---|---|---|
| Basic unit | Thread: lightweight execution unit inside a process | Task: an independent unit of work (program or command) |
| Management | Programmer creates and synchronises threads explicitly | Runtime or scheduler assigns tasks to resources |
| Memory | Threads share memory; need locks and semaphores | Tasks mostly independent, communicate via files/messages |
| Granularity | Fine-grained | Coarse-grained |
| Scalability | Usually limited to one machine | Scales across many cluster/cloud nodes |
| Problems | Race conditions, deadlocks | Dependency ordering, data transfer |
| Fault tolerance | Manual | Failed tasks are re-executed by the framework |
| Typical use | Parallel loops, multi-core applications | Bag-of-tasks, parameter sweeps, workflows (e.g. Aneka task model) |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Write Short notes on (a) Cloud Stakeholders (b) Fog Computing
Answer
(a) Cloud stakeholders
Cloud stakeholders are the parties involved in providing, using and governing cloud services:
- Cloud service provider: owns and operates the infrastructure and delivers IaaS, PaaS or SaaS (AWS, Azure).
- Cloud consumer/customer: organisation or individual that uses the services.
- Cloud broker: intermediary who negotiates, aggregates and integrates services from several providers.
- Cloud auditor: independent party who assesses security, privacy and performance.
- Cloud carrier: network and telecom provider delivering connectivity.
- Developers/end users and regulators: build applications, use them, or enforce compliance.
(b) Fog computing
Fog computing extends cloud computing to the edge of the network. Processing, storage and networking are performed on fog nodes (routers, gateways, local servers) close to IoT devices rather than only in a distant data centre. Benefits: low latency, reduced bandwidth use, better real-time response, improved privacy and operation during poor connectivity. Applications: smart cities, connected vehicles, healthcare monitoring, industrial IoT. The architecture has three layers: device (things), fog and cloud.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 10 marks
What is server less computing? How FAAS works? What are the characteristics and challenges of cloud computing?
Answer
Serverless computing
Serverless computing is a cloud model where the provider automatically manages servers, provisioning and scaling; developers deploy code and pay only for actual execution time. Servers exist but are invisible to the developer. Examples: AWS Lambda, Azure Functions, Google Cloud Functions.
How FaaS works
Function as a Service (FaaS) is the core of serverless:
- The developer writes a small, stateless function and uploads it with its configuration.
- The function is bound to an event trigger: an HTTP request through an API gateway, file upload, database change, message queue or timer.
- When the event occurs, the platform starts a container to run the function (a cold start if none is ready; reused containers give warm starts).
- The function executes, returns a result or writes output to storage or a database.
- The platform scales instances automatically with the number of events, and shuts them down when idle.
- The user is billed per invocation and execution time (milliseconds and memory).
Characteristics of cloud computing
- On-demand self-service.
- Broad network access.
- Resource pooling (multi-tenancy).
- Rapid elasticity and scalability.
- Measured service (pay-per-use).
- High availability and reliability.
Challenges of cloud computing
- Security and privacy of data.
- Compliance and legal issues.
- Vendor lock-in and interoperability.
- Downtime, performance and latency dependent on the internet.
- Limited control and visibility.
- Cost management, hidden costs.
- Data migration and integration with existing systems.
- Lack of skilled staff.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 10 marks
Define virtualization. What is the significance of virtualization in cloud computing? How VMware and hypervisor work?
Answer
Virtualization
Virtualization is the creation of a virtual (software-based) version of a computing resource such as a server, operating system, storage device or network, allowing one physical resource to be shared by multiple isolated environments.
Significance in cloud computing
- It is the foundation of cloud: IaaS is built by running many VMs on shared hardware.
- Resource pooling and better utilisation of servers.
- Multi-tenancy and isolation between customers.
- Elasticity and rapid provisioning: VMs are created or removed in minutes.
- Cost reduction through consolidation of hardware, power and space.
- Flexibility and portability: VMs can be moved or live-migrated between hosts.
- Disaster recovery using snapshots and replication.
- Legacy support: different OSes on the same hardware.
How VMware and hypervisor work
VMware provides virtualization software. Its bare-metal hypervisor ESXi is installed directly on the physical server. The hypervisor:
- Takes control of the hardware (CPU, RAM, disks, NICs).
- Creates virtual machines, each with virtual hardware, and runs a guest OS inside. Privileged guest instructions are trapped and emulated or run using hardware-assisted virtualization (Intel VT-x, AMD-V).
- Schedules CPU time and allocates memory (with techniques like ballooning and page sharing).
- Provides virtual switches and datastores (VMFS) for network and storage.
- Is managed centrally by vCenter Server, which offers vMotion (live migration), HA, DRS (load balancing) and snapshots.
A Type 2 hypervisor such as VMware Workstation instead runs as an application on a host OS.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 10 marks
What is thread programming? How can map reducing is used in cloud programming model? Support your answer with suitable example.
Answer
Thread programming
Thread programming divides an application into threads, lightweight units of execution within a process that share memory and run concurrently, exploiting multiple cores or nodes. The programmer creates threads, assigns work, and synchronises them using locks, semaphores and barriers to avoid race conditions and deadlock. In cloud platforms (e.g. Aneka) a thread model allows the threads of an application to be distributed transparently over cloud resources, while the API resembles local thread programming (start, join, abort).
Example (Python):
from threading import Thread
results = [0]*4
def work(i, data):
results[i] = sum(data)
data = [[1,2],[3,4],[5,6],[7,8]]
ts = [Thread(target=work, args=(i, data[i])) for i in range(4)]
for t in ts: t.start()
for t in ts: t.join()
print(sum(results)) # 36
MapReduce in the cloud programming model
MapReduce lets users process huge data sets on cloud clusters without handling threads or communication. The user writes only:
- map
- reduce
The runtime splits input across nodes, runs map tasks near the data, shuffles and sorts intermediate pairs by key, runs reducers, and re-executes failed tasks. Cloud services such as Hadoop on EC2 or Amazon EMR provide it on demand.
Example (word count): input "to be or not to be".
- Map: (to,1) (be,1) (or,1) (not,1) (to,1) (be,1)
- Shuffle: be:[1,1], not:[1], or:[1], to:[1,1]
- Reduce: (be,2) (not,1) (or,1) (to,2)
Thus MapReduce provides simple, scalable, fault-tolerant parallelism, whereas raw thread programming needs explicit synchronisation.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Differentiate Grid Computing from Fog Computing.
Answer
Grid computing vs fog computing
| Aspect | Grid computing | Fog computing |
|---|---|---|
| Idea | Many loosely coupled, geographically distributed computers combine to act as one supercomputer | Cloud-like services moved to network edge nodes near the data source |
| Goal | Solve large, compute-intensive problems | Low-latency, real-time processing for IoT and edge devices |
| Resources | Heterogeneous computers from different organisations | Routers, gateways, edge servers and small data centres |
| Location | Wide area, often far from users | Close to end devices |
| Latency | High; batch-oriented | Very low |
| Typical workloads | Scientific simulation, genome analysis, SETI@home | Smart city, vehicles, healthcare monitoring, industrial IoT |
| Management | Virtual organisations, middleware (Globus) | Cloud-fog orchestration, hierarchical |
| Data handling | Data moved to compute nodes | Data processed locally, only summaries sent to cloud |
| Ownership | Shared, non-commercial/academic nature | Commercial and service-based |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Discuss cloud deployment models.
Answer
Cloud deployment models
- Public cloud: infrastructure owned by a provider and offered to the general public over the internet; pay-as-you-go, highly scalable, low cost but less control (AWS, Azure, Google Cloud).
- Private cloud: operated solely for one organisation, on-premises or hosted; high security, control and compliance but higher cost and maintenance.
- Community cloud: shared by several organisations with common concerns such as security or regulation (e.g. government bodies, universities); costs are shared.
- Hybrid cloud: combines public and private clouds, bound by technology that allows data and application portability; sensitive data stays private while peak loads use the public cloud (cloud bursting).
- Multi-cloud: uses services from multiple providers to avoid lock-in.
Choice depends on cost, security, control, compliance and scalability needs.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
How server and storage virtualization can be done?
Answer
Server virtualization
Server virtualization divides one physical server into several isolated virtual servers.
- Install a hypervisor: Type 1 (ESXi, Xen, KVM, Hyper-V) on bare metal.
- The hypervisor abstracts CPU, RAM, disk and network into virtual hardware.
- Create virtual machines, assigning vCPUs, memory, virtual disks and virtual NICs, and install guest operating systems.
- Manage the VMs with a central tool (vCenter, OpenStack) for provisioning, snapshots, live migration and load balancing.
Techniques: full virtualization, para-virtualization and hardware-assisted virtualization (Intel VT-x/AMD-V). Containers offer OS-level alternative.
Storage virtualization
Storage virtualization pools physical storage from multiple devices so that it appears as a single logical store.
- A virtualization layer (software, appliance or controller) sits between hosts and physical storage.
- It maps logical volumes (LUNs) to physical blocks across disks and arrays (block-level) or maps logical files to physical locations (file-level).
- It can be done host-based (volume managers), network-based (SAN virtualization appliance, in-band or out-of-band) or array-based (storage controller).
- Features: thin provisioning, snapshots, replication, tiering and non-disruptive data migration.
Benefits: better utilisation, simplified management and flexible expansion.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
How web services can be developed using SOAP and REST?
Answer
Developing web services with SOAP
- Define the service interface: write the WSDL describing operations, input/output messages, data types (XSD) and endpoint.
- Implement the service in a language such as Java (JAX-WS) or .NET (WCF), generating server stubs from the WSDL.
- Publish the service on a server and optionally register it in a UDDI registry.
- Client obtains the WSDL, generates a proxy and sends a SOAP request:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<getPrice><item>Book</item></getPrice>
</soap:Body>
</soap:Envelope>
- The server processes it and returns a SOAP response (or Fault) over HTTP.
Developing web services with REST
- Identify resources and give each a URI, e.g.
/books/12. - Map operations to HTTP methods: GET (read), POST (create), PUT (update), DELETE (remove).
- Implement with frameworks such as JAX-RS, Spring Boot, Flask or Express; return representations in JSON or XML with proper status codes (200, 201, 404).
- Keep the service stateless and cacheable.
- Clients call the URL directly:
GET /books/12 -> {"id":12,"title":"Cloud Computing","price":450}
SOAP is contract-driven and heavy; REST is simple and lightweight.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
How cloud availability and disaster recovery is done in cloud computing?
Answer
Cloud availability
Availability is the proportion of time a service is accessible, e.g. ; "99.99%" allows about 52 minutes of downtime per year. It is achieved by:
- Redundancy: duplicate servers, storage and network paths.
- Multiple Availability Zones and regions so a data centre failure does not stop service.
- Load balancing and health checks that route traffic away from failed nodes.
- Auto scaling and auto healing replace failed instances.
- Data replication (synchronous or asynchronous) across zones.
- Live migration and clustering of VMs.
- Monitoring and SLAs.
Disaster recovery
Disaster recovery (DR) restores systems after major failures such as natural disasters, cyber attacks or human error. Steps:
- Define RPO (tolerable data loss) and RTO (tolerable downtime) via business impact analysis.
- Regular backups and snapshots, stored offsite or in another region.
- Replication of data and VMs to a secondary site.
- DR strategies by cost and speed: backup and restore, pilot light (minimal core running), warm standby (scaled-down copy), and multi-site active-active.
- Failover to the DR site and failback after recovery, using automation (e.g. AWS Elastic Disaster Recovery, Azure Site Recovery).
- Testing the DR plan regularly and documenting procedures.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Explain cloud security architecture.
Answer
Cloud security architecture
Cloud security architecture is the design of controls, policies and technologies that protect cloud data, applications and infrastructure. It is layered and follows the shared responsibility model.
Main layers and components
- Physical and infrastructure security: secured data centres, hardware, redundant power (provider responsibility).
- Network security: firewalls, virtual private cloud, segmentation, VPN, IDS/IPS, DDoS protection.
- Identity and access management (IAM): authentication, MFA, role-based access, single sign-on.
- Data security: encryption in transit and at rest, key management, data loss prevention, backup.
- Virtualization/host security: hypervisor hardening, VM isolation, patching, container security.
- Application security: secure development, WAF, API security, vulnerability testing.
- Security management: logging, monitoring, SIEM, incident response, auditing.
- Governance, risk and compliance: policies, standards (ISO 27001), privacy rules.
Principles: defence in depth, least privilege, zero trust and continuous monitoring, giving confidentiality, integrity and availability.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
How identity management and access control is done in cloud security?
Answer
Identity management and access control in cloud security
Identity management (IdM) establishes and maintains digital identities of users, devices and services:
- Provisioning and deprovisioning: creating accounts when users join and removing them when they leave.
- Authentication: verifying identity by passwords, multi-factor authentication, biometrics, certificates or tokens.
- Single sign-on (SSO) and federation: one login across services using standards such as SAML, OAuth 2.0 and OpenID Connect.
- Directory services: central user stores such as Active Directory or cloud IAM (AWS IAM, Azure AD).
Access control decides what an authenticated identity may do (authorisation):
- Role-based (RBAC): permissions assigned to roles, users assigned to roles.
- Attribute-based (ABAC): decisions from user, resource and context attributes.
- Discretionary/Mandatory models according to owner or policy.
- Least privilege and separation of duties in policies.
- Policies and tokens attached to users, groups or services, with temporary credentials.
Supporting practices: logging and auditing of access, periodic access reviews, privileged access management and conditional access (based on location or device).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
How data is stored in columnar storage and row storage?
Answer
Row storage
In a row-oriented store, all fields of one record are stored together contiguously on disk. For a table with columns (ID, Name, Marks):
[1, Ram, 80] [2, Sita, 90] [3, Hari, 70]
- Efficient for reading or writing a whole record at once.
- Suited to OLTP workloads: inserts, updates, point lookups (MySQL, PostgreSQL, Oracle).
- Inefficient for analytics, since reading one column requires scanning all columns of every row.
Columnar storage
In a column-oriented store, the values of each column are stored together:
ID: 1, 2, 3
Name: Ram, Sita, Hari
Marks: 80, 90, 70
- Queries like
AVG(Marks)read only the needed column, reducing I/O. - Similar values together give high compression (run-length, dictionary encoding) and fast vectorised processing.
- Suited to OLAP, data warehouses and big data analytics (Redshift, BigQuery, Parquet, Cassandra-like column families).
- Inserting or updating a single full row is slower, because several column files must be touched.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
What is graph database? How graph processing is done?
Answer
Graph database
A graph database stores data as nodes (entities), edges (relationships between nodes) and properties (key-value attributes). Relationships are first-class and stored directly, so connected data is traversed fast without joins. Examples: Neo4j, Amazon Neptune. Queried with Cypher, Gremlin or SPARQL.
Graph processing
Graph processing analyses large graphs to extract insight from structure. It is done in two ways:
- Graph database queries (online): traversals and pattern matching, e.g. find friends-of-friends, shortest path.
- Graph analytics (offline, large-scale): distributed frameworks process the whole graph with iterative algorithms:
- Pregel-style "think like a vertex" model: computation proceeds in supersteps; in each, a vertex receives messages, updates its state, and sends messages to neighbours; the process halts when all vertices vote to halt (BSP model).
- Implementations: Apache Giraph, Spark GraphX, GraphLab, Neo4j Graph Data Science.
Common algorithms: PageRank, shortest path, connected components, community detection, centrality and triangle counting. Graph is partitioned across cluster nodes (edge-cut or vertex-cut) to scale on the cloud.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from TU BIT 2080 Seventh Semester Advanced Java Programming (TU IOST semester board exam, 2080 (BS), via StudyNp), TU BIT 2081 Seventh Semester Advanced Java Programming (TU IOST semester board exam, 2081 (BS), via StudyNp), TU BIT 2082 Seventh Semester Advanced Java Programming (TU IOST semester board exam, 2082 (BS), via StudyNp), TU BIT 2080 Seventh Semester Software Project Management (TU IOST semester board exam, 2080 (BS), via StudyNp), TU BIT 2081 Seventh Semester Software Project Management (TU IOST semester board exam, 2081 (BS), via StudyNp), TU BIT 2082 Seventh Semester Software Project Management (TU IOST semester board exam, 2082 (BS), via StudyNp), TU BIT 2080 Seventh Semester E-Commerce (TU IOST semester board exam, 2080 (BS), via StudyNp), TU BIT 2081 Seventh Semester E-Commerce (TU IOST semester board exam, 2081 (BS), via StudyNp), TU BIT 2082 Seventh Semester E-Commerce (TU IOST semester board exam, 2082 (BS), via StudyNp), TU BIT 2081 Seventh Semester Mobile Application Development (TU IOST semester board exam, 2081 (BS), via StudyNp), TU BIT 2080 Seventh Semester Cloud Computing (TU IOST semester board exam, 2080 (BS), via StudyNp), TU BIT 2081 Seventh Semester Cloud Computing (TU IOST semester board exam, 2081 (BS), via StudyNp) and TU BIT 2082 Seventh Semester Cloud Computing (TU IOST semester board exam, 2082 (BS), via StudyNp). Answers are written for this site; check them against your class notes.