Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Plat-Arch-205 Exam - Topic 2 Question 6 Discussion

Posted by Derick on Sep 29, 2026 at 01:11 PM

Universal Containers (UC) uses a custom Lightning component with an Apex class to display shipment information (custom object, Private organization-wide default). UC sales managers are complaining about two important points: Shipment records that belong to their teams can be seen by other users.- Shipment amount should be visible only by managers, but sales reps are able to view it. What should the the development team use to avoid these problems?

Suggested Answer: B

Comprehensive and Detailed 150 to 250 words of Explanation From Platform Sharing and Visibility Architect/Course Guide/topics:

The valid runtime mechanism among the choices is declaring the Apex class with sharing so Salesforce evaluates record-level sharing when the class queries Shipment records. Because the Shipment OWD is Private, Apex that ignores sharing can expose records outside the user's intended visibility. The sensitive Shipment Amount introduces a second security layer: with sharing does not enforce object CRUD or Field-Level Security. The implementation must separately enforce field access, for example with user-mode operations, Security.stripInaccessible(), or valid Schema Describe checks. System.runAs() is useful for tests but does not secure production execution, and isShareable is not a valid Apex sharing keyword. The correct architecture therefore combines record-sharing enforcement with explicit CRUD/FLS enforcement instead of assuming one mechanism protects every layer. Study Guide reference: Permissions to Standard Objects, Custom Objects, and Fields - with sharing, Apex execution context, CRUD/FLS, user-mode operations, and secure Lightning/Apex architecture. The implementation should also be validated with representative users so effective permissions, sharing inheritance, and any cross-object access behave exactly as designed before production release.

===============


Get Premium Plat-Arch-205 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
6 comments · newest first
IS
Isadora 10 hours ago
I think A could work too, but B seems more reliable.
JA
Jacquelyne 6 days ago
Definitely go with B, With Sharing is the way to enforce those rules.
MA
Maia 11 days ago
I feel like the runAs method was more about testing user permissions rather than controlling visibility in production. It might not be the right choice here.
SC
Scarlet 16 days ago
This question reminds me of a practice scenario we did about controlling access to sensitive data. I think we might have used the isShareable keyword there, but I'm not confident.
ST
Stevie 21 days ago
I'm not entirely sure, but I think the With Sharing keyword is what we need to enforce the sharing rules for the shipment records.
RE
Renea 26 days ago
I remember we discussed the importance of using the right sharing settings in Apex classes during our study sessions.
0/2000 characters

Save Cancel