Free Platform-Developer-II Exam Braindumps

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

Page 24 of 35
QUESTION 111

- (Exam Topic 3)
Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers' sales representatives can edit the orders on the same Visualforce page.
What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page?

  1. A. Use System.profllels() to test as an administrator and a community user,
  2. B. Use System.profilels() to test as a sales rep and a community user.
  3. C. Use System.runAs() to test as a sales rep and a community user.
  4. D. Use System.runAs() to test as an administrator and a community user.

Correct Answer: C

QUESTION 112

- (Exam Topic 1)
If the "PageReference.setRedirect" Apex function is set to True, what type of request is made?

  1. A. Get request
  2. B. Postback request
  3. C. If PageReference points to the same controller and subset of extensions, postback request, otherwise get request

Correct Answer: A

QUESTION 113

- (Exam Topic 3)
Consider the following code snippet:
How should component communicate to the component that an order has been selected by the user?

  1. A. Created and fire an application event.
  2. B. Create and fire a standard DOM event.
  3. C. Create and fire a component event.
  4. D. Create and dispatch a custom event

Correct Answer: D

QUESTION 114

- (Exam Topic 1)
A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Production. What should the developer ensure to correct these errors?

  1. A. Ensure queries do not exceed governor limits.
  2. B. Ensure properties are marked as Transient.
  3. C. Ensure properties are marked as private.
  4. D. Ensure profiles have access to the Visualforce page.

Correct Answer: B

QUESTION 115

- (Exam Topic 1)
A customer requires that when the billing address field on an Account gets updated, the address field on all its related contact records should reflect the same update.
How can this requirement be met with minimal customizations?

  1. A. Create an After Trigger on Account to upd|ate its related contact records on update
  2. B. Create a Workflow Rule on Account to update related child Contact records
  3. C. Create a Lightning Process on Account to update related child Contact records
  4. D. Create a scheduled batch job that updates all contact address fields based on the related account record.

Correct Answer: C

Page 24 of 35

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