JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 3
MongoDB interview questions part 3
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. ________ applies an expression to each item in an array and returns an array with the applied results.
A. $map
B. $geo
C. $geoRear
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$map
2. In the vars assignment block, ________ refers to the value of an externally defined variable low .
A. “$$low”
B. “$$lowin”
C. “$$1”
D. None of the mentioned
Show Correct Answer
Correct Answer is :
“$$low”
3. To avoid treating numeric or boolean literals as projection flags, use the _______ expression to wrap the numeric or boolean literals.
A. $literal
B. $bool
C. $unwin
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$literal
4. MongoDB treats the literals as projection flags, valid only in the _______ stage.
A. $project
B. $gmap
C. $match
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$project
5. Point out the wrong statement :
A. Documents do not pass through the stages in sequence
B. Pipeline stages appear in an multi dimensional array
C. $project reshapes each document in the stream, such as by adding new fields or removing existing fields
D. All of the mentioned
Show Correct Answer
Correct Answer is :
$project reshapes each document in the stream, such as by adding new fields or removing existing fields
6. ________ passes the first n documents unmodified to the pipeline where n is the specified limit
A. $skip
B. $limit
C. $match
D. $redact
Show Correct Answer
Correct Answer is :
$limit
7. _______ reorders the document stream by a specified sort key
A. $skip
B. $limit
C. $sort
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$sort
8. Which of the following operator incorporates the functionality of $match, $sort, and $limit for geospatial data?
A. $geoSpatial
B. $geoNear
C. $geoRear
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$geoNear
9. _____ Writes the resulting documents of the aggregation pipeline to a collection.
A. $out
B. $in
C. $output
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$out
10. ________ deconstructs an array field from the input documents to output a document for each element.
A. $unwindelem
B. $unwind
C. $unwin
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$unwin
11. Aggregation pipeline was introduced in MongoDB version ______
A. 2.1
B. 2.2
C. 2.4
D. 3
Show Correct Answer
Correct Answer is :
2.2
12. Point out the wrong statement :
A. Aggregation pipeline have some limitations on value types and result size
B. The aggregation pipeline is a framework for data aggregation modeled on the concept of data processing pipelines
C. Documents enter a multi-stage pipeline that transforms the documents into an aggregated results
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
13. ________ calculates aggregate values for the data in a collection.
A. db.collection.aggregate
B. db.collection.agg
C. db.collection.pipeline
D. all of the mentioned
Show Correct Answer
Correct Answer is :
db.collection.aggregate
14. Cursors returned from aggregation only supports cursor methods like :
A. cursor.hasNext()
B. cursor.Next()
C. cursor.has()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
cursor.hasNext()
15. Point out the wrong statement :
A. Some pipeline stages may generate new documents or filter out documents
B. Pipeline stages do need to produce one output document for every input document
C. Pipeline stages can appear multiple times in the pipeline
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Pipeline stages do need to produce one output document for every input document
16. ______ can be used to iterate the cursor of document results returned by db.collection.find().
A. it
B. next
C. cur
D. none of the mentioned
Show Correct Answer
Correct Answer is :
it
17. To handle large datasets, set _________ option to true to enable writing data to temporary files.
A. enableDiskUse
B. allowDiskUse
C. validateDiksUse
D. none of the mentioned
Show Correct Answer
Correct Answer is :
allowDiskUse
18. Syntax for specifying an initial batch size for the cursor is :
A. cursor: { batchSize:
}
B. cursor: { batchSize:
}
C. cur: { batchSize:
}
D. none of the mentioned
Show Correct Answer
Correct Answer is :
cursor: { batchSize:
}
19. Query shape consists of a combination of query, sort, and _________ specifications.
A. selection
B. projection
C. collection
D. none of the mentioned
Show Correct Answer
Correct Answer is :
collection
20. Which of the following method is overrided by Index filters ?
A. hint
B. plan
C. execute
D. all of the mentioned
Show Correct Answer
Correct Answer is :
hint
Similar Interview Questions
Search for latest jobs
Find Jobs