Papers
Papers
1.a. Classify the following into IaaS, PaaS, and SaaS models with
proper justification
1. AWS EC2 (Elastic Compute Cloud):
Justification: AWS EC2 provides virtual servers which users can configure
and control, making it a core infrastructure service where users manage
their own software applications and operating systems.
3. Office 365:
1,2 papers 1
SaaS (Software as a Service)
Scalability:
Difference:
1,2 papers 2
Monolithic Applications:
Easier to develop and deploy initially but becomes complex and difficult to
manage as it grows.
Microservices Applications:
Challenges in Migration:
Example:
Benefits:
1,2 papers 3
Cost Efficiency: Pay only for the compute resources used during the
execution of the code, reducing idle time costs.
Kubelets:
Pods:
Diagram Description:
1,2 papers 4
The guest operating system is aware of the virtualization environment and
communicates with the hypervisor using special API calls.
Full Virtualization:
Differences:
Full Virtualization does not require changes to the guest OS, as it fully
emulates the underlying hardware.
Types:
1. Live Migration:
2. Cold Migration:
Moves VMs while they are powered off, typically used for system
maintenance or upgrades.
Differences:
1,2 papers 5
Live Migration maintains service continuity with no downtime.
Cold Migration requires shutting down the VM, leading to some downtime.
Techniques:
Pre-copy:
Initial Copy: Most of the VM's memory is copied to the destination while
the VM continues running on the source.
Final Copy: The remaining memory and state changes are copied after the
initial transfer, minimizing downtime.
Post-copy:
Execution Start: The VM starts running at the destination with the basic
state.
Final Copy: The remaining memory pages are fetched from the source as
needed, potentially reducing initial migration time but may increase overall
transfer duration.
Explanation: Cloud resources like servers and storage are provided over
the internet by third-party providers and shared by multiple users.
2. Private Cloud:
1,2 papers 6
Explanation: Cloud resources are used exclusively by one organization,
either on-premises or hosted by a third-party provider.
3. Hybrid Cloud:
4. Community Cloud:
1. GET:
2. POST:
3. PUT:
4. DELETE:
1,2 papers 7
Explanation: Removes a resource from the server.
Example:
Benefit: Businesses save money by only paying for the resources they
use.
2. Scalability:
3. Accessibility:
1,2 papers 8
Benefit: Employees can work from different locations, improving flexibility
and collaboration.
4. Disaster Recovery:
5. Automatic Updates:
Components:
1. Docker Client:
2. Docker Daemon:
3. Docker Images:
4. Docker Containers:
5. Docker Registry:
1,2 papers 9
Diagram Description:
2.b. Consider a situation where you are required to apply any one
of these types of virtualization. Mark the appropriate
virtualization type for each requirement and justify your answer.
(i) Run some dedicated applications on the VMs created on the guest OS and
run some other applications on the host OS directly:
Justification: This allows running a guest OS on top of the host OS, enabling
the use of applications on both the guest and host OS simultaneously.
1,2 papers 10
Similarities:
1. Isolation:
2. Portability:
Differences:
1. Resource Utilization:
2. Startup Time:
VMs: Take longer to start because they need to boot a complete operating
system.
1,2 papers 11
Explanation: Cloud services are accessible over the internet from various
devices, like laptops, smartphones, and tablets.
3. Resource Pooling:
4. Rapid Elasticity:
5. Measured Service:
Example: A company pays for the exact amount of storage and computing
power they used in a month.
Example: Different businesses use the same cloud-based CRM system but
have their data securely separated.
1,2 papers 12
1. IaaS (Infrastructure as a Service):
Example: Amazon EC2 offers virtual servers that users can configure and
manage.
Scenario: A startup uses IaaS to host its website, renting virtual machines
and storage instead of buying physical hardware.
Deployment Models:
1. Public Cloud:
1,2 papers 13
Scenario: A business uses a public cloud to host its online services,
sharing resources with other users to reduce costs.
2. Private Cloud:
3. Hybrid Cloud:
Example: A company uses a private cloud for sensitive data and a public
cloud for less sensitive data.
4. Community Cloud:
1.c. List out and explain the REST architectural style with four
principles
1. Stateless:
Explanation: Each request from a client to the server must contain all the
information needed to understand and complete the request. The server
1,2 papers 14
does not store any session information about the client.
2. Client-Server:
Explanation: The client and server are separate entities that communicate
over a network. This separation allows each to evolve independently.
Example: A web browser (client) requests data from a web server (server)
via HTTP requests.
3. Cacheable:
4. Uniform Interface:
Example: Using HTTP methods like GET, POST, PUT, and DELETE to
perform operations on resources identified by URLs.
Features:
1,2 papers 15
2. Supports Multiple VMs: Can create and manage several VMs, each
running its own operating system and applications.
Example:
Diagram Description:
2.b. Explain Shadow page table using a neat diagram. What are
usually faced challenges in shadow page table?
Shadow Page Table:
Challenges:
1. Performance Overhead:
2. Complexity:
Diagram Description:
1,2 papers 16
Guest OS -> Guest Page Table -> Shadow Page Table -> Host Physical
Memory
Steps:
1. Preparation:
2. Pre-Copy Phase:
Explanation: Most of the VM’s memory is copied from the source host to
the destination host while the VM continues to run on the source.
Explanation: Memory pages modified during the initial copy are re-copied
to the destination, reducing the number of changes that need to be
transferred later.
4. Stop-and-Copy Phase:
5. Resume Phase:
Diagram Description:
1,2 papers 17
Source Host (VM Running) -> Memory Copy -> Destination Host (VM
Running)
1.a. List and explain briefly the relative merits and demerits of
SaaS, IaaS, and PaaS models of cloud deployment.
1. SaaS (Software as a Service):
Merits:
1. Ease of Use: Applications are ready to use immediately, with no need for
installation or maintenance.
2. Cost-Effective: Users often pay a subscription fee, reducing the need for
large upfront investments.
Demerits:
Merits:
1,2 papers 18
Example: Using Google App Engine to build web applications quickly.
Demerits:
2. Less Control: Users have limited control over the underlying hardware.
Merits:
1. High Flexibility: Users have control over the entire infrastructure, including
operating systems and storage.
Demerits:
1,2 papers 19
1.b. What is serverless computing? List the advantages of
serverless computing. Give an example real-world cloud service
that employs serverless computing.
Serverless Computing:
Advantages:
1. Cost Efficiency: Pay only for the compute time used, reducing costs when the
application is idle.
Example Service:
1,2 papers 20
Explanation: An architectural style where different services communicate
over a network to provide functionality. Services are usually larger and can
be reused across multiple applications.
Microservices:
Differences:
1. Granularity:
2. Communication:
REST APIs:
Role in SOA/Microservices:
1,2 papers 21
Microservices: REST APIs are commonly used for communication
between microservices, enabling them to work together seamlessly.
Example: An online retail website adds more servers during a big sale and
reduces them afterward to handle fluctuating traffic.
Scalability:
Example: A social media platform adds more servers as its user base
grows to maintain performance.
Difference:
Elasticity:
Scalability:
1,2 papers 22
2.a. List and Explain any two similarities and differences between
VMs and Containers
Similarities:
1. Isolation:
2. Portability:
Differences:
1. Resource Utilization:
VMs:
Containers:
2. Startup Time:
VMs:
1,2 papers 23
Explanation: Take longer to start because they need to boot a
complete operating system.
Containers:
PID Namespace:
Function: Each container can have processes with the same PID as processes
in other containers, without conflict.
Example: A process with PID 1 in one container is isolated from a process with
PID 1 in another container.
UTS Namespace:
Function: Allows each container to have its own hostname, making it appear
as a separate system on the network.
1,2 papers 24
2.c. What are controller-manager, kubelets, and pods in
Kubernetes? Explain with a diagram where each of them executes
– on master or worker?
Controller-Manager:
master node and manages different controllers that handle routine tasks like
ensuring the desired state of the system, managing replication, and monitoring
nodes.
Role: Ensures that the specified number of pod replicas are running and
monitors the health of nodes.
Kubelets:
Role: Communicates with the master to receive instructions and report the
status of the pods running on the worker node.
Pods:
Diagram Description:
1,2 papers 25
Hot Migration:
Cold Migration:
Difference:
Hot Migration:
Cold Migration:
Pre-Copy Technique:
Explanation: Most of the VM’s memory is copied from the source to the
destination while the VM continues running.
Steps:
1. Initial Copy: The majority of memory pages are copied while the VM is still
active.
2. Iterative Copy: Pages modified during the initial copy are recopied.
3. Final Copy: The VM is briefly paused, and the remaining memory and state
changes are transferred.
1,2 papers 26
Post-Copy Technique:
Explanation: The VM is moved to the destination first, and then its memory is
copied over as it continues running.
Steps:
3. Memory Copy: Remaining memory pages are copied from the source as
needed.
Goal: Minimize the migration time by starting the VM on the destination host
as soon as possible.
Example: A company pays only for the storage and computing resources it
uses, avoiding large upfront investments in servers.
2. Scalability:
Example: An eCommerce site can handle traffic spikes during sales events
by scaling up resources and scaling down afterward.
3. Accessibility:
1,2 papers 27
Explanation: Access applications and data from anywhere with an internet
connection, enabling remote work and collaboration.
4. Disaster Recovery:
5. Automatic Updates:
6. Enhanced Collaboration:
2. Rapid Provisioning:
1,2 papers 28
Example: Instantly launching a new virtual machine through a cloud
provider’s web portal.
3. Measured Service:
4. Resource Pooling:
3. Data Parallelism:
1,2 papers 29
4. Task Parallelism:
Example: One processor handles data input while another processes the
data, and a third outputs the results, all running in parallel.
Advantages:
Disadvantages:
1. Higher Costs: Typically more expensive due to the need for dedicated
hardware and maintenance.
Public Cloud:
Advantages:
1,2 papers 30
Example: Startups can launch applications without significant capital
investment.
Disadvantages:
Baremetal Hypervisor:
1,2 papers 31
2.b. How paravirtualization and full virtualization techniques are
used to virtualize x86? Explain.
Paravirtualization:
Explanation: The guest OS is aware of the virtualization and interacts with the
hypervisor via special APIs, reducing the overhead of emulating hardware.
Benefits:
Drawbacks:
Full Virtualization:
Benefits:
Drawbacks:
1,2 papers 32
Explanation: The process of moving a running virtual machine (VM) from one
host to another with minimal downtime.
Cold Migration:
Explanation: The process of moving a VM that is powered off from one host to
another.
Difference:
Pre-Copy Technique:
Explanation: Most of the VM’s memory is copied from the source to the
destination while the VM continues running.
Steps:
1. Initial Copy: Majority of memory pages are copied while the VM remains
active.
2. Iterative Copy: Pages modified during the initial copy are recopied.
3. Final Copy: The VM is paused briefly, and the remaining memory and state
changes are transferred.
Post-Copy Technique:
Explanation: The VM is moved to the destination first, and then its memory is
copied over while it continues running.
Steps:
1,2 papers 33
3. Memory Copy: Remaining memory pages are copied from the source as
needed.
VMs:
Example**: Each VM runs a separate OS, consuming more memory and CPU.
Containers:
1. Startup Time:
VMs:
Containers:
2. Isolation:
VMs:
1,2 papers 34
Explanation: Provide strong isolation as each VM runs a separate OS.
Containers:
VMs:
Containers:
1,2 papers 35
Example: Amazon EC2 offers virtual servers that users can configure
and manage.
Deployment Models:
1. Public Cloud:
2. Private Cloud:
1,2 papers 36
Explanation: Cloud resources are dedicated to a single organization,
providing more control and security.
3. Hybrid Cloud:
4. Community Cloud:
1,2 papers 37
Explanation: Cloud services are available over the internet and
accessible from various devices, such as laptops, smartphones, and
tablets.
3. Resource Pooling:
4. Rapid Elasticity:
5. Measured Service:
Example: Paying for cloud storage based on the amount of data stored
and the time it is stored.
Components:
1,2 papers 38
1. Front-End:
2. Back-End:
Components:
4. Network:
Diagram:
1,2 papers 39
2.a. Explain in detail Bare Metal virtualization and Host-based
virtualization with a diagram.
Bare Metal Virtualization (Type 1 Hypervisor):
Diagram:
| Physical Hardware |
|-------------------|
| Hypervisor |
|-------------------|
| Virtual Machines |
Diagram:
| Physical Hardware |
|------------------------|
| Host OS |
|------------------------|
| Type 2 Hypervisor |
|------------------------|
| Virtual Machines |
1,2 papers 40
2.b. Explain why DevOps is needed? How is DevOps different
from traditional software development and operations
process?
Why DevOps is Needed:
Benefits:
1. Improved Collaboration:
2. Faster Delivery:
3. Enhanced Quality:
4. Scalability:
5. Reliability:
1,2 papers 41
Example: Implementing monitoring tools like Prometheus to track
application performance.
2. Release Cycle:
3. Automation:
Docker Containers:
1,2 papers 42
Example: Multiple containers can run on a single host with minimal
overhead.
2. Startup Time:
VMs:
Containers:
3. Isolation:
VMs:
Containers:
VMs:
Containers:
1,2 papers 43
Example: Containers can be easily moved across different
environments, such as from a developer’s laptop to a production
server.
1,2 papers 44