Free Platform-Developer-II Exam Braindumps

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

Page 9 of 35
QUESTION 36

- (Exam Topic 1)
Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity's Account?
A)
Platform-Developer-II dumps exhibit
B)
Platform-Developer-II dumps exhibit
C)
Platform-Developer-II dumps exhibit
D)
Platform-Developer-II dumps exhibit

  1. A. Option A
  2. B. Option B
  3. C. Option C
  4. D. Option D

Correct Answer: A

QUESTION 37

- (Exam Topic 1)
A developer wants to call an Apex Server-side Controller from a Lightning Aura Component. What are two limitations to the data being returned by the Controller? Choose 2 answers

  1. A. A Lists of Custom Apex Classes cannot be returned by Apex Controllers called by Lightning Aura Components.
  2. B. Basic data types are supported, but defaults, such as maximum size for a number, are defined by the objects that they map to.
  3. C. A custom Apex Class can be returned, but only the values of public instance properties and methodsannotated with @AuraEnabled are serialized and returned.
  4. D. Only Basic data types and sObjects are supported as return types for Apex Controllers called by Lightning Aura Components.

Correct Answer: BC

QUESTION 38

- (Exam Topic 3)
The following code segment is railed from a Trigger handler class from the Opportunity trigger:
Platform-Developer-II dumps exhibit
Which two changes should improve this code and make it more efficient? Choose 2 answers

  1. A. Move the DML outside of the for loop.
  2. B. Move the SOQL to fetch the account record outside of the for loop.
  3. C. Move business logic inside the Opportunity trigger.
  4. D. Use Triginstead.old instead of Trigger.new.

Correct Answer: AB

QUESTION 39

- (Exam Topic 3)
Universal Containers wants to use a Customer Community with Customer Community Plus licenses to allow their customers access to track how many containers they have rented and when they are due back. Universal Containers uses a Private sharing model for External users.
Many of their customers are multi-national corporations with complex Account hierarchies. Each account on the hierarchy represents a department within the same business.
One of the requirements is to allow certain community users within the same Account hierarchy to see several departments' containers, based on a custom junction object that relates the Contact to the various Account records that represent the departments.
Which solution solves these requirements?

  1. A. Lightning web component on the Community Home Page that uses Lightning Data Services.
  2. B. A custom list view on the junction object with filters that will show the proper records based on owner
  3. C. An Apex trigger that creates Apex managed sharing records based on the junction object's relationships
  4. D. A Visualforce page that uses a custom controller that specifies wither sharing to expose the records

Correct Answer: C

QUESTION 40

- (Exam Topic 3)
The use of the transient keyword In Visualforce Page Controllers helps with which common performance issued?

  1. A. Reduces View State
  2. B. Improves Query Performance
  3. C. Improves Page Transfers
  4. D. Reduces Load Times

Correct Answer: A

Page 9 of 35

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