Mongodb Certified Developer Associate C100dev · Free Practice Question Medium
Question 23
Consider a scenario where you are developing a web application using Node.js and MongoDB as the backend database. The application requires real-time updates and synchronization with multiple clients. Which of the following statements accurately describe the role of MongoDB drivers in this scenario?
-
A
MongoDB drivers implement the Pub/Sub mechanism for event-based communication between clients and the server.
-
B
MongoDB drivers facilitate the communication between the Node.js application and the MongoDB server.
-
C
MongoDB drivers enforce security policies, such as authentication and authorization, for accessing the MongoDB database.
-
D
MongoDB drivers automatically handle horizontal scaling and load balancing of the MongoDB cluster.
Reveal correct answer
Correct answer: B
A.
MongoDB drivers do not implement the Pub/Sub mechanism for event-based communication between clients and the server. Pub/Sub functionality is typically provided by other components or technologies, such as messaging queues or WebSocket-based libraries.
B.
MongoDB drivers act as the bridge between the Node.js application and the MongoDB server. They provide the necessary APIs and methods to establish connections, execute database operations, and retrieve query results from the MongoDB server.
C.
While MongoDB drivers may provide options for authentication and authorization, they do not enforce security policies themselves. It is the responsibility of the application developer to properly configure and implement security measures, such as authentication mechanisms and access control rules, within the application.
D.
MongoDB drivers do not handle automatic horizontal scaling and load balancing of the MongoDB cluster. These tasks are typically managed by the database infrastructure itself, such as MongoDB's built-in sharding and replica set configurations.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
