| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. MongoDB indexes use a _______ data structure.

Correct Answer is : Map

2. Point out the correct statement :

Correct Answer is : Indexes support the efficient execution of queries in MongoDB

3. MongoDB supports the creation of user-defined ascending/descending indexes on a ______ field of a document.

Correct Answer is : Single

4. The ______ index is unique and prevents clients from inserting two documents with the same value for the _id field.

Correct Answer is : _id

5. Point out the wrong statement :

Correct Answer is : Fundamentally, indexes in MongoDB is different to indexes in other database systems

6. MongoDB also supports user-defined indexes on multiple fields called :

Correct Answer is : compound

7. MongoDB uses ______ indexes to index the content stored in arrays.

Correct Answer is : multikey

8. ___________ indexes use spherical geometry to return results.

Correct Answer is : 2sphere

9. MongoDB provides a ________ index type that supports searching for string content in a collection.

Correct Answer is : text

10. _____ indexes uses planar geometry when returning results.

Correct Answer is : 2d

11. __________ query calculates distances using flat (planar) geometry.

Correct Answer is : $center

12. Point out the wrong statement :

Correct Answer is : If overall selectivity is high, and if MongoDB must read a number of documents to return results, then some queries may perform faster without indexes

13. _________ defines a circle for a geospatial query that uses spherical geometry.

Correct Answer is : $centersphere

14. When used with the $box operator, _________ returns documents based on grid coordinates and does not query for GeoJSON shapes.

Correct Answer is : $geoWithin

15. Point out the correct statement :

Correct Answer is : Applications can use $center without having a geospatial index

16. Applications can use _________ without having a geospatial index.

Correct Answer is : $centersphere

17. __________ method provides a wrapper around the totalIndexSize output of the collStats (i.e. db.collection.stats()) operation.

Correct Answer is : db.collection.totalIndexSize()

18. _________ specifies a polygon for a geospatial $geoWithin query on legacy coordinate pairs.

Correct Answer is : $polygon

19. Only the ______ geospatial index supports the $polygon operator

Correct Answer is : 2d

20. ________ returns a document only once for a geospatial query even if the document matches the query multiple times.

Correct Answer is : $uniqueDocs