Which solution meets the requirements?

Posted by: Pdfprep Category: PDII Tags: , ,

An org contains two custom objects; Building__c and Office__c. Office__c has a Lookup field to Building__c.

A developer is asked to automatically populate the Number_of_Offices__c field on the Building__c object with the count of related Office__c

records anytime an Office__c record s created or deleted. The developer cannot modify the field types.

Which solution meets the requirements?
A . Flow
B . Workflow
C . Apex Trigger
D . Process Builder

Answer: C