Crowdly
Додати до Chrome
Questions Bank (1401173 total)
Given a cursor named myCursor, which command returns a boolean value?:
myCursor.find()
0%
myCursor.hasNext()
0%
myCursor.sort()
0%
myCursor.next()
0%
Переглянути це питання
What happens when an index is created in MongoDB?
The indexed fields are encrypted for security.
0%
The indexed fields are compressed to reduce storage space.
0%
Data structures are created to improve query performance on the indexed fields.
0%
The indexed fields are sorted in descending order.
0%
Переглянути це питання
How do you find documents with a matching item in an embedded array?:
db.customers.findmatch ({"jobs":"secretary"})
0%
db.customers.find ({"jobs:secretary"})
0%
db.customers.find ({"jobs":"secretary"})
✅
db.customers.find ({"jobs":["secretary"]})
0%
Переглянути це питання
What is the maximum number of array fields per multikey index? (Select one.)
Unlimited
0%
3
0%
1
0%
5
0%
Переглянути це питання
What is a compound index? (Select one.)
An index that contains references to multiple fields within a document
✅
An index that supports queries that are run on two collections at the same time
0%
An index that supports queries that combine the field name and the value into one string
0%
An index that supports queries against unknown or arbitrary fields
0%
Переглянути це питання
In the MongoDB shell, how can you tell if an index was used with a query?:
db.customers.find({lastName: 'smith'}).explain()
✅
db.customers.find({lastName: 'smith'}).usedIndex()
0%
db.customers.find({lastName: 'smith'}).perf()
0%
db.customers.find({lastName: 'smith'}).plan()
0%
Переглянути це питання
What is the purpose of the $match stage in MongoDB aggregation framework?
To group data based on a specified expression
0%
To filter documents based on a specified condition
✅
To rearrange documents based on a specified expression
0%
To summarize data from multiple documents
0%
Переглянути це питання
How can you update an array field by adding elements to it in MongoDB?
Using the $unset operator with the added elements.
0%
Using the $addToSet operator with the new elements.
✅
Using the $push operator with the new elements.
0%
Using the $set operator with the entire updated array.
❌
Переглянути це питання
Given a cursor named myCursor, pointing to the customers collection, how to you get basic info about it?:
myCursor.dump()
0%
myCursor.stats()
0%
myCursor.info()
0%
myCursor.explain()
0%
Переглянути це питання
What is the purpose of the $unwind stage in MongoDB aggregation framework?
To join data from multiple collections
0%
To convert data into a graph
0%
To store data in a flat file
0%
To decompose an array into separate documents
0%
Переглянути це питання
Попередня
1
Більше сторінок
134335
134336
134337
134338
134339
Більше сторінок
140118
Наступна
Telegram
Instagram
TikTok
Question Bank
Умови використання
Зв'яжіться з нами
Додати до Chrome