0% found this document useful (0 votes)
2 views3 pages

Question Bank For Module 4 and Module 5

The document is a question bank for Modules 4 and 5, containing various queries and topics related to MongoDB and graph databases. It includes tasks such as writing specific MongoDB queries, explaining concepts like scaling, replica sets, and document databases, as well as discussing user cases and transaction handling. Additionally, it covers the structure of graph databases and provides examples for querying relationships within them.

Uploaded by

cantgive58
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Question Bank For Module 4 and Module 5

The document is a question bank for Modules 4 and 5, containing various queries and topics related to MongoDB and graph databases. It includes tasks such as writing specific MongoDB queries, explaining concepts like scaling, replica sets, and document databases, as well as discussing user cases and transaction handling. Additionally, it covers the structure of graph databases and provides examples for querying relationships within them.

Uploaded by

cantgive58
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

QUESTION BANK FOR MODULE 4 AND MODULE 5

SLNO QUESTIONS
1 Write following queries using MongoDB:

1. The movies released between 1967 and 1995.


2. The list of the movies released between 1967 and 1995, by displaying only title, year,
director’s last name sorted by year.
3. The number of movies by country.
4. The number of movies by country and actor.

Dataset:
Genr Director Actor
I Titl Yea e Summa Count
d e r ry ry i L F B i L F B Rol
d N N D d N N D e

FN –first name LN-last name BD-birth date


2 Explain scaling in read and write with a neat diagram.
3 Discuss the role of replica sets in maintaining consistency. Explain the significance of the w
parameter in write operations and how it affects write success criteria. Provide examples of how
WriteConcern is used to achieve different levels of write consistency.
4 Write following queries using MongoDB:
1. What is the total stock of each product across all stores?
2. Which store has the highest stock for a specific product?
3. How many products have low stock (below a threshold)?
4. What is the total value of inventory for each store?
5. How many unique products are available across all stores?.
Dataset:

SI SN PI PN PPU

SI-Store_ID SN -Store_Name PI-Product_ID


PN-Product_Name PPU- Price_Per_Unit
5 What are Document Databases? Explain with examples .List and explain any 2 features of
document databases
6 Write following queries using MongoDB:

1. The movies titled "Gladiator".


2. The distinct genre values of movies.
3. The movies of "crime" or "drama" genre.
4. The list of movies directed by "Hitchcock",display only title and year and sort them by
year.
5. The list of movies where "Cotillard" played.

Dataset:
genr Director Actor
I Titl Yea e Summa Count
d e r ry ry i L F B i L F B Rol
d N N D d N N D e

FN –First name LN-last name BD-birth date

7 How are queries structured in MongoDB compared to SQL? Provide examples.


8 How does MongoDB handle transactions compared to traditional RDBMS?
9 Write following queries using MongoDB:

1. What is the average progress of students in each course?


2. Which student has completed the most courses?
3. How many students are enrolled in each course?
4. What is the distribution of course completion rates?
5. Which course has the highest average rating?
Dataset:

EI SI SN CN P CS R

EI- Enrollment_ID SI- Student_ID SN- Student_Name


CN- Course_Name P- Progress CS- Completion_Status R – Rating
10 Elaborate suitable user cases for Document databases .when not the suitable explain with
examples.
11 By Referring below graph
1.Write query to find all people who like NoSQL Distilled.
2. Write query to find all the nodes that are related as a employee with BigCo.

12 Explain the structure of a graph database with an example. Highlight the role of nodes,
relationships, and their properties.
13 Explain Consistency ,Transactions and availability with respect to graph databases
14 By Referring below graph
1. Write query to find all the nodes at any depth that are related as a FRIEND with Barbara
2. Write query to get the shortest path between two nodes; of the two paths from Barbara to
Jill

15 Describe query feature and transaction of graph database

16 Explain Scaling and Application level sharding of nodes with neat diagram

You might also like