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 – Troubleshooting

Posted on March 8, 2015 by Manish

This set of MongoDB Multiple Choice Questions & Answers (MCQs) focuses on “Troubleshooting”.

1. _________ prevents the current member from seeking election as primary for a period of time.
a) replSetGetStatus
b) replSetFreeze
c) replSetInitiate
d) all of the mentioned
View Answer

Answer: b
Explanation: The replSetFreeze command prevents a replica set member from seeking election for the specified number of seconds.

2. Point out the wrong statement:
a) Primary capture data from the primary member to maintain an up to date copy of the sets’ data
b) For some deployments, implementing a custom replication sync topology may be more effective than the default sync target selection logic
c) MongoDB provides the ability to specify a host to use as a sync target
d) None of the mentioned
View Answer

Answer: d
Explanation: However, by default secondaries may automatically change their sync targets to secondary members based on changes in the ping time between members and the state of other members’ replication.

3. ________ returns a document that reports on the status of the replica set.
a) replSetGetStatus
b) replSetFreeze
c) replSetInitiate
d) all of the mentioned
View Answer

Answer: a
Explanation: The replSetGetStatus command returns the status of the replica set from the point of view of the current server.

4. __________ enables or disables a maintenance mode, which puts a secondary node in a RECOVERING state.
a) replSetReconfig
b) replSetMaintenance
c) replSetStepDown
d) all of the mentioned
View Answer

Answer: b
Explanation: The replSetMaintenance admin command enables or disables the maintenance mode for a secondary member of a replica set.

5. Point out the correct statement :
a) To affect the sync target for the initial sync, run rs.syn() operation before initial sync
b) If you run rs.syncFrom() during initial sync, MongoDB produces no error messages
c) replSetSyncFrom and rs.syncFrom() provide a permanent override of default behavior
d) All of the mentioned
View Answer

Answer: b
Explanation: The sync target falls more than 30 seconds behind another member of the replica set; the mongod will revert to the default sync target.

6. When enabled replSetMaintenance: true, the member enters the ________ state.
a) REPLICATING
b) RECOVERING
c) STALE
d) All of the mentioned
View Answer

Answer: b
Explanation: The member is not accessible for read operations.

7. ________ applies a new configuration to an existing replica set.
a) replSetReconfig
b) replSetMaintenance
c) replSetStepDown
d) all of the mentioned
View Answer

Answer: a
Explanation: The replSetReconfig command modifies the configuration of an existing replica set.

8. Which of the command is for master-slave replication only ?
a) replSetSyncFrom
b) resync
c) applyOps
d) isMaster
View Answer

Answer: b
Explanation: resync forces a mongod to re-synchronize from the master.

9. _______ is an internal command that applies oplog entries to the current data set.
a) replSetSyncFrom
b) resync
c) applyOps
d) isMaster
View Answer

Answer: c
Explanation: The applyOps command is primarily an internal command.

10. __________ explicitly override the default logic for selecting a member to replicate from.
a) replSetSyncFrom
b) resync
c) applyOps
d) isMaster
View Answer

Answer: a
Explanation: replSetSyncFrom explicitly configures which host the current mongod pulls oplog entries from.

Sanfoundry Global Education & Learning Series – MongoDB.

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

To practice all areas of MongoDB, Here is complete set of 1000+ Multiple Choice Questions and Answers.
« Prev Page - MongoDB Questions and Answers – Replication Maintenance
» Next Page - MongoDB Questions and Answers – Member Configuration
« MongoDB Questions and Answers – Replication Maintenance
MongoDB Questions and Answers – Member Configuration »

Deep Dive @ Sanfoundry:

  1. About
  2. Bangalore Training – SAN, C, Linux Kernel and Device Drivers Training
  3. Linux Command Tutorials with Examples and Explanations
  4. MongoDB Questions and Answers
  5. MongoDB Questions and Answers – Security Checklist
  6. MongoDB Questions and Answers – Replica Set Deployment Architectures
  7. MongoDB Questions and Answers – MongoDB Backup
  8. MongoDB Questions and Answers – Member Configuration
  9. MongoDB Questions and Answers – Replication in MongoDB
  10. MongoDB Questions and Answers – Replica Set Members
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