0% found this document useful (0 votes)
2 views18 pages

Cloud Computing Virtualization & MapReduce Guide

Uploaded by

srinuajau
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views18 pages

Cloud Computing Virtualization & MapReduce Guide

Uploaded by

srinuajau
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Cloud Computing

Unit 3
IMP QNs Solved
Shiva Priya EduWorld
UNIT – 3 IMPORTANT QUESTIONS
[Link] is virtualization? Explain the types of virtualization and their role in cloud computing.
[Link] the architecture of virtualization with a neat diagram and describe how it improves resource
utilization.
[Link] are hypervisors? Explain the types of hypervisors with examples and their advantages in cloud
environments.
[Link] the challenges and issues in virtualization, such as performance, security, and VM migration.
[Link] is the MapReduce programming model? Explain its working with a simple example of Map and
Reduce functions.
[Link] the MapReduce architecture and explain how it supports large-scale data processing in cloud
environments.
[Link] is Cloud Haskell? Explain its features and how it supports distributed programming in the cloud.
[Link] Cloud Haskell and MapReduce as programming models for cloud-based applications.
[Link] software development in the cloud and describe the tools, platforms, and environments used for
cloud-based application development.
[Link] the benefits and challenges of developing, testing, and deploying applications using cloud
programming models.

Shiva Priya EduWorld


1. What is virtualization? Explain the types of virtualization and their role in cloud computing.
Virtualization is a technology that allows one physical machine to run multiple virtual machines (VMs). Each
VM acts like a separate computer with its own OS and applications. It improves hardware usage and reduces
cost.
Types of Virtualization
[Link] Virtualization
Physical hardware is divided into multiple virtual machines using a hypervisor.
Example: VMware, VirtualBox.
[Link] System Virtualization
Multiple isolated user spaces run on a single operating system.
Example: Containers like Docker.
[Link] Virtualization
One physical server is split into many virtual servers.
Each server runs independently.
Used in data centers.
[Link] Virtualization
Multiple storage devices are combined into a single storage pool.
Improves storage management and performance.
[Link] Virtualization
Combines network resources and divides them into virtual networks.
Example: VLANs, Software-Defined Networking.

Shiva Priya EduWorld


2. Explain the architecture of virtualization with a neat diagram and describe how it improves
resource utilization.

The architecture shows how virtualization creates a virtual data centre where applications and
infrastructure run on shared cloud resources.
Application Management
Manages all apps like Windows, Linux, DotNet, SaaS, Desktop, etc., running in virtual machines.
Application Virtual Services
Provides key services such as availability, security, and scalability to applications inside the cloud.
Virtual Operating System & Data Centre
This is the main layer that creates and controls virtual machines.
It hides physical hardware and provides virtual CPU, virtual memory, storage, and network to each VM.
Infrastructure Virtual Services
Handles virtual compute, storage, and network resources that support all VMs.
Cloud Virtual Services
Provides cloud-specific features like backup, monitoring, load balancing, and VM management.
Infrastructure Management
Manages the underlying physical hardware used by the virtual environment.
On-Premise and Off-Premise Cloud
Shows that virtualization works in both private clouds (inside the company) and public clouds (like AWS,
Azure, etc.).

Shiva Priya EduWorld


How Virtualization Improves Resource Utilization:
[Link] VMs share the same physical hardware, so no resources remain
idle.
[Link], memory, and storage are allocated dynamically based on demand.
[Link] resources of one VM can be used by another VM.
[Link] hardware is used more effectively, reducing wastage.
[Link] providers can run many customers’ VMs on fewer servers.
[Link] utilization leads to reduced cost, higher efficiency, and improved
performance.
3. What are hypervisors? Explain the types of hypervisors with examples and their
advantages in cloud environments.

A hypervisor is a software layer that creates and manages virtual machines (VMs).
It sits on top of physical hardware and allows multiple operating systems to run at the same time on one
physical machine.
Because of the hypervisor, each VM works like a separate computer.

Types of Hypervisors
[Link] 1 Hypervisor (Bare-Metal Hypervisor)
Runs directly on the physical hardware.
It does NOT need any operating system below it.
Examples:
• Microsoft Hyper-V
• VMware ESXi
• Citrix XenServer
• KVM (Kernel-based Virtual Machine)
Features:
• Fast
• Highly secure
• Best for data centers and cloud providers

Shiva Priya EduWorld


Type 2 Hypervisor (Hosted Hypervisor)
Runs on top of an existing operating system.
The OS must be installed first, then the hypervisor is installed as software.
Examples:
• Oracle VirtualBox
• VMware Workstation
• VMware Player
• Parallels (Mac)
Features:
• Easy to install
• Best for personal use, testing, and development

Advantages of Hypervisors in Cloud Environments


[Link] resource utilization: Multiple VMs share the same physical hardware efficiently.
[Link] reduction: Fewer physical servers are needed, saving money and power.
[Link]: Each VM is separate, so issues in one VM do not affect others.
[Link]: Cloud providers can quickly add or remove VMs based on demand.
[Link] VM migration: VMs can be moved from one server to another without stopping services (live migration).
[Link]: Hypervisors add a layer of control, making cloud systems more secure.
[Link] deployment: New VMs can be created in seconds, helping cloud providers deliver services quickly.

Shiva Priya EduWorld


4. Explain the challenges and issues in virtualization, such as performance, security,
and VM migration.
[Link] Issues
• Virtual machines share the same physical CPU, memory, and storage.
• When many VMs run together, performance may decrease.
• Disk I/O and network I/O become slow if overloaded.
• Some applications (real-time apps, graphics-heavy apps) may not perform well in VMs.
[Link] Issues
• A single infected VM can affect other VMs if isolation is weak.
• Hypervisor attacks: hackers may try to control the hypervisor itself.
• Data leakage can happen if VMs share resources improperly.
• Misconfigured virtual networks can allow unauthorized access.
[Link] Migration Issues
(When moving a virtual machine from one host to another)
• Live migration requires high bandwidth and stable network.
• Migration can slow down applications during data transfer.
• Different hardware between servers may create compatibility issues.
• Storage mapping (virtual disks) may fail if not managed properly.
• Migration failures can lead to downtime or data loss.

Shiva Priya EduWorld


5. What is the MapReduce programming model? Explain its working with a simple
example of Map and Reduce functions.

MapReduce is a programming model used for processing and analyzing large datasets in a distributed
cloud environment.
It breaks the data processing into two main functions: Map and Reduce.
It helps in parallel processing across multiple machines efficiently.

Working of MapReduce
[Link] Function
• Processes input data and converts it into key-value pairs.
• Each input is processed independently in parallel.
[Link] and Sort
• Key-value pairs from all map tasks are collected, sorted, and grouped by key.
• Prepares data for the Reduce function.
[Link] Function
• Takes the grouped key-value pairs.
• Performs aggregation, summarization, or computation.
• Produces the final output.

Shiva Priya EduWorld


6. Describe the MapReduce architecture and explain how it supports large-scale data processing
in cloud environments.

Components:
•Job Tracker / Resource Manager: Manages the overall
processing, schedules tasks, and monitors progress.
•Task Tracker / Node Manager: Executes tasks assigned
by the Job Tracker on worker nodes.
•Input Data Splits: Large datasets are divided into smaller
chunks, usually stored in a distributed file system like
HDFS.
•Map Function: Processes input data chunks
independently, producing intermediate key-value pairs.
•Shuffle and Sort: Organizes and groups the intermediate
key-value pairs by key, preparing them for reduction.
•Reduce Function: Aggregates and processes the grouped
key-value pairs to produce the final output.
•Output Storage: The results are stored back in the
distributed file system for further use.

Shiva Priya EduWorld


[Link]:
•Input data is split and distributed across multiple nodes.
•Map tasks run in parallel on each node to process data locally.
•Intermediate results are shuffled and sorted across nodes by keys.
•Reduce tasks process the grouped data to produce the final output.
•Final results are saved in a distributed storage system.

How MapReduce Supports Large-Scale Data Processing in Cloud Environments:


•Scalability: Can process petabytes of data by adding more nodes to the cluster.
•Fault Tolerance: If a node fails, tasks are automatically reassigned to other nodes.
•Parallel Processing: Multiple map and reduce tasks run simultaneously, speeding up computation.
•Data Locality: Computation occurs near the data storage, reducing network congestion.
•Cost-Effectiveness: Cloud environments provide on-demand resources, so MapReduce can scale up or down
based on workload.

Simple Example:
•Task: Count word frequency in large text files.
•Map: Each node reads a chunk and emits key-value pairs like (word, 1).
•Shuffle & Sort: Groups all identical words together.
•Reduce: Sums the counts for each word and outputs (word, total_count).
This architecture makes processing huge datasets in distributed cloud environments efficient, reliable, and fast.
7. What is Cloud Haskell? Explain its features and how it supports distributed
programming in the cloud.

Cloud Haskell is a set of libraries that helps Haskell programs run in a distributed way
across multiple machines. It provides an Erlang-style message-passing model so
processes can communicate easily without dealing with networking.
Features
→Message passing between processes
[Link] transparency (send messages anywhere)
[Link] processes
[Link] tolerance (process monitoring)
[Link] across many nodes
[Link] need to write networking code
How it supports distributed programming in the cloud:
•Runs processes on different cloud machines
•Splits large tasks to run in parallel
•Automatically handles failures
•Can scale up/down when cloud nodes change
•Makes distributed programming simple and reliable

Shiva Priya EduWorld


8. Compare Cloud Haskell and MapReduce as programming models for cloud-based applications.

Shiva Priya EduWorld


9. Explain software development in the cloud and describe the tools, platforms, and
environments used for cloud-based application development.

Software development in the cloud means using cloud services to build, test, deploy, and run
applications online. It provides fast development, easy scaling, and teamwork support.

Software Development in the Cloud – Key Points


[Link] write and run code using cloud services.
[Link] are built, tested, and deployed on cloud platforms.
[Link] provides on-demand servers, storage, databases, and tools.
[Link] enables faster development, easy scaling, and team collaboration.
Tools, Platforms, and Environments Used in Cloud-Based Development
[Link] IDEs (Online Code Editors)
Examples: AWS Cloud9, GitPod, Replit
Features: Code editing, debugging, terminal access, built-in environments.
[Link] Control Tools
Examples: Git, GitHub, GitLab, Bitbucket
Purpose: Manages source code, supports collaboration and tracking changes.
[Link]/CD Tools (Automation for Build, Test, Deploy)
Examples: Jenkins, GitHub Actions, GitLab CI/CD, CircleCI
Purpose: Automates software build, testing, and deployment pipelines.

Shiva Priya EduWorld


•Cloud Platforms (PaaS / IaaS / SaaS)
Examples: AWS Elastic Beanstalk, Google App Engine, Microsoft Azure
Purpose: Provides servers, storage, runtime environments, and automatic scaling.
•Containerization Tools
Examples: Docker, Kubernetes
Purpose: Packages and deploys applications in lightweight, portable containers.
•Serverless Platforms
Examples: AWS Lambda, Google Cloud Functions
Purpose: Developers run code without managing servers; cloud handles scaling.
•Database Services
Examples: Amazon RDS, Firebase, MongoDB Atlas
Purpose: Cloud-hosted databases that scale automatically.
•Testing Tools
Examples: Selenium, Postman, JMeter
Purpose: Cloud-based testing for web apps, APIs, and performance.
•Development Environments
•Sandbox environments
•Virtual machines
•Containers
•Online testing labs
•Project Management Tools
Examples: Jira, Trello, Asana
Purpose: Helps plan, track, and manage cloud development work.
10. Discuss the benefits and challenges of developing, testing, and deploying applications using
cloud programming models.

Benefits of Developing, Testing, and Deploying Applications in the Cloud


[Link] Savings
No need to buy hardware; pay only for what you use.
[Link]
Easily increase or decrease resources based on demand.
[Link] Development
Ready-made tools, APIs, and cloud services speed up coding.
[Link] Testing
Cloud provides multiple testing environments instantly.
[Link] Deployment
CI/CD pipelines make deployment quick and error-free.
[Link] Availability
Cloud systems provide backup, failover, and global access.
[Link] Collaboration
Teams can work together from anywhere using shared cloud tools.

Shiva Priya EduWorld


Challenges of Cloud-Based Development, Testing, and Deployment:

[Link] Issues
Data stored on cloud servers may face security risks.

[Link] on Internet
Development and deployment need a stable internet connection.

[Link] Lock-In
Migrating from one cloud provider to another is difficult.

[Link] Issues
Network latency can affect application performance.

[Link] Overruns
Poor resource management can increase cloud bills.

[Link] of Tools
Cloud-based tools and platforms may require skilled developers.

[Link] Privacy and Compliance


Must follow strict rules when handling sensitive data.

Shiva Priya EduWorld

You might also like