PDI Platform Developer I (PDI)

Loading demo links...

Showing 4–6 of 15 questions

Question 4

A developer needs to create a custom Interface in Apex.

Which three considerations must the developer keep in mind while developing the Apex Interface' Choose 3 answers

Select all that apply, then click Submit answer.

  • The Apex class must be declared using the interface keyword.

  • A method implementation can be defined within the Apex Interface.

  • The Apex interface class access modifier can be set to Private, Public, or Global.

  • A method defined In an Apex Interface cannot have an access modifier.

  • New methods can be added to a public interface within a released package.


Question 5

A developer must create an Apex class, contactcontroller, that a Lightning component can

use to search for Contact records. User of the Lightning component should only be able to search Contact records to which they have access. Which two will restrict the records correctly?

Select all that apply, then click Submit answer.

  • public class ContactController

  • public with sharing class ContactController

  • public without sharing class ContactController

  • public inherited sharing class ContactController


Question 6

Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers

Select all that apply, then click Submit answer.

  • $Lightning.createComponent

    B. <apex:slds/>

    C. $Lightning.useComponent

    D. $Lightning.use

  • <apex:includeLightning/>