Docsity

Cloud Computing Study Guide & Model Answers, Study Guides, Projects, Research of Introduction to Computing

Toggle sidebar
bg1
JKUAT - BBBC 2404: CLOUD COMPUTING
Year 4 Semester 2 CAT | Comprehensive Study Guide & Answers
PART A: CAT QUESTIONS WITH MODEL ANSWERS
Q1. Define grid computing and cloud computing. [2 marks]
GRID COMPUTING:
Grid computing is a distributed computing model that coordinates a network of
heterogeneous computers working together to perform large computational
tasks. Resources (CPU, memory, storage) from multiple machines are pooled and
shared across geographic locations to solve complex problems that a single
machine cannot handle efficiently.
CLOUD COMPUTING:
Cloud computing is the delivery of computing services — including servers,
storage, databases, networking, software, analytics, and intelligence — over the
Internet ('the cloud') to offer faster innovation, flexible resources, and economies
of scale. Users pay only for the cloud services they use, helping them lower
operating costs, run infrastructure more efficiently, and scale as business needs
change.
Q2. Describe the steps involved to host a static website using AWS S3.
[4 marks]
Steps to host a static website on Amazon S3:
Step 1 - Create an S3 Bucket: Log into the AWS Management Console,
navigate to S3, and create a new bucket. Give it a globally unique name
(typically matching your domain name). Choose your desired AWS region.
Step 2 - Enable Static Website Hosting: Open the bucket, go to Properties
tab, scroll to 'Static website hosting', enable it, and specify the index document
(e.g., index.html) and optional error document (e.g., error.html).
Step 3 - Upload Website Files: Go to the Objects tab and upload all your
website files (HTML, CSS, JS, images). Ensure the folder structure mirrors your
website structure.
Step 4 - Set Bucket Policy for Public Access: Under Permissions, first disable
'Block all public access'. Then add a bucket policy (JSON) granting s3:GetObject
permission to all principals (*) so visitors can access the files.
Step 5 - Access the Website: AWS provides a public endpoint URL in the
format: http://bucket-name.s3-website-region.amazonaws.com. Optionally,
configure a custom domain using Route 53 and enable HTTPS with CloudFront.
Q3. Define Elastic Beanstalk and AWS(Elastic Beanstalk). Since the cost
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Cloud Computing Study Guide & Model Answers and more Study Guides, Projects, Research Introduction to Computing in PDF only on Docsity!

JKUAT - BBBC 2404: CLOUD COMPUTING

Year 4 Semester 2 CAT | Comprehensive Study Guide & Answers

PART A: CAT QUESTIONS WITH MODEL ANSWERS

Q1. Define grid computing and cloud computing. [2 marks] GRID COMPUTING: Grid computing is a distributed computing model that coordinates a network of heterogeneous computers working together to perform large computational tasks. Resources (CPU, memory, storage) from multiple machines are pooled and shared across geographic locations to solve complex problems that a single machine cannot handle efficiently. CLOUD COMPUTING: Cloud computing is the delivery of computing services — including servers, storage, databases, networking, software, analytics, and intelligence — over the Internet ('the cloud') to offer faster innovation, flexible resources, and economies of scale. Users pay only for the cloud services they use, helping them lower operating costs, run infrastructure more efficiently, and scale as business needs change. Q2. Describe the steps involved to host a static website using AWS S3. [4 marks] Steps to host a static website on Amazon S3: Step 1 - Create an S3 Bucket: Log into the AWS Management Console, navigate to S3, and create a new bucket. Give it a globally unique name (typically matching your domain name). Choose your desired AWS region. Step 2 - Enable Static Website Hosting: Open the bucket, go to Properties tab, scroll to 'Static website hosting', enable it, and specify the index document (e.g., index.html) and optional error document (e.g., error.html). Step 3 - Upload Website Files: Go to the Objects tab and upload all your website files (HTML, CSS, JS, images). Ensure the folder structure mirrors your website structure. Step 4 - Set Bucket Policy for Public Access: Under Permissions, first disable 'Block all public access'. Then add a bucket policy (JSON) granting s3:GetObject permission to all principals (*) so visitors can access the files. Step 5 - Access the Website: AWS provides a public endpoint URL in the format: http://bucket-name.s3-website-region.amazonaws.com. Optionally, configure a custom domain using Route 53 and enable HTTPS with CloudFront. Q3. Define Elastic Beanstalk and AWS(Elastic Beanstalk). Since the cost

and/or time of transporting large datasets to/from the cloud is too great — 'Cloud computing is great, but it'll never work with Big Data.' True or False? Explain. [3 marks + 3 marks] ELASTIC BEANSTALK DEFINITION: AWS Elastic Beanstalk is a PaaS (Platform as a Service) offering from Amazon Web Services that allows developers to quickly deploy and manage web applications and services without worrying about the underlying infrastructure. The developer simply uploads their application code, and Elastic Beanstalk automatically handles provisioning, load balancing, auto-scaling, and health monitoring. Supported platforms include Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker. BIG DATA IN THE CLOUD — TRUE OR FALSE? Statement: 'Cloud computing will never work with Big Data' — FALSE Explanation: This statement is FALSE. Cloud computing is actually well-suited for Big Data processing. Modern cloud platforms provide purpose-built Big Data services that eliminate the transportation problem:

  • AWS offers EMR (Elastic MapReduce), Redshift, Kinesis, and S3 for large-scale data processing.
  • Data can be generated and processed directly IN the cloud, avoiding the transport issue entirely.
  • Techniques like edge computing and data locality (processing where data lives) further reduce transfer costs.
  • Cloud elasticity allows organisations to scale compute resources to match the size of Big Data workloads on demand. Q4. As a cloud computing expert, you have been approached by an organisation that wants to move its services to the cloud but is not sure whether they are making the right choice. What factors should be evaluated before making the decision? [3 marks] Key factors an organisation should evaluate before adopting cloud services: 1. Cost Analysis: Compare Total Cost of Ownership (TCO) of on-premise infrastructure vs. cloud. Consider capital vs. operational expenditure, pay-per-use pricing models, and hidden costs like egress fees. 2. Security and Compliance: Assess data sensitivity, regulatory requirements (e.g., GDPR, HIPAA), data residency laws, and the cloud provider's security certifications and controls. 3. Performance and Latency: Evaluate whether the cloud provider's data center locations meet latency requirements for end users, and whether network bandwidth meets application needs. 4. Vendor Lock-in Risk: Consider the risk of becoming dependent on a single provider's proprietary services, and whether multi-cloud or hybrid strategies are needed. 5. Scalability Requirements: Determine whether workloads are variable enough to benefit from cloud elasticity, or if they are static enough that on- premise hardware is more cost-effective. 6. Existing IT Skills: Assess whether the organisation's IT staff have the skills

Q7. Describe the steps involved in creating a Virtual Private Cloud (VPC) in AWS, how to launch a service, include it in the public subnet of the VPC created, and how to connect to the instance from your local machine. [4 marks] Step 1 - Create a VPC: In the AWS console, go to VPC Dashboard. Click 'Create VPC'. Specify a CIDR block (e.g., 10.0.0.0/16). This creates an isolated virtual network in AWS for your resources. Step 2 - Create a Public Subnet: Within the VPC, create a subnet with a CIDR block (e.g., 10.0.1.0/24). Enable 'Auto-assign public IPv4 addresses' so instances in this subnet get public IPs automatically. Step 3 - Create & Attach Internet Gateway: Create an Internet Gateway (IGW) and attach it to your VPC. This allows resources in the public subnet to communicate with the internet. Step 4 - Configure Route Table: Create a route table for the public subnet. Add a route: Destination 0.0.0.0/0, Target: the Internet Gateway. Associate this route table with the public subnet. Step 5 - Launch EC2 Instance: Go to EC2, click 'Launch Instance'. Choose an AMI (e.g., Amazon Linux 2), select instance type (e.g., t2.micro for free tier). Under Network settings, select your VPC and the public subnet created. Step 6 - Configure Security Group: Create/select a security group. Add inbound rules: SSH (port 22) from your IP address. This controls who can connect to the instance. Step 7 - Create Key Pair: Create a new key pair (RSA .pem file) or use an existing one. Download and securely store the .pem file — it is required to SSH into the instance. Step 8 - Connect via SSH: After the instance is running and has a Public IP, open a terminal. Run: ssh -i /path/to/key.pem ec2-user@. This connects you to the instance from your local machine.

PART B: KEY CONCEPTS & REVISION NOTES

1. Cloud Service Models (IaaS, PaaS, SaaS)

Infrastructure as a Service (IaaS)

A cloud model where the provider supplies virtualised computing infrastructure over the internet. The customer manages OS, middleware, and applications; the provider manages hardware, networking, and virtualisation. Key characteristics:

  • Resources are scalable depending on processing and storage needs
  • Users pay on demand instead of purchasing hardware outright
  • Saves enterprises the costs of buying and maintaining their own hardware
  • Because data is on the cloud, there can be no single point of failure
  • Enables virtualisation of administrative tasks Examples: AWS EC2, Microsoft Azure VMs, Google Compute Engine

Platform as a Service (PaaS)

A cloud model providing a platform and environment that allows developers to build, deploy, and manage applications without worrying about underlying infrastructure. Key characteristics:

  • Provides tools to test, develop and host applications in the same environment
  • Enables organisations to focus on development, not infrastructure
  • Providers manage security, OS, server software and backups
  • Facilitates collaborative work even if teams work remotely Examples: AWS Elastic Beanstalk, Google App Engine, Heroku, Microsoft Azure App Service

Software as a Service (SaaS)

A cloud model where the provider hosts applications and makes them available to customers over the internet via a subscription. Key characteristics:

  • Vendors provide software via a subscription model
  • Users do not manage, install or upgrade software
  • Data is secure in the cloud; equipment failure does not cause data loss
  • Resources are scalable depending on service needs
  • Applications accessible from almost any internet-connected device Examples: Gmail, Microsoft 365, Salesforce, Zoom, Dropbox 2. Cloud Deployment Models Public Cloud: Services offered over the public internet, available to anyone. Managed by third-party providers like AWS, Azure, or GCP. Cost-effective, highly scalable, but shared infrastructure.

Server Virtualisation: Divides physical server resources into multiple virtual machines (VMs). Each VM runs its own OS and applications. Enables better hardware utilisation (one physical server can host dozens of VMs). Storage Virtualisation: Pools physical storage from multiple devices into a single virtual storage unit. Simplifies storage management and improves utilisation. Network Virtualisation: Combines hardware and software network resources into a single virtual network. SDN (Software Defined Networking) is a key technology. Desktop Virtualisation (VDI): Delivers a desktop environment from a centralised server to end users. Users access their desktop remotely. Application Virtualisation: Applications are run from a server and streamed to client devices, without being installed locally.

5. Grid vs Cloud Computing Feature Grid Computing Cloud Computing Architecture Decentralised, distributed nodes Centralised data centres Ownership Resources pooled from many organisations Owned by cloud provider Scalability Limited by participant nodes Virtually unlimited elasticity Use case Scientific/research computation Commercial applications Billing Resource sharing, no direct billing Pay-per-use model Standards OGSA, Globus Toolkit REST APIs, proprietary APIs 6. Security in Cloud Computing

VM Hardening

Reducing the attack surface of a virtual machine by disabling unnecessary services, applying security patches, configuring firewalls, and enforcing least-privilege access.

Data Encryption

Encrypting data both in transit (using TLS/SSL) and at rest (using AES-256) to ensure that even if data is intercepted or storage is breached, it remains unreadable without the encryption key.

Network Monitoring and Analysis

Continuously monitoring network traffic for anomalies, intrusion attempts, and policy violations. Tools like AWS CloudTrail, CloudWatch, and third-party SIEM solutions provide visibility.

LUN Masking

A storage access control method that restricts which hosts can see specific storage LUNs (Logical Unit Numbers). Prevents unauthorised servers from accessing storage volumes in SAN environments.

Data Shredding

Securely erasing data so it cannot be recovered after deletion. Important when decommissioning cloud storage to prevent data leakage.

7. Business Continuity in Cloud Compute Clustering: Groups of servers work together so if one fails, others continue serving requests. Eliminates single points of failure at the compute layer. Hypervisor Clustering: Multiple physical hosts with hypervisors are clustered so VMs can be restarted on surviving hosts if one host fails. VM Live Migration: Moving a running virtual machine from one physical host to another with no downtime. Allows maintenance without service interruption. NIC Teaming / Link Aggregation: Combining multiple network interface cards into one logical connection for redundancy and/or increased bandwidth. If one NIC fails, traffic flows through the other. RAID (Redundant Array of Independent Disks): RAID 5: Striping with distributed parity — can tolerate 1 disk failure. RAID 6: Striping with double parity — can tolerate 2 simultaneous disk failures. 8. Open Source Cloud Platforms

Eucalyptus

An open-source cloud computing platform compatible with AWS APIs. It allows organisations to build private/hybrid clouds that can interact with AWS. Key components include: Cloud Controller (CLC), Walrus (S3-compatible storage), Cluster Controller (CC), Storage Controller (SC), and Node Controller (NC).

OpenNebula

An open-source cloud management platform that provides a feature-rich framework for building and managing private clouds and virtualised data centres. Supports KVM, VMware, and Xen hypervisors.

Nimbus

PART C: QUICK-REFERENCE DEFINITIONS Term Definition SLA (Service Level Agreement) A contract between cloud provider and customer defining the expected level of service, including uptime guarantees, performance metrics, and remedies if SLAs are not met. Hypervisor Software that creates and manages virtual machines by abstracting physical hardware. Type 1 (bare-metal) runs directly on hardware (e.g., VMware ESXi); Type 2 runs on top of an OS (e.g., VirtualBox). Elasticity The ability to automatically scale computing resources up or down based on demand, ensuring optimal performance and cost efficiency. Scalability The capability of a system to handle increased workload by adding resources. Horizontal scaling adds more machines; vertical scaling adds more resources to existing machines. Multi-tenancy Multiple customers sharing the same physical infrastructure while their data and applications remain logically isolated from each other. Auto-scaling Automatically adjusting the number of compute resources based on defined policies or actual demand. Load Balancer Distributes incoming network traffic across multiple servers to ensure no single server becomes overloaded, improving availability and responsiveness. CDN (Content Delivery Network) A network of geographically distributed servers that cache and deliver content to users from the nearest location, reducing latency. DevOps A set of practices combining software development (Dev) and IT operations (Ops) to shorten development cycles and provide continuous delivery. Containerisation Packaging an application and its dependencies into a lightweight container (e.g., Docker) that can run consistently across environments. Kubernetes An open-source container orchestration platform that automates deployment, scaling, and management of containerised applications. Serverless Computing A cloud execution model where the cloud provider dynamically manages server allocation. Developers write functions; the provider handles infrastructure (e.g., AWS Lambda). IAM (Identity & Access Management) AWS service for managing user access and permissions to AWS services and resources securely. Availability Zone Isolated data center locations within an AWS region, designed to be independent of failures in other zones. Region A geographic area containing multiple Availability Zones. AWS has regions worldwide (e.g., us-east-1, eu-west-1).

Prepared from JKUAT BBBC 2404 Cloud Computing CAT & Course Materials | Good luck in your exam!