Mongodb m201 Performance v1
Mongodb m201 Performance v1
Mongodb m201 Performance v1
Fecha: Firma:
Curso: MongoDB
Rendimiento
Ámbito de la prueba
Esta prueba de nivel de tipo test verifica el conocimiento de los temarios:
• Rendimiento
Cuestionario:
Página 1 de 5 examen_mongodb_nf40 m1 v1
c. Indexes reduces the number of documents MongoDB needs to examine
to satisfy a query.
d. Indexes can decrease write, update and delete performance.
Which of the following queries will use the given index to perform the sorting of
the returned documents?
{ name: 1, emails: 1 }
When the following document is inserted, how many index entries will be created?
Página 2 de 5 examen_mongodb_nf40 m1 v1
{
"name": "Beatrice McBride",
"age": 26,
"emails": [
"puovvid@wamaw.kp",
"todujufo@zoehed.mh",
"fakmir@cebfirvot.pm"
]
}
Página 3 de 5 examen_mongodb_nf40 m1 v1
11) MongoDB Indexes: Wildcard index use cases
Which of the following are good reasons to use a Wildcard Index?
a. An application consistently queries against document field that use the
Attribute Pattern.
b. The query pattern on documents of a collection is unpredictable.
c. A collection has documents with many different fields.
Which of the following queries are able to use it for both filtering and sorting?
a.
b.
c.
d.
e.
> db.people.find({
"address.state": "Nebraska",
"last_name": /^G/,
"job": "Police officer"
})
> db.people.find({
"job": /^P/,
"first_name": /^C/,
"address.state": "Indiana"
}).sort({ "last_name": 1 })
> db.people.find({
"address.state": "Connecticut",
"birthday": {
"$gte": ISODate("2010-01-01T00:00:00.000Z"),
"$lt": ISODate("2011-01-01T00:00:00.000Z")
}
})
Página 4 de 5 examen_mongodb_nf40 m1 v1
If you had to build one index on the people collection, which of the following
indexes would best sevice all 3 queries?
a.
b.
c.
d.
e.
f.
14) Index operations: Building indexes
Which of the following are true of index build operations?
a. Foreground index builds block all reads and writes to the collection being
indexed.
b. Foreground index builds block all reads and writes to the database that
holds the collection being indexed.
c. Background index builds do not impact the query performance of the
MongoDB deployment while running.
d. Background index builds take longer to complete that foreground index
builds.
e. Background index builds block reads and writes to the collection being
indexed.
Página 5 de 5 examen_mongodb_nf40 m1 v1