Choose protections by trust boundary
Match storage, client-side encryption and network controls to the exposure.
Choose protections by trust boundary
Work through the decision
The security team specifies two requirements. Someone who obtains a database backup must not read its data, and an operator with engine access should not see a customer field in plaintext. Will one encryption setting satisfy both?
Check your reasoning
Use TDE for the database files and backups, with an appropriate key and recovery plan. Evaluate Always Encrypted for the sensitive column, a supported client driver and keys outside the engine’s ordinary reach. Test permitted query operations before rollout. Protect the client connection with validated TLS.
Compare the choices
- Transparent data encryption
- Encrypt database storage transparently to normal database queries. Retain the protector and test recovery of encrypted backups.
- Always Encrypted
- Encrypt selected values using a capable client and separately managed keys. Design queries around supported encrypted operations.
- Secure enclave
- Allow supported confidential operations on Always Encrypted columns inside a protected environment, subject to configuration and attestation requirements.
- Private endpoint
- Reach a service through a private IP with appropriate DNS, routing and service configuration. Confirm any remaining public access independently.
Test the decision
A private endpoint changes how the client reaches SQL. Check DNS, routing, public network access and firewall rules, then confirm the connected database identity. Network reachability and permission to read the column are separate decisions.
Practice the guide skills
- A backup copy leaves the primary disk. Which encryption helps protect the database files and backups? Watch 1:13:22
Check your answer
TDE encrypts database pages at rest and covers backups of that encrypted database. Retain the necessary protector or key and test an authorized restore.
- A stored procedure definition or a specific set of stored values needs separate protection. Watch 1:14:25
Check your answer
Identify the precise object and threat model. Column-level encryption with explicit keys protects selected values. An obfuscated module definition is a different control with limited protection.
- Limit public SQL access to one approved source network. Watch 1:16:48 · Continue at 1:16:59
Check your answer
Evaluate server-level versus database-level firewall scope, remove unnecessary broad allowances, and verify authenticated TLS connectivity from authorized clients. Firewalls do not grant SQL privileges.
- The DBA operates the engine but should not see a sensitive plaintext field. Watch 1:14:48 · Continue at 1:15:36
Check your answer
Use Always Encrypted with a capable client driver and client-accessible keys protected outside the engine. Check allowed comparisons and client compatibility.
- An encrypted column requires a supported richer comparison. Watch 1:16:12
Check your answer
Evaluate Always Encrypted with secure enclaves, including supported query operations, enclave configuration, attestation requirements and driver settings.
- A workload must reach SQL through a private IP. Watch 1:18:20 · Continue at 1:18:40
Check your answer
Use a private endpoint with correct private DNS and public-access policy. A service endpoint associates a subnet identity with service access and retains the service’s public endpoint.
Official objectives for this lesson
Related lesson · Evaluate security rules and private endpoints
Choose protections by trust boundary quiz
Answer 3 questions. Check each answer for an explanation.