A developer encounters an error that states that the Apex heap size is exceeded. Which technique may reduce heap size?

QuestionsCategory: Certified Platform Developer IIA developer encounters an error that states that the Apex heap size is exceeded. Which technique may reduce heap size?
Admin Staff asked 4 months ago
A developer encounters an error that states that the Apex heap size is exceeded.
Which technique may reduce heap size?

A. Add the transient keyword to the variable definition

B. Move the variable definition inside the scope of the function

C. Use static variables instead of instance variables

D. Use SOQL for loops instead of standard SOQL queries








 

Suggested Answer: D

Community Answer: D



This question is in Certified Platform Developer II Exam
For getting Salesforce Certified Platform Developer II











Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Salesforce. 
Trademarks, certification & product names are used for reference only and belong to Salesforce.
The website does not contain actual questions and answers from Salesforce's Certification Exams.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.