MongoDB interview questions part 38

MongoDB interview questions part 38

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Which of the following will display complete list of available cursor flags ?

Correct Answer is : cursor.addOption()

2. To describe the message structure, a ________ like struct is used.

Correct Answer is : C

3. Point out the wrong statement :

Correct Answer is : All of the mentioned

4. ______________ specifies the number of documents to return in each batch of the response from the MongoDB instance.

Correct Answer is : cursor.batchSize(size)

5. The __________ method returns a document that includes a metrics field.

Correct Answer is : db.serverStatus()

6. ____________ is a client or database-generated identifier that uniquely identifies this message.

Correct Answer is : requestID

7. Which of the following operator is not very selective ?

Correct Answer is : $nin

8. An index cannot cover a query on a _______ collection when run against a mongos if the index does not contain the shard key.

Correct Answer is : sharded

9. The architecture of a replica set affects the set’s _________ and capability.

Correct Answer is : capacity

10. Point out the wrong statement :

Correct Answer is : Even number of members ensures that the replica set is always able to elect a primary

11. The standard replica set deployment for production system is a ___-member replica set.

Correct Answer is : three

12. _________ for a replica set is the number of members that can become unavailable and still leave enough members in the set to elect a primary.

Correct Answer is : Fault tolerance

13. Point out the correct statement :

Correct Answer is : Fault tolerance is an effect of replica set size, but the relationship is not direct

14. Without a primary, a replica set cannot accept ________ operations.

Correct Answer is : write

15. _________ member is used to support dedicated functions, such as backup or reporting.

Correct Answer is : Hidden

16. To protect your data if your main data center fails, keep at least _______ member in an alternate data center.

Correct Answer is : one

17. What should be the priority of member to prevent them from becoming primary ?

Correct Answer is : 0

18. _________ sets also allow the routing of read operations to specific machines.

Correct Answer is : Tag

19. Replica sets provide high availability using automatic ________

Correct Answer is : failover

20. Point out the wrong statement :

Correct Answer is : MongoDB attempts for rollbacks, which should be rare

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon