Get Full Version of the Exam
http://www.EnsurePass.com/70-464.html
Question No.77
DRAG DROP
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 named Column2 that uses one-way hashing. 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.
Correct Answer:
Question No.78
You use SQL Azure to store data used by an e-commerce application. You develop a stored procedure named sp1. Sp1 is used to read and change the price of all the products sold on the e- commerce site. You need to ensure that other transactions are blocked from updating product
data while sp1 is executing. Which transaction isolation level should you use in sp1?
-
Repeatable read
-
Read committed
-
Serializable
-
Snapshot
Correct Answer: C
Question No.79
You review a query that runs slowly. The query accesses data in a table named Schema1.Table1. The following is the relevant portion of the execution plan for the query:
You need to create the missing index. Which code segment should you execute?
-
CREATE NONCLUSTERED INDEX IX1 on Schema1.Table1 (Column1) INCLUDE (Column4) WHERE Column2 lt;gt; Column3
-
CREATE NONCLUSTERED INDEX IX1 on Schema1.Table1 (Column1)
-
CREATE NONCLUSTERED INDEX IX1 on Schema1.Table1 (Column1, Column2, Column3) INCLUDE (Column4)
-
CREATE NONCLUSTERED INDEX IX1 on schema1.Table1 (Column1) INCLUDE (Column4)
Correct Answer: C
Question No.80
You use SQL Server 2012 to maintain the data used by the applications at your company. You plan to create a table named Table1 by using the following statement. (Line numbers are included for reference only.)
You need to ensure that Table1 contains a column named UserName. The UserName column will:
Store string values in any language. Accept a maximum of 200 characters.
Be case-insensitive and accent-insensitive. Which code segment should you add at line 03?
-
UserName nvarchar(200) COLLATE Latin1_General_CS_AS NOT NULL,
-
UserName varchar(200) COLLATE Latin1_General_CI_AI NOT NULL,
-
UserName varchar(200) COLLATE Latin 1_General_CS_AS NOT NULL,
-
UserName nvarchar(200) COLLATE Latin1_General_CI_AI NOT NULL,
Correct Answer: D
Question No.81
You execute the following code:
You need to select the task that has an IsFinished value of true from the Project that has an Id value of 1. Which code segment should you use?
-
Option A
-
Option B
-
Option C
-
Option D
Correct Answer: B
Question No.82
You are creating a table to support an application that will cache data outside of SQL Server. The application will detect whether cached values were changed before it updates the values. You need to create the table, and then verify that you can insert a row into the table. Which code segment should you use?
-
Option A
-
Option B
-
Option C
-
Option D
Correct Answer: C
Explanation:
http://msdn.microsoft.com/en-us/library/ms182776.aspx http://msdn.microsoft.com/en- us/library/ms187942.aspx http://msdn.microsoft.com/en-us/library/ms190348.aspx
Question No.83
Your company has a SQL Azure subscription. You implement a database named Database1. Database1 has two tables named Table1 and Table2. You create a stored procedure named sp1. Sp1 reads data from Table1 and inserts data into Table2. A user named User1 informs you that he is unable to run sp1. You verify that User1 has the SELECT permission on Table1 and Table2. You need to ensure that User1 can run sp1. The solution must minimize the number of permissions assigned to User1. What should you do?
-
Change sp1 to run as the saUser.
-
Grant User1 the EXECUTE permission on sp1.
-
Add User1 to the db_datawriter role.
-
Grant User1 the INSERT permission on Table2.
Correct Answer: B
Explanation:
http://msdn.microsoft.com/en-us/library/ms191291.aspx
Question No.84
DRAG DROP
You run the following code segment:
After you add 10,000 rows to Customers, you discover that the index is fragmented. You need to defragment the index in the least amount of time. Which code segment should you execute?
To answer, drag the appropriate value to the correct location in the code segment in the answer area. (Answer choices may be used once, more than once, or not at all.)
Correct Answer:
Question No.85
You execute the following code:
You create a nonclustered index named IX_CustomerName on the CustomerName column. You execute the following query:
You need to reduce the amount of time it takes to execute the query. What should you do?
-
Partition the table and use the CustomerName column for the partition scheme.
-
Replace IX_CustomerName with a clustered index.
-
Replace LEFT(CustomerName ,1) = #39;a#39; with CustomerName LIKE #39;a%#39;.
-
Replace LEFT(CustomerName ,1) = #39;a#39; with SUBSTRING(CustomerName ,1,1) – #39;a#39;.
Correct Answer: C
Explanation:
http://msdn.microsoft.com/en-us/library/ms179859.aspx http://msdn.microsoft.com/en- us/library/ms187748.aspx
Question No.86
You have a table named Rooms that contains three columns. You execute the following query:
You discover the execution plan shown in the exhibit. (Click the Exhibit button.)
You need to recommend a solution to reduce the amount of time it takes to execute the query. What should you do? More than one answer choice may achieve the goal. Select the BEST answer.
-
Include the RoomName column and the Position column in the Room_IX index.
-
Create a nonclustered index for RoomName, Id, and Position.
-
Create a clustered index for Id.
-
Use the WITH (INDEX(Room_IX),NOLOCK) query hint.
Correct Answer: B
Get Full Version of the Exam
70-464 Dumps
70-464 VCE and PDF