Indexing on MongoDB related Questions and Answers - Page 4

Question 31 : Specify the ______ operator to the hint() method to prevent MongoDB from using any index
1. $unique
2. $natural
3. $spatial
4. all of the mentioned
View Answer   Discuss with Members

Question 32 : To force MongoDB to use a particular index for a db.collection.________ operation, specify the index with the hint() method.
1. query()
2. find()
3. index()
4. all of the mentioned
View Answer   Discuss with Members

Question 33 : The __________ operator constrains the results of a geospatial $near or $nearSphere query to the specified distance.
1. $center
2. $maxDistance
3. $minDistance
4. all of the mentioned
View Answer   Discuss with Members

Question 34 : __________ views partial execution statistics collected during plan selection
1. curs.explain()
2. cursor.explain()
3. cursr.explain()
4. all of the mentioned
View Answer   Discuss with Members

Question 35 : In the mongo shell, you can use the ______ method to return a list of the indexes on a collection.
1. getallIndexes()
2. getretIndexes()
3. getIndexes()
4. none of the mentioned
View Answer   Discuss with Members

Question 36 : To terminate an ongoing index build, use the __________ method in the mongo shell.
1. db.currentOp()
2. db.killOp()
3. db.removeOp()
4. all of the mentioned
View Answer   Discuss with Members

Question 37 : If you need to rebuild indexes for a collection you can use the _________ method to rebuild all indexes on a collection in a single operation.
1. db.collection.Index()
2. db.collection.reIndex()
3. db.collection.rebuildIndex()
4. none of the mentioned
View Answer   Discuss with Members

Question 38 : To modify an existing index, you cannot just re-issue the _________ method with the updated specification of the index.
1. dropIndex()
2. modIndex()
3. createIndex()
4. none of the mentioned
View Answer   Discuss with Members

Question 39 : Which of the following indexes are always sparse ?
1. 2dsphere
2. 2d
3. geoHaystack
4. all of the mentioned
View Answer   Discuss with Members

Question 40 : You may not specify a unique constraint on a ______ index.
1. Hashed
2. Unique
3. Sparse
4. Compound
View Answer   Discuss with Members


View 31 - 40 of 78 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter