MongoDB interview questions part 8

MongoDB interview questions part 8

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

Total Questions: 20

1. Which of the following collections work in a way similar to circular buffers ?

Correct Answer is : Capped

2. Point out the correct statement :

Correct Answer is : Capped collections automatically remove the oldest documents in the collection without requiring scripts or explicit remove operations

3. _________ stores a log of the operations in a replica set.

Correct Answer is : oplog.rs

4. ___________ is also used to pre-allocate space for an ordinary collection.

Correct Answer is : db.createCollection.

5. Point out the wrong statement :

Correct Answer is : Queries need an index to return documents in insertion order

6. If you perform a ________ on a capped collection with no ordering specified, MongoDB guarantees that the ordering of results is the same as the insertion order.

Correct Answer is : find()

7. Which of the following should is used to check whether collection is capped or not ?

Correct Answer is : isCapped()

8. ___________ convert a non-capped collection to a capped collection .

Correct Answer is : convertToCapped

9. _________ command creates the capped collection and imports the data.

Correct Answer is : cloneCollectionAsCapped

10. Which of the following command obtains a global write lock and will block other operations until it has completed ?

Correct Answer is : isCapped

11. MongoDB allows administrators to direct the balancing policy using ______ aware sharding.

Correct Answer is : rack

12. Point out the correct statement:

Correct Answer is : Use sharded clusters if your data set approaches or exceeds the storage capacity of a single MongoDB instance

13. Tags are the primary mechanism to control the behavior of the _______ and the distribution of chunks in a cluster.

Correct Answer is : Balancer

14. How many background process runs behind balanced cluster ?

Correct Answer is : 2

15. Point out the wrong statement :

Correct Answer is : To create splits, MongoDB does migrate any data or affect the shards

16. _________ is a background process that keeps chunks from growing too large.

Correct Answer is : Splitting

17. The shards manage _______ migrations as a background operation between an origin shard and a destination shard.

Correct Answer is : chunk

18. For most deployments, the default value of chunk is _____ megabytes is ideal.

Correct Answer is : 64

19. The ______ instances are the routers for the cluster.

Correct Answer is : mongos

20. A single sharded cluster must have exclusive use of its _______ servers.

Correct Answer is : config

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon