Unit6 - Subjective Questions

INT306 • Practice Questions with Detailed Answers

1

Compare and contrast SQL and NoSQL databases in terms of schema, scalability, and data models.

2

What is MongoDB? Discuss its key features that distinguish it from traditional relational databases.

3

Explain the hierarchical structure of MongoDB data storage. How does it map to RDBMS concepts?

4

Describe the basic CRUD operations in MongoDB. Provide the syntax for each.

5

What is Amazon DynamoDB? Explain its core components.

6

Explain the concept of Primary Keys in DynamoDB. Differentiate between Partition Key and Sort Key.

7

Define a Serverless Cloud Database. What are its major benefits?

8

How does a serverless database differ from a traditional provisioned cloud database?

9

What are JSON databases? Explain how JSON format is utilized for storing structured and semi-structured data.

10

Provide a detailed JSON representation of a dataset for a 'University Student'. Include examples of nested objects and arrays.

11

Explain the concept of BSON in MongoDB. Why does MongoDB use BSON instead of plain JSON?

12

What is an index in a database, and why is index creation important in MongoDB?

13

How do you create an index in MongoDB? Provide the syntax for single-field, compound, and descending indexes.

14

Explain the purpose of the explain() method in MongoDB. How does it assist in performance optimization?

15

Describe a scenario showing performance comparison using EXPLAIN before and after creating an index in MongoDB.

16

What are Vector Databases? Why have they become increasingly important with the rise of Artificial Intelligence and Machine Learning?

17

Explain the concept of Similarity Search in Vector Databases. Mention mathematical distance metrics used.

18

Explain the CAP Theorem. How does it apply to NoSQL databases like MongoDB and DynamoDB?

19

Discuss the MongoDB Aggregation Pipeline. Give a brief example of how stages are chained to process data.

20

What is meant by an Eventual Consistency model in NoSQL databases? Contrast it with Strong Consistency.