MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 14

Choose a topic to test your knowledge and improve your MongoDB skills

1. ______ specifies a geometry in GeoJSON format to geospatial query operators.




2. Point out the correct statement.




3. _____ returns geospatial objects in proximity to a point on a sphere. Requires a geospatial index.




4. ____ specifies a minimum distance to limit the results of $near and $nearSphere queries.




5. The _________ operator specifies a circle for a $geoWithin query.




6. ____ index must exist on a field holding coordinates before using any of the geospatial query operators.




7. When creating a text index on multiple fields, you can specify the individual fields or you can use wildcard specifier ______




8. Point out the wrong statement.




9. The default language for the indexed data is ______




10. If a collection contains documents or embedded documents that are in different languages, include a field named _______ in the documents.




11. Point out the correct statement.




12. To use a field with a name other than language, include the ________ option when creating the index.




13. The default name for the index consists of each indexed field name concatenated with _______




14. To avoid creating an index with a name that exceeds the index name length limit, you can pass the _____ option to the db.collection.createIndex() method.




15. The default weight is ____ for the indexed fields.




16. For a ______ index, the weight of an indexed field denotes the significance of the field relative to the other indexed fields in terms of the score.




17. _____ operations that use an index often have better performance than those that do not use an index.




18. Point out the wrong statement.




19. A prefix of a _______ index is a subset that consists of one or more keys at the start of the index key pattern.




20. Sort operations that do not use an index will abort when they use _______ megabytes of memory.




21. Point out the correct statement.




22. An index can support sort operations on a non-prefix subset of the index key pattern using _________ condition.




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




24. Indexes do not have to fit entirely into ______ in all cases.




25. ____ is the ability of a query to narrow results using the index.




26. ______ query calculates distances using flat (planar) geometry.




27. Point out the wrong statement.




28. ______ defines a circle for a geospatial query that uses spherical geometry.




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




30. Point out the correct statement.




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




32. _____ specifies a polygon for a geospatial $geoWithin query on legacy coordinate pairs.




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




34. _____ returns a document only once for a geospatial query even if the document matches the query multiple times.




35. A _______ set is a group of mongod instances that host the same data set.




36. Point out the wrong statement.




37. All other instances, secondaries, apply operations from the _________ so that they have the same data set.




38. A replica set can have only ________ primary.




39. Point out the wrong statement.




40. To support replication, the primary records all changes to its data sets in its _______




41. You may add an extra mongod instance to a replica set as an ____




42. An arbiter will always be an arbiter whereas a primary may step down and become a secondary and a _________ may become the primary during an election.




43. When a primary does not communicate with the other members of the set for more than ____ seconds, the replica set will attempt to select another member to become the new primary.




44. When a replica set has one and only one primary, reads from that primary provide ______ consistency.




45. How many types of members exist in replica set?




46. Point out the wrong statement.




47. Which of the member receives all write operations?




48. ____ replicate operations from the primary to maintain an identical data set.




49. Point out the wrong statement.




50. ____ play a role in the elections that select a primary if the current primary is unavailable.