Pergunta de entrevista da empresa Accenture

What is the batch class? What are the best practices to write a trigger.