JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 10
MongoDB interview questions part 10
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. A query may include a ___________ that specifies the fields from the matching documents to return.
A. selection
B. projection
C. union
D. none of the mentioned
Show Correct Answer
Correct Answer is :
projection
2. Point out the correct statement :
A. Secondary indexes allow applications to store a view of a portion of the collection in an efficient data structure
B. MongoDB has full support for secondary indexes
C. Most indexes store an ordered representation of all values of a field or a group of fields
D. All of the mentioned
Show Correct Answer
Correct Answer is :
MongoDB has full support for secondary indexes
3. MongoDB stores all documents in :
A. tables
B. collections
C. rows
D. all of the mentioned
Show Correct Answer
Correct Answer is :
collections
4. In MongoDB, _________ operations modify the data of a single collection.
A. CRUD
B. GRID
C. READ
D. All of the mentioned
Show Correct Answer
Correct Answer is :
CRUD
5. Point out the wrong statement :
A. Indexes cannot enforce uniqueness in collection
B. CRUD stands for create, read, update, and delete
C. CRUD application is the most simplest application
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Indexes cannot enforce uniqueness in collection
6. Which of the following operation adds a new document to the users collection ?
A. add
B. insert
C. truncate
D. drop
Show Correct Answer
Correct Answer is :
insert
7. Which of the following preference determines how the client direct read operations to the set ?
A. read
B. write
C. update
D. delete
Show Correct Answer
Correct Answer is :
read
8. Applications can also control the behavior of write operations using _______ concern.
A. read
B. write
C. truncate
D. all of the mentioned
Show Correct Answer
Correct Answer is :
write
9. MongoDB process collection of documents using _________ operations.
A. Hbase
B. Hive
C. Map-reduce
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Map-reduce
10. Which of the following pipeline is used for aggregation in MongoDB ?
A. data processing
B. information processing
C. knowledge processing
D. none of the mentioned
Show Correct Answer
Correct Answer is :
data processing
11. Which of the following collection do not support the TTL property ?
A. Compound indexes
B. Primary indexes
C. Composite indexes
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Compound indexes
12. Point out the correct statement :
A. Data expiration is useful for some classes of information, including machine generated event data, logs, and session information
B. A special TTL index property supports the implementation of TTL collections
C. TTL collections make it possible to store data in MongoDB and have the mongod automatically remove data after a specified number of seconds or at a specific clock time
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
13. If the indexed field in a document is not a _____ or an array that holds a date value(s), the document will not expire.
A. DATE
B. TIME
C. DATETIME
D. All of the mentioned
Show Correct Answer
Correct Answer is :
DATE
14. When the TTL thread is active, you will see _______ operations in the output of db.currentOp().
A. read
B. update
C. delete
D. all of the mentioned
Show Correct Answer
Correct Answer is :
delete
15. Point out the correct statement :
A. TTL indexes expire documents after the specified number of seconds has passed since the indexed field value
B. TTL indexes are special compound indexes
C. If a document does not contain the indexed field, the document will expire
D. None of the mentioned
Show Correct Answer
Correct Answer is :
TTL indexes expire documents after the specified number of seconds has passed since the indexed field value
16. Secondary members replicate _________ operations from the primary.
A. Update
B. Drop
C. Insert
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
17. A collection with a TTL index has __________ enabled.
A. usePowerOf3Sizes
B. usePowerOf2Sizes
C. usePowerOf4Sizes
D. none of the mentioned
Show Correct Answer
Correct Answer is :
usePowerOf2Sizes
18. Which field does not support TTL indexes ?
A. _identity
B. _option
C. _id
D. None of the mentioned
Show Correct Answer
Correct Answer is :
_id
19. You cannot use _________ to change the value of expireAfterSeconds of an existing index.
A. createIndex()
B. dropIndex()
C. removeIndex()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
createIndex()
20. You cannot create a TTL index on a ________ collection
A. Sharded
B. Capped
C. Primary
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Capped
Similar Interview Questions
Search for latest jobs
Find Jobs