You are creating a database that will store usernames and passwords for an application. You need to
recommend a solution to store the passwords in the database. What should you recommend? More than one
answer choice may achieve the goal. Select the BEST answer.
You are designing a SQL Server database for an order fulfillment system. You create a table named
Sales.Orders by using the following script:
Each order is tracked by using one of the following statuses:
Fulfilled
Shipped
Ordered
Received
You need to design the database to ensure that you can retrieve the status of an order on a given date. The
solution must ensure that new statuses can be added in the future. What should you do? More than one answer
choice may achieve the goal. Select the BEST answer.
You are troubleshooting an application that runs a query. The application frequently causes deadlocks. You
need to identify which transaction causes the deadlock. What should you do? More than one answer choice
may achieve the goal. Select the BEST answer.
You plan to create a database. The database will be used by a Microsoft .NET application for a special event
that will last for two days. During the event, data must be highly available. After the event, the database will be
deleted. You need to recommend a solution to implement the database while minimizing costs. The solution
must not affect any existing applications. What should you recommend? More than one answer choice may
achieve the goal. Select the BEST answer.
You have a database hosted on SQL Azure. You are developing a script to create a view that will be used to
update the data in a table. The following is the relevant portion of the script. (Line numbers are included for
reference only.)
You need to ensure that the view can update the data in the table, except for the data in Column1.
Which code segment should you add at line 06?
You have a text file that contains an XML Schema Definition (XSD). You have a table named Schema1.Table1.
You have a stored procedure named Schema1.Proc1 that accepts an XML parameter named Param1. You
need to store validated XML data in Schema1.Table1. The solution must ensure that only valid XML data is
accepted by Param1. What should you do? (Each correct answer presents part of the solution. Choose all that
apply.)
You administer a Microsoft SQL Server 2012 failover cluster that contains two nodes named Node A and Node
added to the existing cluster. You need to ensure that the SQL Server instance can use all nodes of the cluster.
What should you do?
You are migrating a database named Orders to a new server that runs Microsoft SQL Server 2012. You
attempt to add a SQL login, [User1], to the database. However, you receive the following error message:
"User already exists in current database."
You need to configure the [User1] login to be able to access the Orders database and retain the original
permissions. You need to achieve this goal by using the minimum required permissions. Which Transact-SQL
statement should you use?
You create a view by using the following code:
Several months after you create the view, users report that the view has started to return unexpected results.
You discover that the design of Table2 was modified since you created the view. You need to ensure that the
view returns the correct results. Which code segment should you run?
You are creating a table named Orders. You need to ensure that every time a new row is added to the Orders
table, a user-defined function is called to validate the row before the row is added to the table. What should you
use? More than one answer choice may achieve the goal. Select the BEST answer.