Question 16

Suppose you want to familiarize with a new collection and want to display a single document. Which collection method should you use in this case?
  • Question 17

    Why is MongoDB using BSON instead of JSON to store data? Select all that apply.
  • Question 18

    Select all true statements regarding to transactions in MongoDB.
  • Question 19

    Suppose you want to create a unique compound index on two fields. It turns out, however, that the collection has duplicate pairs of values for these fields.
    What happens if you try to create an index like this?
  • Question 20

    Suppose you have a developers collection with the following document structure: { _id: 1, fname: 'Bob', lname: 'Smith', tech_stack: [ 'git', 'c++', 'sqlite', 'linux' ] } Select a query that can be executed without errors.