Advanced Python Programming End Semster Anskey
Advanced Python Programming End Semster Anskey
Public Cloud
Low infrastructure and maintenance cost.
Easy scalability and flexibility.
Rapid deployment of services.
No need for hardware management.
Private Cloud
Enhanced security and privacy.
Greater control over resources and data.
Customizable according to organizational needs.
Better compliance with regulatory requirements.
Shortcomings: ( 3M)
Public Cloud
Security and privacy concerns.
Limited control over infrastructure.
Possible performance variations due to shared resources.
Private Cloud
High capital and operational expenses.
Requires skilled personnel for management.
Limited scalability compared to public clouds.
Public Cloud Private Cloud
Suitable for web applications, testing, and Suitable for mission-critical and sensitive
development. applications.
Offers dynamic scaling and global accessibility. Provides greater customization and control.
Ideal for variable workloads. Ideal for predictable and regulated workloads.
OR
11.b. Describe the architectural design of compute and storage clouds, including key design challenges. (16)
Architecture of Compute Clouds. (8)
A compute cloud provides virtualized computing resources such as Virtual Machines VMs), CPUs, memory,
and networking.
Components:
Physical Infrastructure
Servers, storage devices, and network equipment.
Hosted in large-scale data centers.
Virtualization Layer (Hypervisor)
Creates and manages Virtual Machines.
Examples: VMware ESXi, Xen, KVM, Hyper-V.
Resource Management Layer
Allocates CPU, memory, and storage resources.
Handles load balancing and VM scheduling.
Cloud Management Platform
Provides monitoring, provisioning, billing, and security services.
Examples: OpenStack, OpenNebula.
User Interface/API
Allows users to request and manage computing resources.
Compute Cloud Architecture
+-----------------------+
| Users / APIs |
+-----------------------+
|
+-----------------------+
| Cloud Management |
| & Resource Scheduler |
+-----------------------+
|
+-----------------------+
| Virtualization Layer |
| (Hypervisor) |
+-----------------------+
|
+-----------------------+
| Physical Servers |
| CPU, Memory, Network |
-----------------------+
2. Resource Allocation
Efficient distribution of CPU, memory, bandwidth, and storage.
3. Fault Tolerance and Reliability
Ensuring continuous service despite hardware or software failures.
4. Security and Privacy
Protecting data from unauthorized access.
Implementing encryption, authentication, and access control.
5. Performance Optimization
Minimizing latency and maximizing throughput.
Efficient scheduling and load balancing techniques.
6. Data Consistency
Maintaining accurate and synchronized data across distributed storage nodes.
[Link] the Taxonomy of Virtual Machines. Discuss the key concepts of Virtualization Structure. ( 16M)
+---------------------------+
| Application Virtualization|
+---------------------------+
| Library Support Level |
+---------------------------+
| Operating System Level |
+---------------------------+
| Hardware Level |
+---------------------------+
| ISA Level |
+---------------------------+
| Physical Hardware |
+---------------------------+
DESCRIPTION: ( 8M)
Level Description
1. Instruction Set Emulates a processor's instruction set, allowing software compiled for one
Architecture (ISA) Level architecture to run on another. Example: QEMU.
2. Hardware Level Uses a hypervisor (VMM) to create and manage multiple virtual machines
Virtualization on the same physical hardware. Example: VMware ESXi, Xen, Hyper-V.
3. Operating System Level Creates multiple isolated containers that share the same operating system
Virtualization kernel. Example: Docker, LXC, OpenVZ.
4. Library Support Level Provides an interface layer between applications and the operating system
Virtualization through virtual libraries. Example: Wine.
Virtualizes individual applications, allowing them to run in isolated
5. Application Level
environments without direct installation on the host OS. Example: JVM,
Virtualization
Microsoft App-V.
13. a Explain various types of virtualization, such as Desktop, Network, Storage, System-level, and
Application Virtualization, with neat diagrams. (16)
Types of virtualization: (6M)
Desktop Virtualization – User desktops are hosted on a central server and accessed remotely through client
devices.
Network Virtualization – Creates virtual networks by combining hardware and software network resources.
Storage Virtualization – Combines multiple physical storage devices into a single logical storage pool.
System-Level Virtualization – Uses a hypervisor to run multiple virtual machines and operating systems on
one physical system.
Application Virtualization – Applications run in a virtual environment without being directly installed on the
host operating system.
EXPLAINATION: (10M)
1. Desktop Virtualization:
Hosts user desktop OS on central server. Users access via thin client. Ex: VDI, Citrix.
+-------------+ +----------+ +----------------------+
| User Device | ---> | Network | ---> | Data Center Server |
+-------------+ +----------+ | +------------------+ |
| | Virtual Desktop1 | |
| +------------------+ |
| | Virtual Desktop2 | |
| +------------------+ |
| | Virtual Desktop3 | |
| +------------------+ |
Diagram: User Device → Network → Data Center Server hosting multiple Virtual Desktops
Benefit: Centralized management, access from anywhere.
2. Network Virtualization: Combines hardware/network resources into software-based virtual networks. Ex:
VLAN, SDN, VPN.
Users
|
v
+----------------------+
| Virtual Network Layer|
+----------------------+
/ \
/ \
+-------+ +-------+
| VM 1 | | VM 2 |
+-------+ +-------+
\ /
\ /
+-----------+
| Physical |
| Network |
+-----------+
Diagram: Physical Switches/Routers → Virtualization Layer → Multiple Virtual Networks
Benefit: Better utilization, isolation, flexibility.
3. Storage Virtualization: Pools physical storage from multiple devices into single logical storage. Ex: SAN,
NAS.
+--------+ +--------+ +--------+
| Disk 1 | | Disk 2 | | Disk 3 |
+--------+ +--------+ +--------+
\ | /
\ | /
+-------------------------+
| Storage Virtualization |
| Controller |
+-------------------------+
|
v
+-------------------------+
| Logical Storage |
| Volume Pool |
+-------------------------+
|
+---------+---------+
| |
+-----------+ +-----------+
| Server 1 | | Server 2 |
+-----------+ +-----------+
Diagram: Multiple Physical Disks → Storage Virtualization Controller → Logical Volume for servers
Benefit: Easy backup, scaling, management.
4. System-level Virtualization: Hypervisor creates multiple VMs with separate OS on one physical machine.
Ex: VMware, KVM.
+------------------------+
| Physical Hardware |
| CPU, RAM, Storage |
+------------------------+
|
v
+------------------------+
| Hypervisor |
+------------------------+
/ \
/ \
+---------+ +---------+
| VM 1 | | VM 2 |
+---------+ +---------+
| GuestOS | | GuestOS |
+---------+ +---------+
| Apps | | Apps |
+---------+ +---------+
Diagram: Hardware → Hypervisor → VM1 with Guest OS1, VM2 with Guest OS2
Benefit: Server consolidation, isolation.
5. Application Virtualization:
Encapsulates app from underlying OS. App runs in sandbox. Ex: VMware ThinApp, Docker.
+------+
| User |
+---+--+
|
v
+------------------+
| Virtualized App |
+------------------+
|
v
+------------------+
| Virtualization |
| Layer |
+------------------+
|
v
+------------------+
| Host OS |
+------------------+
|
v
+------------------+
| Hardware |
+------------------+
Diagram: Host OS → Virtualization Layer → Virtual App1, Virtual App2
Benefit: No conflicts, portable, easy deployment.
(OR)
13. b Describe Docker architecture and its components, including Docker Engine, Images, Containers, and
Repositories. (16)
Diagram: (8M)
+---------------+
| Docker Client |
+-------+-------+
|
v
+---------------+
| Docker Engine |
+---+-------+---+
| |
v v
+------+ +---------+
|Image | |Container|
+------+ +---------+
|
v
+------------------+
| Repository/Hub |
+------------------+
Components: (8M)
1. Docker Engine
Core component that creates and manages containers.
Includes Docker Daemon, REST API, and CLI.
2. Docker Images
Read-only templates used to create containers.
Contain application code, libraries, and dependencies.
3. Docker Containers
Running instances of Docker images.
Lightweight and isolated execution environments.
4. Docker Repository
Stores and distributes Docker images.
Example: Docker Hub.
Working
1. User sends commands through Docker Client.
2. Docker Engine processes the commands.
3. Images are pulled from Repository or built locally.
4. Containers are created and executed from Images.
14. a .Explain Google App Engine? Explain the Google App Engine programming environment. (16)
(OR)
14. b Summarize the following: (i) Open Stack (8) (ii) Microsoft Azure (8)
OpenStack: Open-source IaaS cloud platform to build private/public clouds. Modular architecture. (8M)
+------------------+
| Horizon |
| Dashboard |
+--------+---------+
|
+--------+---------+
| Keystone |
| Identity Service|
+--------+---------+
|
+----+----+----+----+
| Nova | Neutron |
|Compute| Network |
+----+----+----+----+
| |
+----+--+ +--+----+
| Cinder| | Swift |
|Block | |Object |
|Storage| |Storage|
+-------+ +-------+
Key Components:
1. Nova: Compute service, manages VMs
2. Swift: Object storage service
3. Cinder: Block storage
4. Neutron: Networking service
5. Horizon: Dashboard UI
6. Keystone: Identity service
Benefit: Vendor-neutral, customizable, AWS-compatible APIs.
(ii) Microsoft Azure: Microsoft’s public cloud platform offering IaaS, PaaS, SaaS.(8)
+------------------+
| Users |
+--------+---------+
|
v
+------------------+
| Azure Portal |
+--------+---------+
|
+----+----+----+----+
| Compute | Storage |
| Services| Services|
+----+----+----+----+
| |
+----+----+ +--+----+
| Virtual | | Azure |
| Machines| | SQL DB|
+---------+ +-------+
Key Services:
1. Compute: Azure VMs, App Service, Azure Functions
2. Storage: Blob, File, Queue, Disk Storage
3. Networking: Virtual Network, Load Balancer, VPN Gateway
4. Databases: Azure SQL, Cosmos DB
5. AI/ML: Azure Machine Learning, Cognitive Services
Benefit: Strong hybrid cloud, integrates with Windows/Active Directory, enterprise support.
15. a(i) Explain Identity and Access Management (IAM) architecture and practices. (8)
Access Management (IAM) architecture: (8 M)
+-------------+
| Users |
+-------------+
|
v
+----------------+
| Authentication |
| (Password/MFA) |
+----------------+
|
v
+----------------+
| Authorization |
| (RBAC/ABAC) |
+----------------+
|
v
+----------------+
| Resources |
| Apps/Data/VMs |
+----------------+
^
|
+----------------+
| Identity Store |
| Users & Roles |
+----------------+
IAM Architecture:
1. Identity Provider IdP: Stores and verifies user identities. Ex: Active Directory, Google Accounts
2. Authentication: Verifies who the user is. Methods: Password, MFA, SSO
3. Authorization: Determines what user can access via roles/policies. Uses RBAC or ABAC
4. User Repository: Database of users, groups, roles
5. Audit & Compliance: Logs access for monitoring and reports
15. a(ii) Describe IAM challenges in cloud computing environments and propose suitable solutions. (8)
IAM challenges: (8M)
+------------------+ +------------------+
| IAM Challenges | ---> | IAM Solutions |
+------------------+ +------------------+
| Identity Sprawl | ---> | SSO, Federation |
| Privilege Abuse | ---> | MFA, PAM |
| Dynamic Systems | ---> | ABAC, Automation |
| Compliance | ---> | Auditing, Logs |
+------------------+ +------------------+
Challenge Solution:
Identity Sprawl : Too many accounts across services Centralized IdP with SSO, Federated Identity
Privileged Access Misuse : Admin accounts compromise PAM tools, Just-in-Time access, MFA for admins
Dynamic Environments : VMs/containers created/destroyed fast Attribute-Based Access Control ABAC,
automated provisioning
Compliance : Meeting GDPR, HIPAA rules Automated audit logs, policy enforcement, encryption
(OR)
15. b Explain virtualization system-specific attacks such as Guest Hopping, VM Migration Attack, and
Hyperjacking. Discuss their impact and possible mitigation techniques. (16)
virtualization system-specific attacks: (8M)
+-----------+
| Attacker |
| VM 1 |
+-----------+
|
| Escape
v
+-----------+
| Hypervisor|
+-----------+
|
v
+-----------+
| Victim VM |
| VM 2 |
+-----------+
1. Guest Hopping / VM Escape: Attacker in one VM breaks isolation to access hypervisor or other VMs.
Impact: Data theft from other tenants, full host compromise.
Mitigation: Patch hypervisor regularly, use Type-1 hypervisors, enable VM isolation, disable unused device
drivers.
3. Hyperjacking: Attacker installs rogue hypervisor below actual OS/hypervisor to control entire system.
Rootkit at hypervisor level.
Impact: Complete control, undetectable malware, all VMs compromised.
Mitigation: Hardware-based security like Intel TXT, Secure Boot, hardware TPM, monitor hypervisor
integrity.