Security Encryption Flashcards

1
Q

T-SQL to show Service Master Key?

A

SELECT * FROM sys.symmetric_keys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

T-SQL to regenerate the service master key?

A

ALTER SERVICE MASTER KEY REGENERATE

GO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

T-SQL to create database master key for encryption?

A

CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘pass@word’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

T-SQL to fix user logins on encrypted database restored to a different instance?

A

sp_change_users_login ‘Auto_Fix’, ‘Username’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define the T-SQL steps to enable Transparent Database Encryption?

A
  1. CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘<StrongPassword>’;
  2. CREATE CERTIFICATE MyCert WITH SUBJECT = ‘My Certificate’;
  3. CREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = AES_128 ENCRYPTION BY SERVER CERTIFICATE MyCert;
  4. ALTER DATABSE myDatabase SET ENCRYPTION ON;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you monitor the state of database encryption?

A

SELECT * FROM sys.dm_database_encryption_keys

Column encryption_state:

  • State 2 means background process has not completed.
  • State 3 means the database is fully encrypted.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly