R4RIN
Articles
Java 8
MCQS
MongoDB MCQ Quiz Hub
MongoDB Mcq Question Set 7
Choose a topic to test your knowledge and improve your MongoDB skills
1. _____ supports concurrent access by readers and writers to the documents in a collection.
MMAPv1
WiredTiger
WirelessTiger
All of the Mentioned
2. MongoDB uses ________ logging to an on-disk journal.
write ahead
read ahead
write once
read only
3. The ________ command returns information regarding the number of open connections.
connPoolStats
connStats
serverstats
None of the mentioned
4. ____ do not typically provide sufficient performance to support a MongoDB deployment.
RAID-5
RAID-10
RAID-7
None of the mentioned
5. Which of the following should be avoided with MongoDB Deployments?
RAID-5
RAID-10
RAID-7
RAID-0
6. With the WiredTiger storage engine, use of _______ is strongly recommended to avoid performance issues
XFS
SSD
SST
All of the Mentioned
7. Point out the correct statement.
With the MMAPv1 storage engine, MongoDB preallocates its database files before using them and often creates large files
zlib provides better compression rate but has a higher performance cost
MongoDB includes support for many storage engines
All of the Mentioned
8. MongoDB requires a filesystem that supports ______ on directories.
fsynconce()
fsync()
sync()
All of the mentioned
9. MongoDB Cloud Manager provides integration with Amazon Web Services (AWS) and lets you deploy new ______ instances directly from MongoDB Cloud Manager.
ECS
EC2
EC3
All of the Mentioned
10. Point out the wrong statement.
When running MongoDB in production on Linux, it is recommended that you use Linux kernel version 2.6.36 or later
The MongoDB distribution for Solaris include support for the WiredTiger storage engine
By default, WiredTiger uses zip compression library
None of the mentioned
11. WiredTiger can compress collection data using either snappy or zlib compression library.
snappy
zip
lib
Kit
12. Which of the following is especially important in Sharded Clusters?
NSS
STP
NTP
SSD
13. The TCP keepalive on the Azure load balancer is ______ seconds by default.
100
200
240
None of the mentioned
14. _____ is a command-line tool for monitoring network use.
bwm-ng
bwm-g
bwm-n
bwm-ngs
15. MongoDB supports tagging a range of _______ key values to associate that range with a shard or group of shards.
primary
secondary
shard
All of the Mentioned
16. Point out the correct statement.
Shard key range tags are distinct from replica set member tags
Balancer does not obey tagged range associations
Hash-based sharding only supports tag-aware sharding on an entire collection
All of the mentioned
17. The _______ migrates chunks of documents in a sharded collection to the shards associated with a tag.
balancer
compounder
fixer
All of the Mentioned
18. Point out the wrong statement.
Read preferences consider the value of a tag when selecting a member to read from
Shard ranges are always exclusive of the lower value and inclusive of the upper boundary
Write concerns do not use the value of a tag to select a member except to consider whether or not the value is unique
None of the mentioned
19. By default, an application directs its ______ operations to the primary member in a replica set.
read
write
read and write
None of the mentioned
20. Which of the following should not be used to provide extra capacity for reads?
primary
primaryPreferred
secondary
None of the mentioned
21. Read preference modes are also available to clients connecting to a sharded cluster through ______
MMS
mongos
mongod
None of the mentioned
22. All read preference modes except _______ may return stale data.
primary
primaryPreferred
secondary
None of the mentioned
23. Which of the following preference does not affect the visibility of data?
read
write
read and write
None of the mentioned
24. Which of the following collections work in a way similar to circular buffers?
Capped
Secondary
Sharded
All of the mentioned
25. Point out the correct statement.
Capped collections automatically remove the oldest documents in the collection without requiring scripts or explicit remove operations
Capped collections do not guarantee that insertion order is identical to the order on disk
Capped collections does not allow updates that fit the original document size
All of the Mentioned
26. ____ stores a log of the operations in a replica set.
oplog.rs
log.rs
log.rs
All of the mentioned
27. _____ is also used to pre-allocate space for an ordinary collection.
db.createCollection.
db.create
db.createColl
All of the Mentioned
28. Point out the wrong statement.
Queries need an index to return documents in insertion order
The options document creates a capped collection or preallocates space in a new ordinary collection
Capped collections have maximum size or document counts that prevent them from growing beyond maximum thresholds
None of the mentioned
29. If you perform a ________ on a capped collection with no ordering specified, MongoDB guarantees that the ordering of results is the same as the insertion order.
find()
write()
modify()
none of the mentioned
30. Which of the following should is used to check whether collection is capped or not?
isCAP()
isCapped()
isColl()
None of the mentioned
31. ______ convert a non-capped collection to a capped collection.
ToCapped
convertToCap
convertToCapped
None of the mentioned
32. ____ command creates the capped collection and imports the data.
CollectionAsCapped
cloneCollection
cloneCollectionAsCapped
None of the mentioned
33. Which of the following command obtains a global write lock and will block other operations until it has completed?
ToCapped
isCapped
convertToCapped
None of the mentioned
34. Which of the following collection do not support the TTL property?
Compound indexes
Primary indexes
Composite indexes
All of the Mentioned
35. Point out the correct statement.
Data expiration is useful for some classes of information, including machine generated event data, logs, and session information
A special TTL index property supports the implementation of TTL collections
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
All of the Mentioned
36. If the indexed field in a document is not a _____ or an array that holds a date value(s), the document will not expire.
DATE
TIME
DATETIME
All of the Mentioned
37. Point out the correct statement.
TTL indexes expire documents after the specified number of seconds has passed since the indexed field value
TTL indexes are special compound indexes
If a document does not contain the indexed field, the document will expire
None of the mentioned
38. Secondary members replicate _________ operations from the primary.
Update
Drop
Insert
None of the mentioned
39. A collection with a TTL index has __________ enabled.
usePowerOf3Sizes
usePowerOf2Sizes
usePowerOf4Sizes
None of the mentioned
40. Which field does not support TTL indexes?
_identity
_option
_id
none of the mentioned
41. You cannot use _________ to change the value of expireAfterSeconds of an existing index.
createIndex()
dropIndex()
removeIndex()
None of the mentioned
42. You cannot create a TTL index on a ________ collection.
Sharded
Capped
Primary
none of the mentioned
43. Which of the following setting defines what constitutes a “slow” operation?
slowOpThresholdGs
fastOpThresholdMs
slowOpThresholdMs
None of the mentioned
44. Point out the correct statement.
MongoDB uses a locking system to ensure data set consistency
If certain operations are long-running or a queue forms, performance will degrade as requests and operations wait for the lock
Long queries can result from ineffective use of indexes
All of the mentioned
45. _____ provide the number of times the lock acquisitions encountered deadlocks.
locks.deadlock
lock.deadlockCount
locks.deadlockCount
All of the Mentioned
46. If __________ is high relative to uptime, the database has existed in a lock state for a significant amount of time.
globalLock.halfTime
globalLock.totalTime
globalLock.downTime
All of the Mentioned
47. Point out the wrong statement.
The storage.wiredTiger.indexConfig.prefixCompression setting does not affect all indexes created
Database profiling can impact database performance
The default storage.wiredTiger.engineConfig.cacheSizeGB setting assumes that there is a single mongod instance per node
None of the mentioned
48. The __________ data structure value provides more granular information concerning the number of operations queued because of a lock.
currentQueue
curQueue
currentQu
none of the mentioned
49. serverStatus includes all fields by default, except ____
rangeDeleter
rangeDelete
rangeDEL
None of the mentioned
50. ____ field contains total number of current clients that connect to the database instance.
available
current
always avail
None of the mentioned
Submit