Red Hat interview question

How are indexes used in MySQL?