Explore topic-wise MCQs in Mongodb.

This section includes 14 Mcqs, each offering curated multiple-choice questions to sharpen your Mongodb knowledge and support exam preparation. Choose a topic below to get started.

1.

Only the ______ geospatial index supports the $polygon operator.

A. 1dsphere
B. 2d
C. 3d
D. None of the mentioned
Answer» C. 3d
2.

To support ________ based sharding, MongoDB provides a hashed index type.

A. primary
B. root
C. hash
D. all of the mentioned
Answer» D. all of the mentioned
3.

On replica sets, the TTL background thread only deletes documents on _____________

A. primary
B. secondary
C. upadte
D. none of the mentioned
Answer» B. secondary
4.

MongoDB supports spherical surface calculations on legacy coordinate pairs using a _______ index.

A. 2dsphere
B. 2d
C. geoHaystack
D. all of the mentioned
Answer» B. 2d
5.

Which of the following method is to verify whether MongoDB used index intersection?

A. explain()
B. analyze()
C. intersect()
D. none of the mentioned
Answer» B. analyze()
6.

Which of the following is used to calculate distances on a Euclidean plane?

A. 2dsph
B. 2d
C. geoHaystack
D. all of the mentioned
Answer» C. geoHaystack
7.

Which of the following indexes cannot be multikey?

A. Hashed
B. Unique
C. Multikey
D. compound
Answer» B. Unique
8.

If the specified polygon is _______ than a single hemisphere, the behavior of $geoWithin with the MongoDB CRS is the same as with the default CRS.

A. smaller
B. bigger
C. equal
D. all of the mentioned
Answer» B. bigger
9.

Which of the following GeoJSON object is not supported in MongoDB?

A. Point
B. LineString
C. MultiPoint
D. None of the mentioned
Answer» E.
10.

__________ views partial execution statistics collected during plan selection.

A. curs.explain()
B. cursor.explain()
C. cursr.explain()
D. all of the mentioned
Answer» C. cursr.explain()
11.

Which of the following indexes are always sparse?

A. 2dsphere
B. 2d
C. geoHaystack
D. all of the mentioned
Answer» E.
12.

Specify the ______ operator to the hint() method to prevent MongoDB from using any index.

A. $unique
B. $natural
C. $spatial
D. all of the mentioned
Answer» C. $spatial
13.

MongoDB also supports user-defined indexes on multiple fields called ____________

A. compound
B. composite
C. candidate
D. none of the mentioned
Answer» B. composite
14.

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

A. string
B. text
C. char
D. none of the mentioned
Answer» C. char