Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Plat-Dev-301 Exam - Topic 2 Question 3 Discussion

The use of the transient keyword in Visualforce page helps with which performance issue?
A) Reduces view state
B) Improves query performance
C) Reduces load times
D) Improves page transfers

Salesforce Plat-Dev-301 Exam - Topic 2 Question 3 Discussion

Actual exam question for Salesforce's Plat-Dev-301 exam
Question #: 3
Topic #: 2
[All Plat-Dev-301 Questions]

The use of the transient keyword in Visualforce page helps with which performance issue?

Show Suggested Answer Hide Answer
Suggested Answer: A

In Visualforce, the 'View State' is a hidden form field that maintains the state of the page (and the controller's variables) across postbacks to the server. If the View State becomes too large, it can slow down page loads and eventually hit the Salesforce View State limit (170KB), causing the page to crash.

The transient keyword is used to declare instance variables in Apex controllers that should not be saved in the View State. When a variable is marked as transient, its value is discarded after the request finishes and is not transmitted back to the client. This effectively reduces the size of the View State. It is commonly used for data that is needed only for the duration of the current request (like a large list of records displayed in a read-only table) and can be easily requeried or recalculated if needed.


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel