Free Platform-Developer-II Exam Braindumps

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

Page 19 of 35
QUESTION 86

- (Exam Topic 1)
If a developer wanted to display error messages with the standard Salesforce Ul styling, what would they use?

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

Correct Answer: A

QUESTION 87

- (Exam Topic 1)
A company represents their customers as Accounts in Salesforce. All customers have a unique Customer_Number___c that is unique across all of the company's systems. They also have a custom Invoice___c object, with a Lookup to Account, to represent invoices that are sent out from their external system. This company wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer is paying their bills on time. What is the optimal way to implement this?

  1. A. Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code.
  2. B. Ensure Customer_Number___c is an External ID and that a custom field Invoice_Number___c is an External ID and Upsert invoice data nightly.
  3. C. Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly.
  4. D. Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice

Correct Answer: B

QUESTION 88

- (Exam Topic 1)
Which are relevant practices while analyzing the timeline of different types of transactions in the execution overview panel? (Choose two.)

  1. A. Log lines in the execution log panel can be analyzed for details about specific events
  2. B. The performance tree should be use to analyze events further starting from the one that take the least amount of time
  3. C. The execution tree can be used with the execution log to filter and get specific information about events
  4. D. Multiple short bursts of Apex events should be analyzed since they can add up to a significant amount of time

Correct Answer: AD

QUESTION 89

- (Exam Topic 3)
An org has a Process Builder process on Opportunity that sets a custom field,CommissionBaseAmount c, when an Opportunity is edited and the Opportunity's Amount changes.
A developer recently deployed an Opportunity before update trigger that uses the CommissionBaseAmount c and complex logic to calculate a value for a custom field CommissionAmount_c, when an Opportunity stage changes to Closed/Won.
Users report that when they change the Opportunity to Closed/Won and also change the Amount during the same save, the C:rr.i;5icnA.T.cur.t c is incorrect.
Which two actions should the developer take to correct this problem? Choose 2 answers

  1. A. Call the trigger from the process.
  2. B. Uncheck the recursion checkbox on the process.
  3. C. Use a static Boolean variable in the trigger.
  4. D. Call the process from the trigger.

Correct Answer: AC

QUESTION 90

- (Exam Topic 3)
A developer wishes to improve runtime performance of Apex calls by caching results on the client. What is the most efficient way to Implement this?

  1. A. Set a cookie in the browser for use upon return to the page.
  2. B. Decorate the server-side method with @AuraEnabled(storagele=true).
  3. C. Decorate the server-side method with @AuraEnabled(caccheable-true).
  4. D. Call the setstoreable () method on the action in the JavaScript client-side code.

Correct Answer: C

Page 19 of 35

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