Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. Which of the following should is used to check whether collection is capped or not ?
  1.    isCAP()
  2.    isCapped()
  3.    isColl()
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> isCapped()


Use the isCapped() method to determine if a collection is capped, as: db.collection.isCapped().


Question 2. ___________ is also used to pre-allocate space for an ordinary collection.
  1.    db.createCollection.
  2.    db.create
  3.    db.createColl
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> db.createCollection.


MongoDB creates a collection implicitly when the collection is first referenced in a command.


Question 3. MongoDB stores tag sets in the replica set configuration object, which is the document returned by _____ .
  1.    rs.config()
  2.    rs.conf()
  3.    rs.confstats()
  4.    All of the mentioned
 Discuss Question
Answer: Option B. -> rs.conf()


Custom read preferences and write concerns evaluate tags sets in different ways.


Question 4. If the indexed field in a document is not a _____ or an array that holds a date value(s), the document will not expire.
  1.    fsynconce()
  2.    fsync()
  3.    sync()
  4.    All of the mentioned
 Discuss Question
Answer: Option B. -> fsync()


HGFS and Virtual Box's shared folders do not support this operation.


Question 5. If the indexed field in a document is not a _____ or an array that holds a date value(s), the document will not expire.
  1.    DATE
  2.    TIME
  3.    DATETIME
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> DATE


Built-in first-in-first-out property maintains the order of events, while managing storage use.


Question 6. If __________ is high relative to uptime, the database has existed in a lock state for a significant amount of time.
  1.    globalLock.halfTime
  2.    globalLock.totalTime
  3.    globalLock.downTime
  4.    All of the mentioned
 Discuss Question
Answer: Option B. -> globalLock.totalTime


The value of totalTime represents the time, in microseconds, since the database last started and creation of the globalLock.


Question 7. serverStatus includes all fields by default, except _________ .
  1.    rangeDeleter
  2.    rangeDelete
  3.    rangeDEL
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> rangeDelete


You may only dynamically include top-level fields from the serverStatus document that are not included by default.


Question 8. Which of the following parameter specifies the verbosity mode for the explain output ?
  1.    verbosity
  2.    verbose
  3.    queryPlanner
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> verbose


The mode affects the behavior of explain() and determines the amount of information to return.


Question 9. The _________ field provides the amount of resident memory in use.
  1.    mem.resident
  2.    memory.resident
  3.    mem.resident
  4.    All of the mentioned
 Discuss Question
Answer: Option C. -> mem.resident


If this exceeds the amount of system memory and there is a significant amount of data on disk that isn't in RAM, you may have exceeded the capacity of your system.


Question 10. The ________ command returns information regarding the number of open connections
  1.    connPoolStats
  2.    connStats
  3.    serverstats
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> connPoolStats


To avoid overloading the connection resources of a single mongod or mongos instance, ensure that clients maintain reasonable connection pool sizes.


Latest Videos

Latest Test Papers