|Exam Name||:||Transition Your MCITP: Database Administrator 2008 or MCITP Database Developer 2008 to MCSE: Data Platform|
|Questions and Answers||:||114 Q & A|
|Updated On||:||May 22, 2017|
|PDF Download Mirror||:||70-459 Brain Dump|
|Get Full Version||:||Pass4sure 70-459 Full Version|
You are the new database administrator for a SQL Server 2014 instance. You conduct an assessment on the instance and determine that the auto create statistics setting on the database named DB1 has been turned off. You see no evidence that any maintenance has been occurring. You want to set up monitoring to see if query performance is being affected. You need to set up a monitoring process that will capture any cases where statistics could have been useful if they existed. What should you do?
Create a SQL Server Agent job to execute DBCC SHOWSTATISTICS on each of the primary key columns in the database.
Use the missing_column_statistics extended event.
Query the sys.statistics system view to see all cases where the statistics were last needed.
Write a query using the sys.dm_db_missing_index_group_stats DMV Joining to sys.indexes, filtering on is_hypothetical.
The Missing Column Statistics event class indicates that column statistics that could have been useful for the optimizer are not available.
By monitoring the Missing Column Statistics event class, you can determine if there are statistics missing for a column used by a query. This can cause the optimizer to choose a less
efficient query plan than expected.
Missing Column Statistics Event Class
You are troubleshooting an application that runs a query. The application frequently causes deadlocks. You need to identify the isolation level used by the query when a deadlock occurs. What should you do? More than one answer choice may achieve the goal. Select the BEST answer.
Query the sys.dm_exec_requests dynamic management view.
Create a trace in SQL Server Profiler that contains the Deadlock graph event.
Query the sys.dm_exec_sessions dynamic management view.
Enable trace flag 1222, and then view the SQL Server error log.
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.
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?
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.
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
Returns information about each request that is executing within SQL Server.
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. This information includes client version, client program name, client login time, login user, current session setting, and more.
Returns the text of the SQL batch that is identified by the specified sql_handle. sys.dm_exec_requests (Transact-SQL) sys.dm_exec_sessions (Transact-SQL)
You need to recommend a change to sp3 to ensure that the procedure continues to execute even if one of the UPDATE statements fails. Which change should you recommend?
Set the IMPLICIT_TRANSACTIONS option to on.
Set the XACT_ABORT option to off.
Set the IMPLICIT_TRANSACTIONS option to off.
Set the XACT_ABORT option to on.