Question: Which MongoDB shell query will sort the customer's collection by name descending?

  1. db.customers.sort({name: -1}.find({})
  2. db.customers.sort({name: -1})
  3. db.customers.find({}).sort({name: -1})
  4. db.customers.find({}).sort({name: 1})

Answer: The correct answer of the above question is Option C:db.customers.find({}).sort({name: -1})