PDI Exam Questions

Total 236 Questions

Last Updated Exam : 22-Nov-2024

Which two characteristics are true for Lightning Web Component custom events? (Choose 2 answers)


A. Data may be passed In the payload of a custom event using a wire decorated properties.


B. By default a custom event only propagates to its immediate container and to its immediate child component.


C. By default a custom event only propagates to it's immediate container.


D. Data may be passed in the payload of a custom event using a property called detail.





B.
  By default a custom event only propagates to its immediate container and to its immediate child component.

D.
  Data may be passed in the payload of a custom event using a property called detail.

Universal Containers has developed custom Apex code and Lightning Components in a Sandbox environment. They need to deploy the code and associated configurations to the Production environment. What is the recommended process for deploying the code and configurations to Production?


A. Use a change set to deploy the Apex code and Lightning Components.


B. Use the Force.com IDE to deploy the Apex code and Lightning Components.


C. Use the Ant Migration Tool to deploy the Apex code and Lightning Components.


D. Use Salesforce CLI to deploy the Apex code and Lightning Components.





D.
  Use Salesforce CLI to deploy the Apex code and Lightning Components.

Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?


A. @RemoteAction


B. @AureEnabled


C. @AureEnabled (cacheable=true)


D. @RemoteAction(|cacheable=true)





C.
  @AureEnabled (cacheable=true)

A custom picklist field, Food_Preference c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?


A. Set "Use the first value in the list as the default value" as True.


B. Set a validation rule to enforce a value is selected.


C. Mark the field as Required on the field definition.


D. Mark the field as Required on the object's page layout.





A.
  Set "Use the first value in the list as the default value" as True.

Universal Container is building a recruiting app with an Applicant object that stores information about an individual person that represents a job. Each application may apply for more than one job. What should a developer implement to represent that an applicant has applied for a job?


A. Master-detail field from Applicant to Job


B. Formula field on Applicant that references Job


C. Junction object between Applicant and Job


D. Lookup field from Applicant to Job





C.
  Junction object between Applicant and Job

Universal Hiring uses Salesforce to capture job applications. A salesforce administrator created two custom objects; Job c acting as the maste object, Job _Application c acting as the detail. Within the Job c object, a custom multi-select picklist, preferred Locations c, contains a list of approved states for the position. Each Job_Application c record relates to a Contact within the system through a master-detail relationship. Recruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred_Locations c field, within the Job_Application c record. Recruiters would like this value to be kept in sync if changes occur to the Contact's Mailing State. What is the recommended tool a developer should use to meet the business requirement?


A. Roll-up summary field


B. Apex trigger


C. Formula field


D. Record-triggered flow





D.
  Record-triggered flow

Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers


A. Upload the SVG as a static resource.


B. Import the static resource and provide a getter for it in JavaScript.


C. Reference the getter in the HTML template.


D. Reference the import in the HTML template.


E. Import the SVG as a content asset file.





A.
  Upload the SVG as a static resource.

B.
  Import the static resource and provide a getter for it in JavaScript.

C.
  Reference the getter in the HTML template.

What is the result of the following code snippet?


A. Accounts are inserted.


B. Account Is inserted.


C. 200 Accounts are inserted.


D. 201 Accounts are Inserted.





A.
  Accounts are inserted.

What should a developer use to fix a Lightning web component bug in a sandbox?


A. Developer Console


B. VS Code


C. Force.com IDE





B.
  VS Code

A developer migrated functionality from JavaScript Remoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data. What to do now?


A. The method must be decorated with (cacheable=true).


B. The method must be decorated with @AuraEnabled.


C. The method must return a JSON Object.


D. The method must return a String of a serialized JSON Array.





A.
  The method must be decorated with (cacheable=true).


Page 1 out of 24 Pages
Platform Developer I (SU24)