Q1
In Salesforce Security Model, if OWD (Organization-Wide Defaults) is Public Read Only, can a Permission Set or Sharing Rule restrict a user from seeing records?
NEVER! Salesforce sharing is strictly additive (starts locked-down at OWD and opens upward via Role Hierarchy, Sharing Rules, Manual Sharing, Teams). You can NEVER restrict access below OWD—always set OWD as restrictive as your tightest user requires (Private), then open upward.
Q2
What is the critical difference between Profiles vs Permission Sets / Permission Set Groups—and why is Salesforce retiring broad Profile permissions?
Every user gets exactly ONE Profile (best kept minimal for login hours, IP ranges, app defaults), while modular Permission Sets and Permission Set Groups (with Muting Permission Sets!) grant additive object/field access cleanly across personas without cloning 40 bloated Profiles.
Q3
When building relationships between Objects, why can picking Master-Detail instead of Lookup break flexibility—yet unlock Roll-Up Summary Fields?
Master-Detail enforces cascading delete, inherits parent sharing security automatically, makes child Owner disappear, and unlocks native Roll-Up Summary fields (SUM/COUNT/MAX). You cannot convert Lookup -> Master-Detail directly if ANY existing child rows lack a populated parent value!
Q4
In Salesforce Flow, when should you build a Before-Save (`Fast Field Updates`) Record-Triggered Flow vs After-Save (`Actions & Related Records`)?
When updating fields on the *triggering record itself*, ALWAYS choose Before-Save—it runs ~10x faster inside the database pre-commit phase without firing extra recursive DML saves! Reserve After-Save strictly for updating related child/parent records, creating tasks, or sending emails/callouts.
Q5
Why does placing Get Records or Update Records elements INSIDE a Flow `Loop` risk hitting Salesforce Governor Limits (`Too many SOQL queries: 101` / `151 DML`)?
Processing 150 records one-by-one inside a Loop executes 150 separate SOQL/DML calls, instantly crashing the transaction! Collect updated record variables inside an Assignment collection inside the loop, then execute ONE single bulk Update Records *outside after the loop*.
Q6
What happens in Salesforce Order of Execution if a Validation Rule runs relative to Before-Save Flows vs Roll-Up Summaries?
System validation (required fields/formats) -> Before-Save Flows -> Before Apex Triggers -> Custom Validation Rules -> Save to DB (no commit) -> After Triggers -> Assignment/Auto-Response/Workflow -> After-Save Flows -> Roll-Up Summaries -> Final DB Commit. Thus Before-Save Flows can sanitize a field right BEFORE Validation Rules reject it!
Q7
Why does Dynamic Forms on Lightning Record Pages eliminate maintaining 6 separate Page Layouts per Record Type?
Dynamic Forms lets admins set per-field visibility filters directly inside Lightning App Builder (Show Discount % ONLY if Profile = Sales Manager AND Amount > 50,000), replacing cluttered cloned Page Layouts.
Q8
How do Cross-Object Formula Fields vs Validation Rules behave regarding $RecordType or deleted parent lookups?
Formulas evaluate dynamically on read without firing database triggers or modifying LastModifiedDate, whereas Roll-Up summaries or automation update stored fields on write.
Q9
In Salesforce Reports, why does a Joined Report vs Custom Report Type (`with or without` / Left Outer Join) solve missing parent records?
Standard 'Accounts with Opportunities' hides Accounts that have ZERO deals! Building a Custom Report Type (Accounts with or without Opportunities) surfaces untouched Accounts alongside pipeline metrics cleanly.
Q10
What breaks when deploying Change Sets containing a Flow without including newly referenced Custom Fields or Email Templates?
Change Sets validate dependencies strictly on upload/deploy; omitting referenced fields/permission sets fails validation, and deployed Flows land Inactive in Production unless activated manually (or deployed active via DevOps Center/CLI settings).