Download New Updated (June) Microsoft 70-465 Practice Test 51-60

Ensurepass

 

QUESTION 51

You have a SQL Azure database named Database1. You need to design the schema for a table named table1. Table1 will have less than one million rows. Table1 will contain the following information for each row:

 

clip_image002

 

The solution must minimize the amount of space used to store each row.

 

Which data types should you recommend for each column?

 

To answer, drag the appropriate data type to the correct column in the answer area.

 

clip_image004

 

Correct Answer:

clip_image006

 

 

 

QUESTION 52

You have a SQL Server 2014 instance named SQL1. SQL1 creates error events in the Windows Application event log. You need to recommend a solution that will run an application when SQL1 logs a specific error in the Application log. Which SQL elements should you include in the recommendation? (Each correct answer presents part of the solution. Choose all that apply.)

 

A.

A policy

B.

A maintenance plan

C.

An alert

D.

A job

E.

A trigger

 

Correct Answer: DE

Explanation:

Use a trigger that starts a job which executes the application.

http://technet.microsoft.com/en-us/library/hh849759.aspx

 

 

QUESTION 53

You have a database named DB1. You plan to create a stored procedure that will insert rows into three different tables. Each insert must use the same identifying value for each table, but the value must increase from one invocation of the stored procedure to the next. Occasionally, the identifying value must be reset to its initial value. You need to design a mechanism to hold the identifying values for the stored procedure to use. What should you do?

 

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

 

A.

Create a sequence object that holds the next value in the sequence. Retrieve the next value by using the stored procedure. Reset the value by using an ALTER SEQUENCE statement as needed.

B.

Create a sequence object that holds the next value in the sequence. Retrieve the next value by using the stored procedure. Increment the sequence object to the next value by using an ALTER SEQUENCE statement. Reset the value as needed by using a different ALTER SEQUENCE statement.

C.

Create a fourth table that holds the next value in the sequence. At the end each transaction, update the value by using the stored procedure. Reset the value as needed by using an UPDATE statement.

D.

Create an identity column in each of the three tables. Use the same seed and the same increment for each table. Insert new rows into the tables by using the stored procedure. Use the DBCC CHECKIDENT command to reset the columns as needed.

 

Correct Answer: A

Explanation:

* an application can obtain the next sequence number without inserting the row by calling the NEXT VALUE FOR function.

* ALTER SEQUENCE

Includes argument:

RESTART [ WITH <constant> ]

 

The next value that will be returned by the sequence object. If provided, the RESTART WITH value must be an integer that is less than or equal to the maximum and greater than or equal to the minimum value of the sequence object. If the WITH value is omitted, the sequence numbering restarts based on the original CREATE SEQUENCE options.

 

* CREATE SEQUENCE

Creates a sequence object and specifies its properties. A sequence is a user-defined schema bound object that generates a sequence of numeric values according to the specification with which the sequence was created. The sequence of numeric values is generated in an ascending or descending order at a defined interval and can be configured to restart (cycle) when exhausted.

Sequence Numbers

 

 

QUESTION 54

Your network contains an Active Directory domain that has two groups named Group1 and Group2. The domain contains two SQL Server instances named SQLDev and SQLProd. Each SQL Server instance has access to various storage media. The SQL Server instances have a database that contains a table named Table1. Table1 contains a column named Column1. The value for Column1 can be
either Value1 or Value2. You need to recommend a solution to ensure that users in Group1 can retrieve only rows from Column1 that contain the value of Value1. What should you recommend?

 

A.

A dynamic management view

B.

Filegroups

C.

Snapshot isolation

D.

User-defined views

 

Correct Answer: D

Explanation:

A view is a virtual table whose contents are defined by a query. Like a table, a view consists of a set of named columns and rows of data. Unless indexed, a view does not exist as a stored set of data values in a database. The rows and columns of data come from tables referenced in the query defining the view and are produced dynamically when the view is referenced.

A view acts as a filter on the underlying tables referenced in the view. http://msdn.microsoft.com/en-us/library/ms190174.aspx

 

Incorrect:

Not A: Dynamic management views and functions return server state information that can be used to monitor the health of a server instance, diagnose problems, and tune performance.

http://technet.microsoft.com/en-us/library/ms188754(v=sql.120).aspx

 

 

QUESTION 55

You have two SQL Server instances named SQLDev and SQLProd that have access to various storage media.

 

You plan to synchronize SQLDev and SQLProd.

 

You need to recommend a solution that meets the following requirements:

 

clip_image008The database schemas must be synchronized from SQLDev to SQLProd.

clip_image008[1]The database on SQLDev must be deployed to SQLProd by using a package.

clip_image008[2]The package must support being deployed to Windows Azure SQL Database.

 

What should you recommend?

 

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

 

A.

A database snapshot

B.

SQL Server Integration Services (SSIS)

C.

Change data capture

D.

A data-tier application

 

Correct Answer: B

Explanation:

* SIS supports connections to SQL Database by using the ADO.NET provider. OLEDB is not supported at this time. You can build the SSIS package connecting to SQL Database and create the data flow tasks the same way as you would against a typical on-premise SQL Server.

SSIS for Azure and Hybrid Data Movement

 

 

QUESTION 56

You manage a SQL Server 2014 instance that contains a database named DB1. Users report that some queries to DB1 take longer than expected. Although most queries run in less than one second, some queries take up to 20 seconds to run. You need to view all of the performance statistics for each database file. Which method should you use?

 

A.

Query the sys.dm_os_tasks dynamic management view.

B.

Query the sys.dm_os_performance_counters dynamic management view.

C.

Query the sys.dm_io_virtual_file_stats dynamic management function.

D.

Examine the Data File I/O pane in Activity Monitor.

 

Correct Answer: C

Explanation:

sys.dm_io_virtual_file_stats

Returns I/O statistics for data and log files.

sys.dm_io_virtual_file_stats (Transact-SQL)

 

 

QUESTION 57

DRAG DROP

You plan to deploy SQL Server 2014. Your company identifies the following monitoring requirements for the database:

 

clip_image008[3]An e-mail message must be sent if the SQL Server Authentication mode changes.

clip_image008[4]An e-mail message must be sent if CPU utilization exceeds 90 percent.

 

You need to identify which feature meets each monitoring requirement.

 

Which features should you identify?

 

To answer, drag the appropriate feature to the correct monitoring requirement in the answer area.

 

clip_image010

 

Correct Answer:

clip_image012

 

 

QUESTION 58

You are the new database administrator for a SQL Server 2014 instance. You conduct an assessment on the instance and determine that the auto create statistics setting on the database named DB1 has been turned off. You see no evidence that any maintenance has been occurring.

You want to set up monitoring to see if query performance is being affected. You need to set up a monitoring process that will capture any cases where statistics could have been useful if they existed. What should you do?

 

A.

Create a SQL Server Agent job to execute DBCC SHOWSTATISTICS on each of the primary key columns in the database.

B.

Use the missing_column_statistics extended event.

C.

Query the sys.statistics system view to see all cases where the statistics were last needed.

D.

Write a query using the sys.dm_db_missing_index_group_stats DMV Joining to sys.indexes, filtering on is_hypothetical.

 

Correct Answer: B

Explanation:

The Missing Column Statistics event class indicates that column statistics that could have been useful for the optimizer are not available. By monitoring the Missing Column Statistics event class, you can determine if there are statistics missing for a column used by a query. This can cause the optimizer to choose a less efficient query plan than expected.

 

Missing Column Statistics Event Class

 

QUESTION 59

DRAG DROP

You plan to deploy SQL Server 2014.

 

Your company identifies the following monitoring requirements:

 

clip_image008[5]Tempdb must be monitored for insufficient free space.

clip_image008[6]Deadlocks must be analyzed by using Deadlock graphs.

 

You need to identify which feature meets each monitoring requirement.

 

Which features should you identify?

 

To answer, drag the appropriate feature to the correct monitoring requirement in the

answer area.

 

clip_image014

 

Correct Answer:

clip_image016

 

QUESTION 60

DRAG DROP

You plan to deploy three highly available SQL Server environments that will use SQL Server 2014.

 

You identify the following specifications for each environment as shown following table.

 

clip_image018

 

You need to recommend which high-availability feature is required for each environment.

 

Which features should you identify?

 

To answer, drag the appropriate feature to the correct requirement in the answer area.

 

clip_image020

 

Correct Answer:

clip_image022

 

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…