What is primary and secondary replica set in mongodb?
Answer / Shanky Bhatnagar
In MongoDB, a Replica Set consists of one primary and multiple secondary nodes. The primary node is the only member that writes data to the database, while secondaries are read-preferred or write-enabled replicas used for high availability and scalability. Read-preferred secondaries prioritize reads over writes during failover, whereas write-enabled secondaries can receive write operations when the primary is down.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why would you use mongodb?
Why is mongodb?
What is “namespace” in mongodb?
Explain replica set?
How many indexes does mongodb create by default for a new collection?
What is the role of 8 analysers in mongodb?
How to insert image in mongodb database?
How to connect to mongodb using mongoose in node.js?
What is the best gui for mongodb?
What is difference between hadoop and mongodb?
What is cluster in mongodb?
What are mongodb indexes?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)