Security design

The sharing model, object and field security with permission set groups, external and guest access, encryption and masking, monitoring and audit, secure code, sharing at scale, and security architecture.

0%
8 concepts
10 questions

Start here: Security design

Plain-language orientation before the detail.

What this track covers

Security questions appear in every architect interview, usually hidden inside another scenario. This track covers the record sharing model, object and field security with permission set groups, external and guest access, data protection (Shield Platform Encryption, masking), monitoring and audit, secure code, sharing at scale (skew and recalculation), and security architecture and governance.

An analogy: a secure office building

Office buildingSalesforce security
Locked doors by defaultOrg-wide defaults (most restrictive baseline)
Managers' master keys for their teams' officesRole hierarchy
Standing access arrangements between departmentsSharing rules, teams, territories
Job badges that open specific equipment roomsPermission sets and groups (objects, fields, system permissions)
Visitors' passes for the lobby onlyGuest users and external users
Safes with your own keyEncryption with key management
CCTV and the guard at the exitEvent Monitoring and Transaction Security

If you remember one thing: lock everything by default, open access in the fewest, simplest layers, and be able to prove who did what.

Same idea, explained to four audiences

AudienceSay it like this
Business sponsor"People see exactly what their job needs, sensitive data is protected and every important action is recorded."
Security team"Least-privilege personas, private defaults, encryption with our keys where required, masked sandboxes, and event logs streamed to the SIEM with automated policies."
Developer"Code runs in user mode with sharing, uses bind variables and Named Credentials, and guest-accessible methods are minimal and reviewed."
CTA review board"The access model follows data classification and a threat model, scales without skew, and each control maps to a risk with evidence."

How to study this track

  1. Draw the sharing layers from memory and design a model for a scenario.
  2. Know profiles vs permission sets vs groups and the persona approach.
  3. Prepare answers for guest security, encryption choices and audit questions.
  4. Recognise skew and recalculation problems in LDV scenarios.

Misconceptions interviewers like to test

  • "with sharing makes Apex secure." It covers record sharing only; FLS and CRUD need user mode.
  • "Encryption controls who can see data." Authorised users see decrypted values; permissions still decide access.
  • "Restriction rules work everywhere." They don't support every object (not Case).

Concept map

How the building blocks fit together. Select a concept to open it.

Concepts

Grouped by theme.

Interview prep · 10 questions

Scenario · 4Conceptual · 2Design · 2Trade-off · 1CTA board · 1★ 3 must-prepare