Explore topic-wise MCQs in Technical MCQs.

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

1.

To check whether you are connected to primary or not, issue the command db.Master() in mongo client.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
E.
Answer» C. Can be true or false
2.

Which of the following is correct syntax to Add Members to Replica Set?

A. db.add(HOST_NAME:PORT)
B. rs.add(HOST_NAME:PORT)
C. rs.isMaster(HOST_NAME:PORT)
D. db.isMaster(HOST_NAME:PORT)
Answer» C. rs.isMaster(HOST_NAME:PORT)
3.

To check the replica set configuration, issue the commandrs.conf().

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
Answer» B. FALSE
4.

In MongoDB client, how to initiate a new replica set?

A. rs.initiate()
B. rs.conf()
C. rs.status()
D. None of the above
Answer» B. rs.conf()
5.

Which of the following is not a Replica Set Features?

A. Automatic failover
B. Automatic recovery
C. Consensus election of primary
D. A cluster of only one nodes
Answer» E.
6.

In a replica, one node is primary node that receives?

A. all write operations
B. all read operations
C. all read and write operation
D. None of the above
Answer» C. all read and write operation
7.

A replica set is a group of ___________ instances that host the same data set.

A. cluster
B. failover
C. mongod
D. Consensus
Answer» D. Consensus
8.

Replica set is transparent to the application.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
Answer» B. FALSE
9.

Replication is not used for?

A. keep your data safe
B. Low availability of data
C. Disaster recovery
D. Read scaling
Answer» C. Disaster recovery
10.

What is true about Replication?

A. Replication is the process of synchronizing data across multiple servers.
B. Replication provides redundancy and increases data availability with multiple copies of data on different database servers.
C. Replication protects a database from the loss of a single server.
D. All of the above
Answer» E.