Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Implement Always Encrypted with secure enclaves

A worked example

Single answer

A SQL Server database stores customer email addresses in a column that is protected by Always Encrypted with randomized encryption. The support team needs queries that use LIKE to find customers by email domain.

Requirements:

  • The LIKE predicate must be evaluated by the database engine.
  • The column must stay encrypted with randomized encryption.
  • Database administrators must not be able to read the plaintext email addresses.

What should you implement?

Choose one answer
Why

With randomized encryption, the same value is encrypted differently each time, so without enclaves such columns can only be returned in query results. Always Encrypted with secure enclaves lifts some of these limits and enables pattern matching on randomized columns. The column keeps its randomized encryption and its Always Encrypted protection from administrators. TDE does not enable pattern matching on the existing encrypted column, and connection-string or key-store changes do not add that capability.

  • Not correct: Transparent data encryption for the database. TDE protects database pages at rest; it does not add pattern matching for an Always Encrypted column that uses randomized encryption.
  • Not correct: Azure Key Vault as the column master key store. Azure Key Vault is a recommended store for the column master key, but the key location does not change the fact that randomized columns can only be returned in results without enclaves.
  • Not correct: Column Encryption Setting=enabled in the connection string. This setting lets the client driver look up column encryption metadata so it can encrypt and decrypt data at the client. Without enclaves, randomized columns can only be returned in results, so the engine still cannot evaluate the pattern match.
  • Correct: Always Encrypted with secure enclaves for the column. Secure enclaves address randomized encryption limits by enabling pattern matching on randomized columns, while the data stays protected by Always Encrypted from high-privileged users.
  • Not correct: Deterministic encryption for the column. Moving the column to deterministic encryption breaks the requirement that the column keeps randomized encryption.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free