SQL Server Performance and SQL Tuning

Is this your test? Login to manage it. If not, you can generate an exam just like it.

This is a non-interactive preview of the quiz content.

1.
1 point
You are running a query against the Employees table in HumanResources database. A clustered index exists on the Employee_Second_Name column of this table. The data in the table is case insensitive. You want to list all employees whose second name starts with M. You do not believe that any duplicate rows exists, and if they do, listing them does not cause a problem. Which of the following queries returns the information you need?
2.
1 point
You are analyzing a query plan for a query that you believe is causing excessive logical read operations. You do not want to use resources on the production server, and you do not have no test or monitoring server. You do not have a problem with executing the query to analyze its plan. You need to find out the following information as quickly as possible : 1. The total number of logical reads performed by executions of this plan since it was compiled. 2. The number of logical reads performed the last time the plan was executed. 3. The minimum and maximum number of logical reads that this plan has ever performed during a single exection. How should you proceed? *
3.
1 point
Define Database Normalization in your own words. List the 5 different type of Database Normalization.
4.
1 point
You need to capture the execution plan for a query. Which SET statement should you use?
5.
1 point
List types of indexes.
6.
1 point
You have been tasked to write a query to select one million rows. You need to optimize the query to return the first 50 rows as quickly as possible. What query hint should you use? *
7.
1 point
You need to build CREATE INDEX statements for all the missing indexes that SQL Server hasidentified. Which Dynamic Managment View should you use?
8.
1 point
You notice that a database server is responding slowly to queries. You run the following DMV query on the server. SELECT TOP (10) wait_time, wait_time_ms FORM sys.dm_os_wait_stats ORDER BY wait_time_ms DESC The query returns a top wait type of SOS_SCHEDULER_YIELD. You need to identify what is causing the serve response issues. Which resource should youinvestigate. *
9.
1 point
You need to find out the degree of fragmentation of a table index. How do you do this?
10.
1 point
In addition to SQL Profiler, System Monitor(Performance Monitor), what other tools are used to troubleshoot SQL Server Resource bottlenecks.
11.
1 point
You have a database that uses stored procedures to perform INSERT, UPDATE, DELETE and SELECT statements. You are tasked with providing a recommendation of indexes to be created and dropped from the databases. You need to select the appropriate method to accomplish the task. Which method should you use?
12.
1 point
You are creating a new table in a database. Your business require you to store data in the table for only seven days. You need to implement a partioned table to meet this business requirement.
13.
1 point
You need to capture the SQL Server Execution Times: (Elapsed Time) for a query. Which SET statement should you use?
14.
1 point
What are the 3 main resource bottlenecks in SQL Server 2005/2008/2012/2014?
15.
1 point
You have two tables named Customers and orders. For customers that have placed at least one order, you need to produce a list of customer names and the number of orders for each customer. Which query should you use?
16.
1 point
You are the DBA for a direct marketing organization. Your company uses SQL Server 2005 application that enables users to run both predefined and ad hoc queries against a customer database. You suspect that some of these queries consume an excessive amount of server resources. You need to identify which queries consume the most resources. You want to achieve this goal as quickly as possible. What should you do?
17.
1 point
A query runs frequently against a database. It specifies the same 3 columns of a 40-column table and the same 4 columns of a 25 column table. Both tables are read intensive and updated infrequently. How do you optimize the query?
18.
1 point
You have two tables named Maintable and Archivetable. You need to move data older than 30 days from Maintable into ArchiveTable. Which code segment should you use?
19.
1 point
You need to capture and record a workload for analysis by the Database Tuning Advisor(DTA). Which tool should you use?
20.
1 point
Your compnay uses a SQL Server 2005 database that contains a table named Sales.Item. The table has 12 columns. The most common queries that are run against the table take the following form : SELECT Name, ProductLine, Price, Color, Style FROM Sales.Item WHERE ProductLine = '[product_line_name]' ORDER BY Name Which indexes should you create? (Choose all that apply).
21.
1 point
Your database is 5GB and contains a table named SalesHistory. Sales information is frequently inserted and updated. You discover that excessive page splitting is occuring. You need to reduce the occurrence of page splitting in the SalesHistory table. Which code segment should you use?
22.
1 point
Which DMVs(Dynamic Management Views) are used to give a high level view of which queries are taking the most CPU Time.