Salesforce
PDII · Question #87
PDII Question #87: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #87. The question stem and answer options stay visible for context.
Question
A developer encounters an error that states that the Apex heap size is exceeded. Which technique may reduce heap size?
Options
- AAdd the transient keyword to the variable definition
- BMove the variable definition inside the scope of the function
- CUse static variables instead of instance variables
- DUse SOQL for loops instead of standard SOQL queries
Unlock PDII to see the answer
You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.