logo
  • Home
  • About
  • Training
  • Programming
  • CS
  • IT
  • IS
  • ECE
  • EEE
  • EE
  • Civil
  • Mechanical
  • Chemical
  • Metallurgy
  • Instrumentation
  • Aeronautical
  • Aerospace
  • Biotechnology
  • Agriculture
  • MCA
  • BCA
  • Internship
  • Contact

MongoDB Multiple Choice Questions | MCQs | Quiz

MongoDB Interview Questions and Answers
Pratice MongoDB questions and answers for interviews, campus placements, online tests, aptitude tests, quizzes and competitive exams.

Get Started

•   MongoDB Basics
•   Big Data & MongoDB
•   NoSQL Databases
•   MongoDB Installation - 1
•   MongoDB Installation - 2
•   MongoDB Enterprise - 1
•   MongoDB Enterprise - 2
•   MongoDB Packages
•   MongoDB Getting Started-1
•   MongoDB Getting Started-2
•   Test Data Generation
•   CRUD Concepts
•   Read Operations - 1
•   Read Operations - 2
•   Write Operations - 1
•   Write Operations - 2
•   Analyze Query Performance
•   Data Modeling Basics
•   Data Modeling Concepts - 1
•   Data Modeling Concepts - 2
•   Data Model Patterns
•   Model Tree Structures
•   Model Data Operations
•   Model Monetary & Time
•   GridFS
•   BSON
•   ObjectId
•   MongoDB Documents - 1
•   MongoDB Documents - 2
•   MongoDB Administration
•   Operational Strategies
•   MongoDB Backup
•   MongoDB Monitoring
•   Database Configuration
•   MongoDB Maintenance
•   MongoDB Production
•   Data Management
•   Operational Segregation
•   Capped Collections
•   Data Collections
•   Optimization Strategies - 1
•   Optimization Strategies - 2
•   Optimization Strategies - 3
•   System Collections
•   Database Profiler
•   Exit Codes & Statuses
•   Authentication
•   Authorization
•   Collection Access Control
•   Network Security
•   MongoDB API Interfaces
•   Auditing
•   Kerberos Authentication
•   Security Checklist
•   Access Control
•   User & Role Management
•   Aggregation
•   Aggregation Pipeline
•   Map-Reduce
•   Aggregation Operations
•   Aggregation Mechanics
•   Pipeline Optimization
•   Pipeline Limits
•   Pipeline & Sharded
•   Map-Reduce & Sharded
•   Pipeline Operators - 1
•   Pipeline Operators - 2
•   SQL - Aggregation Mapping
•   Aggregation Commands
•   MongoDB Indexes
•   Index Types - 1
•   Index Types - 2
•   Index Types - 3
•   Index Properties
•   Index Management
•   Geospatial Index
•   Text Search
•   Indexing Strategies
•   Indexing Methods
•   MongoDB Replication
•   Replica Set Members
•   Replica Architectures
•   Replica Set High Availability
•   Read & Write Semantics
•   Master Slave Replication
•   Replication Processes - 1
•   Replication Processes - 2
•   Replication Maintenance
•   Troubleshooting
•   Member Configuration
•   Sharding Introduction
•   Sharding Concepts
•   Cluster Architectures
•   Sharded Cluster Behavior
•   Sharding Mechanics
•   Cluster Deployment
•   ↓ Sharded Cluster ↓
•   Maintenance
•   Troubleshooting
•   Data Management - 1
•   Data Management - 2

Best Reference Books

MongoDB Books
« Prev Page
Next Page »

MongoDB Questions and Answers – Data Modeling Concepts-2

Posted on March 8, 2015 by Manish

This set of MongoDB Interview Questions and Answers for experienced focuses on “Data Modeling Concepts”

1. _______________ is a specification for storing and retrieving files that exceed the BSON-document size limit of 16MB.
a) DataFS
b) GridFS
c) ReadFS
d) None of the mentioned
View Answer

Answer: b
Explanation: Instead of storing a file in a single document, GridFS divides a file into parts, or chunks

2. Point out the wrong statement :
a) By default GridFS limits chunk size to 255k
b) GridFS is useful only for storing files that exceed 16MB
c) When you query a GridFS store for a file, the driver or client will reassemble the chunks as needed
d) All of the mentioned
View Answer

Answer: b
Explanation: GridFS is useful not only for storing files that exceed 16MB but also for storing any files for which you want access without having to load the entire file into memory.

3. How many does collections GridFS use to store files ?
a) 1
b) 2
c) 3
d) 4
View Answer

Answer: b
Explanation: One collection stores the file chunks, and the other stores file metadata.

4. The default chunk size is changed from 256k to 255k in version :
a) 3.0
b) 2.4.9
c) 2.4.10
d) None of the mentioned
View Answer

Answer: b
Explanation: The use of the term chunks in the context of GridFS is not related to the use of the term chunks in the context of sharding.

5. Point out the wrong statement :
a) Client libraries provide a convenient, injection free, process to build these objects
b) MongoDB represents queries as BSON objects
c) Field names in MongoDB’s query language have semantic meaning
d) All of the mentioend
View Answer

Answer: d
Explanation: If you need to use db.eval() with user supplied values, you can either use a CodeWScope or you can supply extra arguments to your function.

6. Which of the collection in GridFS stores the binary chunks ?
a) chunks
b) files
c) data
d) log
View Answer

Answer: a
Explanation: GridFS places the collections in a common bucket by prefixing each with the bucket name.

7. ___________ is the _id is of the data type chosen for the original document in files collections.
a) files._id
b) file._id
c) fileobj._id
d) none of the mentioned
View Answer

Answer: a
Explanation: The default type for MongoDB documents is BSON ObjectId.

8. Which of the following checks and repairs errors and inconsistencies in data storage ?
a) repairDatabase
b) repairedDatabase
c) recoverDatabase
d) all of the mentioned
View Answer

Answer: a
Explanation: repairDatabase is analogous to a fsck command for file systems.

9. The files_id field contains the _id of the chunk’s __________ document.
a) parent
b) child
c) top
d) none of the mentioned
View Answer

Answer: a
Explanation: GridFS uses a unique, compound index on the chunks collection for the files_id and n fields.

10. Which of the following field allows efficient retrieval of chunks ?
a) n
b) name
c) object
d) 2n
View Answer

Answer: a
Explanation: The GridFS index allows efficient retrieval of chunks using the files_id and n values.

Sanfoundry Global Education & Learning Series – MongoDB.

Here’s the list of Best Reference Books in MongoDB.

To practice all areas of MongoDB for interviews, Here is complete set of 1000+ Multiple Choice Questions and Answers.
« Prev Page - MongoDB Questions and Answers – Data Modeling Concepts-1
» Next Page - MongoDB Questions and Answers – Data Model Examples and Patterns
« MongoDB Questions and Answers – Data Modeling Concepts-1
MongoDB Questions and Answers – Data Model Examples and Patterns »

Deep Dive @ Sanfoundry:

  1. C Programming Examples
  2. C# Programming Examples
  3. Oracle Database Questions and Answers
  4. Data Structure Questions and Answers
  5. HTML Questions and Answers
  6. Data Science Questions and Answers
  7. C# Programming Examples on Data Structures
  8. C# Programming Examples on Files
  9. C Programming Examples on File Handling
  10. MongoDB Questions and Answers
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer and SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage & Cluster Administration, Advanced C Programming, SAN Storage Technologies, SCSI Internals and Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him below:
LinkedIn | Facebook | Twitter | Google+

Best Careers

Developer Tracks
SAN Developer
Linux Kernel Developer
Linux Driver Developer
Linux Network Developer

Live Training Photos
Mentoring
Software Productivity
GDB Assignment
Sanfoundry is No. 1 choice for Deep Hands-ON Trainings in SAN, Linux & C, Kernel Programming. Our Founder has trained employees of almost all Top Companies in India such as VMware, Citrix, Oracle, Motorola, Ericsson, Aricent, HP, Intuit, Microsoft, Cisco, SAP Labs, Siemens, Symantec, Redhat, Chelsio, Cavium, ST-Micro, Samsung, LG-Soft, Wipro, TCS, HCL, IBM, Accenture, HSBC, Mphasis, Tata-Elxsi, Tata VSNL, Mindtree, Cognizant and Startups.

Best Trainings

SAN I - Technology
SAN II - Admin
Linux Fundamentals
Advanced C Training
Linux-C Debugging
System Programming
Network Programming
Linux Threads
Kernel Programming
Kernel Debugging
Linux Device Drivers

Best Reference Books

Computer Science Books
Algorithm & Programming Books
Electronics Engineering Books
Electrical Engineering Books
Chemical Engineering Books
Civil Engineering Books
Mechanical Engineering Books
Industrial Engineering Books
Instrumentation Engg Books
Metallurgical Engineering Books
All Stream Best Books

Questions and Answers

1000 C Questions & Answers
1000 C++ Questions & Answers
1000 C# Questions & Answers
1000 Java Questions & Answers
1000 Linux Questions & Answers
1000 Python Questions
1000 PHP Questions & Answers
1000 Hadoop Questions
Cloud Computing Questions
Computer Science Questions
All Stream Questions & Answers

India Internships

Computer Science Internships
Instrumentation Internships
Electronics Internships
Electrical Internships
Mechanical Internships
Industrial Internships
Systems Internships
Chemical Internships
Civil Internships
IT Internships
All Stream Internships

About Sanfoundry

About Us
Copyright
TOS & Privacy
Jobs
Bangalore Training
Online Training
SAN Training
Developers Track
Mentoring Sessions
Contact Us
Sitemap
© 2011 Sanfoundry