Plat-Dev-201 Sample Questions & Answers
Apex control flow and declarative process automation take the top share, plus the architecture tenants share and how data gets modeled, custom UI work paired with Agentforce, and how you test, debug and deploy changes.
Launch the full Plat-Dev-201 simulator →Showing 6 of 12 free samples.
- Question 1Intermediate
Developer Fundamentals · Declarative vs. Programmatic Customizations
A developer is tasked with calculating the 'Total Sales Amount' on the Account object by aggregating the 'Amount' field from all related Closed Won Opportunities. The aggregation must happen in real-time. Which solution is most appropriate given the relationship type between Account and Opportunity?
Show answer & explanation
Correct answer: D
Account and Opportunity have a standard relationship that behaves like a Master-Detail for Roll-up Summary purposes. Salesforce allows creating Roll-up Summary fields on Account to aggregate Opportunity data natively without code.
- Question 2Advanced
Developer Fundamentals · Agentforce for Developers
Agentforce is being implemented to assist service agents. A developer needs to expose a complex Apex calculation logic to an Agentforce Service Agent so the agent can invoke it during a conversation. Which annotation must be applied to the Apex method?
Show answer & explanation
Correct answer: D
Agentforce agents (and Flows) interact with Apex via methods annotated with @InvocableMethod. This exposes the method as an invocable action that the Agent can call.
- Question 3IntermediateSelect 2
Developer Fundamentals · Declarative vs. Programmatic Customizations
Which TWO scenarios would require a developer to use Apex instead of declarative tools (like Flow or Validation Rules)? (Select TWO)
Show answer & explanation
Correct answers: B, D
Declarative tools cannot create custom REST endpoints; this requires an Apex class with @RestResource annotation.
While Flow has loops, complex collection manipulation (like Maps/Sets for efficient de-duplication) is significantly more performant and capable in Apex.
- Question 4Beginner
Developer Fundamentals · MVC Architecture
A developer is designing a Visualforce page using the Model-View-Controller (MVC) architecture. Which component represents the 'Controller' in this context?
Show answer & explanation
Correct answer: B
In Salesforce MVC, the Apex class (Standard or Custom Controller) acts as the Controller, handling the business logic and data manipulation. The Visualforce page is the View, and the sObjects are the Model.
- Question 5Advanced
Developer Fundamentals · Data Modeling
Universal Containers has a custom object
Project__cand a custom objectTask__c. They have a Lookup relationship. A developer wants to ensure that when a Project is deleted, all its Tasks are also deleted. However, they cannot change the relationship to Master-Detail becauseTask__calready has a Master-Detail relationship with another object. What is the best solution?Show answer & explanation
Correct answer: D
Since a record can only have two Master-Detail relationships and one is already used, converting the Lookup isn't an option if the limit is reached or if the business logic requires the loose coupling of a Lookup. To mimic Cascade Delete on a Lookup, a Trigger on the parent (Project) is required to manually delete the children (Tasks).
- Question 6Beginner
Developer Fundamentals · Data Modeling
What is the primary benefit of using Schema Builder over the standard Object Manager when designing a data model?
Show answer & explanation
Correct answer: D
Schema Builder allows developers to visualize the data model, create objects, and fields via drag-and-drop, and see relationships graphically, which is not possible in the list-based Object Manager.
Ready for the real thing?
The full Plat-Dev-201 simulator has every exam-style question, timed mode, and instant scoring.