I'm a full-stack web developer. I don't know how an index works, nor do I really care. I know when to use it, and how it affects lookups.
If I was a database administrator, then it's a fair question. But if I was asked this for a full-stack web engineering role, I'd consider it a little unfair.