Last Updated On : 18-Nov-2026


Salesforce Platform Developer - Plat-Dev-201 Practice Test

Prepare with our free Salesforce Platform Developer - Plat-Dev-201 sample questions and pass with confidence. Our Salesforce-Platform-Developer practice test is designed to help you succeed on exam day.

184 Questions
Salesforce 2026

Which two settings must be defined in order to update a record of a junction object? Choose 2 answers

A. Read access on the primary relationship

B. Read/Write access on the secondary relationship

C. Read/Write access on the primary relationship

D. Read/Write access on the junction object

C.   Read/Write access on the primary relationship
D.   Read/Write access on the junction object

Explanation:

A junction object in Salesforce connects two parent objects in a many-to-many relationship. When updating records in a junction object, appropriate permissions must be set for the related records.

Read/Write access on the primary relationship is required because the junction object maintains a connection to this parent. If the user lacks write access, they cannot modify relationship links.

Read/Write access on the junction object is essential since updates are being made directly to the junction object's records. Without this, modifications would not be permitted.

Analyzing the incorrect choices:

A. Read access on the primary relationship – Read access alone is insufficient; write permissions are needed for updates.
B. Read/Write access on the secondary relationship – While this may be useful, updating the junction object itself primarily depends on permissions for the junction and primary relationship.

Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records.
Which Visualforce feature supports this requirement?

A. Option A

B. Option B

C. Option C

D. Option D

B.   Option B

Explanation:

To create a list button that opens a Visualforce page and allows editing of multiple records, you must use:

A Custom List Controller,

With the recordSetVar attribute on the tag.
This setup enables the Visualforce page to access multiple selected records from a list view.

A custom Visualforce controller calls the ApexPages,addMessage () method, but no messages are rendering on the page. Which component should be added to the Visualforce page to display the message?

A.

B.

C.

D.

A.   

Explanation:

When a custom Visualforce controller uses ApexPages.addMessage() to add messages (like success or error messages), those messages won’t show up on the page unless you add a special component to display them. Let’s look at why apex:pageMessages is the right choice:

What apex:pageMessages Does:
This component is designed to show all the messages added by ApexPages.addMessage() on the page. It automatically displays any success, error, warning, or info messages that the controller sends. Since the messages aren’t showing now, adding this component will make them visible.

Why It Fits:
The question says the controller is calling ApexPages.addMessage(), but no messages are rendering. This happens because the Visualforce page needs a way to display those messages, and apex:pageMessages is the standard way to do that. Without it, the messages are created but have nowhere to appear.

Other Options (Not Shown but Implied):
You might wonder about other components, like apex:outputText or → apex:outputText is for showing plain text, not dynamic messages from the controller.
→ apex:pageMessage shows a single message and needs specific settings, which isn’t as flexible as apex:pageMessages for handling multiple messages.
→ Since the image shows apex:pageMessages, it’s the correct and simplest solution for displaying all messages added by the controller.

Why apex:pageMessages ?
Adding apex:pageMessages to the Visualforce page will catch all the messages the controller is trying to send and display them nicely for the user. It’s easy to use and doesn’t need extra setup, which makes it a great fit for this problem.

Example Idea (No Code)
Imagine the controller says, “Hey, the save worked!” using ApexPages.addMessage(). Without apex:pageMessages on the page, that message stays hidden. Adding apex:pageMessages is like adding a sign that says, “Look here for messages!” and the success message will show up for the user to see.

Reference:
Salesforce Documentation: apex:pageMessages (explains how to use this component to display messages).

Summary:
The developer should add the component to the Visualforce page. This will display the messages added by the ApexPages.addMessage() method in the custom controller.

Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object to store the support representative name. What is the best solution to assign the case to the appropriate support representative?

A. Use a trigger an the Case object.

B. Use a formula field on the case object.

C. Use a validation rule on the Case object.

D. Use an Assignment Flow element.

D.   Use an Assignment Flow element.

Explanation:

Flows are powerful declarative tools that can evaluate conditions (like Case Origin) and assign values (such as setting the support rep field). This is the best and most maintainable approach for this use case.

Why the other options are not suitable:

A. Use a trigger on the Case object.
Triggers are more complex and should be used only when declarative tools like Flow can’t handle the logic.

B. Use a formula field on the Case object.
Formula fields are read-only and cannot update or assign values—they just display calculated results.

C. Use a validation rule on the Case object.
Validation rules are used to enforce data quality, not to assign or update fields automatically.

Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce implementation. What are two characteristics of declarative development over programmatic customization? Choose 2 answers

A. Declarative code logic does not require maintenance or review.

B. Declarative development has higher design limits and query limits.

C. Declarative development can be done using the setup menu.

D. Declarative development does not require Apex test classes.

C.   Declarative development can be done using the setup menu.
D.   Declarative development does not require Apex test classes.

Explanation:

Declarative development uses point-and-click tools, while programmatic uses code. Key differences include setup, limits, and testing.

Correct Answers:

C. Declarative development can be done using the setup menu.
→ Configured via clicks (no code) in Salesforce Setup (e.g., Flows, Validation Rules).

D. Declarative development does not require Apex test classes.
→ Unlike Apex, no test coverage needed for deployment.

Why Others Are Wrong?

A: Declarative logic still requires maintenance (e.g., updates when fields change).
B: Declarative tools often have lower limits (e.g., Flow transaction limits).

Salesforce-Platform-Developer Exam Questions - Home Previous
Page 6 out of 37 Pages