Agilysys Interview Question

what is constraint and index in database