Ensurepass

QUESTION 1

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?

 

  1. Materialize the view.

  2. Create an INSTEAD OF trigger on the view.

  3. Define the view by using the CHECK option.

  4. Define the view by using the SCHEMABINDING option.

 

Correct Answer: B

 

 

QUESTION 2

You create a view by using the following code:

 

70-459-demo-2

 

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?

 

  1. EXEC sp_refreshview @viewname = ‘dbo.View1’;

 

  1. ALTER dbo.View1 WITH SCHEMABINDING, VIEW_METADATA

AS

SELECT t1.col1, t1.col2, t2.*

FROM dbo.Table1 AS t1 JOIN dbo.Table2 AS t2

ON t1.col1 = t2.col2;

 

  1. DROP dbo.View1;

GO

CREATE dbo.View1 WITH SCHEMABINDING, VIEW_METADATA

AS

SELECT t1.col1, t1.col2, t2.*

FROM dbo.Table1 AS t1 JOIN dbo.Table2 AS t2

ON t1.col1 = t2.col2;

 

  1. EXEC sp_refreshsqlmodule @name = ‘dbo.Table2’;

 

Correct Answer: B

QUESTION 3

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.

 

  1. a Data Definition Language (DDL) trigger

  2. a Data Manipulation Language (DML) trigger

  3. a DEFAULT constraint

  4. a FOREIGN KEY constraint

  5. a CHECK constraint

 

Correct Answer: E

 

 

QUESTION 4

You have an index for a table in a SQL Azure database. The database is used for Online

Transaction Processing (OLTP). You discover that the index consumes more physical disk space

than necessary. You need to minimize the amount of disk space that the index consumes. What

should you set from the index options?

 

  1. STATISTICS_NORECOMPUTE = OFF

  2. STATISTICS_NORECOMPUTE = ON

  3. FILLFACTOR = 0

  4. FILLFACTOR = 80

 

Correct Answer: C

 

 

QUESTION 5

You run the following code:

 

70-459-demo-3

 

You need to ensure that the root node of the XML data stored in the Details column is

<Order_Details>. What should you implement? More than one answer choice may achieve the

goal. Select the BEST answer.

 

  1. A user-defined data type

  2. A Data Definition Language (DDL) trigger

  3. A data manipulation language (DML) trigger

  4. An XML schema collection

  5. An XML index

 

Correct Answer: D

 

 

QUESTION 6

Your company has a SQL Azure subscription. You implement a database named Database1. In

Database1, you create 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?

 

  1. Grant User1 the INSERT permission on Table2.

  2. Add User1 to the db_datawriter role.

  3. Grant User1 the EXECUTE permission on sp1.

  4. Change sp1 to run as the sa user.

 

Correct Answer: C

 

 

QUESTION 7

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.

 

  1. Encrypting File System (EFS)

  2. One-way encryption

  3. Reversible encryption

  4. Transparent Data Encryption (TDE)

 

Correct Answer: B

 

 

 

 

 

 

 

 

 

QUESTION 8

You are designing a SQL Server database for an order fulfillment system.

You create a table named Sales.Orders by using the following script:

 

70-459-demo-4

 

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.

 

  1. To the Sales.Orders table, add a column named Status that will store the order status. Update

the Status column as the order status changes.

  1. To the Sales.Orders table, add three columns named FulfilledDate, ShippedDate, and

ReceivedDate. Update the value of each column from null to the appropriate date as the

order status changes.

  1. Implement change data capture on the Sales.Orders table.

  2. Create a new table named Sales.OrderStatus that contains three columns named OrderID,

StatusDate, and Status. Insert new rows into the table as the order status changes.

 

Correct Answer: D

 

 

QUESTION 9

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.

 

  1. Query the sys.dm_exec_sessions dynamic management view.

  2. Create an extended events session to capture deadlock information.

  3. Query the sys.dm_exec_requests dynamic management view.

  4. Create a trace in SQL Server Profiler that contains the Deadlock graph event.

 

Correct Answer: B

 

 

QUESTION 10

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.

 

  1. SQL Server 2012 Enterprise

  2. SQL Azure

  3. SQL Server 2012 Express with Advanced Services

  4. SQL Server 2012 Standard

 

Correct Answer: B

 

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

Try Microsoft MCSE 70-459 Free Demo

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.