Get Full Version of the Exam
http://www.EnsurePass.com/70-464.html
Question No.97
You have a database named Database1. Database1 has two stored procedures named Proc1 and Proc2 and a table named Table1. Table1 has millions of rows.
Proc1 updates data in Table1. Proc2 reads data from Table1.
You discover that when Proc1 is executed to update more than 4,000 rows, Proc2 is blocked. The block affects all rows, including those that are not being updated by Proc1.
You need to ensure that when Proc1 is executing, Proc2 can access the data in Table1 that Proc1 is not updating.
What should you change Proc1 to do?
More than one answer choice may achieve the goal. Select the BEST answer.
-
Update less than 4,000 rows simultaneously.
-
Use the PAGLOCK table hint.
-
Wait for Proc2 to complete.
-
Use the ROWLOCK table hint.
Correct Answer: A
Question No.98
You need to implement a solution that meets the data recovery requirements. You update each stored procedure to accept a parameter named @transactionID. What should you add next to the beginning of each stored procedure?
-
SAVE TRANSACTION WITH MARK @transactionID
-
ROLLBACK DISTRIBUTED TRANSACTION @transactionID
-
BEGIN TRANSACTION WITH MARK @transactionID
-
COMMIT TRANSACTION @transactionID
Correct Answer: C
Question No.99
You plan to create a database that has multiple tables. The tables will contain product information. Each product has a stock-keeping unit (SKU). You need to recommend a solution to ensure that each SKU starts with the letters quot;ADVquot; and is followed by 10 digits. The solution must minimize the amount of development effort required. What should you include in the recommendation?
-
A FOREIGN KEY constraint
-
A trigger
-
A user-defined data type
-
A CHECK constraint
Correct Answer: C
Question No.100
You have a database that contains a table named Department. Department contains the names and locations of each department. You have a table-valued function named ProjectList() that
returns a list of all the projects assigned to a department. The name of the department is passed as an argument to the ProjectList() function. You need to create a query that returns a list of all the department names and the project names. The solution must return only departments that are associated to projects. What should you add to the query?
-
OUTER APPLY
-
OUTER JOIN
-
CROSS JOIN
-
CROSS APPLY
Correct Answer: D
Question No.101
DRAG DROP
You plan to create a custom aggregation function named Function1. You plan to deploy Function1 to SQL Server 2012.
You need to ensure that Function1 can access a web service. The solution must minimize the number of changes made to the database.
You create a Microsoft .NET Framework class that contains the definition of Function1. You upload a certificate to SQL Server.
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.
Correct Answer:
Question No.102
You have a database that uses the following management views:
Sys.dm_os_volume_stats Sys.dm_db_partition_stats Sys.dm_db_file_space_usage Sys.fulltext_indexes
You plan to migrate the database to Microsoft SQL Azure. You need to identify which view can be used in SQL Azure. Which view should you identify?
-
sys.fulltext_indexes
-
sys.dm_db_file_space_usage
-
sys.dm_os_volume_stats
-
sys.dm_db_partition_stats
Correct Answer: D
Question No.103
You have a SQL Server 2012 database named Database1.
Database1 has a table named Customers. Customers contains more than 1 million rows. The database has a stored procedure that was created by using the following script:
You need to ensure that up_customers returns rows when the following statement is executed:
EXECUTE up_customers#39;1,2,3,4,5#39;; What should you do?
-
Update @CustcmerTypelist to use the int data type.
-
Convert @CustomerTypeList to a table variable.
-
Convert @CustomerTypeList to an XML variable.
-
Update @CustomerTypeList to use the XML data type.
Correct Answer: B
Question No.104
DRAG DROP
You have a SQL Server 2012 database named database1. Users report that queries that usually take less than one second to execute, take more than 30 seconds to execute. You need to view the server resource consumption when the queries are executed. What should you do?
To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Correct Answer:
Question No.105
DRAG DROP
You have a SQL Server 2012 database named Database1. Database1 has a data file named Database1_data.mdf and a transaction log named Database1jog.ldf. Database1_data.mdf is 1.5 GB. Database1jog.ldf is 1.5 terabytes. A full backup of Database1 is performed every day. You need to reduce the size of the log file. The solution must ensure that you can perform transaction log backups in the future. Which code segment should you execute?
To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.
Correct Answer:
Question No.106
You need to identify which long running transactions use an index. Which dynamic management view should you use?
-
sys.dm_exec_query_optimizer_info
-
sys.dm_exec_connections
-
sys.dm_exec_query_stats
-
sys.dm_exec_sessions
Correct Answer: A
Get Full Version of the Exam
70-464 Dumps
70-464 VCE and PDF