Study guide

12.3 Salesforce Shield, Field Audit Trail & Platform Encryption

Salesforce Accredited Agentforce 360 for Public Sector Professional Exam

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Overview, Architecture & Constituent Data Modeling

1.1 AP-222 Exam Blueprint, Passing Standards & Credential Overview 1.2 Public Sector Solutions Layered Architecture & Industry Common Layer 1.3 Person Accounts & Constituent Data Modeling

2 Chapter 2: Licenses, Permits, and Inspections (LPI) — Intake & Issuance

2.1 Regulatory Authorization Types & Application Intake 2.2 Business License & Permit Issuance, Conditions & Status Tracking 2.3 Application Reviews, Multi-Department Approvals & Renewals

3 Chapter 3: Inspections, Code Enforcement, and Compliance

3.1 Inspection Types, Action Plan Templates & Onsite Visit Execution 3.2 Regulatory Codes, Assessment Indicators & In-Field Checklists 3.3 Regulatory Code Violations, Enforcement Actions & Remediation Workflows

4 Chapter 4: Grants Management & Grantmaking Lifecycle

4.1 Funding Programs, Funding Opportunities (NOFOs) & Public Discovery 4.2 Grant Application Intake, Review Workspaces & Multi-Stage Scoring 4.3 Funding Awards, Disbursement Schedules & Post-Award Reporting

5 Chapter 5: Benefits Management & Assistance Programs

5.1 Benefit Programs, Benefit Schedules & Beneficiary Data Architecture 5.2 Discovery Framework Assessments & Question Versioning 5.3 Rules-Based Eligibility Determination & Recertification Lifecycle

6 Chapter 6: Employee Experience & Emergency Response Management

6.1 Public Sector Employee Experience & Workforce Operations 6.2 Emergency Response Management (ERM) Intake, Triage & Incident Dispatch 6.3 Rapid Resource Allocation, Volunteer Coordination & Contact Tracing

7 Chapter 7: Document Processing, Intelligent Automation & Reporting

7.1 Document Checklist Items, Content Management & Upload Portals 7.2 Intelligent Document Automation (IDA), the Document Workspace & the IDA vs. IDA/IFR Decision 7.3 Intelligent Document Reader (OCR with Amazon Textract) & eSignature Integration 7.4 OmniStudio Document Generation & Dynamic PDF Production 7.5 Public Sector Operational Reporting, Compliance Dashboards & CRM Analytics

8 Chapter 8: OmniStudio for Public Sector — Guided Intake & 360 Views

8.1 OmniScript Architecture, Step Design & Conditional Branching 8.2 Data Prefill Patterns, Context Passing & Save-for-Later 8.3 FlexCard Architecture, Constituent 360 Layouts & Action Frameworks

9 Chapter 9: OmniStudio Integration & Server-Side Processing

9.1 Data Mappers (DataRaptors) — Turbo Extract, Extract, Transform & Load 9.2 Integration Procedures — Action Chaining, Batching & Error Handling 9.3 External API Integrations, HTTP Actions & Named Credentials

10 Chapter 10: Business Rules Engine (BRE) & Dynamic Fee Calculation

10.1 Expression Sets — Calculation Steps, Formulas & Versioning 10.2 Decision Tables & Decision Matrices for Policy Decisioning 10.3 Dynamic Fee Schedules, Calculation Procedures & Regulatory Pricing

11 Chapter 11: Experience Cloud Citizen Portals & Service Console

11.1 Public Sector Experience Cloud Site Templates & Citizen Self-Service 11.2 Guest vs. Authenticated User Journeys & Identity Verification 11.3 Multilingual Localization, Custom Labels & Translation Workbench 11.4 Public Sector Service Console, Workspace Tabs & Omni-Channel Routing

12 Chapter 12: Security, Compliance, Government Cloud & Best Practices

12.1 Data Security, Org-Wide Defaults (OWD) & Sharing Architecture 12.2 Government Cloud Tiers, FedRAMP & DoD Compliance 12.3 Salesforce Shield, Field Audit Trail & Platform Encryption 12.4 Declarative-First Strategy, Process Library & Deployment with IDX Workbench

13 Chapter 13: Agentforce & AI Innovation for Public Sector

13.1 Agentforce Architecture, Agent Builder & Public Sector Agents 13.2 Topic Definitions, Instructions, Actions & CRM/Data Cloud Grounding 13.3 Einstein Trust Layer, Guardrails & Responsible AI Governance

14 Chapter 14: Discovery, Requirements & Solution Design

14.1 Documenting Business Needs, Agency Value & Vision for Desired Outcomes 14.2 Discovery & Design Approaches and Solution Documentation 14.3 Mapping Business Processes, Personas & Requirements

15 Chapter 15: Org Setup, Data Management & Integration Governance

15.1 Setting Up an Org for Agentforce Public Sector 15.2 Data Management Strategy, Data Quality & Integration Governance

12.3 Salesforce Shield, Field Audit Trail & Platform Encryption

Key Takeaways Explain This Topic AI

Salesforce Shield delivers a triad of enterprise security and compliance tools for government: Shield Platform Encryption (data at rest), Field Audit Trail (historical audit retention), and Real-Time Event Monitoring (threat detection).

Shield Platform Encryption provides 256-bit AES encryption at the database layer while preserving workflow rules, formulas, validation rules, and search indexing, supporting both Salesforce-managed keys and Bring Your Own Key (BYOK) via external HSMs.

Deterministic encryption enables exact-match filtering in SOQL (WHERE Field = 'value') and unique constraints, whereas Probabilistic encryption provides maximum cryptographic entropy with randomized initialization vectors but disables SOQL filtering and sorting.

Field Audit Trail (FAT) allows public agencies to track up to 60 fields per object and define FieldHistoryRetentionPolicies in metadata, automatically archiving history into Big Objects for up to 10 years to satisfy statutory public records mandates and litigation holds.

Real-Time Event Monitoring streams user interaction events (ReportEvent, ApiEvent, LoginEvent) to evaluate real-time Transaction Security Policies (TSP), automatically blocking mass PII report exports, freezing sessions, or requiring step-up MFA.

Last updated: September 2026

12.3 Salesforce Shield, Field Audit Trail & Platform Encryption

Exam Focus: In public sector IT, data breaches, unauthorized snooping by internal staff, and loss of historical records carry grave legal, financial, and political ramifications. To achieve compliance with CJIS, HIPAA, IRS Publication 1075, and state public records preservation laws, agencies rely on Salesforce Shield . This section covers the Shield triad: Platform Encryption (BYOK, probabilistic vs. deterministic encryption), Field Audit Trail (FAT, 10-year Big Object archiving), and Real-Time Event Monitoring (threat detection and Transaction Security Policies).

The Salesforce Shield Triad in Government Governance

Salesforce Shield is not a single tool; it is a suite of three integrated enterprise security technologies designed to provide native defense-in-depth: +-----------------------------------------------------------------------------------+

  • | Salesforce Shield Governance Triad |
  • +-----------------------------------------------------------------------------------+
  • | 1. Shield Platform Encryption: Cryptographic protection at rest |
  • | * AES-256 bit encryption preserving platform logic |
  • | * Salesforce-managed Tenant Secrets vs. Bring Your Own Key (BYOK) |
  • | * Probabilistic vs. Deterministic (Case-Sensitive / Case-Insensitive) |
  • +-----------------------------------------------------------------------------------+
  • | 2. Field Audit Trail (FAT): Statutory compliance & historical records |
  • | * Tracks up to 60 fields per object (vs. 20 standard) |
  • | * Retains history up to 10 years in Big Objects (FieldHistoryArchive) |
  • | * Automated FieldHistoryRetentionPolicy lifecycle governance |
  • +-----------------------------------------------------------------------------------+
  • | 3. Real-Time Event Monitoring: Forensics & threat mitigation |
  • | * Real-time streaming of login, API, and report export events |
  • | * Automated Transaction Security Policies (TSP) |
  • | * Real-time block, notify, or step-up MFA intervention |
  • +-----------------------------------------------------------------------------------+
  • Shield Platform Encryption: Securing Data at Rest

Government mandates frequently require data encryption at rest using FIPS 140-validated cryptographic modules. Shield Platform Encryption provides native, granular encryption at the database layer while allowing business logic (workflows, validation rules, formulas, and search indexing) to function seamlessly.

Platform Encryption vs. Classic Encryption

A common exam trap involves confusing Classic Encryption with Shield Platform Encryption.

Feature / Dimension Classic Encryption Shield Platform Encryption

Mechanism Custom field type ( Encrypted Text ) Platform-wide encryption service across standard and custom fields

  • Cryptographic Standard 128-bit AES 256-bit AES (FIPS 140-2 validated)
  • Key Management Salesforce managed only Salesforce-managed Tenant Secrets OR Bring Your Own Key (BYOK)
  • Search & Indexing Completely disabled Preserved (via deterministic encryption and search indexes)

Workflow & Validation Severely restricted; cannot use in formulas Supported across formulas, validation rules, and Flow logic

Scope of Encryption Single text fields up to 175 chars Standard fields, custom fields, files, attachments, Chatter, search indexes

Key Lifecycle Management & Bring Your Own Key (BYOK)

Shield uses an advanced envelope encryption architecture:

Master Secret: Generated by Salesforce once per major release using a hardware security module (HSM).

Tenant Secret: Generated per org. In the standard model, Salesforce generates the tenant secret. In Bring Your Own Key (BYOK) , the agency generates and controls the secret in an external Key Management Service (e.g., AWS KMS, Azure Key Vault, or an on-premises HSM) and uploads or streams it via the Salesforce KMS REST API.

Key Derivation Function (KDF): The Master Secret and Tenant Secret are combined using PBKDF2 to derive the operational Data Encryption Key (DEK) in memory. The DEK is never persisted to disk, ensuring that even if physical storage media were compromised, the data remains unreadable.

Key Revocation (Crypto-Shredding): If an agency detects a security compromise or terminates a contract, revoking the Tenant Secret immediately renders all encrypted data in the org cryptographically unreadable—a capability essential for government data destruction mandates.

Probabilistic vs. Deterministic Encryption: Architectural Trade-Offs

Choosing the correct encryption scheme is one of the most critical design decisions on the AP-222 exam.

Dimension Probabilistic Encryption Deterministic Encryption

Ciphertext Generation Uses a randomized Initialization Vector (IV). Encrypting the same plaintext twice produces completely different ciphertexts . Uses a static, cryptographically derived IV. Encrypting the same plaintext always produces the exact same ciphertext .

Security Level Maximum cryptographic strength . Resistant to frequency analysis and pattern detection. High cryptographic strength, but theoretically susceptible to frequency analysis on low-cardinality data.

SOQL Queries & Filtering CANNOT filter or sort . ( WHERE SSN__c = '123' will fail or error). CAN filter using equality operators ( WHERE SSN__c = '123' ).

Unique Constraints Cannot enforce unique record constraints. Supports unique constraints (case-sensitive or case-insensitive).

Case Sensitivity Modes N/A 1. Case-Sensitive: 'Smith' != 'smith'.; 2. Case-Insensitive: 'Smith' matches 'smith' (ideal for email, names).

Public Sector Fit Long narrative notes, medical diagnoses, child welfare investigative case summaries. Social Security Numbers, Driver License numbers, Tax IDs, external tracking IDs.

Tip

AP-222 Exam Rule: If an exam question states that caseworkers must search or filter records by constituent Social Security Number, National ID, or License Number while encrypted at rest, you must select Deterministic Encryption . If filtering is not required and data represents free-text medical notes, select Probabilistic Encryption .

Field Audit Trail (FAT): 10-Year Public Records Governance

Government agencies are subject to statutory public records preservation mandates (e.g., Federal Records Act, state Sunshine Laws, and legal litigation holds) requiring historical records of all administrative actions.

Standard Field History Tracking vs. Field Audit Trail (FAT)

Standard Salesforce field history tracking is fundamentally inadequate for public sector regulatory compliance:

Standard History Tracking: Tracks up to 20 fields per object; history records are automatically purged after 18 to 24 months.

Field Audit Trail (FAT): Tracks up to 60 fields per object ; retains history for up to 10 years (120 months) .

The Big Object Archiving Lifecycle

FAT automates data lifecycle management by migrating aged historical data into Big Objects:

Active Storage: Field history records reside in standard history tables (e.g., IndividualApplicationHistory ) for an operational window defined by the agency (e.g., 6 months or 12 months). During this window, users view history directly in the standard record History related list.

Archival Migration: A background batch process automatically migrates records older than the active threshold into FieldHistoryArchive —a standard Big Object.

Retention Policy Definition: Configured in metadata via FieldHistoryRetentionPolicy :

archiveAfterMonths : Number of months history remains in active storage before archiving (e.g., 6 months).

archiveRetentionYears : Total number of years the archived data is preserved in Big Objects (up to 10 years).

Querying Historical Archives: Auditors and compliance officers query the FieldHistoryArchive Big Object using SOQL, Async SOQL, or pre-built audit reports, providing immutable evidence for grand jury subpoenas and statutory appeals.

Real-Time Event Monitoring & Threat Detection

Public sector organizations are prime targets for malicious external actors and insider threats. Real-Time Event Monitoring provides real-time visibility into user behavior and programmatic threat intervention.

Core Streaming Event Objects

ReportEventStream / ReportEvent : Captures when users view, run, or export reports. Tracks row counts, exported columns, and user source IP.

ApiEventStream / ApiEvent : Monitors all REST, SOAP, and Bulk API queries, detecting unauthorized mass data scraping.

LoginEventStream / LoginEvent : Tracks login geographic anomalies, impossible travel, and brute-force attempts.

SessionHijackingEvent : Employs machine learning to detect stolen session cookies and unauthorized browser fingerprint shifts.

Transaction Security Policies (TSP)

Transaction Security Policies allow architects to evaluate streaming events in real time and execute immediate, automated actions:

Evaluation Mechanism: Built declaratively using Condition Builder or programmatically by implementing the TxnSecurity.EventCondition Apex interface.

Available Actions:

Block: Terminate the transaction immediately (e.g., abort report export).

Two-Factor Authentication (MFA): Challenge the user with immediate step-up identity verification before allowing the download.

Notifications: Dispatch immediate in-app alerts and SMS/email notifications to the agency CISO and SOC.

  • Session Termination: Instantly freeze the compromised user session. +---------------------------+
  • | User attempts bulk export |
  • | 10,000 constituent SSNs |
  • +-------------+-------------+
  • | Triggers ReportEvent
  • v
  • +---------------------------+
  • | Transaction Security |
  • | Policy Interceptor |
  • | Criteria: Rows > 2,000 |
  • +-------------+-------------+
  • | Meets Criteria
  • v
  • +---------------------------+
  • | Enforcement Actions: |
  • | 1. BLOCK Download |
  • | 2. Freeze User Session |
  • | 3. Send Real-Time Alert |
  • | to Agency CISO & SOC |
  • +---------------------------+
  • 💡 Real-World Exam Scenarios & Case Analysis
  • Scenario 1: Preserving Child Welfare Case History for Litigation

A county child and family services agency is sued in federal court over benefit distribution adjudications spanning the prior eight years. The court issues a subpoena demanding every modification, timestamp, and user ID associated with benefit recalculations on the BenefitAssignment and IndividualApplication objects. The agency's existing standard field history only retains changes from the last 18 months.

How should the Lead Architect design the solution to comply with future 10-year discovery mandates?

Deploy Salesforce Field Audit Trail (FAT) .

Define a FieldHistoryRetentionPolicy on the target objects with archiveAfterMonths = 12 and archiveRetentionYears = 10 .

Field modifications up to 1 year remain visible in standard related lists, while historical modifications from years 2 through 10 are safely archived in FieldHistoryArchive Big Objects, accessible via SOQL queries for legal discovery.

Scenario 2: Preventing Insider Theft of Citizen Tax Disclosures

An agency Information Security Officer discovers that a rogue employee in the municipal revenue department downloaded a spreadsheet containing 25,000 citizen tax identification numbers and bank account details prior to resigning.

What real-time defensive architecture should be deployed on AP-222 to prevent this vulnerability?

Deploy Salesforce Shield Event Monitoring .

Create a Transaction Security Policy on the ReportEvent object.

Configure the policy condition: If RowsProcessed > 1000 and the report contains fields tagged as PII or Financial , execute the Block action and send an immediate email/notification to the Information Security Operations Center (ISOC).

Loading diagram... Salesforce Shield Triad Architectural Framework