Free Platform-Developer-II Exam Braindumps

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

Page 21 of 35
QUESTION 96

- (Exam Topic 1)
A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an Opportunity is dosed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails.
What might be causing the failed assertion?

  1. A. The test class has not defined an Account owner when inserting the test data.
  2. B. The test class has not re-queried the Account record after updating the Opportunity.
  3. C. The test class has not implemented seeAIIData-truwh the test method.
  4. D. The test class is not using System.runAs() to run tests as a Salesforce administrator.

Correct Answer: B

QUESTION 97

- (Exam Topic 1)
In an organization that has multi-currency enabled, a developer is tasked with building a Lighting Component that displays the top ten Opportunities most recently access by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user's locale.
What is the most effective approach to ensure values displayed respect the user’s locale settings?

  1. A. Use the FOR VIEW clause in the SOQL Query.
  2. B. Use REGEX expressions to format the values retrieved via SOQL.
  3. C. Use the FORMAT() function in the SOQL query.
  4. D. Use a wrapper class to format the values retrieved via SOQL.

Correct Answer: C

QUESTION 98

- (Exam Topic 1)
A company has a web page that needs to get Account record information, given its Salesforce record ID, from JavaScript on the page and then display it. Which method of integration is optimal?

  1. A. SOAP API
  2. B. Apex REST Web Service
  3. C. Apex SOAP Web Service
  4. D. REST API

Correct Answer: B

QUESTION 99

- (Exam Topic 3)
A developer is building a Lightning web component that searches for Contacts and must communicate the search results to other Lightning web components when the search completes.
What should the developer do to implement the communication?

  1. A. Publish an event on an event channel.
  2. B. Fire an application event.
  3. C. Publish a message on a message channel.
  4. D. Fire a custom component event.

Correct Answer: C

QUESTION 100

- (Exam Topic 1)
When developing a Visualforce page that will be used by a global organization that does business in many languages and many currencies, which feature should be used? (Choose three.)

  1. A. Custom Labels
  2. B. convertCurrency()
  3. C. Global Labels
  4. D. Translation Workberic
  5. E. getLocalCurrency()

Correct Answer: ABD

Page 21 of 35

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