exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 8 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 8
Topic #: 1
[All Certified Platform Developer II Questions]

A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Production.
What should the developer ensure to correct these errors?

  • A. Ensure queries do not exceed governor limits.
  • B. Ensure properties are marked as Transient.
  • C. Ensure properties are marked as private.
  • D. Ensure profiles have access to the Visualforce page.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Sappaul
Highly Voted 2 years, 2 months ago
b is right answer
upvoted 5 times
...
santo_aj
Most Recent 3 months, 3 weeks ago
Selected Answer: B
B is right answer https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_transient.htm
upvoted 1 times
...
levian
10 months, 4 weeks ago
B is the correct one
upvoted 2 times
...
OmShantiVeg
1 year, 1 month ago
Ans is D
upvoted 2 times
santo_aj
2 months, 3 weeks ago
If users see a ViewState error it means that they have been able to access the visualforce, therefore their profile has access, option D is not correct. The correct option is B.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago