Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

4.3.4. Transparent Data Encryption (TDE) and Always Encrypted

šŸ’” First Principle: Encryption protects data at rest. TDE encrypts the entire database transparently; Always Encrypted encrypts specific columns with keys never exposed to the database server.

Encryption Comparison

FeatureTDEAlways Encrypted
ScopeEntire databaseSpecific columns
Key LocationDatabase serverClient only
Protected FromStorage theftStorage theft + DBA access
Query SupportFullLimited (deterministic only)
Use CaseGeneral encryptionHighly sensitive columns

Scenario: You need to ensure certain columns cannot be decrypted by database administrators.

Answer: Use Always Encrypted. TDE protects data at rest but DBAs with access to the database can read decrypted data. Always Encrypted keeps keys on the client side—the database server never sees plaintext.

āš ļø Exam Trap: Thinking TDE protects against DBAs. TDE encrypts data files on disk but decryption is transparent to authorized database users. For protection against privileged database access, use Always Encrypted.

Always Encrypted Supported Operations

  • Supported: Point lookups, equality comparisons (deterministic encryption)
  • Not Supported: Range queries, LIKE operations, copying between columns
Alvin Varughese
Written byAlvin Varughese
Founder•15 professional certifications