Cloud Computing Assignment 2, Assignments of Computer Fundamentals

Cloud Computing Assignment 2 This assignment describe how to configure a Cloud website

Typology: Assignments

2022/2023

Uploaded on 03/13/2023

sangly1
sangly1 🇻🇳

5

(1)

5 documents

1 / 41

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ASSIGNMENT 2 BRIEF
Qualification BTEC Level 5 HND Diploma in Computing
Unit number Unit 16: Cloud Computing
Assignment title Cloud’s implementation and security threats
Academic Year 2021 – 2022
Unit Tutor Ho Hai Van
Issue date Submission date
IV name and date
Submission Format:
Format:
A report (in PDF format)
You must use font Calibri size 12, set number of the pages and use multiple line spacing at
1.3. Margins must be: left: 1.25 cm; right: 1 cm; top: 1 cm and bottom: 1 cm. The reference
follows Harvard referencing system.
Submission Students are compulsory to submit the assignment in due date and in a way requested by the
Tutors. The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/
Note: The Assignment must be your own work, and not copied by or from another student or from
books etc. If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you
must reference your sources, using the Harvard style. Make sure that you know how to reference properly,
and that understand the guidelines on plagiarism. If you do not, you definitely get failed
Unit Learning Outcomes:
LO3 Develop Cloud Computing solutions using service provider’s frameworks and open source tools.
LO4 Analyze the technical challenges for cloud applications and assess their risks
Assignment Brief and Guidance:
Task 1
Base on the scenario and architecture design in the first assignment provide the
implementation. Because of the time constraint of the assignment, the
implementation just provides some demo functions of the scenario. The
implementation includes two parts:
A step-by-step instruction
Page 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29

Partial preview of the text

Download Cloud Computing Assignment 2 and more Assignments Computer Fundamentals in PDF only on Docsity!

ASSIGNMENT 2 BRIEF

Qualification BTEC Level 5 HND Diploma in Computing Unit number Unit 16 : Cloud Computing Assignment title Cloud’s implementation and security threats Academic Year 2021 – 202 2 Unit Tutor Ho Hai Van Issue date Submission date IV name and date Submission Format: Format: A report (in PDF format) You must use font Calibri size 12, set number of the pages and use multiple line spacing at 1.3. Margins must be: left: 1.25 cm; right: 1 cm; top: 1 cm and bottom: 1 cm. The reference follows Harvard referencing system. Submission Students are compulsory to submit the assignment in due date and in a way requested by the Tutors. The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/ Note: The Assignment must be your own work, and not copied by or from another student or from books etc. If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference your sources, using the Harvard style. Make sure that you know how to reference properly, and that understand the guidelines on plagiarism. If you do not, you definitely get failed Unit Learning Outcomes: LO3 Develop Cloud Computing solutions using service provider’s frameworks and open source tools. LO4 Analyze the technical challenges for cloud applications and assess their risks Assignment Brief and Guidance: Task 1 Base on the scenario and architecture design in the first assignment provide the implementation. Because of the time constraint of the assignment, the implementation just provides some demo functions of the scenario. The implementation includes two parts:  A step-by-step instruction

o which shows which functions are implemented o How to config, deploy and test the services (Web application, Database Server, Source code management, server logs...) using service provider’s frameworks and open-source tools. o Images for the built functions  A brief discussion about difficulties which one can face during the development process(optional)  The source code for the built application Task 2 The table of contents in your security manual (which should be 500–700 words) should be as follows:

  1. Analysis of the most common problems and security issues of a cloud computing platform.
  2. Discussion on how to overcome these issues.
  3. Summary.

Table of Contents

  • I. Configure a Cloud Computing platform with a cloud service provider’s framework (P5)............................
      1. Git/Github...................................................................................................................................................
      1. Heroku/Render..........................................................................................................................................
      1. MongoDB Compass/Atlas........................................................................................................................
      1. Node.js......................................................................................................................................................
      • 4.1. Module Express.................................................................................................................................
      • 4.2. Module MongoDB.............................................................................................................................
  • II. Implement a cloud platform using open-source tools (P6)..........................................................................
      1. Create/Read Function...............................................................................................................................
      1. Local Test.................................................................................................................................................
      1. Deploy to GitHub.....................................................................................................................................
      1. Migrate from GitHub to Render...............................................................................................................
      1. Remote Test..............................................................................................................................................
  • solutions to these problems (P7)....................................................................................................................... III. Analyze the most common problems which arise in a Cloud Computing platform and discuss appropriate
      1. Common Cloud and Security Issues.........................................................................................................
      • 1.1. Public Cloud Issues............................................................................................................................
      • 1.2. Private Cloud Issues..........................................................................................................................
      • 1.3. Community Cloud Issues...................................................................................................................
      • 1.4. Hybrid Cloud Issues..........................................................................................................................
      1. Solution for Every Cloud Model..............................................................................................................
      • 2.1. Public Cloud Solution........................................................................................................................
      • 2.2. Private Cloud Solution.......................................................................................................................
      • 2.3. Community Cloud Solution...............................................................................................................
      • 2.4. Hybrid Cloud Solution.......................................................................................................................
  • IV. Assess the most common security issues in cloud environments (P8).......................................................
      1. Security Threats and Vulnerabilities........................................................................................................
      • 1.1. Basic Security Risk Considerations...................................................................................................
      • 1.2. Data Security Considerations............................................................................................................
      1. Methods to Ensure Security in the Cloud.................................................................................................
      • 2.1. Countermeasures for Security Risks..................................................................................................
    • 2.2. Methods to ensure Data security........................................................................................................
  • References.........................................................................................................................................................
  • Figure 1 Github...................................................................................................................................................
  • Figure 2 change repository directory..................................................................................................................
  • Figure 3 git commit............................................................................................................................................
  • Figure 4 New repository.....................................................................................................................................
  • Figure 5 push command line.............................................................................................................................
  • Figure 6 Checking on github repository...........................................................................................................
  • Figure 7 Login into Render...............................................................................................................................
  • Figure 8 creating a new web service.................................................................................................................
  • Figure 9 Create the web service........................................................................................................................
  • Figure 10 Wait for the web service to go live..................................................................................................
  • Figure 11 Test out the web service...................................................................................................................
  • Figure 12 Downloading mongodb compass.....................................................................................................
  • Figure 13 Sign up MongoDB atlas...................................................................................................................
  • Figure 14 create a new database.......................................................................................................................
  • Figure 15 Add new user and setup password...................................................................................................
  • Figure 16 Add ip access for everyone..............................................................................................................
  • Figure 17 connect.............................................................................................................................................
  • Figure 18 connect into mongoDB compass......................................................................................................
  • Figure 19 connect into mongoDB compass 2...................................................................................................
  • Figure 20 Connected into toydb.......................................................................................................................
  • Figure 21 Save express as dependency.............................................................................................................
  • Figure 22 Requiring express.............................................................................................................................
  • Figure 23 Listen method...................................................................................................................................
  • Figure 24 Localhost:3000.................................................................................................................................
  • Figure 25 Install mongoDB..............................................................................................................................
  • Figure 26 Request MongoDB...........................................................................................................................
  • Figure 27 Connect Mongodb............................................................................................................................
  • Figure 28 Connected message..........................................................................................................................
  • Figure 29 Localhost test....................................................................................................................................
  • Figure 30 Index.ejs...........................................................................................................................................
  • Figure 31 Installing express..............................................................................................................................
  • Figure 32 Dependency file................................................................................................................................
  • Figure 33 Server.js............................................................................................................................................
  • Figure 34 Installing MongoDB dependency.....................................................................................................
  • Figure 35 Connect to application......................................................................................................................
  • Figure 36 Connect to the Mongo database.......................................................................................................
  • Figure 37 Connect using MongoDB compass..................................................................................................
  • Figure 38 Connect into MongoDB compass....................................................................................................
  • Figure 39 Create database and it collection......................................................................................................
  • Figure 40 Server.js 2.........................................................................................................................................
  • Figure 41 Running the server code...................................................................................................................
  • Figure 42 Local test..........................................................................................................................................
  • Figure 43 Commit to GitHub............................................................................................................................
  • Figure 44 Push to GitHub.................................................................................................................................
  • Figure 45 GitHub confirmation........................................................................................................................
  • Figure 46 Migrate from GitHub to Render.......................................................................................................
  • Figure 47 Creating a new web service..............................................................................................................
  • Figure 48 The web service goes live................................................................................................................
  • Figure 49 Open the website..............................................................................................................................
  • Figure 50 Website front page...........................................................................................................................
  • Figure 51 Testing create function.....................................................................................................................
  • Figure 52 Testing read function........................................................................................................................
  • Figure 53 Cloud Provider Risk Categories and Subcategories.........................................................................
  • Figure 54 Cloud Customer Risk Categories and Subcategories.......................................................................

I. Configure a Cloud Computing platform with a cloud service provider’s

framework (P5)

1. Git/Github

Git and GitHub are not synonymous. Git is an open-source version management tool invented in 2005 by Linux developers; GitHub is a firm founded in 2008 that creates solutions that interface with git. You do not require GitHub to use git, but GitHub cannot be used without git. There are other GitHub alternatives, including GitLab, BitBucket, and "host-your-own" solutions like gogs and gittea. All of them are referred to as "remotes" in git-speak and are entirely optional. A remote is not required to utilize git, but it will make sharing your code with others easier. The first two things you'll want to do are install git and create a free GitHub account. Figure 1 Github Source: GitHub: Let’s build from here · GitHub First, create a git repository and change the directory to the repository you just made. Or press “ctrl + `” in Visual Studio Code to open the powershell in your repository folder. Figure 2 change repository directory

GitHub will ask if you want to create a new repo from scratch or add a local repo. In this situation, because we've already built a new repo locally, we want to push it to GitHub, so follow the '...or push an existing repository from the command line instructions. Figure 5 push command line Lastly, go to github and confirming the repository has been pushed. Figure 6 Checking on github repository

2. Heroku/Render

Due to Heroku policy changes, they no longer provide free server for testing or learning anymore, so we will have to use Render instead. Firstly, login into Render with the github account, this will help you create a new server much faster. Figure 7 Login into Render Next, we will create a new web service and then connect to the recently made repository, which we made earlier. Figure 8 creating a new web service

Testing out the web service after it goes live. Figure 11 Test out the web service

3. MongoDB Compass/Atlas

First, download the mongodb compass. Figure 12 Downloading mongodb compass

While waiting for MongoDB compass to download, login or register MongoDB atlas. Figure 13 Sign up MongoDB atlas After sign in, go ahead and create a cluster and create a new database in it. Figure 14 create a new database

After that, click on the connect button. Figure 17 connect Next, click the “connect using MongoDB compass”, since we already installed MongoDB compass, so click on the “I have MongoDB compass” and copy the link given below. Figure 18 connect into mongoDB compass

Paste it in the new connection and manually write the password inside the link, remember to also removing the bracket. Then click the connect button. Figure 19 connect into mongoDB compass 2 After successfully connected into the database, it should look like this. Figure 20 Connected into toydb

Next, write a connection string in the MongoClient.connect. Then write a console.log that help us know that we have connected to the database. Figure 27 Connect Mongodb It should look like this when running the code. Figure 28 Connected message After running the code, type in localhost:3000 to test out the server. Figure 29 Localhost test

II. Implement a cloud platform using open-source tools (P6)

1. Create/Read Function

The first code “index.ejs” is what the front page will look like, as well as the web function, the “index.ejs” file must be placed inside a “views” folder. The website will have 2 function, create a toy, and read all toys that are stored in the database. In the “(1): create task” section in “index.ejs”, is the create function, this section will display the create menu where the user can enter the toy name, description, and price. Below that is the (2) read task, where the user will see all of the toy that are stored in the database. Figure 30 Index.ejs Before we see the server code section, it is important to open the VS studio powershell by using “ctrl + ` ” and then type “npm install express --save”. Figure 31 Installing express