Salesforce Platform Developer I (legacy) — Question 142
Universal Hiring is using Salesforce to capture job applications. A salesforce administrator created two custom objects; Job__c acting as the master object, Job_Application__c acting as the detail.
Within the Job__c object, a custom multi-select picklist, Preferred_Locations__c, contains a list of approved states for the position. Each Job_Application__c record relates to a Contact within the system through a master-detail relationship.
Recruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred_Locations__c field, within the Job_Application__c record. Recruiters would like this value to be kept in sync, if changes occur to the Contact's Mailing State or if the Job's Preferred_Locations__c field is updated.
What is the recommended tool a developer should use to meet the business requirement?
Answer options
- A. Apex Digger
- B. Process Builder
- C. Record-triggered flow
- D. Formula field
Correct answer: C
Explanation
The correct answer is C, Record-triggered flow, as it can automate updates in response to changes in related records, allowing for real-time synchronization of the Mailing State and Preferred_Locations__c values. Options A and B are not the best fit because Apex Digger is primarily for code analysis, and Process Builder does not provide the same level of real-time processing as record-triggered flows. Option D, a Formula field, is static and cannot handle updates from other records dynamically.