Free Platform-Developer-II Exam Braindumps

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

Page 11 of 35
QUESTION 46

- (Exam Topic 3)
A software company uses a custom object Defect_c, to track defects in their software, Defect__c has organisation-wide defaults set to private Each Dafect__c has a related list of Reviewer_c records, each with a lookup field to User that is used to indicate that the User will review the Defect_c.
What should be used to give the User on the Reviewer_c record read only access to the Defect_c record on the Reviewer_c record?

  1. A. View All on Defect_c
  2. B. Apex managed sharing
  3. C. lightning web component
  4. D. Criteria based sharing

Correct Answer: A

QUESTION 47

- (Exam Topic 2)
A company has a custom object Sales_Help_Request c that has a Lookup relationship to Opportunity. The Sales_Help_Request__c has a number field, Number_of_Hours___c, that represents the amount of time spent on the Sales_Help_Request___c.
A developer is tasked with creating a field, Total_Hours c, on Opportunity that should be the sum of all of the Number_of_Hours___c values for the Sales_Help_Request___c records related to that Opportunity.
What should the developer use to implement this?

  1. A. A workflow rule on the Sales_Help_Request___c object
  2. B. A roll-up summary field on the Opportunity object
  3. C. A trigger on the Opportunity object
  4. D. A trigger on Sales_Help_Request__c

Correct Answer: D

QUESTION 48

- (Exam Topic 3)
Which two best practices should the developer Implement to optimize this code? Choose 2 answers

  1. A. Use a collection for the DML statement.
  2. B. Query the Pricing_structure___c records outside of the loop.
  3. C. Change the trigger context to after update, after insert.
  4. D. Remove the DML statement.

Correct Answer: BD

QUESTION 49

- (Exam Topic 3)
Refer to the code below:
Platform-Developer-II dumps exhibit
When the code runs, it results In a System Limit Exception with the error message: Apex heap size too large. What should be done to fix this error'

  1. A. Use a SOQL for loop to process the data.
  2. B. Convert the Lis: into a 5tc.
  3. C. Use Limits.getLimitHeapSize().
  4. D. Use a try/catch block to catch the error.

Correct Answer: C

QUESTION 50

- (Exam Topic 3)
A company uses Salesforce to sell products to customers. They also have an external product information management (PIM) system that is the system of record for products.
A developer received these requirements:
• Whenever a product is created or updated in the PIM, a product must be created or updated as a Product2 record in Salesforce and a PricebookEntry record must be created or updated automatically by Salesforce.
• The PricebookEntry should be created In a Pricebook2 that is specified In a custom setting. What should the developer use to satisfy these requirements?

  1. A. Apex REST
  2. B. Event Monitoring
  3. C. Invocable Action
  4. D. SObJect Tree

Correct Answer: A

Page 11 of 35

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