Free PDII – Salesforce Certified Platform Developer II (PDII) Practice Test Question

Free demo downloads

Loading demo links...

Showing 4–6 of 20 questions

Question 4

Which two scenarios require an Apex method to be called imperatively from a Lightning web component?

Choose 2 answers

Select all that apply, then click Submit answer.

  • ○

    Calling a method that makes a web service callout

  • ○

    Calling a method that is not annotated with cacheable=true

  • ○

    Calling a method with the click of a button

  • ○

    Calling a method that is external to the main controller for the Lightning web component

Question 5

Which three approaches should a developer implement to obtain the best performance for data retrieval when building a Lightning web component? (Choose three.)

Select all that apply, then click Submit answer.

  • ○

    Use (Cacheable=true) whenever possible.

  • ○

    Use the Lightning Data Service.

  • ○

    Use layoutTypes: [‘Full’] to display a set of fields.

  • ○

    Use lazy load for occasionally accessed data.

  • ○

    Use getRecordUi to obtain metadata.

Question 6

What are three reasons that a developer should write Jest tests for Lightning web components?

Choose 3 answers

Select all that apply, then click Submit answer.

  • ○

    To test basic user interaction

  • ○

    To verify that events fire when expected

  • ○

    To test how multiple components work together

  • ○

    To verify the DOM output of a component

  • ○

    To test a component's non-public properties