KJ System interview question

Explain indexes working flow. Explain error handling methods.