Which of the following is incorrect statement about find and findOne operations in MongoDB?
The________operator can be used to identify an element in the array to be updated without explicitly specifying
the position of the element.
Which of the following is supported by MongoDB?
We can insert multiple documents in bulk using which of the following operations:
In a sharded replica set environment, the w Option provides ability for write concern and j Option provides ability for the data to be written on disk journal. Consider that we have a seven member replica set and we want to assure that the writes are committed to journal. What should be the value of j?
Consider a clothing collection that contains these documents:
{ " _id " : 1, " item " : " sweater " , " sizes " : [ " XS " , " S " ] }
{ " _id " : 2, " item " : " t-shirt " , " sizes " : [ " S " , " M " , " XL " ] }
{ " _id " : 3, " item " : " vest " , " sizes " : [ " M " , " L " , " XL " , " XXL " ] }
What does the following query return?
db.clothing.find({ " sizes " : " M " })
The MongoDB explain() method does not support which of the following verbosity mode:
You have a replicated cluster with 1 primary, 3 secondary, 1 arbiter. One of the secondary is hidden. What is the replication factor of this replicated cluster?
A collection named scores includes:
[
{ _id: 1, home_score: 6, away_score: [ 5, 7 ] },
{ _id: 2, home_score: [ 8, 6 ], away_score: 9 },
{ _id: 3, home_score: [ 5, 8 ], away_score: [ 9, 6 ] },
{ _id: 4, home_score: 5, away_score: 10 }
]
Given the following index:
db.scores.createIndex( { home_score: 1, away_score: 1 } )
What document will cause the index to fail?
In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)
|
PDF + Testing Engine
|
|---|
|
$41.25 |
|
Testing Engine
|
|---|
|
$31.25 |
|
PDF (Q&A)
|
|---|
|
$26.25 |
MongoDB Free Exams |
|---|
|