Dishwasher make loud noice during drain cycle

Dishwasher makes a loud noice when it is in the drain cycle. I tested the other cycles and it is okay. Does anyone know if this could be the pump or motor?