[Free] Download New Latest (June 2016) Microsoft 70-465 Practice Test 78-87

Ensurepass

QUESTION 78

DRAG DROP

You have a server named SQL1 that has SQL Server 2014 installed. SQL1 hosts a database named Database! Database1 contains a table named Table1. Table1 is partitioned across five filegroups based on the TransactionType field.

 

The schema of Table1 is configured as shown in the following table.

 

clip_image002

 

Table1 contains the indexes shown in the following table.

 

clip_image004

 

You need to recommend an index strategy to maximize performance for the queries that consume the indexes available to Table1.

 

Which type of index storage should you recommend?

 

To answer, drag the appropriate index storage type to the correct index in the answer area.

 

clip_image006

 

Correct Answer:

clip_image008

 

 

 

 

 

 

 

 

 

 

 

 

QUESTION 79

DRAG DROP

You are planning to deploy a database to Windows Azure SQL Database.

 

You need to design a stored procedure to update rows. The stored procedure must meet the following requirements:

 

clip_image010If the update fails, an error must be raised to the application and the update must be discarded.

clip_image010[1]The stored procedure must be designed to maximize concurrency.

 

What should you include in your design?

 

To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

 

clip_image012

 

Correct Answer:

clip_image014

 

 

QUESTION 80

DRAG DROP

You plan to deploy SQL Server 2012. You are designing two stored procedures named USP_1 and USP_2 that have the following requirements:

 

clip_image010[2]Prevent data read by USP_1 from being modified by other active processes.

clip_image010[3]Prevent USP_2 from performing dirty reads.

 

You need to recommend the isolation level for each stored procedure. The solution must maximize concurrency.

 

Which isolation levels should you recommend?

 

To answer, drag the appropriate isolation level to the correct stored procedure in the answer area.

clip_image016

 

Correct Answer:

clip_image018

 

 

 

 

 

 

 

 

 

QUESTION 81

DRAG DROP

You use SQL Server 2014. You need to create a single object that inserts a provided value into Table1, and then returns a count of the records in Table1. Develop the solution by selecting and arranging the required code blocks in the correct order. You may not need all of the code blocks.

 

clip_image020

 

Correct Answer:

clip_image022

 

 

 

 

 

 

 

 

 

QUESTION 82

You are building a stored procedure for a Windows Azure SQL Database. The procedure will add multiple rows to a table.

 

You need to design the stored procedure to meet the following requirements:

 

clip_image010[4]If any of the new rows violates a table constraint, then no further additions must be attempted and all changes made by the stored procedure must be discarded.

clip_image010[5]If any errors occur, a row must be added to an audit table, and the original error must be returned to the caller of the stored procedure.

 

What should you include in the design?

 

A.

An explicit transaction that has XACT_ABORT disabled

B.

An implicit transaction that has error handling enabled

C.

An explicit transaction that has error handling enabled

D.

An implicit transaction that has XACT.ABORT enabled

 

Correct Answer: C

Explanation:

http://technet.microsoft.com/en-us/library/ms175127(v=SQL.105).aspx

 

 

QUESTION 83

DRAG DROP

You are the senior database administrator at Contoso, Ltd. You manage a SQL Server 2014 Instance, with multiple databases used for reporting.

 

You have recently hired a junior database administrator. You want this person to be able to view the database structures on the server, but you do not want him or her to be able to make changes or see the data in the tables.

 

The new hire’s login credentials are as follows:

 

Login name: JFree

 

Password: Jx672$qse

 

You want the new hire to be required to change his password on his next login.

 

The code that is produced should execute no matter the initial database context in which it is started.

 

You need to write the code required to give the new hire only the desired access, using the smallest number of steps. Develop the solution by selecting and arranging the required code blocks in the correct order. You may not need all of the code blocks.

 

clip_image024

 

Correct Answer:

clip_image026

 

 

QUESTION 84

You are creating a database that will store usernames and credit card numbers for an application.

You need to recommend a solution to store and reuse the credit card numbers in the

database. What should you recommend? More than one answer choice may achieve the goal. Select the BEST answer.

 

A.

Data encryption

B.

Transparent Data Encryption (TDE)

C.

Encrypting File System (EPS)

D.

Data hashing

 

Correct Answer: B

Explanation:

If we are going to encrypt credit card number for storage, then we should have Data Encryption Key(DEK) for encrypting the credit card number. http://msdn.microsoft.com/en-us/library/bb934049.aspx

 

 

QUESTION 85

You have a query that is used by a reporting dashboard. Users report that the query sometimes takes a long time to run. You need to recommend a solution to identify what is causing the issue. What should you recommend? More than one answer choice may achieve the goal. Select the BEST answer.

 

A.

Set the blocked process threshold, and then run SQL Server Profiler.

B.

Set the blocked process threshold, and then create an alert.

C.

Enable trace flag 1204, and then create an alert.

D.

Create a job that queries the sys.dm_os_waiting_tasks dynamic management view.

 

Correct Answer: B

Explanation:

Step 1: Turn on the blocked process report. This will look for any blocking taking 20 seconds or longer.

 

–Make sure you don’t have any pending changes

 

SELECT *

FROM sys.configurations

WHERE value <> value_in_use;

GO

 

exec sp_configure ‘show advanced options’, 1;

GO

RECONFIGURE

GO

 

exec sp_configure ‘blocked process threshold (s)’, 20; GO

RECONFIGURE

GO

 

Step 2: Set up a trace to capture the blocked process report. Run it as a server side trace. blocked process threshold Server Configuration Option

 

 

QUESTION 86

You are troubleshooting an application that runs a query. The application frequently causes deadlocks. You need to identify the isolation level used by the query when a deadlock occurs.

What should you do? More than one answer choice may achieve the goal. Select the BEST answer.

 

A.

Query the sys.dm_exec_requests dynamic management view.

B.

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

C.

Query the sys.dm_exec_sessions dynamic management view.

D.

Enable trace flag 1222, and then view the SQL Server error log.

 

Correct Answer: C

Explanation:

* sys.dm_exec_sessions

Returns one row per authenticated session on SQL Server. sys.dm_exec_sessions is a server-scope view that shows information about all active user connections and internal tasks.

Include the column:

transaction_isolation_level

smallint

Transaction isolation level of the session.

0 = Unspecified

1 = ReadUncomitted

2 = ReadCommitted

3 = Repeatable

4 = Serializable

5 = Snapshot

Is not nullable.

sys.dm_exec_sessions (Transact-SQL)

 

 

QUESTION 87

You have four databases that are accessed by using an Online Transaction Processing (OLTP) application. The databases are stored on a server named SQL1 that has SQL Server 2014 installed. You plan to deploy an additional server that has SQL Server 2014 installed.

 

You need to design a high-availability solution for the databases that meets the following requirements:

 

clip_image010[6]If SQL1 fails, the databases must be available.

clip_image010[7]Users must be able to run reports against a secondary copy of the databases.

 

What should you include in the design?

 

More than one answer choice may achieve the goal. Select the BEST answer.

 

A.

AlwaysOn availability groups

B.

Database mirroring

C.

Log shipping

D.

Failover Clustering

 

Correct Answer: A

Explanation:

The AlwaysOn Availability Groups feature is a high-availability and disaster- recovery solution that provides an enterprise-level alternative to database mirroring. Introduced in SQL Server 2012, AlwaysOn Availability Groups maximizes the availability of a set of user databases for an enterprise. An availability group supports a failover environment for a discrete set of user databases, known as availability databases, that fail over together.

Failover and Failover Modes (AlwaysOn Availability Groups)

 

Free VCE & PDF File for Microsoft 70-465 Real Exam

Instant Access to Free VCE Files: MCSE|MCSA|MCITP…
Instant Access to Free PDF Files: MCSE|MCSA|MCITP…