MongoDB MCQ Questions and Answers

Practice Mode
Showing 10 of 43 questions
Q21
Which is the primary daemon process for MongoDB?
  • A mongod
  • B mongos
  • C syspathlog
  • D logpath
Answer: Option A
Explanation: `mongod` = core MongoDB server process.
Q22
What file does the mongo shell load on startup?
  • A mongoc.js
  • B mongorc.js
  • C mongo.js
  • D all of the mentioned
Answer: Option B
Explanation: `.mongorc.js` contains custom scripts.
Q23
What is a MongoDB "shard"?
  • A An index type
  • B A cache collection
  • C A backup copy
  • D A part of a dataset distributed across servers
Answer: Option D
Explanation: Shards = pieces of a distributed dataset.
Q24
Which pipeline is used for aggregation in MongoDB?
  • A knowledge processing
  • B information processing
  • C data processing
  • D none of the mentioned
Answer: Option C
Explanation: Aggregation pipeline = data processing framework.
Q25
Which avoids repetition of data in MongoDB schema?
  • A Cursor
  • B Collectors
  • C DeReferences
  • D References
Answer: Option D
Explanation: References help normalize data.
Q26
Which statement is incorrect about documents in MongoDB?
  • A Field names cannot contain null character
  • B Field names cannot contain dot (.)
  • C Field names cannot start with $
  • D None of the mentioned
Answer: Option D
Explanation: All restrictions are correct.
Q27
MongoDB documents are composed of field-and-value pairs. Correct structure?
  • A field1: value1
  • B field1: value1;
  • C field1:; value1
  • D none of the mentioned
Answer: Option A
Explanation: Syntax uses key: value pairs.
Q28
Which statement is true about MongoDB schema design?
  • A Only supports simple types
  • B Enforces primary keys
  • C Requires fixed schema
  • D Flexible, schema-less collections
Answer: Option D
Explanation: MongoDB = schema-less.
Q29
What does BSON stand for?
  • A Binary JSON
  • B Binary Serialized Object Notation
  • C Basic Standard Object Notation
  • D Binary Structure Object Network
Answer: Option A
Explanation: BSON = Binary JSON.
Q30
MongoDB's data storage format is best described as:
  • A Flat files
  • B JSON-like documents
  • C Key-value pairs
  • D Rows and columns
Answer: Option B
Explanation: Stored as BSON documents.
Questions and Answers for Competitive Exams Various Entrance Test