FUNDAMNETALS OF CLOUD COMPUTING-Practical - Assigments - Cloud - Final Copy-To Be Sent
FUNDAMNETALS OF CLOUD COMPUTING-Practical - Assigments - Cloud - Final Copy-To Be Sent
Course Name
Computing
Student Name :
College Name :
Course Objectives: -
● Learn and apply virtualization techniques with hypervisors.
● -Implement and evaluate different load balancing strategies.
● -Explore, Utilize and use various Amazon Web Services (AWS).
● -Set Up a Basic Cloud Environment, Configure and manage a basic cloud setup.
● -Understand IaaS, PaaS, and SaaS; deploy a sample application.
● -Understand and analyze emerging trends in cloud computing.
● -Learn and apply security best practices in cloud environments.
Course Outcomes: -
● Identify and analyze current and emerging trends in cloud computing and their
business and technological implications.
● -Implement and manage virtualization solutions using Type 1 and Type 2
hypervisors.
● -Implement and compare various load balancing algorithms in different cloud
environments.
● -Analyze real-world use cases of cloud computing across various industries.
● -Implement security best practices in cloud computing, including encryption and
access control.
● -Utilize various AWS services to develop practical solutions
. ● -Set up, configure, and manage a basic cloud environment with virtual
machines, storage, and networking
● -Understand and deploy applications using IaaS, PaaS, and SaaS models.
● -Explore and implement examples or simulations of future trends in cloud
computing, such as mobile cloud, containers, and Kubernetes
Editorial Board:
KES’s Pratibha College of Commerce & Computer Studies, Chicnhwad, Pune-19 &
Dr. D. Y. Patil ACS College, Pimpri, Pune
1. Dr Harshita Vachhani –
Head, Dept.of Computer Science - Pratibha College of Commerce &
Computer Studies
2. Prof Prajakta Patil
3. Prof Punam Toke
Reviewed By:
Assignment Completion Sheet
of 35
Teacher’s Sign
HOD /Programme Cooridnator
Introduction
3. Benefits:
a. Scalability: Easily scale resources up or down based on demand.
b. Cost Efficiency: Pay only for what you use, avoiding large upfront
investments in hardware.
c. Accessibility: Access resources from anywhere with an internet
connection.
d. Reliability: High availability and disaster recovery options.
4. Security Considerations:
a. Data Security: Protecting data in transit and at rest.
b. Compliance: Adhering to legal and regulatory requirements.
c. Identity and Access Management (IAM): Controlling who has
access to what resources.
5. Deployment and Management:
a. Virtualization: The technology that allows multiple virtual machines
to run on a single physical machine.
b. Containers and Kubernetes: Tools for deploying, scaling, and
managing applications in the cloud.
c. Automation and DevOps: Streamlining cloud operations and
development practices for efficiency.
6. Advantages of Cloud Computing:
● Storage Services: Cloud storage solutions like AWS S3, Google Cloud
Storage, and Azure Blob Storage allow users to store and retrieve data from
anywhere.
● Compute Services: Virtual machines, such as AWS EC2, Google Compute
Engine, and Azure VMs, provide on-demand computing power.
● Database Services: Managed database services like Amazon RDS, Google
Cloud SQL, and Azure SQL Database simplify database management.
9. Emerging Trends:
1. Provide Credit Card Details: Enter your credit card or debit card
information. AWS uses this to verify your identity and for billing purposes.
2. Verify Your Identity: You might be required to verify your identity via a
phone call or SMS. Enter the verification code when prompted.
Exercise:
Set A:
1. Sign up for a free tier account on AWS.
2. Compare at least two cloud service providers (e.g., AWS, Azure, Google
Cloud).
Set B:
1. Create a basic virtual machine (VM) instance.
2. Connect to the VM Instance via SSH or remote desktop (for windows)
Set C:
1. Explain the significance of AWS in the context of cloud computing.
2. https://youtu.be/QDymcZ5xYow?si=4a8H3f07yhvlMnKN (Sign up for a
free tier account on AWS.)
3. https://youtu.be/MtyL15ySFyE?si=qtyG9nXznF21O4zt (Connect to the VM
instance via SSH (for Linux) or Remote Desktop (for Windows))
Assignment 2
Virtualization in Cloud Computing
Step 4: Now, open the VirtualBox EXE file from where we have downloaded this
file in the system. After that, the VirtualBox installation window will open.
Step 5: Click on the Next button in the Welcome window.
Step 6: Choose the installation folder and click on the Next button.
Step 7: Now, we will choose the features that we want to install and then click on
the Next button.
Step 8: Click on the Yes button to install the Oracle Virtual Box interfaces.
Step 9: Click on the Install button when prompted. After that, it will start
installing the Virtual Box in our system.
Step 10: After completing all these processes, click on the Finish button. When we
do this, the installation tab will be closed, and Virtual Box will be opened. Now,
we can create a virtual machine to run any OS on the system.
★ Creating a basic VM instance on AWS involves using the Amazon
Elastic Compute Cloud (EC2) service.
Exercise:
Set A:
1. Install a Type 1 hypervisor (e.g., VMware ESXi) or Type 2 hypervisor (e.g.,
VirtualBox or VMware Workstation) on your system.
Set B:
1. Create and configure multiple virtual machines.
2. https://youtu.be/AxsFAuBnQWE?si=kfhiZP9_kewQbYY2 (Create a basic
VM instance)
Set C:
1. Why is virtualization important?
2. What are the different types of virtualization?
Assignment 3
Cloud computing is based on service models. These are categorized into four basic
service models which are:
1. Infrastructure-as-a-Service(IaaS)
2. Platform-as-a-Service(PaaS)
3. Software-as-a-Service(SaaS)
4. BPO(Business Process Outsourcing)
By the end of this assignment, you will be able to create, format, and share
documents using Google Docs, as well as utilize collaborative features.
Instructions:
Set A:
1. Create a Google Doc as per the above instructions.
Set B:
1. Differentiate between the three main Cloud Service Models.
Set C:
1. https://youtu.be/z9i_h-WMQ68?si=gs1_VoEvXKzc-zQi (How to use
google docs)
Assignment 4
Compute Services:
EC2, Lambda, Elastic Container Service, Elastic Load Balancer, LightSail, Elastic
BeanStalk
Storage Services:
S3, Glacier, EBS, Storage Gateway
Database Services:
RDS, DynamoDB, Elastic Cache, Amazon RedShift
Networking Services:
VPC, Route53, Direct Connect, CloudFront
Security Services:
IAM, KMS, Cognito, WAF
Management Tools:
Cloud Watch, Cloud Formation, AutoScaling, Cloud Trial
Developer Tools:
CodeStar, CodeBuild, CodeDeploy, CopePipeline
Prerequisites
1.AWS Account: Ensure you have an active AWS account.
2. IAM User with S3 Permissions: Make sure your AWS Identity and Access
Management (IAM) user has the necessary permissions to create and manage S3
buckets.
Set A:
1. Create an AWS S3 bucket.
2. Upload files in the bucket.
Set B:
1. Describe what Amazon Simple Storage Service (S3) is and its primary use
cases.
Assignment 5
To install and configure Google App Engine (GAE) for your project, you'll need to
follow these steps:
gcloud init
2. This will guide you through the process of selecting your Google Cloud
project and setting up authentication.
Link the Project to the SDK: After creating the project, link it to the SDK using:
Enable App Engine: Run the following command to enable the App Engine API
and create an App Engine application in your project:
cd my-app
runtime: python39
entrypoint: gunicorn -b :$PORT main:app
Handlers:
- url: /.*
script: auto
3. Write Your Application Code: Add your application code to the directory.
For example, a simple Python Flask app (main.py):
app = Flask(__name__)
@app.route('/')
def hello():
return 'Hello, World!'
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8080)
Step 5: Deploy Your Application
This will deploy your app to Google App Engine. After deployment, you’ll
receive a URL where your app is hosted.
2. Access Your Application: Open the URL provided to see your application
running on Google App Engine.
You can manage and scale your application using the Google Cloud Console or the
gcloud command-line tool.
● View Logs:
gcloud app logs tail -s default
● Open the App in a Browser:
gcloud app browse
Develop application for Google App Engine Create hello world app
Prerequisites
1. Google Cloud Account: Ensure you have a Google Cloud account. If not,
you can sign up for a free trial at Google Cloud.
2. Google Cloud SDK: Install the Google Cloud SDK and initialize it using:
gcloud init
3. Create a Google Cloud Project: If you don’t have a project yet, create one
via the Google Cloud Console.
cd hello-world-app
Here’s how to create a simple "Hello, World!" app using Python with Flask:
app = Flask(__name__)
@app.route('/')
def hello():
return 'Hello, World!'
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8080)
Create the app.yaml File: In the same directory as main.py, create a file
named app.yaml with the following content:
runtime: python39
entrypoint: gunicorn -b :$PORT main:app
handlers:
- url: /.*
script: auto
Deploy the Application: Run the following command to deploy your app to
Google App Engine:
gcloud app deploy
Access Your Application: After deployment, you can view your application by
running:
gcloud app browse
2. This command will open your app in a web browser, and you should see
"Hello, World!" displayed.
You can use the Google Cloud Console or gcloud commands to manage your
app:
View Logs:
gcloud app logs tail -s default
● View the Application URL:
gcloud app browse
Set A:
1. Install and configure Google App Engine.
Set B:
1. Develop application for Google App Engine Create hello world app.
https://youtu.be/_-7Ftwk6YIY?si=WRs98bhANwPp44s2
https://youtu.be/n7-8yuWqBaA?si=3FBPHAokxegVAAUc
Assignment 6:
Cloud Security Implementation
Explanation
Cloud security implementation is a critical process that ensures the protection of
data, applications, and services in a cloud environment.
1. Implement Security Measures (Encryption and Access Control)
Step 1: Encryption
- Data-at-Rest Encryption:
- Ensure that your cloud storage (like AWS S3, Azure Blob Storage) is
encrypted using built-in encryption mechanisms.
- Example: Enable server-side encryption on an S3 bucket in AWS using AES-
256.
- Data-in-Transit Encryption:
- Use SSL/TLS protocols to encrypt data during transmission.
- **Example**: Configure HTTPS endpoints for web applications.
If you are managing your own cloud infrastructure, you might want to automate
the creation and management of user accounts, as well as install administrative
features. Here’s a simple example using Python and the Boto3 library for AWS.
def create_group(group_name):
try:
iam.create_group(GroupName=group_name)
print(f"Group {group_name} created successfully.")
except Exception as e:
print(f"Error creating group: {e}")
Create a user
create_user('new-user')
Create a group
create_group('admin-group')
Add user to group
add_user_to_group('new-user', 'admin-group')
This Python script allows you to:
- Create Users: Automate the creation of user accounts.
- Create Groups: Set up groups for easier permission management.
- Manage Group Membership: Add users to specific groups.
Set A:
a. Implement basic security measures on a cloud platform, such as setting up
IAM roles and policies in AWS or Azure.
b. Create a secure storage bucket and configure permissions.
Set B :
a. Implement security measures such as encryption and access control on a
cloud platform.
b. Write a Program to Create, Manage and groups User accounts in own Cloud
by Installing Administrative Features
Set C:
a. Explain the concept how cloud security can be implemented .
b. Watch these videos and write report on what did you learn
I. Cloud Secrurity Impementtaion
https://in.video.search.yahoo.com/search/video;_ylt=AwrKAJJyv8Jm
qQQAQKC7HAx.;_ylu=Y29sbwNzZzMEcG9zAzEEdnRpZAMEc2
VjA3Nj?
p=video+on+Cloud+Security+Implementation&fr=mcafee#id=2&vid
=07422492eb6a6e2fb6a49f571a236e3c&action=view
II. Cloud Implementation Policy
https://in.video.search.yahoo.com/search/
video;_ylt=AwrKAJJyv8JmqQQAQKC7HAx.;_ylu=Y29sbwNzZzM
EcG9zAzEEdnRpZAMEc2VjA3Nj?
p=video+on+Cloud+Security+Implementation&fr=mcafee#id=4&vid
=e2ce480c1c9d4ca5ed5144c1165c7e38&action=view
Assignment 7:
Exploring Future Trends in Cloud Computing -Understanding about Mobile
Cloud or Kubernetes
Kubernetes
● Kubernetes is an open-source container orchestration platform that
automates the deployment, scaling, and management of containerized
applications.
● Core Concepts:
○ Pods: The smallest deployable units in Kubernetes, usually containing
one or more containers.
○ Services: Abstracts access to a set of Pods, enabling load balancing
and service discovery.
○ Namespaces: Provide a way to divide cluster resources between
multiple users.
● Benefits:
○ Scalability: Automatically scales applications based on demand.
○ High Availability: Ensures application reliability with self-healing
capabilities.
○ Portability: Kubernetes abstracts underlying infrastructure, allowing
applications to run consistently across different environments.
● Use Cases:
○ Microservices: Efficiently manages and scales microservices
architectures.
○ Continuous Deployment: Automates the deployment pipeline,
integrating with CI/CD tools.
1. Install Docker:
sudo apt-get update sudo apt-get install docker-ce docker-ce-cli
containerd.io
Dockerfile:
FROM nginx:latest
COPY ./html /usr/share/nginx/html
Build the Image:
1. Install prerequisites:
FROM nginx:latest
Login to AWS:
aws configure
2.
1. Go to JustCloud website.
2. Create an account by providing your email and password.
Step 3: Configuration
1. Sign in: Open the JustCloud client and sign in using your credentials.
2. Set up backup:
○ Choose the folders and files you want to back up to the cloud.
○ Configure the backup frequency and other preferences.
3. Enable sync settings:
○ Ensure that your files are synchronized across devices by enabling
sync settings in the client.
Set A :
1. Implement a basic example or simulation related to the chosen topic (e.g.,
set up a containerized application using Docker and Kubernetes).
Containers: Deploy a Docker container on a cloud platform.
Set B:
1. Kubernetes: Set up a Kubernetes cluster using a managed service (e.g.,
Google Kubernetes Engine, Azure Kubernetes Service).
2. Installation and Configuration of Justcloud
Set C :
1. Write short note on use and applications of Kubernetes