Question 56

Which collection method can you use to build the index?
  • Question 57

    How many indexes will the following command create?
    db.products.createIndex( { product_name: 1, product_category: -1 } )
  • Question 58

    Which of the following commands will delete a collection named restaurants?
  • Question 59

    Suppose you have a movies collection with the following document structure: { _id: ObjectId("573a1390f29313caabcd60e4"), title: 'The Immigrant', fullplot: "Charlie is on his way to the USA. He wins in a card game, puts the money in Edna's bag (she and her sick mother have been robbed of everything). When he retrieves a little for himself he is accused of being a thief. Edna clears his name. Later, broke, Charlie finds a coin and goes into a restaurant." } You want to sort result set by a relevance score computed by MongoDB in text search query and extract only three documents with the highest score. Which query do you need to use?
  • Question 60

    How to display MongoDB configuration file from command line?