Mongodb Certified Developer Associate C100dev · Free Practice Question Easy

Question 40

What is a document in MongoDB?

  • A

    It's an ordered collection of keys (fields) with assigned values. The keys in each document are strings of characters. Documents in MongoDB cannot contain duplicate keys.

  • B

    It's a table that contains information about all collections in the database.

  • C

    It's a text file containing the configuration of the MongoDB instance.

  • D

    It's a text file containing the configuration of the MongoDB cluster.

Reveal correct answer

Correct answer: A

A.

A document in MongoDB is a fundamental data structure that represents an ordered collection of key-value pairs (fields and their corresponding values). The keys are strings, and each document cannot have duplicate keys. This structure is similar to a JSON object and is the basic unit of data in MongoDB.

B.

This answer confuses a document with a relational database table. In MongoDB, a document is not a table but rather an individual record. Information about collections is stored in system collections, but that is unrelated to the concept of a document.

C.

This answer describes a configuration file, not a document. A document in MongoDB is a data record, not a configuration file for the database instance.

D.

This answer is also incorrect because it refers to a configuration file for a cluster rather than the actual data structure that MongoDB uses to store data. A document is a record, not a configuration file.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need