Infosys Interview Question

When would you use a trigger vs a workflow?