SEC-Q09Scenario IntermediateSecurity design#security#regulated

A regulator requires that national ID numbers are encrypted and that developers never see real customer data. What's your approach?

Your confidence:Not rated

Model answer

  • Encrypt National_Id__c with Shield Platform Encryption; use deterministic encryption if staff must search or match on it, otherwise probabilistic.
  • Key management: tenant secret, BYOK or cache-only keys per the regulator's expectations; documented rotation.
  • Test impact on duplicate rules, reports, integrations and search before enabling in production.
  • Access: FLS so only roles that need the number can see it; monitor access with Event Monitoring where licensed.
  • Sandboxes: run Data Mask after every full or partial copy refresh to anonymise personal data; restrict who can refresh and access full sandboxes.
  • Evidence: encryption policy, key management records, masking run logs.

โœ” Key points to hit

โœ– Red-flag answers

  • Relying only on FLS
  • Masking manually with scripts that miss fields

โ†ช Follow-ups

Does masking affect developer sandboxes?

Developer sandboxes don't copy data, but partial and full copies do. Mask those, or seed developer environments with synthetic data.

What happens to integrations reading the encrypted field?

Authorised integration users receive decrypted values over TLS; restrict which integrations can read it with FLS.