Infosys interview question

When would you use a trigger vs a workflow?