Free Plat-Dev-301 sample questions
Real questions from the Salesforce Certified Platform Developer II practice bank, with the correct answer and an explanation for each one. No junk, no filler.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 6 of 12 free sample questions.
A logistics company uses a custom object `Shipment__c` with a `Geolocation` compound field named `Delivery_Location__c`. A developer needs to write an Apex trigger to identify shipments within a 10-mile radius of a warehouse. Which consideration is critical when working with this compound field in Apex?
A developer is architecting a solution that requires storing application configuration mappings that map external system codes to internal Salesforce record types. These mappings will be read frequently by Apex triggers but updated rarely. The mappings must be deployable via Metadata API and accessible in test classes without `SeeAllData=true`. Which solution is optimal?
A retail organization uses an external ERP system that pushes inventory updates to Salesforce nightly. The integration uses the `Upsert` operation on the `Product2` object. The ERP uses a composite key (Manufacturer Code + SKU) to identify products. Salesforce has a custom field `ERP_Key__c` marked as an External ID. The integration team reports that some upserts are failing with duplicate value errors on `ERP_Key__c` even though the logic seems correct. What is the most likely cause?
A developer needs to localize error messages generated in Apex for a custom component. The org supports English, French, and Spanish. The error messages must be managed by the admin team without code deployments. Which approach follows best practices?
### CASE STUDY: Order of Execution Challenge A large enterprise has a complex automation setup on the `Case` object. The following automations are active: 1. **Before Insert Trigger**: Validates the `Origin` field and sets a default `Priority`. 2. **After Insert Trigger**: Creates a related `Task` for the case owner. 3. **Workflow Rule**: Updates the `Status` field to 'New' if it is null. This field update creates a re-entrant scenario (it re-evaluates triggers). 4. **Process Builder**: Posts to Chatter when a Case is created. A developer observes that when a Case is inserted via the API, the **Before Insert Trigger** is executing TWICE. Based on the Salesforce Order of Execution, what is the specific cause of this double execution?
6 more free samples are waiting
Create a free account to unlock the whole Plat-Dev-301 sample bank, or get full access to all 129 practice questions in the simulator.