JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 4
MongoDB interview questions part 4
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Indexes are typically available in ______ or located sequentially on disk.
A. RAM
B. ROM
C. CMOS
D. None of the mentioned
Show Correct Answer
Correct Answer is :
RAM
2. Point out the wrong statement :
A. Query selectivity refers to how well the query predicate excludes or filters out documents in a collection
B. Query selectivity can determine whether or not queries can use indexes effectively or even use indexes at all
C. More selective queries match a larger percentage of documents
D. All of the mentioned
Show Correct Answer
Correct Answer is :
More selective queries match a larger percentage of documents
3. ___________ is used to determine whether a query is a covered query .
A. explainstats()
B. explain()
C. explainall()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
explain()
4. The ________ message is used to update a document in a collection.
A. UPDATE
B. OP_UPDATE
C. OP_UPDATES
D. All of the mentioned
Show Correct Answer
Correct Answer is :
OP_UPDATE
5. Point out the correct statement :
A. An equality match on the unique _id field is less selective as it can match at most one document
B. The selectivity of regular expressions depends on the expressions themselves
C. Less selective queries can use indexes effectively or even at all
D. All of the mentioned
Show Correct Answer
Correct Answer is :
The selectivity of regular expressions depends on the expressions themselves
6. _____ can modify specific fields of an existing document or documents or replace an existing document entirely, depending on the update parameter.
A. modify()
B. update()
C. find()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
update()
7. The update() method uses the _______ command, which uses the default write concern.
A. find
B. read
C. update
D. modify
Show Correct Answer
Correct Answer is :
update
8. _________ is used to view statistics about the query plan for a given query.
A. db.explain()
B. cursor.explain()
C. cursor.explainstats()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
cursor.explain()
9. An ________ query plan has returned a threshold number of matching results
A. execution
B. unordered
C. ordered
D. none of the mentioned
Show Correct Answer
Correct Answer is :
ordered
10. A query _______ consists of a combination of query, sort, and projection specifications.
A. plan
B. shape
C. stats
D. all of the mentioned
Show Correct Answer
Correct Answer is :
shape
11. The auditing facility can write audit events to the console, the _________, a JSON file, or a BSON file.
A. oplog
B. syslog
C. evallog
D. none of the mentioned
Show Correct Answer
Correct Answer is :
syslog
12. The auditing facility can write audit events to the console, the _________, a JSON file, or a BSON file.
A. oplog
B. syslog
C. evallog
D. none of the mentioned
Show Correct Answer
Correct Answer is :
syslog
13. Point out the correct statement :
A. When a process writes to a resource, it takes an exclusive write lock to prevent other processes from writing to or reading from that resource
B. As clients insert new documents into the capped collection, the tailable cursor continues to retrieve documents
C. Write concern allows your application to detect insertion errors or unavailable mongod instances
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
14. Point out the correct statement :
A. When a process writes to a resource, it takes an exclusive write lock to prevent other processes from writing to or reading from that resource
B. As clients insert new documents into the capped collection, the tailable cursor continues to retrieve documents
C. Write concern allows your application to detect insertion errors or unavailable mongod instances
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
15. _________ contains the local ip address and the port number of the running instance.
A. ts
B. local
C. remote
D. users
Show Correct Answer
Correct Answer is :
local
16. _________ contains the local ip address and the port number of the running instance.
A. ts
B. local
C. remote
D. users
Show Correct Answer
Correct Answer is :
local
17. Enabling _____________ degrades performance more than logging only the authorization failures.
A. auditAuthorizationFailure
B. auditAuthorizationSuccess
C. auditAuthorizationlog
D. none of the mentioned
Show Correct Answer
Correct Answer is :
auditAuthorizationSuccess
18. Enabling _____________ degrades performance more than logging only the authorization failures.
A. auditAuthorizationFailure
B. auditAuthorizationSuccess
C. auditAuthorizationlog
D. none of the mentioned
Show Correct Answer
Correct Answer is :
auditAuthorizationSuccess
19. Point out the correct statement :
A. An equality match on the unique _id field is less selective as it can match at most one document
B. The selectivity of regular expressions depends on the expressions themselves
C. Less selective queries can use indexes effectively or even at all
D. All of the mentioned
Show Correct Answer
Correct Answer is :
The selectivity of regular expressions depends on the expressions themselves
20. Point out the correct statement :
A. An equality match on the unique _id field is less selective as it can match at most one document
B. The selectivity of regular expressions depends on the expressions themselves
C. Less selective queries can use indexes effectively or even at all
D. All of the mentioned
Show Correct Answer
Correct Answer is :
The selectivity of regular expressions depends on the expressions themselves
Similar Interview Questions
Search for latest jobs
Find Jobs