|Exam Name||:||Developing Microsoft SQL Server 2012/2014 Databases|
|Questions and Answers||:||183 Q & A|
|Updated On||:||Click to Check Update|
|PDF Download Mirror||:||Pass4sure 70-464 Dump|
|Get Full Version||:||Pass4sure 70-464 Full Version|
|70-464 killexams.com | 70-464 dumps | 70-464 exam dumps | 70-464 braindumps | 70-464 exam braindumps | 70-464 real questions | 70-464 practice test | 70-464 practice questions | 70-464 questions and answers | 70-464 dumps free | 70-464 dumps free pdf | 70-464 killexams|
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 administer an instance of SQL Server 2014. You are tasked with tuning a common set of queries. You have the results of several test executions, along with query plans. The schema and the data for all database object(s) used remain unchanged between executions. The QueryTime column is defined as a computed column that uses the GETDATE() system function. The query plans and results are shown below:
You need to make an initial diagnosis of the situation, based solely on this input Which two statements can you make about the performance characteristics of this query? Each correct answer presents a complete solution. Choose two.
The queries would perform better if the index named AccountNumber included the Name and QueryTime column.
The queries would perform worse if the index named AccountNumber included the NameColumn.
The queries would perform better if the index named AccountNumber included the Name column.
The object Account is a table, with an index having a leading column of AccountNumber and a Clustered Index named PKAccount.
The object Account is an indexed view, with an index having a leading column of AccountNumber and a Clustered Index named PKAccount.
The object Account is a view, joining the Account-AccountNumber and Account.PKAccount objects together.
You have a table named Table1 that contains 1 million rows. Table1 contains a column named Column1 that stores sensitive information. Column1 uses the nvarchar(16) data type. You have a certificate named Cert1. You need to replace Column1 with a new encrypted column that uses two-way encryption. Which code segment should you execute before you remove Column1? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.
The database contains a disk-based table named ContentTable that has 1 million rows and a column named Fax. Fax allows null values. You need to update Fax to meet the following requirements:
✑Prevent null values from being used.
✑Always use an empty string instead of a null value.
Which statement or statements should you execute? (Each correct answer presents part of the solution. Choose all that apply.)
E: First change the NULLs to ' '. A: Then set the default to the column to ' '. B: Finally add the NOT NULL constraint to the column.
You have a SQL Server 2014 database. You plan to create a stored procedure that will retrieve the following information:
✑The XML content of the query plans that is stored in memory
✑The number of times each query plan is used
You need to identify which dynamic management objects must be used to retrieve the required information for the stored procedure.
Which dynamic management objects should you identify? To answer, drag the appropriate dynamic management object to the correct requirement in the answer area.
You plan to create a custom aggregation function named Median. You plan to deploy Median to a SQL Server 2014 server named Server1. You need to ensure that Median can access a web service named WebApp1. The solution must minimize the number of changes made to the database. You create a Microsoft .NET Framework class that contains the definition of Median. You upload a certificate to Server1.
What three tasks should you perform next? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
You have a Microsoft SQL Azure database named DBAzurel. DBAzurel contains a table named Orders that stores sales data. Each order has a sales total that can only be discovered by querying multiple tables. You need to ensure that the value of the sales total is returned by executing a query on Orders. What should you create?
A calculated column that uses a scalar function
A trigger that uses a table-valued function
A calculated column that uses a table-valued function
A trigger that uses a ranking function
A table-valued parameter is scoped to the stored procedure, function, or dynamic Transact-SQL text, exactly like other parameters. Similarly, a variable of table type has scope like any other local variable that is created by using a DECLARE statement. You can declare table-valued variables within dynamic Transact-SQL statements and pass these variables as table-valued parameters to stored procedures and functions.
Table-valued parameters offer more flexibility and in some cases better performance than
temporary tables or other ways to pass a list of parameters. Incorrect:
Not A: A scalar function would only be able to use other columns from the same table.
You administer a SQL Server 2014 instance. You have been assigned to determine the cause of frequent long-running transactions that have been tracked to the dbo.Account table, where there are many cases of blocking and deadlocks. The dbo.Account table contains more than one million rows. Users and processes frequently search for and update data by using the AccountId column, and less frequently the AccountNumber and GovernmentId columns, all of which contain only unique values. Users frequently get lists of AccountNumber values by searching on Last Name and then First Name. You need to modify the structure of the dbo.Account table to alleviate the issues.
How should you complete the table definition to reduce contention on the table structure? To answer, drag the appropriate code snippets to the correct locations in the CREATE TABLE statement. Each code snippet may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
You create a disk-based table that contains the following script:
You need to prevent duplicate values in the SKU field. Which five code segments should you use? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.
Your network contains a server that has SQL Server 2014 installed. You create a table by using the following script:
You need to recommend a solution to ensure that each combination of ProductName and ProductManufacturer is not duplicated. What should you recommend creating?
A UNIQUE constraint
A filtered index
A columnstore index
A CHECK constraint
You have a Microsoft SQL Azure database. You have the following stored procedure:
You discover that the stored procedure periodically fails to update Person.Contact. You need to ensure that Person.Contact is always updated when UpdateContact executes. The solution must minimize the amount of time required for the stored procedure to execute and the number of locks held. What should you do?
Add the following line of code to line 12: WITH (UPDLOCK)
Add the following line of code to line 05:
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
Add the following line of code to line 08: WITH (UPDLOCK)
Add the following line of code to line 05:
SET TRANSACTION ISOLATION LEVEL SNAPSHOT
Overall, you should use UPDLOCK when you read a value that you plan to update later in the same transaction to prevent the value from changing.
Specifies that update locks are to be taken and held until the transaction completes. UPDLOCK takes update locks for read operations only at the row-level or page-level. If UPDLOCK is combined with TABLOCK, or a table-level lock is taken for some other reason, an exclusive (X) lock will be taken instead.
When UPDLOCK is specified, the READCOMMITTED and READCOMMITTEDLOCK isolation level hints are ignored. For example, if the isolation level of the session is set to SERIALIZABLE and a query specifies (UPDLOCK, READCOMMITTED), the READCOMMITTED hint is ignored and the transaction is run using the SERIALIZABLE isolation level.
You use SQL Server 2014. The physical server is a dedicated database server that has 120GB of RAM available. There is approximately 50GB of storage space available on a slow local disk. You create a new stored procedure. You decide you need to temporarily hold approximately 300,000 rows from two tables, from which you will compute two complex business scores. The stored procedure will use temporary storage defined as follows:
The code will make several passes through the data, applying complex calculations before writing the data to a permanent disk-based table in the same database from which it reads the data. For this stored procedure, you need to deal with temporary data in the most efficient way to minimize physical disk pressure. What should you do? More than one answer choice may achieve the goal. Select the BEST answer.
You must specify a value for the BUCKET_COUNT parameter when you create the memory-optimized table. In most cases the bucket count should be between 1 and 2 times the number of distinct values in the index key. If the index key contains a lot of duplicate values, on average there are more than 10 rows for each index key value, use a nonclustered index instead
You may not always be able to predict how many values a particular index key may have or will have. Performance should be acceptable if the BUCKET_COUNT value is within
5 times of the actual number of key values.