Last Update 8 hours ago Total Questions : 161
The Salesforce Certified Platform Developer II ( Plat-Dev-301 ) content is now fully updated, with all current exam questions added 8 hours ago. Deciding to include PDII practice exam questions in your study plan goes far beyond basic test preparation.
You'll find that our PDII exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these PDII sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any Salesforce Certified Platform Developer II ( Plat-Dev-301 ) practice test comfortably within the allotted time.
A developer needs a Lightning web component to display in one column on phones and two columns on tablets/desktops. Which should the developer add to the code?
A developer is asked to find a way to store secret data with an ability to specify which profiles and users can access which secrets. What should be used to store this data?
A developer is tasked with ensuring that email addresses entered into the system for Contacts and for a custom object called Survey_Response__c do not belong to a list of blocked domains. The list of blocked domains is stored in a custom object for ease of maintenance by users. The Survey_Response__c object is populated via a custom Visualforce page. What is the optimal way to implement this?
A business requires that every parent record must have a child record. A developer writes an Apex method with two DML statements to insert a parent record and a child record. A validation rule blocks child records from being created. The method uses a try/catch block to handle the DML exception. What should the developer do to ensure the parent always has a child record?
A company wants to run different logic based on an Opportunity ' s record type. Which code segment handles this request and follows best practices?
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?
A developer wants to write a generic Apex method that will compare the Salesforce Name field between any two object records. For example, to compare the Name field of an Account and an Opportunity; or the Name of an Account and a Contact. Assuming the Name field exists, how should the developer do this? 4
Refer to the code snippet below:
Java
public static void updateCreditMemo(String customerId, Decimal newAmount){
List < Credit_Memo__c > toUpdate = new List < Credit_Memo__c > ();
for(Credit_Memo__c creditMemo : [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId LIMIT 50]) {
creditMemo.Amount__c = newAmount;
toUpdate.add(creditMemo);
}
Database.update(toUpdate,false);
}
A custom object called Credit_Memo__c exists in a Salesforce environment. As part of a new feature development, the developer needs to ensure race conditions are prevented when a set of records are mod 1 ified within an Apex transaction. In the preceding Apex code, how can the developer alter the que 2 ry statement to use SOQL features to prevent race conditions within a tr 3 ansaction? 4
What are three reasons that a developer should write Jest tests for Lightning web components?
Universal Containers (UC) has enabled the translation workbench and has translated picklist values. UC has a custom multi-select picklist field, Products__c, on the Account object that allows sales reps to specify which of UC ' s products an Account already has. A developer is tasked with writing an Apex method that retrieves Account records, including the Products__c field. What should the developer do to ensure the value of Products__c is in the current user ' s language? 40
