Question: You need to get the names of all the indexes on your current collection. What is the best way to accomplish this?
- `db.people.getName();`
- `db.people.reIndex({names: 1});`
- `db.people.getIndexKeys();`
- `db.people.getIndexes();`
Answer: The correct answer of the above question is Option D:`db.people.getIndexes();`