JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 16
MongoDB interview questions part 16
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. ___________ is a specification for storing and retrieving files that exceed the BSON-document size limit of 16MB.
A. FSpec
B. GridFS
C. Grid
D. None of the mentioned
Show Correct Answer
Correct Answer is :
GridFS
2. Point out the correct statement :
A. GridFS uses two collections to store files
B. You cannot perform range queries on files stored through GridFS
C. Applications that handle temporal and spatial data often require capturing fractional units of currency
D. All of the mentioned
Show Correct Answer
Correct Answer is :
GridFS uses two collections to store files
3. By default GridFS limits chunk size to ______ k.
A. 225
B. 255
C. 256
D. None of the mentioned
Show Correct Answer
Correct Answer is :
255
4. When you query a GridFS store for a file, the _______ will reassemble the chunks as needed.
A. client
B. Server
C. Agent
D. None of the mentioned
Show Correct Answer
Correct Answer is :
client
5. Point out the wrong statement :
A. Chunks in the context of GridFS is related to the use of the term chunks in the context of sharding
B. The default chunk size changed from 256k to 255k
C. If you need to query the database for exact, mathematically valid matches, use Ambiguity Precision
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Chunks in the context of GridFS is related to the use of the term chunks in the context of sharding
6. MongoDB represents queries as ___________ objects.
A. BSON
B. JSON
C. GSON
D. None of the mentioned
Show Correct Answer
Correct Answer is :
BSON
7. Each document in the __________ collection represents a distinct chunk of a file as represented in the GridFS store.
A. chunks
B. files
C. bson
D. none of the mentioned
Show Correct Answer
Correct Answer is :
chunks
8. GridFS uses a _________ index on the chunks collection for the files_id and n fields.
A. unique
B. single
C. non unique
D. none of the mentioned
Show Correct Answer
Correct Answer is :
unique
9. The ___ field contains the sequence number of the chunk.
A. x
B. array
C. field
D. n
Show Correct Answer
Correct Answer is :
n
10. The GridFS index allows efficient retrieval of __________ using the files_id and n values
A. chunks
B. files
C. bson
D. none of the mentioned
Show Correct Answer
Correct Answer is :
chunks
11. To modify an existing index, you cannot just re-issue the _________ method with the updated specification of the index.
A. dropIndex()
B. modIndex()
C. createIndex()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
createIndex()
12. Point out the wrong statement :
A. To modify an existing index, you need to drop and recreate the index
B. Your client library may have a different or additional interface for this operation
C. To see the status of an indexing process, you can use the db.statusOp() method in the mongo shell
D. None of the mentioned
Show Correct Answer
Correct Answer is :
To see the status of an indexing process, you can use the db.statusOp() method in the mongo shell
13. If you need to rebuild indexes for a collection you can use the _________ method to rebuild all indexes on a collection in a single operation.
A. db.collection.Index()
B. db.collection.reIndex()
C. db.collection.rebuildIndex()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
db.collection.Index()
14. To terminate an ongoing index build, use the __________ method in the mongo shell.
A. db.currentOp()
B. db.killOp()
C. db.removeOp()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
db.killOp()
15. Point out the correct statement :
A. After 4.0, you cannot terminate both background index builds and foreground index builds
B. Before MongoDB 2.1, you could only terminate background index builds
C. After 2.4, you can terminate both background index builds and foreground index builds
D. None of the mentioned
Show Correct Answer
Correct Answer is :
After 2.4, you can terminate both background index builds and foreground index builds
16. In the mongo shell, you can use the ______ method to return a list of the indexes on a collection.
A. getallIndexes()
B. getretIndexes()
C. getIndexes()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
getIndexes()
17. __________ views partial execution statistics collected during plan selection
A. curs.explain()
B. cursor.explain()
C. cursr.explain()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
cursor.explain()
18. The __________ operator constrains the results of a geospatial $near or $nearSphere query to the specified distance.
A. $center
B. $maxDistance
C. $minDistance
D. all of the mentioned
Show Correct Answer
Correct Answer is :
$maxDistance
19. To force MongoDB to use a particular index for a db.collection.________ operation, specify the index with the hint() method.
A. query()
B. find()
C. index()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
find()
20. Specify the ______ operator to the hint() method to prevent MongoDB from using any index
A. $unique
B. $natural
C. $spatial
D. all of the mentioned
Show Correct Answer
Correct Answer is :
$natural
Similar Interview Questions
Search for latest jobs
Find Jobs