Manage Data Persistence Using noSQL Data Stores
Manage Data Persistence Using noSQL Data Stores
Question 1
Define the requirements that a client would need to meet that ensure that they would require a
NoSQL system.
Submission:
<Client requirements for NoSQL>
<Example 1>
<Example 2>
Answer:
Question 2
Research and describe in your own words the benefits and relevance of horizontal scaling
compared against the case study.
Be detailed in how you believe scaling will be implemented.
Submission:
<Benefits of horizontal scaling vs vertical scaling>
<How the company would implement NoSQL>
Answer:
Question 3
Research and compare RDBMS against NoSQL. Provide and describe 4 differnces.
Submission:
<Name>
<Description>
<Example>
Answer:
Question 4
Question 5
I have not used any artificial intelligence tool or service to generate or assist me in writing any
part of my assignments. If you use AI as a research tool, such as a book or website, you may
select true. Ensure you are not copy/pasting any AI response.
Answer:
True
False
2. Determine and create storage of data
types Quiz
The answer should be written by yourself (AI-generated answers will not accepted)!
Question 6
Insert your document schema into a MongoDB, show the database you create, show the
collections being used and some data within each collection.
Show your work through Command line (Terminal)
Submission: – a word document named <your name>-3.1.docx
Containing:
● A professional templated word document with
○ Cover Page
○ Executive Summary
○ Schema
○ Schema shown working in MongoDB (Include screenshots)
Answer:
Question 7
Describe in your own words the types of NoSQL data stores and provide two core
components that make NoSQL databases viable in today’s data gathering world.
Submission:
<Types of NoSQL name>
<Components of NoSQL>
Answer:
Question 8
Answer:
Question 9
Describe in your own words the challenges a mobile developer must face when dealing with
roaming data.
Using the NoSQL system of MongoDB, what is the default partition key.
Submission:
<Summary of Mobile environment>
<Challenges of Mobile Environment>
<What is the default partition key in MongoDB>
Answer:
Question 10
I have not used any artificial intelligence tool or service to generate or assist me in writing any
part of my assignments. If you use AI as a research tool, such as a book or website, you may
select true. Ensure you are not copy/pasting any AI response.
Answer:
True
False
Question 11
A business has contacted you and wishes to see an example of a database that can clear
itself of specific data. You are to do the following:
● Create a new database called transactions.
● Create a collection called items with 10 items of your choice
● Apply an TTL to an index within your items collection of 10 seconds.
Answer:
Question 12
I have not used any artificial intelligence tool or service to generate or assist me in writing any
part of my assignments. If you use AI as a research tool, such as a book or website, you may
select true. Ensure you are not copy/pasting any AI response.
Answer:
True
False
Question 13
Import the spells_2.json file into a mongo server - Located in the data.zip
From the terminal
.\mongoimport --jsonArray --port 27017 --db dnd --collection spells --file
c:\data\spells_2.json
A company is reviewing Dungeons and Dragons as a method for online revenue, one of the
primary requirements is player creation. As part of player creation there are spell characters.
The client has asked you to test and examine the spells_2.json file to determine valid sort
keys.
Review the schema and determine a sort key.
Include screenshots
Submission: – a word document named <your name>-4.1.docx
Containing:
● A professional templated word document with
○ Cover Page
○ Executive summary
○ Schema
○ Relevant Key(s) and why
Answer:
Question 14
Answer:
Question 15
Answer:
Question 16
Answer:
Question 17
Using the dnd/spells collection created in Q13.
The client has noticed that the changes performed by the creation of the index has
improved user retention, but they request that you optimise some of the queries, they have
mention that level and school are frequently searched.
Remove the current the current level and schools indexes and create an index that
combines level and school in ascending order, perform a search and confirm that the
content is returned using the correct index.
Once you have done this you are to modify the search result using projections to reduce the
returned result to the following fields:
● Name
● Level
● School
● Classes
Answer:
Question 18
Create a screen record video of you presenting TTL working in MongoDB.
A business has contacted you and wishes to see an example of a database that can clear
itself of specific data. You are to do the following:
● Create a new database called transactions.
● Create a collection called items with 10 items of your choice
● Apply an TTL to an index within your items collection of 10 seconds.
Question 19
I have not used any artificial intelligence tool or service to generate or assist me in writing any
part of my assignments. If you use AI as a research tool, such as a book or website, you may
select true. Ensure you are not copy/pasting any AI response.
Answer:
True
False
4. Use queries and retrieve objects Quiz
The answer should be written by yourself (AI-generated answers will not accepted)!
Question 20
Define in your own words the four different types of APIs that can be used for connecting
technology with NoSQL systems.
Submission:
<Name>
<Description>
Answer:
Question 21
Create a php website that will connect to the mongo server containing the dnd database
and spells collection.
It is to have two pages for viewing, linked through a basic navigation
● An index page with the connection established
● A phpinfo page, showing the php info of your system and that mongo is installed.
Answer:
Question 22
In this quiz you will modify the website that you have previously created to enable the
addition of users to the system.
To start with go into mongosh of the dnd database, create a collection called users, create
the first document as Name:Gandalf The Grey.
Create php web pages to insert names into that collection.
Add the following names:
● Merlin
● Harry Potter
Confirm that the information has been entered into the database by showing the list of
names from the mongo terminal.
Create – a word document named <your name>-5.3.docx
Containing:
● A professional templated word document with
○ Cover Page
○ Description and screenshots of the website per action
○ Description and screenshots of the database per action
Answer:
Question 23
Modify the website that you have started. To enable the addition of users to the system.
Create php web pages to insert the following data into the users collection.
Add the following names:
● Dr Strange, marvel universe, first appearance 1963
● Willow Rosenburg, buffy universe, first appearance 1997
Confirm that the information has been entered into the database by showing the list of
names from the mongo terminal.
Create – a word document named <your name>-5.4.docx
Containing:
● A professional templated word document with
○ Cover Page
○ Description and screenshots of the website per action
○ Description and screenshots of the database per action
Answer:
Question 24
Modify the website that you have started. (Question 13)
Create php web pages to allow the end user to view spell names from the dnd spell
collection.
● Make the list viewable.
● Hint – make the object an array to be able to read information.
Create – a word document named <your name>-5.5.docx
Containing:
● A professional templated word document with
○ Cover Page
○ Description and screenshots of the website per action
○ Description and screenshots of the database per action
Submission: – a zip file named <your name>-5.5.zip
Containing:
● Your documentation
● Your website
Answer:
5. Confirm interaction of objects Quiz
The answer should be written by yourself (AI-generated answers will not accepted)!
Question 25
Answer:
Question 26
Modify the PHP-MongoDB website that you have started in previous assessments.
From here, create php web pages to allow the end user to update an entire document from
the system. From here, apply the changes to the dnd.users collection..
● Supply a list of elements that can be updated
● Allow for each document to have every object updated.
Answer:
Question 27
Answer:
Question 28
Answer:
Question 29
Using the previously created replication set from 6.4 we will need to break the replication
and fix it.
Assuming Yourname_64_1 is your primary, go into each other secondary and shut down the
servers. From here you should see your primary server demote itself to a secondary until we
can add another server into the replica set.
From here create a new server:
● Yourname_65_1
Add this server to the replica set, determine which is primary and view is there was an event
trigger to synchronise the collection on the database servers. Once done, bring back your
original secondaries, confirm the collection is still on all machines and with the primary able
to do a document search.
Use the rs.isMaster() command to show the status of each server and the replication set.
Submission: – a word document named <your name>-6.5.docx
Containing:
● A professional templated word document with
○ Cover Page
○ Step by step documentation of actions - description and screenshot
■ Servers running
■ Secondaries removed
■ Primary self-demotion
■ Addition of new server
■ New primary exists
■ Replication of data
■ Return of original secondaries.
Answer:
Question 30
Preliminary Setup:
Create a new mongo server: Yourname_66
Add a database called marvel
Add a collection users with the following raw data:
● Name: Steve, Password password
Create a set of web pages that link to site and can show the content of the users collection.
Create a screen record video of you presenting
Apply authentication to the database, show that the authentication is working.
● A non-authenticated user will not be able to use show dbs or show collections
Once you have shown both non-authenticated and authenticated through the mongo shell,
check your website. The website will now need to be modified to include authentication.
Once done, create a web page to show the insertion of a new user with encrypted
passwords.
You can show the encryption either on the web page or through the mongosh.
In summary:
● A short video of you showing and verbally describing
○ the website working and encrypting content.
○ Showing authenticated and non-authenticated access to the data from the
website and mongosh
○ Show your servers configuration file
Answer:
Question 31
Describe in your own words, The following:
● The process of creating a replication set and its ability to promote data persistence.
● The process of confirming data persistence and the steps needed to fix a broken
replication set, assume 3 nodes with the primary node going down.
Question 32
I have not used any artificial intelligence tool or service to generate or assist me in writing any
part of my assignments. If you use AI as a research tool, such as a book or website, you may
select true. Ensure you are not copy/pasting any AI response.
Answer:
True
False