Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 99 discussion

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

A developer has built a multi-page wizard using a single Custom Controller to query and update data. Users are complaining that the pages are loading slowly.
What will improve performance? (Choose three.)

  • A. Reducing the view state
  • B. Using actionRegion and rerender
  • C. Turning off the standard stylesheet
  • D. Setting the Apex Page attribute cache=true
  • E. Using selective queries
Show Suggested Answer Hide Answer
Suggested Answer: ADE 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Liquad
Highly Voted 3 years, 2 months ago
Correct Answer: ABE By default, pages that do not have the cache attribute set are cached for ten minutes (600 seconds). So it already defatuls to cache=true and it will not have effect in page loading. Only the components in the body of the are processed by the server, thereby increasing the performance of the page.
upvoted 9 times
Peter808
2 years, 1 month ago
I think B is not required because the admin is using a single component
upvoted 2 times
...
...
Yas010101
Most Recent 10 months, 2 weeks ago
Selected Answer: ABE
In order to reduce the view state, make use of the following: 1. "Transient" keyword - to declare instance variables that can't be saved, and shouldn't be transmitted as part of the view state for a VF page. 2. Minimize the number of forms i.e <apex:form> on a page. Make use of <apex:actionRegion> instead of using 2 or more forms. 3. Refine your SOQL to retrieve only the data needed. 4. All public and private date members present in standard, custom and controller extensions are saved as a part of view state. so use transient variables which are not stored in state of page. 5. Instead of using <apex:commandlink> or <apex:commandbutton>, go for <apex:outputlink> https://help.salesforce.com/s/articleView?id=000384480&type=1
upvoted 1 times
...
Sapphire808
1 year, 1 month ago
Selected Answer: ABE
Addressing view state, rerendering, and optimizing SOQL will all improve page performance.
upvoted 1 times
...
Ting21
1 year, 7 months ago
ans is ABE. for C I cannot find any documentation which says standard stylesheets in a page will affect the performance.
upvoted 2 times
...
lorenac2
1 year, 10 months ago
Selected Answer: ACE
I reviewed the documentation, it is set to FALSE for INTERNAL users by default, hence, it needs turned on. If the question asked about customers, the default is TRUE, cache is already enabled. Reference: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_page.htm My guess is that B is not relevant because it explicitly states that it is a multi-page interface, so it is less likely there will be a need for re-rendering.
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 ...