Pergunta de entrevista da empresa MongoDB

What is the inner data structure for database index? If creating too much indexes, is there any affect to the database?