MS Exam 70-764 Flashcards

1
Q

What type of key algorithm does

ENCRYPTBYKEY() use to encrypt data?

A

Symmetric

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

Name the T-SQL function that encrypts data when using Column-Level Encryption?

A

ENCRYPTBYKEY()

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

What does sys.column_master_keys return?

A

Returns a row for each database master key added by using the CREATE MASTER KEY statement. Each row represents a single column master key (CMK).

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

T-SQL for opening a symmetric key named Exam70764 by a password ‘Pw’?

A

OPEN SYMMETRIC KEY Exam70764

DECRYPTION BY PASSWORD = ‘Pw’;

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

T-SQL for creating a symmetric key named Exam70764 with AES_256 and a password ‘Pwd’ ?

A

CREATE SYMMETRIC KEY CreditCardCert

WITH ALGORITHM = AES_256

ENCRYPTION BY PASSWORD = ‘Pwd’;

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

What is a Securable?

A

Any object or resouce in SQL Server that can have an action performed aginst it.

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

What are Permissions?

A

Are actions that can be performed aginst Securables

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

What are Principals?

A

Objects performing

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

Does Dynamic Data Masking (DDM) persist the data to disk with the mask applied?

A

No.

The mask is applied on outputs and data in the database is not changed.

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

What permission must a user have granted to see unmasked data?

A

The Unmask permission granted under the Database securables.

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

Dynamic Data Masking:
Adding, replacing, or removing the mask of a column requires what permission?

A

ALTER ANY MASK

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

Dynamic Data Masking

Ture or False: Using SELECT INTO or INSERT INTO to copy data from a masked column into another table will result in masked data in the target table?

A

True

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

Name the four Dynamic Data Masking functions.

A
  1. default()
  2. random()
  3. partial()
  4. email()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

T-SQL for adding a Dynamic Data Mask to a show only the last four digits of the column CardNumber in the already existing table dbo.CreditCards

A

ALTER TABLE dbo.CreditCards

ALTER COLUMN CardNumber ADD MASK WITH (FUNCTION = ‘partial(0, “XX..”, 4)’);

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

Which Dynamic Data Masking function will output a different mask depending on the data type of a column?

A

default()

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

Name the two special roles for SQL Database and SQL Data Warehouse and where those roles exist.

A

These database roles exist only in the virtual master database under Security.Roles

  1. dbmanager
  2. loginmanager
17
Q

T-SQL for creating and enabling a SQL Server Audit named DatabaseSpecToEventlog targeting the Application Log.

A

USE [master];

GO

CREATE SERVER AUDIT DatabaseSpecToEventlog
TO APPLICATION_LOG;

GO

ALTER SERVER AUDIT DatabaseSpecToEventlog

WITH (STATE = ON);

GO

18
Q

T-SQL for creating and enabling a Database Audit Specification named DatabaseOpsAudit mapped to the server audit DatabaseSpecToEventLog with

DATABASE_CHANGE_GROUP

DATABASE_OBJECT_CHANGE_GROUP

AUDIT_CHANGE_GROUP

A

CREATE DATABASE AUDIT SPECIFICATION DatabaseOpsAudit

FOR SERVER AUDIT DatabaseSpecToEventLog

ADD (DATABASE_CHANGE_GROUP)

, ADD (DATABASE_OBJECT_CHANGE_GROUP)

, ADD (AUDIT_CHANGE_GROUP)

GO

19
Q

True/False:

You can have multiple specifications linked to a single audit.

A

FALSE

20
Q

Under the hood, what mechanisum does SQL Server Audits emply to capture events?

A

Extended Events

21
Q

What three things will cause a new Server Audit file to be created?

A
  1. Anytime the db Engine Starts
  2. Disable/Endable Audit
  3. File size is maxed