Skill 2.1.1
Design and implement data encryption, including Always Encrypted and column-level encryption
Key Concepts
Transparent data encryption (TDE) encrypts data files, logs and backups at rest and is on by default in Azure SQL Database; anyone who can query the database still sees plaintext. Column-level encryption uses T-SQL functions such as ENCRYPTBYKEY and DECRYPTBYKEY with a symmetric key protected by a certificate or password; the server performs encryption, so any principal that can open the key, including a database owner, can decrypt the values, and encrypted columns are stored as varbinary.
Always Encrypted encrypts columns in the client driver with a column encryption key (CEK) that is itself encrypted by a column master key (CMK) held outside the database, such as in Azure Key Vault or a certificate store. The database stores only ciphertext and never has the keys, so administrators and cloud operators cannot read the data. Deterministic encryption allows equality comparisons, joins and grouping; randomized encryption is stronger but allows no computation. Secure enclaves (VBS enclaves in Azure SQL Database) allow range comparisons, LIKE and in-place encryption on randomized columns. Applications enable it with Column Encryption Setting=Enabled in the connection string.