You are on page 1of 5

Answer Justification is not mandatory unless demanded

In the QUIZ part, just put the correct letter(s), no justification needed
PART A : QUIZ

PART B : NoSQL USE CASES


A Digital Marketing agency is investigating about anonymous spam infiltration on its own social
media networks.
What is the most suitable data type to store the investigation results ?
a. Key/Value
b. Document
c. Object
d. Graph
e. Column-Wide
f. Time-Series

An enterprise wants to detect unauthorized access from external users to its private resources
(servers, websites, ..).
What is the most suitable data type to record all unauthorized access initiatives ?
a. Key/Value
b. Document
c. Object
d. Graph
e. Column-Wide
f. Time-Series

A geological centre is monitoring realtime volcanic activity.


What is the most suitable data type to record it ?
a. Key/Value
b. Document
c. Object
d. Graph
e. Column-Wide
f. Time-Series

An internet agency is dealing with DNS servers as follows:


IP URL
172.16.20.3 www.test1Fin.com
10.2.100.1 www.commerce.rnu.tn
10.2.100.2 www.googler.tn
199.45.63.1
4 www.livreFR.net

What is the most suitable data type to store DNS informations ?


a. Key/Value
b. Document
c. Object
d. Graph
e. Column-Wide
f. Time-Series

A library is designing a data store that contains all Book informations as follows:
Book ID Book information
Title : Finance HandBook
Pages : 325
120-1588-251 Price : 14 DT

Title : Finance Crisis


Pages : 630
Price : 54 DT
120-1588-222
Editor : Huffman

Title : Finance Crisis


Pages : 630
Price : 54 DT
120-1588-444
Stock : Available

What is the most suitable data type to store Book informations ?


a. Key/Value
b. Document
c. Object
d. Graph
e. Column-Wide
f. Time-Series

PART C : SQL QUERYING + NON-RELATIONAL DATA


Part C.1 : SQL QUERYING
A Book Library needs to manage its IT System through an RDBMS approach. For dealing with that
concept, let’s consider the tables mentioned below :
Book(ISBN, title, NumberOfPages, price, DateOfPulishing, #IdEditor)
Customer(Reference, Name, Address, Email, Age, Tel)
Purchase(Quantity, DateOfPurchase, #ISBN, #Reference)
Editor(IdEditor, label, Fax, Telephone, website)

1. Draw the Relational Schema (as in Access DBMS)


2. Why the table Purchase does not contain any Primary key?
3. What kind of field is #IdEditor ? Why we use it ?

With SQL language, determine these queries:

a. Insert data into table Editor


b. Insert data into table Customer
c. Insert data into table Book
d. Insert data into table Purchase
e. Display the table Customer (All Data)
f. Diplay the title and NumberOfPages of all Books
g. Display the Sum of Prices’ Books
h. Display the Average of Customer’s Age
i. Display all Customers living in Tunis
j. Display all Customers living in Tunis sorted by name
k. Display all Customers living in Tunis whom name begins by ‘A’
l. Display all Customers living in Tunis whom the 3rd letter of their name is ‘B’
m. Display all Customers living in Tunis whom email end by ‘gmail.com’
n. Display all Customers living in Tunis and Sfax
o. Display all Books published before 2013
p. Display all Books published between 2012 and 2015

Part C.2 : NoSQL & Data


 By the evolution of IT technologies, this Book Library decides to optimize the purchase rate. So,
it implements a Digital Marketing Strategy on Social Media websites (Facebook, Twitter, ..) and
secures purchasing via Blockchain Technology.(Web 3.0)
4. Is the RDBMS approach still suitable for this implementation ? if NO, What the most suitable
approach? Justify.

 Let’s assume that a Customer is characterized by these items :


Customer(Reference, Name, Address, Email, Age, Tel, PersonalPhoto, Self_Video)
5. What type of NoSQL is convenient for these changes ?
6. Can CosmosDB be the right choice as a DBMS ? Justify.

 After many years, this Book Library turns into a big holding (like Amazon) and becomes
widespread all over the world. So, it makes a decision to reduce its Capex charges.
7. What is the key solution for that situation ? Justify.

PART C : SQL QUERYING + NON-RELATIONAL DATA


Part C.1 : SQL QUERYING
An Academic institution needs to manage its IT System through an RDBMS approach. For dealing
with that concept, let’s consider the tables mentioned below :
Course(NumberC, title, NumberOfHours, Classroom, Genre, # IdTeacher)
Student(Id, Name, Address, Email, Age, Tel)
Learning(Status, DateOfClass, # NumberC, #Id)
Teacher(IdTeacher, FullName, YearsOfExperience, Telephone)

1. Draw the Relational Schema (as in Access DBMS)


2. Why the table Learning does not contain any Primary key ?
3. What kind of field is #IdTeacher ? Why we use it ?

With SQL language, determine these queries :

a. Insert data into table Teacher


b. Insert data into table Student
c. Insert data into table Course
d. Insert data into table Learning
e. Display the table Student (All Data)
f. Diplay the title and NumberOfHours of all Courses
g. Display the Sum of NumberOfHours for all Courses
h. Display the Average of Student’s Age
i. Display all Students living in Tunis
j. Display all Students living in Tunis sorted by name
k. Display all Students living in Tunis whom name begins by ‘N’
l. Display all Students living in Tunis whom the 4th letter of their name is ‘C’
m. Display all Students living in Tunis whom email end by ‘gmail.com’
n. Display all Students living in Tunis and Bizerte
o. Display all Courses learned before 2020
p. Display all Courses learned between 2012 and 2015

Part C.2 : NoSQL & Data

 By the evolution of IT technologies, this Book Library decides to optimize the purchase rate. So,
it implements a Digital Marketing Strategy on Social Media websites (Facebook, Twitter, ..) and
secures purchasing via Blockchain Technology.
4. Is the RDBMS approach still convenient for this implementation ? if NO, What the most
suitable approach? Justify.

InfluxDB is a _______________ NoSQL type


a. Object
b. Column-Wide
c. Time-Series

MongoDB is a _______________ NoSQL type


a. Object
b. Column-Wide
c. Document

You might also like