MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 14

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

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





✅ Correct Answer: 3

Point out the correct statement.





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

Point out the wrong statement.





✅ Correct Answer: 3

The default language for the indexed data is ______





✅ Correct Answer: 2

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





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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.





✅ Correct Answer: 1

The default weight is ____ for the indexed fields.





✅ Correct Answer: 1

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.





✅ Correct Answer: 2

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





✅ Correct Answer: 4

Point out the wrong statement.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

______ query calculates distances using flat (planar) geometry.





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 2

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





✅ Correct Answer: 4

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





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 1

Applications can use _________ without having a geospatial index.





✅ Correct Answer: 4

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





✅ Correct Answer: 2

Only the ______ geospatial index supports the $polygon operator.





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

Point out the wrong statement.





✅ Correct Answer: 4

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





✅ Correct Answer: 3

A replica set can have only ________ primary.





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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.





✅ Correct Answer: 2

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.





✅ Correct Answer: 1

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





✅ Correct Answer: 1

How many types of members exist in replica set?





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 1

Which of the member receives all write operations?





✅ Correct Answer: 3

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





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 4

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





✅ Correct Answer: 1