Plat-Dev-201 practice question 24 of 30
Which two settings must be defined In order to update a record of a junction object? Choose 2 answers
Full set: 204 questionsTo update a record in Salesforce, a user needs two levels of access: object-level permission and record-level access. First, the user's profile or permission set must grant "Edit" access to the junction object itself (Object-Level Security). Second, for a junction object (which is the detail in two master-detail relationships), record-level access is controlled by the master records. The primary master-detail relationship specifically controls ownership and sharing. Therefore, the user must have Read/Write access to the primary master record to be able to edit the associated junction object record.
A. While access to the secondary master is important, the primary master relationship dictates the sharing and ownership rules for the junction record, making its access critical for updates.
D. Read-only access on the primary master record is insufficient. To edit a child record in a master-detail relationship, the user requires Read/Write access to the parent.
Salesforce Security Guide, "Object-Level Security". This guide explains that users need "Edit" permission on an object's record type in their profile or permission set to update records of that object.
Salesforce Help, "Master-Detail Relationship Overview". This document states, "The owner of the master record implicitly owns the detail and subdetail records... Access to detail and subdetail records is driven by a user's access to the master record." This implies that to edit the detail (junction), you need edit access to the master.
Keep practicing
Take the free Plat-Dev-201 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other Plat-Dev-201 practice questions
- Question 1Which three steps allow a custom Scalable Vector Graphic (SVG) to be included in a Lightn…
- Question 2Which two statements are true about using the @testSetup annotation in an Apex test class…
- Question 3Managers at Universal Containers want to ensure that only decommissioned containers are a…
- Question 4Universal Containers has a Visualforce page that displays a table of every Container__c b…
- Question 5A developer is alerted to an issue with a custom Apex trigger that is causing records to …
- Question 6Which two operations affect the number of times a trigger can fire? Choose 2 answers
