New Updated Microsoft MCSE 70-464 Real Exam Questions and Answers Download 91-100

Ensurepass

QUESTION 91

DRAG DROP  (Topic 8)

You are designing two stored procedures named Procedure1 and Procedure2.

 

You identify the following requirements:

 

clip_image002Procedure1 must take a parameter that ensures that multiple rows of data can pass into the stored procedure.

clip_image002[1]Procedure2 must use business logic that resides in a Microsoft .NET Framework assembly.

 

You need to identify the appropriate technology for each stored procedure.

 

Which technologies should you identify?

 

To answer, drag the appropriate technology to the correct stored procedure in the answer area. (Answer choices may be used once, more than once, or not at all.)

 

clip_image004

 

Correct Answer:

clip_image006

 

 

QUESTION 92

You have an application that uses a view to access data from multiple tables. You need to ensure that you can insert rows into the underlying tables by using the view. What should you do?

 

A.

Create an INSTEAD OF trigger on the view.

B.

Define the view by using the SCHEMABINDING option.

C.

Define the view by using the CHECK option.

D.

Materialize the view.

 

Correct Answer: C

Explanation:

http://msdn.microsoft.com/en-us/library/ms180800.aspx http://msdn.microsoft.com/en-us/library/ms187956.aspx

 

 

QUESTION 93

You have a database that contains a user-defined function named Schema1.Udf1 and two tables named Schema1.Table1 and Schema1.Table2.

 

Schema1.Table1 has 1 million rows. The schema for Schema1.Table1 is configured as shown in the following table.

 

clip_image007

 

Schema1.Udf1 was defined by using the following code:

 

clip_image008

 

You need to write a query that will contain the following columns:

 

clip_image002[2]Country

clip_image002[3]CountryID

clip_image002[4]CustomerName

 

The solution must meet the following requirements:

 

clip_image002[5]Rows must be returned only if the function returns data.

clip_image002[6]The amount of time it takes the query to execute must be minimized.

 

Which query should you use?

 

clip_image009

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

 

 

QUESTION 94

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.)

 

clip_image010

 

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?

 

A.

WITH CHECK OPTION

B.

WITH VIEW_METADATA

C.

WITH ENCRYPTION

D.

WITH SCHEMABINDING

 

Correct Answer: A

Explanation:

The question concerning the view that has a clause “WHERE Column1 = ‘City1’ is wrong. That’s not what the CHECK option is made for. Actually you will be able to update ONLY the rows satisfied by that WHERE clause, that is, only the rows with the Column1 being ‘City1’.

None of the answers are valid from that question. You need a trigger to achieve that.

 

http://msdn.microsoft.com/en-us/library/ms187956.aspx

 

 

QUESTION 95

DRAG DROP

You are planning two stored procedures named SProc1 and SProc2. You identify the following requirements:

 

clip_image002[7]SProc1 must return a table.

clip_image002[8]SProc2 must return a status code.

 

You need to identify which options must be implemented to meet each stored procedure requirement. Which options should you identify?

 

To answer, drag the appropriate option to the correct requirement in the answer area. (Answer choices may be used once, more than once, or not at all.)

 

clip_image012

 

Correct Answer:

clip_image014

 

 

QUESTION 96

You have a Microsoft SQL Azure database.

 

You have the following stored procedure:

 

clip_image015

 

You discover that the stored procedure periodically fails to update HR.Employees.

 

You need to ensure that HR.Employees is always updated when up_employees 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?

 

A.

Add the following line of code to line 05:

SET TRANSACTION ISOLATION LEVEL SNAPSHOT

B.

Add the following line of code to line 13:

WITH (UPDLOCK)

C.

Add the following line of code to line 05:

SET TRANSACTION ISOLATION LEVEL SERIALIZABLE

D.

Add the following line of code to line 08:

WITH (UPDLOCK)

 

Correct Answer: D

 

 

QUESTION 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.

 

A.

Update less than 4,000 rows simultaneously.

B.

Use the PAGLOCK table hint.

C.

Wait for Proc2 to complete.

D.

Use the ROWLOCK table hint.

 

Correct Answer: A

 

 

QUESTION 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?

 

A.

SAVE TRANSACTION WITH MARK @transactionID

B.

ROLLBACK DISTRIBUTED TRANSACTION @transactionID

C.

BEGIN TRANSACTION WITH MARK @transactionID

D.

COMMIT TRANSACTION @transactionID

 

Correct Answer: C

 

 

QUESTION 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 “ADV” and is followed by 10 digits. The solution must minimize the amount of development effort required. What should you include in the recommendation?

 

A.

A FOREIGN KEY constraint

B.

A trigger

C.

A user-defined data type

D.

A CHECK constraint

 

Correct Answer: C

 

 

QUESTION 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?

 

A.

OUTER APPLY

B.

OUTER JOIN

C.

CROSS JOIN

D.

CROSS APPLY

 

Correct Answer: D

 

Instant Access to Download Latest Complete Collection of Microsoft MCSE 70-464 Real Exam

Try Microsoft MCSE 70-464 Free Demo