C100DBA Exam Question 6

Which of the following are common uses of the mongo shell? Check all that apply
  • C100DBA Exam Question 7

    Consider the following example document from the sample collection. All documents in this collection have the same schema.

    Which of the following queries will replace this with the document.
  • C100DBA Exam Question 8

    What does the following $slice query return using the following command? db.posts.find( {}, { comments: {
    $slice: [ -10, 5 ] } } )
  • C100DBA Exam Question 9

    Consider the following example document:
    {
    "_id": Objectld("5360c0a0a655a60674680bbe"),
    "user"
    "login": "irOn"
    "description": "Made of steel"
    "date": ISODate("2014-04-30T09:16:45.836Z"),
    }
    >
    and index creation command:
    db.users.createlndex( { "user.login": 1, "user.date": -1 }, "mylndex" ) When performing the following query:
    db.users.find( { "user.login": /Air.*/ },
    { "user":1, "_id":0 > ).sort( { "user.date":1 > )
    which of the following statements correctly describe how MongoDB will handle the query? Check all that apply.
  • C100DBA Exam Question 10

    Which of the following are valid json documents? Select all that apply.