Unit6 - Subjective Questions

INT306 • Practice Questions with Detailed Answers

1

Differentiate between SQL (Relational) and NoSQL databases. Discuss their schema, scalability, and transaction models.

2

Explain the structure of MongoDB. How are data organized in terms of Databases, Collections, and Documents?

3

What is DynamoDB? Describe its core components and primary key structure.

4

Define Serverless Cloud Databases. What are the advantages of using a serverless approach for NoSQL databases?

5

Discuss the concept of JSON Databases. Why is JSON the preferred format for NoSQL data representation?

6

Create a JSON representation for a dataset describing a 'University Course'.

The dataset should include:

  1. Course Name and Code
  2. Credits (integer)
  3. Professor details (Name, ID)
  4. Enrolled Students (List of objects with Student Name and ID)
7

Explain the importance of Indexing in MongoDB. How does it affect the performance of read and write operations?

8

Describe the explain() method in MongoDB. How is it used to compare performance between an indexed and an unindexed query?

9

What are Vector Databases? Explain the concept of 'Embeddings' and how Vector Databases differ from traditional scalar databases.

10

Demonstrate Working with MongoDB by writing syntax for the following CRUD operations:

  1. Inserting a single document.
  2. Finding specific documents.
  3. Updating a field.
  4. Deleting a document.
11

Compare BSON and JSON. Why does MongoDB use BSON for storage instead of standard JSON?

12

Explain the concept of Sharding in MongoDB and how it relates to horizontal scaling.

13

In the context of Working with MongoDB, explain the use of Comparison Query Operators with examples (lt, $in).

14

Describe the Architecture of Vector Search. How does a query vector find its nearest neighbors in a large dataset?

15

Discuss the Data Modeling Strategy in NoSQL: Embedding vs Referencing. When should you use one over the other?

16

What are the limitations of NoSQL Databases compared to traditional SQL databases?

17

Explain the concept of Compound Indexes in MongoDB. How does the order of fields in the index definition affect query performance?

18

How does DynamoDB manage Throughput Capacity? Explain Read Capacity Units (RCU) and Write Capacity Units (WCU).

19

Derive the JSON structure for a Social Media Post that includes comments and likes. Explain why a Document store is suitable for this use case.

20

Analyze the role of Projection in MongoDB queries. Write a query to find all documents in a 'student' collection but return only the student's name and grade, excluding the _id.