JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Firm
MongoDB interview questions part 33
MongoDB interview questions part 33
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. ________ contains a counter of the total number of clients with active operations in progress or queued.
A. globalLock.active
B. localLock.activeClients
C. globalLock.activeClients
D. all of the mentioned
Show Correct Answer
Correct Answer is :
globalLock.activeClients
2. Point out the correct statement :
A. MongoDB uses a locking system to ensure data set consistency
B. If certain operations are long-running or a queue forms, performance will degrade as requests and operations wait for the lock
C. Long queries can result from ineffective use of indexes
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
3. ________ provide the number of times the lock acquisitions encountered deadlocks.
A. locks.deadlock
B. lock.deadlockCount
C. locks.deadlockCount
D. all of the mentioned
Show Correct Answer
Correct Answer is :
locks.deadlockCount
4. If __________ is high relative to uptime, the database has existed in a lock state for a significant amount of time.
A. globalLock.halfTime
B. globalLock.totalTime
C. globalLock.downTime
D. all of the mentioned
Show Correct Answer
Correct Answer is :
globalLock.totalTime
5. Point out the wrong statement :
A. The storage.wiredTiger.indexConfig.prefixCompression setting does not affect all indexes created
B. Database profiling can impact database performance
C. The default storage.wiredTiger.engineConfig.cacheSizeGB setting assumes that there is a single mongod instance per node
D. None of the mentioned
Show Correct Answer
Correct Answer is :
The storage.wiredTiger.indexConfig.prefixCompression setting does not affect all indexes created
6. The __________ data structure value provides more granular information concerning the number of operations queued because of a lock.
A. currentQueue
B. curQueue
C. currentQu
D. none of the mentioned
Show Correct Answer
Correct Answer is :
currentQueue
7. serverStatus includes all fields by default, except _________ .
A. rangeDeleter
B. rangeDelete
C. rangeDEL
D. none of the mentioned
Show Correct Answer
Correct Answer is :
rangeDelete
8. ______ field contains total number of current clients that connect to the database instance.
A. available
B. current
C. always avail
D. none of the mentioned
Show Correct Answer
Correct Answer is :
current
9. MongoDB’s _______ is a database profiling system that can help identify inefficient queries and operations.
A. Reporter
B. Executer
C. Profiler
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Profiler
10. Which of the following setting defines what constitutes a “slow” operation ?
A. slowOpThresholdGs
B. fastOpThresholdMs
C. slowOpThresholdMs
D. none of the mentioned
Show Correct Answer
Correct Answer is :
slowOpThresholdMs
11. With the _______ storage engine, MongoDB uses memory-mapped files to store data.
A. MMAPv2
B. MMAPv1
C. WiredTiger
D. All of the mentioned
Show Correct Answer
Correct Answer is :
MMAPv1
12. Point out the correct statement :
A. Spikes in the number of available connections can also be the result of application or driver errors
B. For read-heavy applications, increase the size of your replica set and distribute read operations to secondary members
C. For read-heavy applications, deploy sharding and add one or more shards to a sharded cluster to distribute load among mongod instances
D. All of the mentioned
Show Correct Answer
Correct Answer is :
For read-heavy applications, increase the size of your replica set and distribute read operations to secondary members
13. The memory usage statuses metrics of the _________ output can provide insight into MongoDB’s memory use.
A. globalstats
B. serverStatus
C. locks.deadlockCount
D. all of the mentioned
Show Correct Answer
Correct Answer is :
serverStatus
14. The _________ field provides the amount of resident memory in use.
A. mem.resident
B. memory.resident
C. mem.resident
D. all of the mentioned
Show Correct Answer
Correct Answer is :
mem.resident
15. Point out the wrong statement :
A. A single page fault completes slowly and is problematic
B. Increasing the amount of RAM accessible to MongoDB may help reduce the frequency of page faults
C. Page faults also can occur while accessing large data sets or scanning an entire collection
D. None of the mentioned
Show Correct Answer
Correct Answer is :
A single page fault completes slowly and is problematic
16. You can inspect __________ to check the amount of mapped memory that mongod is using.
A. mem.mapped
B. memory.resident
C. mem.resident
D. all of the mentioned
Show Correct Answer
Correct Answer is :
mem.mapped
17. MongoDB reports its triggered page faults as the total number of page faults in ________ second.
A. 1
B. 100
C. 1000
D. None of the mentioned
Show Correct Answer
Correct Answer is :
1
18. Which of the operator is used to access the query field of documents within system.profile ?
A. $select
B. $retrieve
C. $query
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$query
19. ____________ returns information on the query plan for aggregate function.
A. Reporter
B. db.collection.explain()
C. db.collection.explainplan()
D. None of the mentioned
Show Correct Answer
Correct Answer is :
db.collection.explain()
20. By default, db.collection.explain() runs in ___________ verbosity mode.
A. VerbosityMode
B. queryPlanner
C. executeStats
D. none of the mentioned
Show Correct Answer
Correct Answer is :
queryPlanner
Similar Interview Questions
Search for latest jobs
Find Jobs