Salesforce Certified Platform Administrator II Practice Questions

Salesforce Certified Platform Administrator II exam preparation

Salesforce Certified Platform Administrator II practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 105 minutes.

Salesforce Certified Platform Administrator II free question 8 / 10 · Domain 6: Environment Management and Deployment

The custom object Equipment Inspection exists in production with its organization-wide default set to Public Read/Write. In a sandbox, an administrator changes the default to Private and creates one owner-based sharing rule and one criteria-based sharing rule for the object. These changes are going to production in change sets. Which statement matches Salesforce Help?

  1. An owner-based sharing rule can go in the same change set as the sharing model change, but the criteria-based sharing rule has to be released separately
  2. Both the owner-based and the criteria-based sharing rule can go in the same change set as the sharing model change, so a single deployment is enough
  3. A criteria-based sharing rule can go in the same change set as the sharing model change, but the owner-based sharing rule has to be released separately
  4. Neither kind of sharing rule can be sent together with a sharing model change, so both rules are deployed afterward in a separate release
Show the answer and explanation

Answer: C

Why this is correct
The Sharing section of "Special Behavior in Deployments" says that simultaneously updating the sharingModel field for an object and adding a new owner-based sharing rule isn't supported. A criteria-based or guest user sharing rule, however, can be deployed together with a sharingModel change using change set components. The same section adds that you can add an owner-based sharing rule while the overall default is still public and then update the sharingModel, which results in a single sharing recalculation. In this scenario production is still Public Read/Write, so the owner-based rule can be deployed first, followed by the default change and the criteria-based rule.

Why the other options are wrong
"An owner-based sharing rule can go in the same change set as the sharing model change, but the criteria-based sharing rule has to be released separately" … The treatment is reversed. The combination Help calls unsupported is a sharingModel change plus a new owner-based rule. The criteria-based rule is the one that Help says can travel in the same deployment as the sharingModel change.
"Both the owner-based and the criteria-based sharing rule can go in the same change set as the sharing model change, so a single deployment is enough" … Putting the owner-based rule and the sharingModel change in one change set is exactly the combination Help lists as unsupported. Only the criteria-based and guest user rules can be bundled with the sharingModel change.
"Neither kind of sharing rule can be sent together with a sharing model change, so both rules are deployed afterward in a separate release" … Help says a criteria-based sharing rule and a sharingModel change can be deployed together. Splitting both rules off is unnecessary. Only the owner-based rule needs its own release.

Key point
When a custom object is created, its sharingModel is updated, and a new owner-based rule is added all at once, Help calls for three separate deployments: first the object, then the updated sharingModel, then the owner-based rule. The same restriction appears in the Metadata API Developer Guide (Summer ’22) under "Special Behavior in Metadata API Deployments". When you plan a release that touches sharing, sort each rule into owner-based or criteria-based before you decide how many change sets you need.

Go to the Salesforce Certified Platform Administrator II practice app (10 free questions; purchase unlocks all questions)

See the full practice set