Docsity

Cloud Computing Lab Manual Practical Journal SPPU TE AIDS 2024 Pattern, Study Guides, Projects, Research of Computer Science

Toggle sidebar
bg1
Guidelines for Laboratory Conduction - Cloud Computing
List of Assignment - Group A (Any THREE from 1 to 5, 6th and 7th is mandatory)
List of Assignment - Group B (Any THREE from 1 to 5, 6th and 7th is mandatory)
Savitribai Phule Pune University
Third Year Artificial Intelligence and Data Science- 2024 Pattern
PEC322AID - Elective - I Laboratory (Cloud Computing Lab Manual Practical Journal)
Teaching Scheme
Credits
Examination Scheme
Practical: 02 Hours/Week
01
Term Work: 50 Marks
Guidelines for Instructor’s Manual
The instructor‘s manual is to be developed as a reference and hands-on resource. It should include
prologue (about University/program/ institute/ department/foreword/ preface), curriculum of the
course, conduction and Assessment guidelines, topics under consideration, concept, objectives,
outcomes, set of typical applications/assignments/ guidelines, and references.
The laboratory assignments are to be submitted by student in the form of journal. Journal consists of
Certificate, table of contents, and handwritten write-up of each assignment (Title, Date of Completion,
Objectives, Problem Statement, Software and Hardware requirements, Assessment grade/marks and
assessor’s sign, Theory- Concept in brief, Test Data Set(if applicable), mathematical model (if
applicable), conclusion/analysis). Sample output of all performed assignments are to be submitted. As
a conscious effort and little contribution towards Green IT and environment awareness, attaching printed
papers as part of write-ups and program listing to journal must be avoided. Students should only write
practical and attach sample output in form of paper. No Mini-Project Technical Report is required. Avoid
use of any kinds of papers for mini-project. Strictly, complete mini-project within Journal only.
Continuous assessment of laboratory work should be based on overall performance of Laboratory
assignments by a student. Each Laboratory assignment assessment will assign grade/marks based on
parameters, such as timely completion, performance, innovation, efficient codes, and punctuality.
1.
Study fundamental concepts of cloud, understand components of Cloud Architecture and
Deployment models for Cloud.
2.
Study the concept of Storage as a Service (SaaS) and implement cloud storage using a cloud
platform.
3.
Install Virtualbox/VMware Workstation with different flavors of linux or windows OS on top of
windows 7 or 8.
4.
Install a C compiler in the virtual machine created using virtual box and execute Simple
Programs.
5.
Implement procedure to transfer the files from one virtual machine to another virtual machine
6.
Google App Engine (GAE) Setup: Install Google App Engine. Create hello world app or any other
simple web applications using python/java.
7.
Case Study on PaaS (Google App Engine). Use GAE launcher to launch the web applications.
1.
Simulate a cloud scenario using CloudSim and run a scheduling algorithm that is not present in
CloudSim.
2.
Creating an application in Salesforce.com using Apex Programming Language
3.
Study creating a warehouse application in Salesforce.com
Guidelines for Student’s Laboratory Journal
Guidelines for Laboratory /Term Work Assessment
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f

Partial preview of the text

Download Cloud Computing Lab Manual Practical Journal SPPU TE AIDS 2024 Pattern and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

Guidelines for Laboratory Conduction - Cloud Computing List of Assignment - Group A (Any THREE from 1 to 5, 6th and 7th is mandatory) List of Assignment - Group B (Any THREE from 1 to 5, 6th and 7th is mandatory) Savitribai Phule Pune University Third Year Artificial Intelligence and Data Science- 2024 Pattern PEC322AID - Elective - I Laboratory (Cloud Computing Lab Manual Practical Journal) Teaching Scheme Credits Examination Scheme Practical: 02 Hours/Week 01 Term Work: 50 Marks Guidelines for Instructor’s Manual The instructor‘s manual is to be developed as a reference and hands-on resource. It should include prologue (about University/program/ institute/ department/foreword/ preface), curriculum of the course, conduction and Assessment guidelines, topics under consideration, concept, objectives, outcomes, set of typical applications/assignments/ guidelines, and references. The laboratory assignments are to be submitted by student in the form of journal. Journal consists of Certificate, table of contents, and handwritten write-up of each assignment (Title, Date of Completion, Objectives, Problem Statement, Software and Hardware requirements, Assessment grade/marks and assessor’s sign, Theory- Concept in brief, Test Data Set(if applicable), mathematical model (if applicable), conclusion/analysis). Sample output of all performed assignments are to be submitted. As a conscious effort and little contribution towards Green IT and environment awareness, attaching printed papers as part of write-ups and program listing to journal must be avoided. Students should only write practical and attach sample output in form of paper. No Mini-Project Technical Report is required. Avoid use of any kinds of papers for mini-project. Strictly, complete mini-project within Journal only. Continuous assessment of laboratory work should be based on overall performance of Laboratory assignments by a student. Each Laboratory assignment assessment will assign grade/marks based on parameters, such as timely completion, performance, innovation, efficient codes, and punctuality.

  1. Study fundamental concepts of cloud, understand components of Cloud Architecture and Deployment models for Cloud.
  2. Study the concept of Storage as a Service (SaaS) and implement cloud storage using a cloud platform.
  3. Install Virtualbox/VMware Workstation with different flavors of linux or windows OS on top of windows 7 or 8.
  4. Install a C compiler in the virtual machine created using virtual box and execute Simple Programs.
  5. Implement procedure to transfer the files from one virtual machine to another virtual machine
  6. Google App Engine (GAE) Setup: Install Google App Engine. Create hello world app or any other simple web applications using python/java.
  7. Case Study on PaaS (Google App Engine). Use GAE launcher to launch the web applications.
  8. Simulate a cloud scenario using CloudSim and run a scheduling algorithm that is not present in CloudSim.
  9. Creating an application in Salesforce.com using Apex Programming Language
  10. Study creating a warehouse application in Salesforce.com Guidelines for Student’s Laboratory Journal Guidelines for Laboratory /Term Work Assessment

Group C (Mini-Project) - Any ONE (in the group of 3 to 4 students)

  1. Study installation and Configuration of Hadoop.
  2. Install Hadoop single node cluster and run simple application like wordcount.
  3. Study the Cloud Computing Security Issue
  4. Case study on Amazon or Microsoft Azure Cloud
  5. Setup your own Cloud for Software as a Service (SaaS) over the existing LAN in your laboratory. Write your own code for Cloud Controller using Open Source Technologies to implement with HDFS.
  6. Implement the basic Operations such as divide the file in segments /blocks and download file from cloud in encrypted form. Host a portfolio or documentation site using Amazon S3 (AWS), Azure Blob Storage, or Google Cloud Storage. Integrate a Content Delivery Network (CDN) like AWS CloudFront to learn about global content distribution and HTTPS.

Cloud Deployment Models

Public Cloud Cloud services are available to the general public over the Internet. Examples: AWS, Microsoft Azure, Google Cloud Platform. Private Cloud Cloud infrastructure is dedicated to a single organization, providing greater security and control. Hybrid Cloud A combination of public and private clouds, allowing data and applications to be shared between them. Community Cloud Cloud infrastructure is shared by multiple organizations with similar requirements, such as educational institutions or government agencies.

Cloud Service Models

Infrastructure as a Service (IaaS) It provides virtualized computing resources such as servers, storage, and networking. Example: Amazon EC Platform as a Service (PaaS) It provides a platform for developing, testing, and deploying applications. Example: Google App Engine Software as a Service (SaaS) It provides ready-to-use software applications over the Internet. Example: Gmail, Microsoft 365

  • Cost-effective
  • Scalable
  • Reliable
  • Easy accessibility
  • High availability
  • Automatic updates
  • Data backup and recovery
  • Online storage
  • Web hosting
  • Online education
  • Banking
  • Healthcare
  • E-commerce
  • Business applications

Advantages of Cloud Computing

Applications of Cloud Computing

Conclusion: The basic concepts of cloud computing, cloud architecture, and deployment models were studied successfully.

Laboratory Assignment No. 2

Title: Study the Concept of Storage as a Service (StaaS) and Implement Cloud Storage Problem Statement: Study the concept of Storage as a Service (StaaS) and implement cloud storage using a cloud platform. Aim: To study the concept of Storage as a Service (StaaS) and implement cloud storage using a cloud platform. Objectives:

  • To understand the concept of Storage as a Service (StaaS).
  • To study the features and benefits of cloud storage.
  • To implement cloud storage using a cloud platform.
  • To learn how to upload, store, and manage files in the cloud.
  • To understand the applications of cloud storage. Software Requirements: Windows 10/11 Operating System, Google Chrome / Mozilla Firefox, Google Drive (or Microsoft OneDrive / Dropbox), Microsoft Word (for documentation) Hardware Requirements: Computer or Laptop, Minimum 4 GB RAM, Intel Core i3 Processor or above, Stable Internet Connection Theory:

Storage as a Service (StaaS)

Storage as a Service (StaaS) is a cloud computing service model that provides users with storage space over the Internet. Instead of storing data on local devices such as hard disks, users can store, access, and manage their files using cloud storage platforms. The service provider is responsible for maintaining the storage infrastructure, ensuring data availability, security, and backup. Features of Storage as a Service

  • On-demand storage
  • Scalable storage capacity
  • Secure data storage
  • Data backup and recovery
  • File sharing and collaboration
  • Accessibility from anywhere with an Internet connection

Laboratory Assignment No. 4

Title: Install a C Compiler in the Virtual Machine and Execute a Simple Program Problem Statement: Install a C compiler in the virtual machine created using VirtualBox and execute a simple C program. Aim: To install a C compiler in a virtual machine and execute a simple C program. Objectives:

  • To understand the concept of a virtual machine.
  • To install a C compiler in the virtual machine.
  • To write and execute a simple C program.
  • To understand the basic compilation and execution process.
  • To verify the successful installation of the C compiler. Software Requirements: Windows 10/11 Operating System, Oracle VirtualBox, Windows Virtual Machine, Code::Blocks IDE with MinGW Compiler, Microsoft Word (for documentation) Hardware Requirements: Computer or Laptop, Minimum 4 GB RAM, Intel Core i3 Processor or above, At least 20 GB Free Disk Space Theory:

C Compiler

A C compiler is a software program that converts C source code into machine code that can be executed by a computer. It checks the program for syntax errors, translates the code into executable form, and generates an output file. Popular C compilers include GCC (GNU Compiler Collection), MinGW GCC, and Microsoft Visual C Compiler.

Virtual Machine (VM)

A Virtual Machine (VM) is a software-based emulation of a physical computer that allows multiple operating systems to run on a single physical machine. Each virtual machine has its own operating system, memory, storage, and applications, functioning independently from the host system. Virtual machines are created and managed using virtualization software such as Oracle VirtualBox or VMware Workstation. Advantages of Virtual Machine

  • Multiple operating systems can run on a single computer.
  • Provides an isolated environment for testing and development.
  • Reduces hardware costs by sharing physical resources.
  • Easy to create, copy, and manage virtual systems.
  • Improves system flexibility and resource utilization. Applications of Virtual Machine
  • Software development and testing.
  • Running multiple operating systems simultaneously.
  • Training and educational laboratories.
  • Application compatibility testing.
  • Server virtualization and cloud computing.

Procedure:

  1. Install Oracle VirtualBox on the host computer.
  2. Create a new virtual machine and install the Windows operating system.
  3. Start the virtual machine and complete the Windows setup.
  4. Download and install the Code::Blocks IDE with the MinGW or Dev-C++ compiler inside the virtual machine.
  5. Launch Code::Blocks or Dev-C++.
  6. Create a new C source file.
  7. Type the following C program: #include int main() { printf("Hello, World!"); return 0; }
  8. Save the file as hello.c.
  9. Click Build and Run to compile and execute the program.
  10. Verify that the output displays "Hello, World!" successfully.

Linux VM

If your VM is Ubuntu/Linux, install GCC using the terminal: sudo apt update sudo apt install gcc Then compile and run the program. Conclusion: A C compiler was successfully installed in the virtual machine, and a simple C program was compiled and executed successfully.

Procedure:

  1. Create a Google Cloud account and sign in to the Google Cloud Console.
  2. Create a new Google Cloud Project.
  3. Enable the App Engine API for the project.
  4. Install the Google Cloud SDK on the system.
  5. Install Python 3.x if it is not already installed.
  6. Open the Command Prompt and initialize the Google Cloud SDK using the following command: gcloud init
  7. Create a project folder and add the application files (main.py and app.yaml).
  8. Write the Hello World application in Python. main.py from flask import Flask app = Flask( name ) @app.route('/') def hello(): return "Hello, World!" if name == " main ": app.run()
  9. Create the configuration file. app.yaml runtime: python entrypoint: gunicorn - b :$PORT main:app
  10. Open the Command Prompt in the project directory.
  11. Deploy the application using the following command: gcloud app deploy
  12. After successful deployment, open the application in the web browser using: gcloud app browse
  13. Verify that the browser displays the message "Hello, World!". Conclusion: Google App Engine was installed and a simple Hello World web application was developed using Python/Java successfully.

Laboratory Assignment No. 7

Title: Case Study on Platform as a Service (PaaS) using Google App Engine Problem Statement: Case Study on Platform as a Service (PaaS). Use Google App Engine (GAE) Launcher to launch web applications. Aim: To study Platform as a Service (PaaS) using Google App Engine and launch a web application using the GAE Launcher. Objectives:

  • To understand the concept of Platform as a Service (PaaS).
  • To study the features of Google App Engine (GAE).
  • To understand the architecture and working of Google App Engine.
  • To launch a web application using the GAE Launcher.
  • To learn the deployment process of applications on the Google Cloud Platform. Software Requirements: Windows 10/11 Operating System, Google Cloud SDK, Google App Engine (GAE), Python 3.x, Visual Studio Code, Google Chrome / Mozilla Firefox, Google Cloud Account Hardware Requirements: Computer or Laptop, Minimum 4 GB RAM, Intel Core i3 Processor or above, Stable Internet Connection Theory:

Platform as a Service (PaaS)

Platform as a Service (PaaS) is a cloud computing service model that provides a complete platform for developing, testing, deploying, and managing applications over the Internet. It eliminates the need to manage hardware, operating systems, and servers, allowing developers to focus on application development.

Google App Engine (GAE)

Google App Engine (GAE) is a fully managed Platform as a Service (PaaS) provided by Google Cloud Platform. It enables developers to build and deploy web applications without worrying about server management or infrastructure. GAE automatically manages scaling, load balancing, and application monitoring, making application deployment simple and efficient.

PART B

Laboratory Assignment No. 2

Title: Creation of an Application in Salesforce.com using Apex Programming Language Problem Statement: Create an application in Salesforce.com using Apex Programming Language. Aim: To create a simple application in Salesforce.com using Apex Programming Language. Objectives:

  • To understand the concept of Salesforce.com.
  • To study the basics of Apex Programming Language.
  • To create a simple application using Apex.
  • To understand the execution of Apex classes and methods.
  • To learn the basic application development process in Salesforce. Software Requirements: Windows 10/11 Operating System, Salesforce Developer Account, Salesforce Developer Console, Google Chrome / Mozilla Firefox, Microsoft Word (for documentation) Hardware Requirements: Computer or Laptop, Minimum 4 GB RAM, Intel Core i3 Processor or above, Stable Internet Connection Theory:

Salesforce

Salesforce.com/Salesforce is a cloud-based Customer Relationship Management (CRM) platform that enables organizations to manage customer information, sales, marketing, and business processes through cloud computing. It provides various tools for application development, automation, analytics, and customer support without requiring users to manage the underlying infrastructure.

Apex Programming Language

Apex is a strongly typed, object-oriented programming language developed by Salesforce for building custom business logic on the Salesforce platform. It has a syntax similar to Java and allows developers to create custom applications, triggers, classes, controllers, and web services. Apex code executes on Salesforce servers and integrates directly with Salesforce data.

Structure of an Apex Program

An Apex program generally consists of the following components:

  • Class Declaration : Defines the class that contains variables and methods.
  • Methods : Contain the business logic to perform specific operations.
  • Variables : Used to store data during program execution.
  • SOQL/SOSL Queries : Used to retrieve records from Salesforce objects.
  • DML Statements : Used to insert, update, delete, or retrieve records from the Salesforce database.

Common Apex Functions and Statements

Some commonly used Apex statements and functions are:

  • System.debug() – Displays messages in the Debug Log.
  • System.now() – Returns the current date and time.
  • System.today() – Returns the current date.
  • insert – Inserts new records into Salesforce.
  • update – Updates existing records.
  • delete – Deletes records from Salesforce.
  • Database.insert() – Inserts records with additional error handling.
  • Database.update() – Updates records with partial success options.

Applications of Salesforce

  • Customer Relationship Management (CRM)
  • Sales automation
  • Marketing automation
  • Customer service and support
  • Business process automation
  • Custom enterprise application development
  • Reporting and analytics Procedure:
  1. Log in to the Salesforce Developer account.
  2. Create a Custom Object named Student.
  3. Create the following custom fields: o Roll No (Number) o Course (Text) o Department (Text)
  4. Open the Developer Console.
  5. Click File → New → Apex Class.
  6. Name the class StudentManagement.
  7. Write the Apex code.
  8. Save the Apex class.
  9. Open Debug → Open Execute Anonymous Window.
  10. Execute: StudentManagement.addStudent();
  11. Click Execute.
  12. Open the Student object and verify that the student record has been inserted successfully.
  13. Check the Debug Log for the success message. Input: Student details such as Name, Roll Number, Course, and Department. Output: Student record created successfully in Salesforce and stored in the Student object. Conclusion: An application was created in Salesforce.com using Apex Programming Language successfully.

Laboratory Assignment No. 3

Title: Creation of a Warehouse Application in Salesforce.com Problem Statement: Study creating a warehouse application in Salesforce.com. Aim: To study and create a simple Warehouse Management application in Salesforce.com. Objectives:

  • To understand the concept of a Warehouse Management application.
  • To create a custom Warehouse object in Salesforce.
  • To create custom fields for storing product information.
  • To insert and manage warehouse records.
  • To understand how Salesforce can be used for inventory management. Software Requirements: Windows 10/11 Operating System, Salesforce Developer Account, Salesforce Lightning Experience, Google Chrome / Mozilla Firefox, Microsoft Word (for documentation) Hardware Requirements: Computer or Laptop, Minimum 4 GB RAM, Intel Core i3 Processor or above, Stable Internet Connection Theory:

Salesforce.com

Salesforce.com is a cloud-based Customer Relationship Management (CRM) platform that enables organizations to develop and manage business applications without maintaining physical infrastructure. It provides tools for creating custom objects, fields, workflows, reports, dashboards, and applications.

Applications of Warehouse Management

  • Inventory management
  • Product stock monitoring
  • Warehouse record maintenance
  • Supply chain management
  • Retail inventory management
  • Manufacturing industries
  • Logistics and distribution Procedure:
  1. Log in to the Salesforce Developer Account.
  2. Click on Setup.
  3. Navigate to Object Manager.
  4. Click Create → Custom Object.
  5. Create a custom object named Warehouse.
  6. Set the Record Name field as Product Name.
  7. Create the following custom fields in the Warehouse object: o Product ID (Number) o Product Name (Text) o Category (Text) o Quantity (Number) o Price (Currency) o Supplier Name (Text) o Storage Location (Text)
  8. Save the custom object and fields.
  9. Open the App Launcher and select the Warehouse application (or add the Warehouse tab to the app if required).
  10. Click New to create a warehouse record.
  11. Enter the product details.
  12. Click Save.
  13. Verify that the product record is successfully stored in the Warehouse object.
  14. View the list of warehouse records. Input: Warehouse Product details such as Product ID, Product Name, Category, Quantity, Price, Supplier Name, and Storage Location. Output: Warehouse record created successfully in Salesforce and stored in the Warehouse object. Conclusion: A Warehouse Management application creation in Salesforce.com was studied successfully.

Laboratory Assignment No. 4

Title: Study Installation and Configuration of Hadoop Problem Statement: Study installation and configuration of Hadoop. Aim: To study the installation and configuration of the Hadoop framework. Objectives:

  • To understand the concept of Hadoop.
  • To study the architecture of Hadoop.
  • To learn the installation process of Hadoop.
  • To study the configuration of Hadoop in a single-node environment.
  • To understand the applications of Hadoop in big data processing. Software Requirements: Windows 10/11 Operating System, Java Development Kit (JDK 8 or above), Apache Hadoop, Oracle VirtualBox (optional), Ubuntu Linux (optional), Google Chrome / Mozilla Firefox, Microsoft Word (for documentation) Hardware Requirements: Computer or Laptop, Minimum 4 GB RAM, Intel Core i3 Processor or above, Minimum 20 GB Free Disk Space, Stable Internet Connection Theory:

Hadoop

Apache Hadoop is an open-source framework developed by the Apache Software Foundation for storing and processing large volumes of data across clusters of computers. It provides a distributed computing environment that enables reliable, scalable, and fault-tolerant data processing. Hadoop is widely used for Big Data analytics because it can efficiently process structured, semi-structured, and unstructured data.