Question: You need to get the names of all the indexes on your current collection. What is the best way to accomplish this?

  1. `db.people.getName();`
  2. `db.people.reIndex({names: 1});`
  3. `db.people.getIndexKeys();`
  4. `db.people.getIndexes();`

Answer: The correct answer of the above question is Option D:`db.people.getIndexes();`