1644 - Asignment 2 - Brief (Pass), Summaries of Information Technology

1644 - Asignment 2 - Brief (Pass)

Typology: Summaries

2022/2023

Uploaded on 07/28/2023

Kevin12_45
Kevin12_45 🇻🇳

11 documents

1 / 44

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 2022 – 2023
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
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
pf2a
pf2b
pf2c

Partial preview of the text

Download 1644 - Asignment 2 - Brief (Pass) and more Summaries Information Technology 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 2022 – 202 3

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 Content

  • P5 Configure a Cloud Computing platform with a cloud service provider’s framework..................................................
      1. Configure GitHub..................................................................................................................................................
      1. Configure MongoDB:..........................................................................................................................................
      1. Configure Render:..............................................................................................................................................
  • P6 Implement a cloud platform using open-source tools..............................................................................................
      1. Source Code.......................................................................................................................................................
      • 1.1. Create and set up for ATN........................................................................................................................
      • 1.2. Connect to MongoDB...............................................................................................................................
      • 1.3. Main Functionalities in project................................................................................................................
        • 1.3.1. Admin dashboard..........................................................................................................................
        • 1.3.2. List.................................................................................................................................................
        • 1.3.3. Edit................................................................................................................................................
        • 1.3.4. Add................................................................................................................................................
      1. Test Source Code on Local-host..........................................................................................................................
      • 2.1. Admin page..............................................................................................................................................
      • 2.2. Product Page............................................................................................................................................
        • 2.2.1. Edit Product...................................................................................................................................
        • 2.2.2. Delete Product...............................................................................................................................
      • 2.3. Add New Product.....................................................................................................................................
      1. Deploy Source Code to GitHub and then imitate to Render...............................................................................
      1. Test Source Code on Render Platform................................................................................................................
      • 4.1. Admin page..............................................................................................................................................
      • 4.2. Product Page............................................................................................................................................
        • 4.2.1. Edit................................................................................................................................................
        • 4.2.2. Delete............................................................................................................................................
      • 4.3. Add New Product.....................................................................................................................................
  • to these problems.......................................................................................................................................................... P7 Analyse the most common problems which arise in a Cloud Computing platform and discuss appropriate solutions
      1. Public Cloud........................................................................................................................................................
      • a) Issue............................................................................................................................................................
      • b) Solution.......................................................................................................................................................
      1. Private Cloud......................................................................................................................................................
      • a) Issue............................................................................................................................................................
      • b) Solution.......................................................................................................................................................
      1. Hybrid Cloud.......................................................................................................................................................
      • a) Issue............................................................................................................................................................
      • b) Solution.......................................................................................................................................................
      1. Community Cloud...............................................................................................................................................
      • a) Issue............................................................................................................................................................
      • b) Solution.......................................................................................................................................................
  • P8 Assess the most common security issues in cloud environments.............................................................................
      1. Organizational security risks...............................................................................................................................
      1. Physical Security Risks........................................................................................................................................
      1. Data Loss/Leakage..............................................................................................................................................
      1. Risks of Compliance and Audit...........................................................................................................................
      1. Technology security risks....................................................................................................................................
  • References.....................................................................................................................................................................
  • Figure 1 Create a new repository....................................................................................................................................... Table Of Figure
  • Figure 2 Name Repository..................................................................................................................................................
  • Figure 3 Git Init.................................................................................................................................................................
  • Figure 4 Git Add................................................................................................................................................................
  • Figure 5 Push your code to the repository.......................................................................................................................
  • Figure 6 Register Mongo Atlast........................................................................................................................................
  • Figure 7 Filling in Information...........................................................................................................................................
  • Figure 8 Create Project.....................................................................................................................................................
  • Figure 9 Build Cluster........................................................................................................................................................
  • Figure 10 Set-up Network Access.....................................................................................................................................
  • Figure 11 Setup Username
  • Figure 12 Set-up Password...............................................................................................................................................
  • Figure 13 Get The Connection String................................................................................................................................
  • Figure 14 Connect With Mongodb Compass....................................................................................................................
  • Figure 15 New Web Service..............................................................................................................................................
  • Figure 16 Connect GitHub................................................................................................................................................
  • Figure 17 Fill In Information.............................................................................................................................................
  • Figure 18 Complete..........................................................................................................................................................
  • Figure 19 Access The Public Address................................................................................................................................
  • Figure 20 Set up package..................................................................................................................................................
  • Figure 21 : Install Express..................................................................................................................................................
  • Figure 22 : Install MongoDB..............................................................................................................................................
  • Figure 23 Create Project...................................................................................................................................................
  • Figure 24 : Create New Cluster
  • Figure 25 Add New Database User...................................................................................................................................
  • Figure 26 Built-in Role......................................................................................................................................................
  • Figure 27 Connect to MongoDB through using Mongoose...............................................................................................
  • Figure 28 Admin dashboard Code....................................................................................................................................
  • Figure 29 List....................................................................................................................................................................
  • Figure 30 Edit....................................................................................................................................................................
  • Figure 31 Add...................................................................................................................................................................
  • Figure 32 Admin page.......................................................................................................................................................
  • Figure 33 Product page.....................................................................................................................................................
  • Figure 34 Edit Products.....................................................................................................................................................
  • Figure 35 Edit Successfully Text........................................................................................................................................
  • Figure 36 Delete Products................................................................................................................................................
  • Figure 37 Deleted Successfully Text..................................................................................................................................
  • Figure 38 Add new product..............................................................................................................................................
  • Figure 39 Add successfully text.........................................................................................................................................
  • Figure 40 Git init...............................................................................................................................................................
  • Figure 41 Git add and git commit.....................................................................................................................................
  • Figure 42 Create new Repository.....................................................................................................................................
  • Figure 43 Repository Name..............................................................................................................................................
  • Figure 44 Create Repository.............................................................................................................................................
  • Figure 45 Push an existing repository from the command line........................................................................................
  • Figure 46 Push an existing repository into terminal shell.................................................................................................
  • Figure 47 Data has been pushed to GitHub......................................................................................................................
  • Figure 48 Create New.......................................................................................................................................................
  • Figure 49 Create new Web Service...................................................................................................................................
  • Figure 50 Connect to ant-shop.........................................................................................................................................
  • Figure 51 Named for web service.....................................................................................................................................
  • Figure 52 Input start Command........................................................................................................................................
  • Figure 53 Get link website................................................................................................................................................
  • Figure 54 Admin page running Render.............................................................................................................................
  • Figure 55 Product page.....................................................................................................................................................
  • Figure 56 Edit page...........................................................................................................................................................
  • Figure 57 Edit successfully text.........................................................................................................................................
  • Figure 58 Delete Product..................................................................................................................................................
  • Figure 59 Deleted Successfully text..................................................................................................................................
  • Figure 60 Add new product..............................................................................................................................................
  • Figure 61 Add successfully text.........................................................................................................................................

Push your code to the repository:

Open the terminal and navigate to your project folder.

Run the command "git init" to initialize a new Git repository.

Figure 3 Git Init

Run the command "git add ." to add all files in the current directory to the repository.

Figure 4 Git Add

Run the command "git commit -m 'Initial commit'" to commit your changes.

Run the command "git remote add origin [repository URL]" to add your GitHub repository as a remote

destination.

Run the command "git push -u origin master" to push your code to the repository.

Figure 5 Push your code to the repository

2. Configure MongoDB:

Register Mongo Atlast

Go go Managed MongoDB Hosting | Database-as-a-Service | MongoDB

Hints: When you register as a new user, you can use your Google email account, select any region, any

programming language

Create Project, click in the left corner of the screen.

Figure 6 Register Mongo Atlast

Create Project

The system will navigate to a new page, allowing us to create a new Project by providing the name of the

project you want top set

Figure 7 Filling in Information

After filling in the information, click Next

Then the system will allow you to add people you want to share with and build this system together. If you

do not want to share this database with anyone, press the Create Project button to complete the process

of creating a new project.

Figure 10 Set-up Network Access

Set-up user name and password

Click on Database Access on the left menu then add a new user

Figure 11 Setup Username

Figure 12 Set-up Password

Get The Connection String

After the Set-up Network Access process is completed, the user needs to get the connect String to connect

to NoSQL. To get the connect String click on Clusters> Connects Connect using MongoDB compass> Copy

the connection string, then open MongoDB Compass.

Figure 13 Get The Connection String

Connect With Mongodb Compass

Fill in the information for the new project, including the project name and the path to the repository on

GitHub

Figure 17 Fill In Information

Cloud Render completes the source code download from GitHub

Figure 18 Complete

Use a browser to access the public address of the project on Cloud Render

Figure 19 Access The Public Address

P6 Implement a cloud platform using open-source tools.

Here is a step-by-step guide on how to create a NodeJS+MongoDB+Render (Free) application with at least

7 functions (Example add and delete products)

1. Source Code

1.1. Create and set up for ATN

Figure 20 Set up package My project is using express, after installing module express using “npm install express” Figure 21 : Install Express

After that, I am going to use a command "npm install [email protected] --save" is used to install a specific

version of the MongoDB driver for Node.js in a Mean stack application. Specifically, "[email protected]"

refers to the version 4.14.0 of the MongoDB driver for Node.js. By specifying the version number, you

ensure that you are installing that specific version.

Figure 24 : Create New Cluster

Step 3: Configure user authentication

After that, we are going to create a new database user to using database. At this part, we must to fill in the

name and password to create a new database user.

Figure 25 Add New Database User

Importantly, we have to choose Atlas admin in Built-in-Role to access almost database

Figure 26 Built-in Role Step 4: Write code to connect server with MongoDB through using mongoose Figure 27 Connect to MongoDB through using Mongoose

In this step, we can connect server to MongoDB database using mongoose. The “mongoConnect” function

is defined as an asynchronous function