Returns one row per authenticated session on SQL Server. sys.dm_exec_sessions is a server- scope view that shows information about all active user connections and internal tasks.
Include the column: transaction_isolation_level smallint Transaction isolation level of the session. 0 = Unspecified 1 = ReadUncomitted
2 = ReadCommitted
3 = Repeatable
4 = Serializable
5 = Snapshot Is not nullable. sys.dm_exec_sessions (Transact-SQL)
You are creating a database that will store usernames and credit card numbers for an application. You need to recommend a solution to store and resuse the credit card numbers in the database. What should you recommend? More than one answer choice may achieve the goal. Select the BEST answer.
Transparent Data Encryption (TDE)
Encrypting File System (EPS)
If we are going to encrypt credit card number for storage, then we should have Data
Encryption Key (DEK) for encrypting the credit card number.
QUESTION: 108 HOTSPOT
You use SQL Server 2014. You create a table within a database by using the following DDL:
The following table illustrates a representative sample of data:
The system is expected to handle 50 million orders a month over the next five years.
You have been instructed by your Team Lead to follow best practices for storage and performance in the utilization of SPARSE columns.
Which columns should you designate as SPARSE? To answer, mark each column as SPARSE or NOT SPARSE in the answer area.
You have a table named ORDERS that contains 10,514,003 Orders. The ORDERS table has an IDENTITY (1,1) column named ORDERID. ORDERID is the UNIQUE CLUSTERED
INDEX and PRIMARY KEY for the table. The first ORDERID is 1. There are no missing ORDERIDs in the set. Based on table usage patterns, you decide to use partitioning on this table based off of the ORDERID column. You need to create the following partitions:
Which code should you use to create the partition function?
QUESTION: 110 DRAG DROP
You administer a SQL Server 2014 instance. The server is capable of 10000 IO/second (IOPS). During the time period when the second process executes, the disk IO can reach 7000 IOPS, and CPU use can average 30% over the eight processors.
The first process summarizes the day's activity executed by a login of [SummaryReportLogin]. The second process submits transactions executed by a login of [ETLLogin].
A Resource Governor classifier function has been created to return WG_Low for connections from the [ETLLogin] and [SummaryReportLogin].
You need to set up the Resource Group and Workgroup Pools on the instance. You have the following requirements:
✑ Both processes must never use more than 50 percent of the CPU at any one time.
✑ The number of active queries that these processes can execute simultaneously should be limited to a maximum of 10.
✑ The SummaryReportLogin process must always achieve the minimum IOPS required to be minimally affected during executing the ETLLogin processes.
Develop the solution by selecting and arranging the required code blocks in the correct order.
You may not need all of the code blocks.
QUESTION: 111 DRAG DROP
You are the senior database administrator at Contoso, Ltd. You manage a SQL Server 2014 Instance, with multiple databases used for reporting.
You have recently hired a junior database administrator. You want this person to be able to view the database structures on the server, but you do not want him or her to be able to make changes or see the data in the tables. The new hire's login credentials are as follows:
Login name: JFree Password: Jx672$qse
You want the new hire to be required to change his password on his next login.
The code that is produced should execute no matter the initial database context in which it is
You need to write the code required to give the new hire only the desired access, using the smallest number of steps. Develop the solution by selecting and arranging the required code blocks in the correct order. You may not need all of the code blocks.
You have a query that is used by a reporting dashboard.
Users report that the query sometimes takes a long time to run.
You need to recommend a solution to identify what is causing the issue. What should you recommend? More than one answer choice may achieve the goal. Select the BEST answer.
Set the blocked process threshold, and then run SQL Server Profiler.
Set the blocked process threshold, and then create an alert.
Enable trace flag 1204, and then create an alert.
Create a job that queries the sys.dm_os_waiting_tasks dynamic management view.
Step 1: Turn on the blocked process report. This will look for any blocking taking 20 seconds or longer.
--Make sure you don't have any pending changes SELECT * FROM sys.configurations WHERE value <> value_in_use; GO
exec sp_configure 'show advanced options', 1; GO RECONFIGURE GO
exec sp_configure 'blocked process threshold (s)', 20; GO RECONFIGURE GO
Step 2: Set up a trace to capture the blocked process report. Run it as a server side trace. blocked process threshold Server Configuration Option
You administer a SQL Server 2014 instance.
Users report that the SQL Server has seemed slow today. A large database was being restored for much of the day, which could be causing issues.
You want to write a query of the system views that will report the following:
✑ Number of users that have a connection to the server
✑ Whether a user's connection is active
✑ Whether any connections are blocked
✑ What queries are being executed
✑ Whether the database restore is still executing and, if it is, what percentage of the restore is complete
Which system objects should you use in your query to best achieve this task?
sys.dm_exec_requests, sys.dm_exec_sessions, sys.objects
sys.dm_exec_sessions, sys.dm_exec_query_stats, sys.dm_exec_query_text,sys.objects
sys.sysprocesses, sys.dm_exec_query_text, sys.objects
sys.dm_exec_requests, sys.dm_exec_sessions, sys.dm_exec_query_text