Cse2024 Set A
Cse2024 Set A
PRESIDENCY UNIVERSITY
BENGALURU
SET-A
SCHOOL OF ENGINEERING
END TERM EXAMINATION – MAY/JUNE 2024
________________________________________________________________________________________________
1.a. Explain the reasons for the introduction of NoSQL and provide a brief (CO1) (04 Marks)
history of its emergence [Knowledge]
1.b. Compare the ACID properties with the BASE principles used in NoSQL (CO1) (06 Marks)
databases. [Comprehension]
1.c. Illustrate how NoSQL databases can be used to manage large volumes of (CO1) (10 Marks)
unstructured data generate by social media platforms. Provide an
example of the data schema. [Application]
or
2.a. Define what a transaction is in the context of a database. [Knowledge] (CO1) (04 Marks)
2.b. Explain how MongoDB handles concurrency control during transactions. (CO1) (06 Marks)
What mechanisms are in plan to ensure data integrity? [Comprehension]
2.c. Develop a key-value store for session management in a web application. (CO1) (10 Marks)
Describe how you would stop and retrieve session data efficiently .
[Application]
3.a. Recall the different consistency models available in MongoDB. [Knowledge] (CO2) (04 Marks)
3.b. Describe what a capped collection is in MongoDB and explain a use case (CO2) (06 Marks)
where it would be particular useful. [Comprehension]
3.c. Create a capped collection in MongoDB for storing log data that (CO2) (10 Marks)
automatically discards the oldest entries once a specified size limit is
reached. [Application]
or
Page 1 of 3
4.a. Identify the key considerations when naming collections in MongoDB. (CO2) (04 Marks)
[Knowledge]
4.b. Explain how MongoDB ensures update consistency and why it is (CO2) (06 Marks)
important for applications that involve concurrent data modifications .
[Comprehension]
4.c. Design a sharding strategy for a "Large Dataset" collection that is (CO2) (10 Marks)
expected to store billions of documents, ensuring effective distribution
and query efficiency. [Application]
5.a. State the purpose of indexes in a MongoDB database. [Knowledge] (CO3) (04 Marks)
5.b. Illustrate the following crud operations [Comprehension] (CO3) (06 Marks)
1.Insert a new movie into the Movies collection with the following details:
movie id: 3, title: “Interstellar", director id: 101, genre: "Sci-Fi", release
date: "2014-11-07", price: 5.99.
2.Find all movies in the Movies collection directed by the director with
director_ id: 101.
3.Update the email address of the customer with customer id: 202 to
"[email protected]".
5.c. Demonstrate how valueless columns can be used in Cassandra to optimize (CO3) (10 Marks)
storage and performance for a dataset where only certain columns are
frequently queried. Provide an example schema. [Application]
or
6.a. Identify the four main types of operations that make up CRUD in (CO3) (04 Marks)
MongoDB using example. [Knowledge]
6.b. Discuss the importance of encryption at rest in MongoDB. How does it (CO3) (06 Marks)
enhance data security? [Comprehension]
6.c. Execute a series of CQL (Cassandra Query Language) commands to create (CO3) (10 Marks)
a key space, define a tab and insert data. Describe each command and its
purpose. [Application]
7.a Differentiate between Delete and Truncate operation in Cassandra using (CO4) (04 Marks)
example. [Knowledge]
7.b. Compare the key-value store and the column-family store data models. (CO4) (06 Marks)
What are the main differences and use cases for each? [Comprehension]
7.c Utilize the concept of adaptive indexing and database cracking to improve (CO4) (10 Marks)
the performance of a query that filters and sorts large datasets .
[Application]
or
8.a State the application of Link Analysis algorithm using PageRank algorithm (CO4) (04 Marks)
[Knowledge]
8.b. Illustrate how a geospatial index works in MongoDB. What type of queries (CO4) (06 Marks)
can benefit from this index? [Comprehension]
8c. Create a text index on a MongoDB collection to enhance full-text search
capabilities. Provide a sample query demonstrating the use of this index .
[Application]
Page 2 of 3
9.a Define any five built-in roles used for MongoDB authorization. [Knowledge] (CO3) (04 Marks)
9.b Discuss the authentication mechanism used for MongoDB security . (CO3) (06 Marks)
[Comprehension]
9.c Illustrate the different data models of Mongo DB. [Application] (CO3) (10 Marks)
or
10.a Explain the concept of database cracking. [Knowledge] (CO4) (04 Marks)
10.b Describe scenarios where a graph data model would be more suitable (CO4) (06 Marks)
than a relational data model. [Comprehension]
10.c Illustrate the concept of a graph-based model and its properties. (CO4) (10 Marks)
[Application]
Page 3 of 3