MongoDB

MongoDB

Capped Collections has 10 Questions
Which of the following collections work in a way similar to circular buffers ?

Capped
Secondary
Sharded
All of the mentioned
hich of the following command obtains a global write lock and will block other operations until it has completed ?

ToCapped
isCapped
convertToCapped
None of the mentioned
_________ command creates the capped collection and imports the data.

CollectionAsCapped
cloneCollection
cloneCollectionAsCapped
None of the mentioned
___________ convert a non-capped collection to a capped collection .

ToCapped
convertToCap
convertToCapped
None of the mentioned
Which of the following should is used to check whether collection is capped or not ?

isCAP()
isCapped()
isColl()
None of the mentioned
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.

find()
write()
modify()
None of the mentioned
Point out the wrong statement :

Queries need an index to return documents in insertion order
The options document creates a capped collection or preallocates space in a new ordinary collection
Capped collections have maximum size or document counts that prevent them from growing beyond maximum thresholds
None of the mentioned
___________ is also used to pre-allocate space for an ordinary collection.

db.createCollection.
db.create
db.createColl
All of the mentioned
_________ stores a log of the operations in a replica set.

oplog.rs
log.rs
oplog
All of the mentioned
Point out the correct statement :

Capped collections automatically remove the oldest documents in the collection without requiring scripts or explicit remove operations
Capped collections do not guarantee that insertion order is identical to the order on disk
Capped collections does not allow updates that fit the original document size
All of the mentioned