Salesforce Certified Platform Developer I Practice Questions
Prepare for Plat-Dev-201 with more than an answer.
Unlock the full exam and previous versions
- v1Salesforce Certified Platform Developer I 166 questions Current
- DEV-450Legacy Salesforce Certified Platform Developer I 169 questions Locked
- PDILegacy Salesforce Certified Platform Developer I 200 questions Locked
- Exam fee
- $200 USD
- Level
- Intermediate
- Valid for
- Maintained through annual release maintenance modules
Domains covered on the exam 4
- Developer Fundamentals27%
- Process Automation and Logic28%
- User Interface25%
- Testing, Debugging, and Deployment20%
- 1
A developer writes a query to find 'Acme' across Name, Email, and Phone fields in Lead and Contact objects. Which language should be used?
Show answer details
Correct answer: B
SOSL is designed for searching text across multiple objects and fields simultaneously. SOQL is better for querying specific relationships when the object is known.
- 2
A developer needs to query all Contacts associated with an Account. The query should return the Account Name and a list of related Contact Last Names. Which SOQL query syntax is correct?
Show answer details
Correct answer: A
This is a standard Parent-to-Child relationship query. The subquery
(SELECT LastName FROM Contacts)uses the child relationship name (Contacts) to fetch related records. - 3
A developer needs to insert a list of 200 records. If one record fails validation, the developer wants the valid records to still be inserted, and the errors for the failed records to be logged. Which DML statement should be used?
Show answer details
Correct answer: C
The
Database.insertmethod with the second parameterallOrNoneset tofalseallows partial success. Valid records are committed, and errors are returned in theSaveResultarray for invalid ones. - 4
Universal Containers utilizes a strict multi-tenant environment. A developer is designing a complex Apex process that processes thousands of Opportunity records nightly. To ensure the logic does not monopolize shared resources and violate governor limits, which architectural pattern should be prioritized?
Show answer details
Correct answer: A
In a multi-tenant architecture, long-running processes on large data volumes must be broken down to avoid hitting CPU and heap limits. The Batchable interface allows the system to process records in chunks (batches), where each batch gets a fresh set of governor limits, ensuring fair resource usage.
- 5
A developer needs to store a Many-to-Many relationship between
Candidate__candPosition__c. The requirement dictates that if a Position is deleted, all associated application records linking it to Candidates should also be automatically deleted. However, deleting a Candidate should not delete the Position history. Which data model configuration satisfies this requirement?Show answer details
Correct answer: C
A Many-to-Many relationship is implemented using a junction object with two Master-Detail relationships. In a Master-Detail relationship, deleting a master record (Position) automatically deletes the detail records (Application). This fits the requirement perfectly. If Candidate is also a master, deleting a Candidate would also delete the Application, but the prompt's condition regarding Position deletion is the primary constraint to satisfy cascade delete.
- 6
Cloud Kicks is integrating an external ERP system with Salesforce. The ERP system sends nightly upserts of Product records. To prevent duplicate records and ensure efficient updates without querying Salesforce first, which field type should the developer configure on the Product object to act as a unique identifier for the upsert operation?
Show answer details
Correct answer: C
An External ID field allows Salesforce to identify records based on values from an external system. Marking it as 'Unique' ensures no duplicates are created. The upsert operation uses this field to match existing records (update) or create new ones if no match is found.
