Executing actions, such as creating or updating records.
D.
Nesting another loop.
The Answer Is:
C
This question includes an explanation.
Explanation:
Salesforce recommends that you avoid executing DML operations (such as Create or Update Records) or performing SOQL queries inside a loop. Doing so risks hitting governor limits and can significantly reduce flow performance.
Correct Option:
C. ✅ Executing record operations inside a loop should be avoided. Instead, use Assignment to build a collection variable and perform the DML outside the loop.
Incorrect Options:
A. Assigning variables inside loops is acceptable and often necessary.
B. Displaying data is not typical in a loop, but it’s not a best practice issue.
D. Nested loops are discouraged but not as critical as avoiding DML operations.
Reference Extract from Salesforce Developer Blog – Best Practices for Designing Efficient Flows:
“Avoid DML operations and SOQL queries inside loops. Use collections to handle record updates after the loop completes.”
===========
Process-Automation PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 60% Discount on All Products,
Use Coupon: "8w52ceb345"