Salesforce Platform Developer I (legacy) — Question 186

Which two practices should be used for processing records in a trigger? (Choose two.)

Answer options

Correct answer: A, C

Explanation

Using a Map helps optimize SOQL calls by reducing the number of queries needed, which is crucial in trigger contexts. A Set ensures that only unique values are considered in a query filter, preventing duplicates and improving efficiency. The other options, while useful in certain scenarios, do not directly address the primary practices for processing records in triggers.