Hoppa till innehåll

Study guide

Det här innehållet är inte tillgängligt på ditt språk än.

Study guide for chapter 18 of the Securing Salesforce: Sharing and Visibility course. Read the seven modules first; this page helps you check what stuck.

About this study guide. It’s built only from this course’s own content and the published Salesforce exam guide’s list of objectives. It is never based on real exam questions, and it doesn’t claim to know what’s on the exam. If you’ve taken the exam, please don’t send me questions from it: the certification agreement forbids sharing them, and memorizing answers is the wrong way to become an architect anyway.

This chapter supports one objective: access controls for sensitive data, PCI, PII and HIPAA, in the exam section on permissions to objects and fields, 27% of the exam. Chapter 19 covers the monitoring side of the same objective. Encryption is only one of the controls, and the checklist below keeps it in its place.

Tick them off as you go. Each one links to where it’s taught.

What encryption at rest protects (supports OBJ-4)

  • I know encryption at rest protects stored data and backups from someone who gets them outside the platform, and that data in transit is protected by TLS, a separate control. (Where is the data encrypted?)
  • I know encryption doesn’t hide data from authenticated users: a user with access sees it decrypted; “encryption at rest is about logins, not permissions.” (Logins, not permissions)
  • I know masking and encryption solve different problems. (Logins, not permissions)
  • I know Salesforce’s order: define a threat model, classify data, encrypt only where necessary. (Start with the threat)

Classic Encryption (supports OBJ-4)

  • I know Classic Encryption is a custom field type, Text (Encrypted): up to 175 characters, 128-bit AES, included in the base license. (A field type, not a setting)
  • I know it masks the value (mask type and mask character), and only users with View Encrypted Data see it unmasked. (Masking)
  • I know what it gives up: not unique, external ID or default values; no filters, report criteria, search, formulas, workflow or lead conversion; existing fields can’t be converted. (What you give up)

Shield Platform Encryption (supports OBJ-4)

  • I know Shield is 256-bit AES, with HSM-based key derivation and the Manage Encryption Keys permission, for an additional fee. (Encryption Gen Two)
  • I know its two paths: field-level encryption (chosen, compatible fields; every key option; filtering only on deterministic fields; no sorting) and Database Encryption (Hyperforce; all fields, metadata and Apex; filtering and sorting kept; BYOK only), and that they can be layered. (Two paths)
  • I know Shield can also encrypt files and attachments, Chatter, search indexes and event bus data, each with its own keys. (More than fields)
  • I know Shield doesn’t mask. (No mask)
  • I know probabilistic is the default and can’t be filtered, and deterministic allows exact-match filtering. (Probabilistic or deterministic)

Keys (supports OBJ-4)

  • I know the data encryption key is derived from a tenant secret you control and a primary secret Salesforce maintains, made once per release. (Two keys)
  • I know the life of a key: generate, export, rotate, archive, destroy; an archived key decrypts old data but encrypts nothing new; a destroyed key makes its data unreadable unless an exported copy is imported. (Key hygiene)
  • I know the options for keeping the key yourself: Bring Your Own Key, External Key Management and the Cache-Only Key Service (not for Database Encryption). (Keeping the key yourself)

Turning it on (supports OBJ-4)

  • I know encrypted fields can’t be used in criteria-based sharing rules, and probabilistic fields can’t be in SOQL WHERE, GROUP BY, ORDER BY or aggregates. (What stops working)
  • I know to test in a sandbox first, and that a refresh copies production’s tenant secrets, so rotate them in the sandbox. (A full sandbox first)
  • I know existing data isn’t encrypted automatically: a sync does that. (Existing data)

PCI, PII and HIPAA (supports OBJ-4)

  • I know sensitive data starts with classification on the field (compliance categories include GDPR, HIPAA, PCI and PII). (The label on the field)
  • I know HIPAA’s Security Rule has an access control standard and lists encryption as addressable: assess it, implement it, or document why not and use an equivalent alternative. (Health data)
  • I know GDPR lists encryption among measures appropriate to the risk. (Personal data)
  • I know card codes and PINs aren’t stored after authorization, and a payment gateway and tokens keep card data out of Salesforce. (Card data)

The Apex Crypto class (supports OBJ-4)

  • I know the difference between an encrypted channel (TLS, decrypted at each stop) and encrypted data (sealed end to end). (Encrypted data)
  • I know the Crypto class needs a key and an algorithm (AES; GCM or CBC; managed initialization vectors), and that it also signs and makes digests and MACs. (Key and algorithm)
  • I know that with your own encryption, where the key lives is the real access control, and the data can’t be searched, filtered or reported on in Salesforce. (Where the key lives)

The exam is the floor, not the ceiling. These are the habits from this chapter that an architect needs, whether or not a question ever asks about them.

  • Ask “at rest, or in transit?” every time someone says “is it encrypted?”
  • Never treat encryption as a substitute for access control. If a user shouldn’t see a field, take the access away.
  • Get the field list from the requirement, not from whoever has the policy page open. Not the fax field.
  • Let the client hold the keys, with a registry of copies outside Salesforce.
  • Find out early if Shield is in the mix, and never turn it on a week before go-live.
  • Follow the value, not just the field: files, search, Chatter, email, the event bus.
  • Read the rule’s own words before designing for HIPAA, GDPR or PCI, and let the client’s compliance team decide what applies.
  • Reach for the Crypto class last, and only when the data has to stay sealed past Salesforce.
TermIn one line
Encryption at restData encrypted where it’s stored, so stolen drives or backups are useless
Classic EncryptionSalesforce’s first-generation encrypted text field, with masking
View Encrypted DataThe permission that shows a Classic Encryption field unmasked
Shield Platform EncryptionSalesforce’s second generation: field-level or Database Encryption, with key control
Field-level encryptionShield encrypting chosen fields in the application tier
Database EncryptionShield encrypting most of the database on Hyperforce, filtering and sorting kept
Probabilistic encryptionThe default scheme: strongest, can’t be filtered
Deterministic encryptionThe same value encrypts the same way, so exact-match filtering works
Tenant secretYour half of Shield’s key, combined with Salesforce’s primary secret
Bring Your Own KeyKey material you generate outside Salesforce and upload
Cache-only keyA key fetched on demand from your key service and held only in a cache
Encryption syncThe job that encrypts existing data, or moves it to the newest key
Addressable (HIPAA)Assess it; implement it, or document why not and use an equivalent alternative
TokenA stand-in for a card number, held by a payment gateway
Crypto classApex methods to encrypt, decrypt, sign and make digests and MACs

Short scenarios in the style of the course. Decide your answer before you open it.

1. A security lead wants to encrypt a salary field so that managers in other departments can't see it. What do you tell them?

Encryption won’t do that: a user with access sees the field decrypted. Remove their access with field-level security, or the sharing model. Encrypt only if a requirement says the stored data must be encrypted. Reread Logins, not permissions.

2. A team wants to encrypt an existing custom text field that holds a short ID number, with Classic Encryption. What's the catch?

Classic Encryption is its own field type, Text (Encrypted), and existing fields can’t be converted: you create a new field and move the data. And it can’t be searched, filtered or used in report criteria. Reread A field type, not a setting.

3. The requirement is "encrypt our data at rest," the org is on Hyperforce, and users must keep filtering and sorting list views. Which path?

Database Encryption: all standard and custom fields, with filtering and sorting kept. Add field-level encryption only for fields with stricter key rules, and expect those to lose sorting. Reread Which path?

4. A consultant offers to generate and keep the org's Shield tenant secret "to make things easier." What do you say?

The client holds the keys, on a short list with Manage Encryption Keys, watched in the Setup Audit Trail, with exported copies and a registry outside Salesforce. Lose the key with no copy, and Salesforce can’t help. Reread Who holds the key.

5. After a key rotation, the team expects all existing records to use the new key. Do they?

No. New data uses the new key; the archived key keeps decrypting what it encrypted until you run a sync. Reread Key hygiene.

6. A field used by a criteria-based sharing rule is about to get field-level encryption. What happens?

Encrypted fields can’t be used in criteria-based sharing rules, so the rule’s design has to change first. Find this in the full sandbox, not a week before go-live. Reread What stops working.

7. A health client says "HIPAA doesn't require encryption, it's only addressable." Are they right?

Addressable doesn’t mean optional: they must assess it, and if they don’t implement it, document why and implement an equivalent alternative. Their compliance team decides; you design so the decision can be proved. Reread Health data.

8. A nonprofit wants to store donors' card numbers and security codes in Salesforce, encrypted with Shield. What do you recommend?

Don’t store them. Card codes and PINs can’t be kept after authorization even encrypted. Use a payment gateway and keep a token in Salesforce, and check email-to-case for cards arriving uninvited. Reread Card data.

9. Data sent from Salesforce passes through a partner's proxy before it reaches the final system, and the proxy must not read it. Is HTTPS enough?

No. HTTPS is decrypted at the proxy. Encrypt the data itself with the Crypto class, with a key and algorithm agreed only with the final system, and keep the key in named credentials or protected settings. Reread Encrypted data, not an encrypted channel.

The official list of objectives and their weights. Always check the current version before you book an exam.