0% found this document useful (0 votes)
21 views2 pages

Nosql Practice Questions

Uploaded by

ninel132003
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)
21 views2 pages

Nosql Practice Questions

Uploaded by

ninel132003
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/ 2

Practice Questions

• What are the key limitations of traditional RDBMS in handling modern application
data?
• Define NoSQL. Why did it emerge as an alternative to RDBMS?
• List and briefly explain the four main types of NoSQL databases with examples.
• Compare ACID properties with BASE principles.
• What is the CAP theorem? Explain with an example.
• Define eventual consistency and explain where it is useful.
• Differentiate between document databases and column-family databases.
• What is the main advantage of graph databases in social networking applications?
• Write two industry use cases where NoSQL is preferred over RDBMS.
• Explain the motivation of companies like Facebook, Google, and Amazon in
adopting NoSQL.
• Compare and contrast RDBMS vs. NoSQL in terms of scalability, flexibility, and
performance.
• Explain with a diagram how the CAP theorem trade-offs (Consistency, Availability,
Partition tolerance) affect database design.
• Discuss the differences between key-value stores and document stores with suitable
examples.
• What are the challenges faced when moving from RDBMS to NoSQL?
• Write a short note on industry trends driving the growth of NoSQL databases.
• What is MongoDB? How is it different from a traditional RDBMS?
• Explain the role of MongoDB Shell, Compass, and Atlas.
• What is BSON? How does it differ from JSON?
• Define a document and a collection in MongoDB.
• Write the command to insert a single document into a collection.
• How do you query embedded documents in MongoDB? Provide an example.
• Differentiate between find() and findOne() in MongoDB.
• What are indexes in MongoDB? Why are they important?
• Explain the role of sorting and filtering in MongoDB queries.
• What are the schema design principles to be followed in MongoDB?
• Install MongoDB locally and write the steps involved in the setup.
• Write a MongoDB command to:
➢ Insert multiple student records into a collection named students.
➢ Find all students with marks greater than 70.
➢ Update the age of a student with _id = 101.
➢ Delete a student record with name = "Rahul".
• Create a collection called books with documents containing title, author, and price.
Write queries to:
➢ Display all books by a specific author.
Practice Questions
➢ Find books priced between 300 and 600.
➢ Sort books in descending order of price.
• Demonstrate how to query nested documents (e.g., an address field inside a
customer document).
• Write commands to create an index on the email field of a user’s collection and
explain its effect on query performance.

You might also like