Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. Which of the following is used to avoid repetition of data in MongoDB schema?
  1.    DeReferences
  2.    References
  3.    Cursor
  4.    Collectors
 Discuss Question
Answer: Option B. -> References


When using references, the growth of the relationships determine where to store the reference.


Question 2. The default chunk size is changed from 256k to 255k in version :
  1.    3.0
  2.    2.4.9
  3.    2.4.10
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> 2.4.9


The use of the term chunks in the context of GridFS is not related to the use of the term chunks in the context of sharding.


Question 3. Normalized data models describe relationships using ___________ between documents.
  1.    relativeness
  2.    references
  3.    evaluation
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> references


Normalized data models can require more round trips to the server.


Question 4. Which of the following operations are atomic on document level ?
  1.    update
  2.    remove
  3.    findAndModify
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned


In MongoDB, write operations, e.g. db.collection.update(), db.collection.findAndModify(), db.collection.remove(), are atomic on the level of a single document.


Question 5. ______________ documents capture relationships between data by storing related data in a single document structure.
  1.    Capped
  2.    Embedded
  3.    External
  4.    Internal
 Discuss Question
Answer: Option B. -> Embedded


MongoDB documents make it possible to embed document structures in a field or array within a document.


Question 6. Point out the correct statement :
  1.    An array with a large number of elements will incur greater indexing costs on insertion
  2.    An array with a large number of elements will incur smaller indexing costs on updates
  3.    An array with a small number of elements will incur greater indexing costs on insertion
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> An array with a large number of elements will incur greater indexing costs on insertion


An array with a large number of elements, such as one with several hundreds or thousands of keywords will incur greater indexing costs on insertion.


Question 7. Which of the following precision uses two values for the field ?
  1.    Exact
  2.    Accurate
  3.    Ambiguity
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> Ambiguity


Arbitrary Precision which uses two fields for the value: one field to store the exact monetary value as a non-numeric and another field to store a floating point approximation of the value.


Question 8. The _________ References pattern stores each tree node in array the id(s) of the node's children.
  1.    Child
  2.    Parent
  3.    Root
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Child


In addition to the tree node, document stores in an array the id(s) of the node's children.


Question 9. MongoDB stores times in _____ by default, and will convert any local time representations into this form.
  1.    UTC
  2.    GMT
  3.    IST
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> UTC


Applications that must operate or report on some unmodified local time value may store the time zone alongside the UTC times tamp, and compute the original local time in their application logic.


Question 10. Which of the following pattern is more straightforward to use ?
  1.    Materialized Paths
  2.    Array of Ancestors
  3.    Nested Sets
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Array of Ancestors


The Array of Ancestors pattern stores each tree node in a document; in addition to the tree node, document stores in an array the id (s) of the node's ancestors or path.


Latest Videos

Latest Test Papers