Microsoft Developing Microsoft SQL Server Databases 70-464 Exam Questions

Page: 1 / 14
Total 200 questions
Question 1

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?



Answer : C


Question 2

You plan to modify a stored procedure to use temporary data.

The stored procedure must meet the following requirements:

Favor physical memory when physical memory is available.

Be able to roll back changes to the temporary data.

You need to recommend which object to add to the stored procedure.

Which T-SQL command should you recommend?



Answer : A

Temporary Tables

You can create local and global temporary tables. Local temporary tables are visible only in the current session, and global temporary tables are visible to all sessions. Temporary tables cannot be partitioned.

Prefix local temporary table names with single number sign (#table_name), and prefix global temporary table names with a double number sign (##table_name)


Question 3

You execute the following code:

You have a stored procedure that includes the following SELECT statement:

You need to create a covering index on UserInfo.

Which code segment should you execute?



Answer : C


Question 4

You need to implement a solution that addresses the performance issues of the usp_GetOrdersByProduct stored procedure.

Which statement should you execute?



Answer : C


Question 5

You have a SQL Server 2012 database named Database1. Database1 contains a table named OrderDetails.

For a given sales order, you need to retrieve the OrderID, Quantity, and LineTotal columns for all of the items in the OrderDetails table. The solution must ensure that the results can be joined to other tables.

Which code segment should you execute?



Answer : A


Question 6

You need to implement a solution that addresses the index monitoring requirements.

What should you do?



Answer : A


Question 7

You need to modify usp.GetOrdersAndItems to ensure that an order is NOT retrieved by usp_GetOrdersAndItems while the order is being updated.

What should you add to usp.GetOrdersAndItems?



Answer : B

The SET TRANSACTION ISOLATION LEVEL SERIALIZABLE statement specifies that no other statement can read data that has been modified but not yet committed by other transactions.

References:

https://docs.microsoft.com/en-us/sql/t-sql/statements/set-transaction-isolation-level-transact-sql?view=sql-server-2017

https://docs.microsoft.com/en-us/sql/t-sql/queries/hints-transact-sql-table?view=sql-server-2017


Page:    1 / 14   
Total 200 questions