Skip to content

Instantly share code, notes, and snippets.

@kaniket7209
Created December 3, 2021 09:42
Show Gist options
  • Save kaniket7209/031af7f0903b54eee2a4355499343a05 to your computer and use it in GitHub Desktop.
Save kaniket7209/031af7f0903b54eee2a4355499343a05 to your computer and use it in GitHub Desktop.
Introduction to MongoDB
1. What are some major drawbacks of MongoDB over SQL ?
Answer: Drawbacks are:-
a) No native JOINs. You can join manually with Python Code, But performance is much worse tham native SQL JOINs
b) Storing the key name for each filed in every document results in high memory usage.
c) There are limits to the size of the documents and amount of nesting within documents
2. What are the benefit of MongoDB?
Answer: Major Benefits are listed below:
a) More flexibity since there is no fixed schema
b) This can lead to faster development times
c) Data storage(JSON) is similar to Python dictionaries, so it lends itself well since less code is needed for mapping data.
1. Which of the following statement is not correct about MongoDB
a) MongoDB doen't use tables woth columns
b) MOngoDb uses collections with documents
c) A document looks like a JSON file
d) MongoDb has native JOINs.
Answer: d)
2. MongoDb uses collections of
a) tables
b) documents
c) excel
d) None of the above
Answer: b)
3. Which of the following language is MongoDB written in?
a) Javascript
b) C
c) C++
d) All of the mentioned
Answer: d)
4. Sql uses cllections of
a) tables
b) documents
c) excel
d) None of the above
Answer: a)
5. Point out the correct statement.
a) MongoDB is classified as a NoSQL database
b) MongoDB favours XML format more than JSON
c) MongoDB is column oriented database store
d) All of the mentioned
Answer: a)
6. Which of the following format is supported by MongoDB?
a) SQL
b) XML
c) BSON
d) All of the mentioned
Answer: c)
7. Initial release of MongoDB was in the year?
a) 2000
b) 2005
c) 2009
d) 2011
Answer: c)
8. MongoDB is a _________ database that provides high performance, high availability, and easy scalability.
a) graph
b) key value
c) document
d) all of the mentioned
Answer: c)
9. Dynamic schema in MongoDB makes ____________ easier for applications.
a) inheritance
b) polymorphism
c) encapsulation
d) none of the mentioned
Answer: b)
10. 10. With ________ MongoDB supports a complete backup solution and full deployment monitoring.
a) MMS
b) AMS
c) CMS
d) DMS
Answer: a)
11. BSON is a binary representation of ________ documents.
a) JSON
b) XML
c) JScript
d) All of the mentioned
Answer: a)
12. MongoDB documents are composed of field-and-value pairs and have the following structure?
a) field1 = value1
b) field1: value1;
c) field1: value1
d) none of the mentioned
Answer: c)
13. To store documents larger than the maximum size, MongoDB provides the _______ API.
a) Grid
b) MMS
c) GridFS
d) None of the mentioned
Answer: c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment