Free Platform-Developer-II Exam Braindumps

Pass your Platform Developer II exam with these free Questions and Answers

Page 13 of 35
QUESTION 56

- (Exam Topic 3)
Exhibit.
Platform-Developer-II dumps exhibit
A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information… about leads by imperatively calling getFetchLeadList when certain criteria are met.
What are these changes the developer should implement in the Apex class above to ensure the LWC can displ… data efficiently while preserving security?
Choose 3 answers

  1. A. Annotate the Apex method with gAuraEnabled
  2. B. Annotate the Apex method with 8AuraEnabled (Cacheable-true).
  3. C. Use the WITH SECURITY_ENFORCED clause within the SOQL query.
  4. D. Implement the with sharing keyword in the class declaration.
  5. E. Implement the without sharing keyword in the class declaration.

Correct Answer: BCD

QUESTION 57

- (Exam Topic 1)
What Visualforce tag can be used to display custom messages in pages using the Salesforce Ul styling for errors, warnings, and other types of messages?

  1. A. <apex:customMessage>
  2. B.
  3. C.
  4. D.

Correct Answer: D

QUESTION 58

- (Exam Topic 3)
When developing a Lightning web component, which setting displays lightning-layout-items in one column on small devices, such as mobile phones, and in two columns on tablet-size and desktop-size screens?

  1. A. Set size=M6" mobile-device-size="12"
  2. B. Set size-"12" medium-device-size="6"
  3. C. Set size-"12" tablet-device-size-"6"
  4. D. Set size-"6" small-device-size-"12"

Correct Answer: B

QUESTION 59

- (Exam Topic 3)
A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org.
Users report that they receive a ''Maximum view state size limit'' error message under certain conditions. According to Visualforce best practice, which three actions should the developer take to reduce the view state?
Choose 3 answers

  1. A. Use the transient keyword in the Apex controller for variables that do not maintain state.
  2. B. Use the final keyword In the controller for variables that will not change.
  3. C. Refine any SQQL queries to return only data relevant to the page.
  4. D. Use the private keyword in the controller for variables
  5. E. Use filters and pagination to reduce the amount of data.

Correct Answer: CDE

QUESTION 60

- (Exam Topic 1)
Universal Containers stores user preferences in a Hierarchy Custom Setting, User_prefs_c, with a Checkbox field, show_Help_c, Company-Level defaults are stored at the organizational level, but may be overridden at the user level, If a user has not overridden preferences, then the defaults should be used.
How should the Show_Help_c preference be retrieved for the current user?

  1. A. Boolean show = User_Prefs_c, getinstance( ), Show_Help _c;
  2. B. Boolean show = User_Prefs_c, getValues ( ). Show _Help_c;
  3. C. Boolean show = User_Prefs_c, getvaluesUserInfo.getUserid() ).Show_Help_c;
  4. D. Boolean show = User prefs_c, Show_Help_c;

Correct Answer: C

Page 13 of 35

Post your Comments and Discuss Salesforce Platform-Developer-II exam with other Community members: