Free Platform-Developer-II Exam Braindumps

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

Page 4 of 35
QUESTION 11

- (Exam Topic 1)
Platform-Developer-II dumps exhibit
A company has the Lightning Component above that allows users to dick a button to save their changes and redirects them to a different page. Currently, when the user hits the Save button the records are getting saved, but they are not redirected.
Which three techniques can a developer use to debug the JavaScript? Choose 3 answers

  1. A. Use Developer Console to view checkpoints.
  2. B. Use Developer Console to view the debug log.
  3. C. Use consde.log() messages in the JavaScript.
  4. D. Enable Debug Mode for Lightning components for the user.
  5. E. Use the browser's dev tools to debug the JavaScript.

Correct Answer: CDE

QUESTION 12

- (Exam Topic 1)
Which method should be used to convert a Date to a String in the current user's locale?

  1. A. Date.format
  2. B. Date.parse
  3. C. String.format
  4. D. Strin
  5. E. valueOf

Correct Answer: A

QUESTION 13

- (Exam Topic 1)
Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page?

  1. A. Standard Controller
  2. B. Standard List/Set Controller
  3. C. Controller Extensions
  4. D. Custom Controller

Correct Answer: A

QUESTION 14

- (Exam Topic 1)
Universal Containers implements a private sharing model for the Convention_Attendence_c custom object. As part of a new quality assurance effort, the company created an Event Reviewer___c user lookup field on the object. Management wants the event reviewer to automatically
gain Read/write access to every record they are assigned to.
What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?

  1. A. Create an After Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.
  2. B. Create a Before Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.
  3. C. Create a criteria-based sharing rule on the Convention Attendee custom object to share the records the a group of Event Reviewers.
  4. D. Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers.

Correct Answer: B

QUESTION 15

- (Exam Topic 3)
A developer is developing a reusable Aura component that will reside on an sObject Lightning page with the following HTML snippet:
Caura: component implements-“forcethaaRecordid, flexipage:availableForAllPageTypes”>

Hello!


How can the component’s controller get the context of the Lightning page that the sobject is an without requiring additional best coverage?

  1. A. Use the getSObjectType () method in an Apex class
  2. B. Create a design attribute and configure via App Builder
  3. C. Set the object type as a component attribute.
  4. D. Add force:hasSobjectName to the implements attribute

Correct Answer: D

Page 4 of 35

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