Question:- Which command is used to see a connection?
Answer:- We can use the following command to see the connection: db_adminCommand (“connPoolStats”)
Question:- Define the primary Replica set.
Answer:- The primary replica set accepts all write operations from clients.
Question:- Define the secondary Replica sets.
Answer:- The secondaries replicate the primary replica set’s oplog and apply the operations to their datasets such that the secondaries’ datasets reflect the primary’s dataset.
Question:- What is the use of Profiler?
Answer:- Profiler is used to show the performance characteristics of every operation against the database.
Question:- What type of data is stored by MongoDB?
Answer:- MongoDB stores data in the form of documents, which are JSON-like field and value pairs.
Question:- What is the purpose of Replication?
Answer:- Replication provides redundancy, and it increases data availability.
Question:- What are Embedded documents?
Answer:- Embedded documents capture relationships between data by storing related data in a single document structure.
Question:- Define the application-level Encryption.
Answer:- The application-level encryption provides encryption on a per-field or per-document basis within the application layer.
Question:- What is Storage Encryption?
Answer:- Storage encryption encrypts all MongoDB data on storage or on the operating system to ensure that only authorized processes can access the protected data.
Question:- Which method is used to create an index?
Answer:- The createIndex() method is used to create an index.
Question:- What is Replica set oplog?
Answer:- The oplog records all operations that modify the data in the replica set.
Question:- What is Vertical Scaling?
Answer:- Vertical scaling adds more CPU and storage resources to increase capacity.
Question:- Define Horizontal Scaling.
Answer:- Horizontal scaling divides the dataset and distributes data over multiple servers, or shards.
Question:- What are the components of the Sharded cluster?
Answer:- The sharded cluster has the following components: • Shards • Query routers • Config servers
