01. Access to a sensitive object is granted to auditors through a permission set that includes View All on that object. An architect wants an Apex test that proves an auditor gains the access while a regular user does not.
How should the test establish the auditor's elevated access?
a) Query the permission set in the org and assert that it contains the View All object permission, which confirms auditors will have the access.
b) Give the test user a profile that already includes View All on the object, because a profile and a permission set grant the access the same way and the assignment step can be skipped to keep the test simple.
c) Create a test user, assign the permission set to that user with a PermissionSetAssignment record inside the test, and then verify the access within a System.runAs() block for that user.
d) Assert that the running test user can see the records, since tests execute with elevated access by default.
02. Universal Containers is launching a self-service portal for several hundred thousand customers using the high-volume Customer Community license. Each customer must see the cases that belong to their own account. The architect's first instinct is to build an ownership-based sharing rule and lean on the role hierarchy, as is done for internal users.
Why will that approach not work, and what should be used instead?
a) It fails because customers need the Customer Community Plus license, which is the only external license that can ever see Case records.
b) High-volume community users have no role, so the role hierarchy and ownership-based sharing rules do not apply to them; their account's records must be granted with a sharing set.
c) It fails because external users cannot see cases at all without a guest user sharing rule.
d) The approach fails only because the external org-wide default has not been set to Private yet; once it is, the ownership-based rule and the role hierarchy will grant each customer access to their own account's cases.
03. A manufacturer is onboarding external resellers who must create and own Opportunity records, and each reseller company's manager must be able to see the opportunities worked by their own sales reps. The architect is choosing the external license that supports this.
Which license supports these requirements?
a) Partner Community, because it provides access to CRM objects like Opportunity and an external role hierarchy so a partner manager can see records owned by the reps beneath them.
b) Customer Community Plus, because it includes the full external sales hierarchy for selling partners.
c) A standard internal Salesforce license for each reseller, since only an internal license grants the Opportunity object and the hierarchy managers need.
d) Customer Community, because its sharing sets give each reseller manager visibility into the reps' opportunities.
04. Universal Containers needs a per-user feature flag that administrators can toggle in Setup without a deployment. Apex running in validation logic must read each user's flag value without issuing a SOQL query or consuming query rows.
Which storage mechanism meets all of these needs?
a) A Big Object, which stores a flag per user at scale and is queried asynchronously without query limits.
b) A hierarchy custom setting, which supports per-profile and per-user values editable in Setup and is read in Apex through cached getInstance methods with no SOQL query.
c) A custom metadata type, because its records are cached and read in Apex without counting against SOQL query limits, and a separate record can be created for each user so that validation logic resolves a different flag value per running user from Setup.
d) A protected custom setting in a managed package, so that administrators cannot accidentally change the flags.
05. A company is migrating ten million records into Salesforce over one weekend and, in the same window, moving thousands of users into a newly designed role hierarchy. The org-wide defaults are Private. During a rehearsal the load slowed to a crawl because sharing was being recalculated continuously as records and role changes landed together.
Which two techniques should the architect use to minimize sharing-recalculation cost during this one-time event?
(Choose 2 answers)
a) Disable the role hierarchy for the standard objects during the load.
b) Turn on Defer Sharing Calculations so recalculation is suspended during the load, then resume and run a single recalculation once the data is in place.
c) Load every record under a single administrator account first and reassign the real owners in a second pass.
d) Put each record's final owner and role in place before the bulk insert so access is calculated once for the finished arrangement rather than repeatedly as ownership shifts.
e) Temporarily change the org-wide defaults on the affected objects to Public Read/Write for the weekend and switch them back to Private once the migration and the role moves are complete.
06. Universal Containers keeps years of historical transaction records in a Big Object. Auditors must be able to read all of these records, but a sensitive account-number field on the Big Object must stay hidden from those auditors.
Which two statements are true about delivering this?
(Choose 2 answers)
a) Read access to a Big Object's records comes only from object permissions on a profile or permission set. Big Objects have no OWD, hierarchy, or sharing rules.
b) Field-level security on the account-number field can hide it from the auditors while leaving the rest of the record readable.
c) A 'View All' object permission on the Big Object overrides field-level security and reveals the account number.
d) Setting the Big Object's OWD to Private limits auditors to records they own.
e) An ownership-based sharing rule can grant the auditors access to just the subset of historical transaction records they are responsible for reviewing, while continuing to hide all of the records outside their review scope.
07. An organization has built dozens of public groups, many of them nested several groups deep, and uses them throughout its sharing rules. Adding or removing a single user from a low-level group now takes a long time to process, and the group-maintenance tables have grown very large.
Which two practices would reduce this group-membership overhead?
(Choose 2 answers)
a) Raise the org-wide defaults so the groups grant access to fewer records and therefore recalculate faster.
b) Replace the public groups with account teams.
c) Convert every public group into a criteria-based sharing rule that lists the individual usernames of its members so that group membership no longer has to be maintained at all.
d) Reduce unnecessary group nesting so a membership change does not have to cascade through several layers of parent groups.
e) Where the population is simply a role and everyone below it, share to Roles and Subordinates instead of maintaining a parallel group that duplicates the hierarchy.
08. Universal Containers encrypted the Region__c field on a custom object with Shield Platform Encryption to satisfy a compliance mandate. Regional support teams still need records shared to them automatically based on each record’s region.
How should the architect deliver the region-based sharing given the encryption?
a) Convert the encrypted field to a formula field so that it becomes eligible as a sharing-rule filter.
b) Keep the criteria-based rule on the encrypted field, since sharing rules evaluate the decrypted value when they run.
c) Grant the teams the View Encrypted Data permission so the encrypted field becomes available to the sharing-rule filter.
d) Store the region in a separate, non-encrypted code field and base the criteria-based sharing rule on that field.
09. A data load assigned ownership of several million Lead records to a single integration user, and the Lead org-wide default is Private. Sales users receive access through ownership-based sharing rules keyed on that owner. Users now report slow record saves and sharing recalculations that run for hours.
What is the most likely cause, and how should the architect remedy it?
a) Convert the ownership-based sharing rules to criteria-based rules, which are exempt from sharing recalculation at scale.
b) The role hierarchy is too deep, so flattening cosmetic levels of the hierarchy will remove the recalculation cost.
c) Concentrating millions of records under one user is ownership skew and bloats that owner’s sharing and role-maintenance processing. Distribute ownership across many users to keep sharing recalculations manageable.
d) The Lead org-wide default should be raised to Public Read/Write so that no sharing rows are needed and recalculation stops.
10. A developer verified a new sharing configuration by logging in as themselves and confirming the affected records were visible. The developer holds the System Administrator profile. After release, restricted users reported they could not see records they were supposed to see.
What explains why the developer's check did not catch the problem?
a) The developer forgot to refresh the page after saving the sharing rule.
b) Sharing rules do not take effect until the nightly sharing recalculation runs, so the restricted users would have gained access the next day without any change.
c) The records were cached from a previous session, so the developer saw a stale view that no longer reflected the sharing configuration that was deployed to the restricted users.
d) The System Administrator profile has View All Data, which bypasses the sharing model, so testing as that profile cannot reveal whether restricted users actually have the intended access.