What is the preferred format to store geospatial data in MongoDB?
Latitude, longitude
XML
GeoJSON
BSON
Q.2.
What does a MongoDB collection consist of?
data
documents
fields
rows
Q.3.
Which MongoDB shell command should you use to back up a database?
restore
backup
mongobackup
mongodump
Q.4.
Which command returns a specific document in the user’s collection?
db.users.find({_id: 1})
db.users.seek({_id: 1})
db.users.query({_id: 1})
Q.5.
In MongoDB, what does a projection do?
allows you to do a calculation on the results
allows you to run queries on the server
allows you to select which fields should be in the return data
allows you to format the results for a display
Q.6.
What option can be passed to start the MongoDB shell without connecting to a database?
-db=null
–shell-only
–free
-nodb
Q.7.
Given a customer collection which includes fields for gender and city, which aggregate pipeline shows the number of female customers in each city? (Alternative: How can you view the execution performance statistics for a query?)