| Exam Code/Number: | PDIIJoin the discussion |
| Exam Name: | Platform Developer II |
| Certification: | Salesforce |
| Question Number: | 163 |
| Publish Date: | Oct 16, 2026 |
|
Rating
100%
|
|
A developer is developing a reusable Aura component that will reside on an sObject Lightning page with the following HTML snippet:
HTML
<aura:component implements="force:hasRecordId,flexipage:availableForAllPageTypes">
<div>Hello!</div>
</aura:component>
How can the component's controller get the context of the Lightning page that the sObject is on without requiring additional test coverage?
A developer is tasked with creating a Lightning web component that is responsive on various devices. Which two components should help accomplish this goal?
A developer created a Lightning web component that uses a lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time about their input when trying to save a Lead record. Which best practice should the developer use to perform the validations on more than one field, thus allowing more than one error message to be displayed simultaneously?
A developer is writing a Lightning Web component that queries accounts in the system and presents a lightning-datatable with the results. The users want to be able to filter the results based on up to five fields, that will vary according to their selections when running the page. Which feature of Apex code is required to facilitate this solution?
A company uses Salesforce to sell products to customers. They also have an external product information management (PIM) system that is the system of record for products. Whenever a product is created or updated in the PIM, a product must be created or updated as a Product2 record in Salesforce and a PricebookEntry record must be created or updated automatically. The PricebookEntry should be created in a Pricebook2 that is specified in a custom setting. What should the developer use to satisfy these requirements?
Salesforce.PDII.v2026-09-29.q149
Sep 29, 2026
Salesforce.PDII.v2024-10-05.q125
Oct 05, 2024
Salesforce.PDII.v2022-12-23.q113
Dec 23, 2022
Salesforce.PDII.v2022-06-15.q212
Jun 15, 2022