PAPER KHOJ
Practice Examination — Set 1
For BITM · Semester 8
Based on the prescribed TU Faculty of Management syllabus and examination structure
Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks.
Group 'A'
Brief Answer Questions. Attempt all questions.
[5 × 2 = 10]- [2]
State the five essential characteristics of Cloud Computing according to the NIST definition.
View model answerHide model answer
Five NIST Essential Characteristics:
- On-Demand Self-Service: Consumers provision computing capabilities automatically without requiring human interaction with service providers.
- Broad Network Access: Capabilities are available over the network and accessed through standard mechanisms (phones, tablets, laptops).
- Resource Pooling: Multi-tenant physical and virtual resources dynamically assigned according to demand.
- Rapid Elasticity: Capabilities provisioned and released elastically to scale outward or inward commensurate with demand.
- Measured Service: Resource usage monitored, controlled, and billed transparently based on actual consumption (pay-as-you-go).
- [2]
Differentiate between Type-1 (Bare-Metal) and Type-2 (Hosted) Hypervisors.
View model answerHide model answer
Type-1 vs. Type-2 Hypervisors:
- Type-1 (Bare-Metal): Runs directly on the host server’s physical hardware without any underlying host operating system (e.g. VMware ESXi, Microsoft Hyper-V, KVM). Delivers superior performance, enterprise stability, and direct I/O control.
- Type-2 (Hosted): Runs as an application layer on top of a conventional host operating system (e.g. Oracle VirtualBox, VMware Workstation). Slower performance due to OS overhead; used primarily for local developer workstations.
- [2]
What is the Shared Responsibility Model in cloud computing?
View model answerHide model answer
Shared Responsibility Model:
A security framework dividing operational security between the Cloud Service Provider (CSP) and the customer:
- Security OF the Cloud (CSP Responsibility): Physical security of data centers, host hardware, virtualization hypervisors, and global network infrastructure.
- Security IN the Cloud (Customer Responsibility): Customer data encryption, Identity & Access Management (IAM), guest OS patching (in IaaS), network firewall rules, and application logic.
- [2]
Distinguish between Security Groups and Network Access Control Lists (NACLs) in AWS VPC.
View model answerHide model answer
Security Groups vs. NACLs:
- Security Group: Operates at the instance (ENI) level; Stateful (return traffic is automatically allowed regardless of inbound rules); supports Allow rules only; evaluates all rules before deciding.
- NACL: Operates at the subnet level; Stateless (outbound return traffic must be explicitly permitted); supports both Allow and Deny rules; evaluates rules in numbered numerical order.
- [2]
Define Serverless Computing (FaaS) and mention two key benefits.
View model answerHide model answer
Serverless Computing (Function-as-a-Service - FaaS):
An execution model where the cloud provider dynamically manages the allocation and provisioning of server compute infrastructure to run discrete event-driven blocks of code (e.g. AWS Lambda, Google Cloud Functions).
- Benefits:
- Zero Server Management: No OS configuration, patching, or scaling group administration.
- True Pay-per-Execution: Billing is calculated strictly per millisecond of compute runtime; zero cost when idle.
- Benefits:
Group 'B'
Short Answer Questions. Attempt any six questions.
[6 × 5 = 30]- [5]
Compare the three core cloud service models: IaaS, PaaS, and SaaS in terms of management control, flexibility, and real-world use cases.
View model answerHide model answer
Cloud Service Models Comparison:
Dimension Infrastructure as a Service (IaaS) Platform as a Service (PaaS) Software as a Service (SaaS) Customer Controls OS, Middleware, Runtime, Data, Applications. Data and Application code only. End-user application configuration only. Provider Controls Physical hardware, virtualization, networking, storage. Hardware, virtualization, OS, runtime environment. Entire stack (hardware to application software). Flexibility Highest; full root/admin OS configuration. Moderate; abstracted execution environment. Lowest; fixed features determined by vendor. Target Users Systems administrators, DevOps engineers, architects. Software developers and web engineers. Business end-users and non-technical staff. Examples AWS EC2, Google Compute Engine, Azure VMs. AWS Elastic Beanstalk, Heroku, Google App Engine. Google Workspace, Microsoft 365, Salesforce. - [5]
Explain the architectural components of Kubernetes (K8s). Distinguish between the Control Plane and Worker Node components.
View model answerHide model answer
Kubernetes Architecture:
-
Control Plane (Master Node Components):
- kube-apiserver: Central gateway exposing the RESTful Kubernetes API; intercepts and authenticates all cluster commands.
- etcd: Distributed, consistent key-value store containing cluster configuration and state.
- kube-scheduler: Watches newly created Pods and assigns them to optimal worker nodes based on resource capacity and constraints.
- kube-controller-manager: Runs controller loops (Node controller, Deployment controller, ReplicaSet controller) to ensure actual state matches desired state.
-
Worker Node Components:
- kubelet: Agent running on each node ensuring that containers are running inside Pods as specified.
- kube-proxy: Manages network routing rules on nodes, enabling service abstraction and Pod-to-Pod communication across subnets.
- Container Runtime (Containerd / CRI-O): Underlying software executing container images.
-
- [5]
Compare Object Storage (e.g. AWS S3), Block Storage (e.g. AWS EBS), and File Storage (e.g. AWS EFS) regarding architecture, performance, and ideal use cases.
View model answerHide model answer
Cloud Storage Comparison:
-
Block Storage (AWS EBS):
- Stores data in fixed raw blocks with no metadata; accessible only when mounted to a single operating system instance as a virtual hard drive.
- Performance: Ultra-low latency, high IOPS; ideal for relational database files (PostgreSQL/MySQL) and OS boot volumes.
-
Object Storage (AWS S3):
- Stores unstructured data as distinct objects (Data + Custom Metadata + Globally Unique Key) in a flat namespace accessed via HTTP REST APIs.
- Performance: Massive petabyte scalability, 99.999999999% (11 9s) durability; ideal for static web assets, video streaming media, backups, and data lake archives.
-
File Storage (AWS EFS / NFS):
- Traditional hierarchical folder and file directory system supporting POSIX file permissions.
- Performance: Elastic shared storage concurrently accessible by hundreds of compute nodes; ideal for shared web application media and container persistent volumes.
-
- [5]
Explain Cloud Auto Scaling and Elastic Load Balancing. How do they work together to ensure high availability and cost efficiency?
View model answerHide model answer
Auto Scaling & Elastic Load Balancing (ELB) Synergy:
- Elastic Load Balancer (ELB): Automatically distributes incoming application network traffic evenly across a dynamic pool of backend compute instances in multiple Availability Zones, performing automated health checks and routing around unhealthy instances.
- Auto Scaling Group (ASG): Monitors operational metrics (e.g. CPU utilization
, request counts) via cloud alarms and dynamically adjusts the number of active server instances between configured minimum and maximum limits.
How They Work Together:
- When traffic surges, average CPU exceeds thresholds; ASG launches new compute instances automatically.
- The ASG registers these newly launched instances with the Load Balancer target group.
- The Load Balancer starts routing traffic to the expanded fleet once health checks pass.
- When traffic subsides, ASG terminates surplus instances, ensuring high availability under load while minimizing cloud infrastructure expenditure during off-peak hours.
- [5]
Analyze the four Disaster Recovery (DR) strategies in the cloud: Backup and Restore, Pilot Light, Warm Standby, and Multi-Region Active-Active. Compare their RTO and RPO trade-offs.
View model answerHide model answer
Disaster Recovery Strategies:
Strategy Architecture Overview RTO (Recovery Time) RPO (Recovery Point) Cost Backup & Restore Regular automated snapshots/backups replicated to secondary region; spin up servers only after disaster occurs. Hours to Days Hours Lowest Pilot Light Core data is continuously replicated live; critical database runs minimal instance; compute servers remain dormant AMIs. 10 to 60 Minutes Minutes Low Warm Standby Scaled-down but fully functional duplicate environment runs continuously in secondary region; scales up upon failover. Minutes Seconds to Minutes Moderate Active-Active (Multi-Region) Full production traffic served concurrently across multiple geographic regions with real-time global DNS routing. Near Zero (Instant) Real-time (Zero) Highest - [5]
What is FinOps in cloud computing? Discuss three strategies to optimize cloud computing costs in enterprise AWS environments.
View model answerHide model answer
FinOps (Cloud Financial Operations):
An evolving cultural discipline and cloud management practice that combines engineering, finance, and business teams to drive financial accountability and maximize business value from variable cloud expenditure.
Three Enterprise Cost Optimization Strategies:
- Rightsizing Compute Instances: Continuously analyzing utilization metrics (AWS Compute Optimizer) to downsize over-provisioned virtual machine instances and migrate idle development servers to automated shutdown schedules outside business hours.
- Commitment Discounts (Savings Plans & Reserved Instances): Committing to steady-state baseline usage for 1- or 3-year periods to achieve discounts of up to 60-72% compared to on-demand pricing.
- Storage Lifecycle Management: Configuring automated bucket lifecycle policies on S3 to transition cold data from Standard to Infrequent Access (S3-IA) and eventually to Glacier Deep Archive, slashing long-term storage costs by up to 90%.
Group 'C'
Comprehensive Answer Questions. Attempt all questions.
[2 × 10 = 20]- [10]
Design a secure, highly available 3-Tier Web Application Architecture on AWS for a national fintech banking platform in Nepal. Provide: (a) Architectural diagram and component description (Public Web Tier, Private App Tier, Isolated Database Tier across Multi-AZ), (b) VPC CIDR network topology with Subnets, Route Tables, Internet Gateway, and NAT Gateway, (c) Defense-in-depth security configuration (WAF, Security Groups, KMS encryption, IAM), and (d) High-availability failover mechanism.
View model answerHide model answer
(a) 3-Tier Multi-AZ Architecture:
- Tier 1 - Presentation (Web) Tier: Public Subnets across Availability Zones AZ-1a and AZ-1b. Hosts an Application Load Balancer (ALB) and public bastion hosts / NAT Gateways. Direct public internet access.
- Tier 2 - Application Tier: Private Subnets across AZ-1a and AZ-1b. Hosts auto-scaled microservices containerized inside ECS/EKS clusters or EC2 instances. Accessible only via requests routed through the Web ALB.
- Tier 3 - Data (Database) Tier: Isolated Database Subnets across AZ-1a and AZ-1b. Hosts Amazon Aurora Multi-AZ MySQL/PostgreSQL with primary read-write replica in AZ-1a and synchronous standby replica in AZ-1b. Zero internet routing.
(b) VPC CIDR Network Topology:
- VPC CIDR Block:
10.0.0.0/16(65,536 private IP addresses). - Public Subnet AZ-1a (
10.0.1.0/24) & AZ-1b (10.0.2.0/24): Route table routes0.0.0.0/0to Internet Gateway (igw-xxxx). - Private App Subnet AZ-1a (
10.0.11.0/24) & AZ-1b (10.0.12.0/24): Route table routes0.0.0.0/0outbound through NAT Gateways located in Public Subnets for secure software package updates. - Isolated DB Subnet AZ-1a (
10.0.21.0/24) & AZ-1b (10.0.22.0/24): Route table contains local VPC routes only (10.0.0.0/16local).
(c) Defense-in-Depth Security Controls:
- Perimeter Edge: AWS WAF inspects inbound HTTPS traffic for OWASP Top 10 vulnerabilities (SQLi, XSS) and rate-limits volumetric DDoS attacks with AWS Shield.
- Network Segmentation via Security Groups:
- ALB SG: Inbound HTTPS (Port 443) allowed from
0.0.0.0/0. - App SG: Inbound HTTP (Port 8080) allowed ONLY from ALB SG.
- DB SG: Inbound MySQL (Port 3306) allowed ONLY from App SG.
- ALB SG: Inbound HTTPS (Port 443) allowed from
- Data Protection: All EBS volumes, Aurora DB storage, and S3 audit logs encrypted at rest using customer-managed keys in AWS KMS (AES-256). In-transit encryption enforced via TLS 1.3.
- Least Privilege IAM: Applications leverage IAM Roles with temporary STS credentials; zero long-term access keys stored in application source code.
(d) High-Availability Failover Mechanism:
- If primary compute instance in AZ-1a experiences physical hardware degradation, ALB health checks fail and traffic automatically shifts to healthy instances in AZ-1b within 5 seconds.
- If primary Aurora DB crashes, Amazon Aurora executes automatic synchronous failover to the standby replica in AZ-1b within 30 seconds without data loss (RPO = 0), updating DB cluster DNS endpoints transparently.
- [10]
An enterprise with a legacy on-premise monolithic application running in Kathmandu plans to migrate to the AWS cloud. (a) Explain the ‘6 Rs’ Cloud Migration Strategies (Rehost, Replatform, Repurchase, Refactor, Retire, Retain). (b) Formulate a detailed phase-by-phase migration plan for this enterprise. (c) Address data residency compliance under Nepal’s legal regulatory environment (e.g. NRB IT Guidelines, Privacy Act 2075).
View model answerHide model answer
1. The ‘6 Rs’ Cloud Migration Framework (Gartner / AWS):
- Rehost (Lift and Shift): Moving applications from on-premise to cloud virtual machines without modifying underlying code or architecture. Fastest migration with minimal risk.
- Replatform (Lift, Tinker, and Shift): Making targeted optimizations (e.g. migrating self-hosted MySQL to managed Amazon RDS) without changing core application logic.
- Repurchase (Drop and Shop): Decommissioning legacy software and replacing it with modern SaaS solutions (e.g. replacing on-premise CRM with Salesforce).
- Refactor / Re-architect: Completely rewriting application codebase into cloud-native microservices, containers, and serverless architectures to exploit maximum elasticity.
- Retain (Revisit): Keeping applications on-premise due to regulatory, data sovereignty, or deprecation reasons.
- Retire: Identifying and shutting down redundant, obsolete servers and databases.
2. Phase-by-Phase Enterprise Migration Roadmap:
- Phase 1: Assessment & Discovery: Inventory all physical servers, network dependencies, application configurations, and database sizes using tools like AWS Application Discovery Service.
- Phase 2: Cloud Foundation & Landing Zone Setup: Configure multi-account AWS Organizations, transit gateways, consolidated billing, and IAM identity federation with corporate Active Directory.
- Phase 3: Migration Pilot: Execute a low-risk pilot migration (e.g. secondary internal reporting service) using AWS Application Migration Service (MGN) to test migration automation.
- Phase 4: Database & Core Workload Cutover: Replicate on-premise databases to cloud RDS instances in near real-time using AWS Database Migration Service (DMS). Execute final application DNS cutover during scheduled off-peak maintenance windows.
- Phase 5: Cloud Optimization & Modernization: Transition from VM-based hosting to Docker containers managed by EKS, adopting automated FinOps governance.
3. Data Residency and Compliance under Nepalese Law:
- Nepal Rastra Bank (NRB) IT Guidelines: BFIs are required to maintain core customer transaction records and identifiable data within the territorial boundaries of Nepal, or establish localized mirrored failovers.
- Privacy Act 2075 & National Cyber Security Policy 2080: Critical national information infrastructure (banking, citizen biometric records) must not be transferred outside Nepal without explicit statutory approval.
- Hybrid Cloud Solution: Deploy a hybrid architecture where customer PII and core transactional databases reside on-premise in local Tier-III data centers in Nepal, while stateless compute engines, analytical dashboards, and global web applications leverage the scalability of international public clouds.