Download New Updated (June) Microsoft 70-469 Practice Test Topic 3, Scenario 3

Ensurepass

 

Topic 3, Scenario 3

Application Information

You have two servers named SQL1 and SQL2. SQL1 has SQL Server 2012 Enterprise installed. SQL2 has SQL Server 2008 Standard installed.

 

 

 

You have an application that is used to manage employees and office space. Users report that the application has many errors and is very slow.

 

You are updating the application to resolve the issues. You plan to create a new database on SQL1 to support the application. The script that you plan to use to create the tables for the new database is shown in Tables.sql. The script that you plan to use to create the stored procedures for the new database is shown in StoredProcedures.sql. The script that you plan to use to create the indexes for the new database is shown in Indexes.sql.

A database named DB2 resides on SQL2. DB2 has a table named EmployeeAudit that will audit changes to a table named Employees.

 

A stored procedure named usp_UpdateEmployeeName will be executed only by other stored procedures. The stored procedures executing usp_UpdateEmp!oyeeName will always handle transactions.

 

A stored procedure named usp_SelectEmployeesByName will be used to retrieve the names of employees. Usp_SelectEmployeesByName can read uncommitted data.

 

A stored procedure named usp_GetFutureOfficeAssignments will be used to retrieve office assignments that will occur in the future.

 

StoredProcedures.sql

 

 

 

Indexes.sql

 

 

 

clip_image002

 

Tables.sql

 

clip_image004

 

 

QUESTION 24  (Topic 3)

 

 

You execute usp_SelectEmployeesByName multiple times, passing strings of varying lengths to @LastName. You discover that usp_SelectEmployeesByName uses inefficient execution plans.

 

You need to update usp_SelectEmployeesByName to ensure that the most efficient execution plan is used.

 

What should you add at line 31 of StoredProcedures.sql?

 

A.

OPTION (ROBUST PLAN)

B.

OPTION (OPTIMIZE FOR UNKNOWN)

C.

OPTION (KEEP PLAN)

D.

OPTION (KEEPFIXED PLAN)

 

Answer: B

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

 

 

QUESTION 25  (Topic 3)

 

You need to recommend a solution to ensure that SQL1 supports the auditing requirements of usp_UpdateEmployeeName.

 

What should you include in the recommendation?

 

A.

Change data capture

B.

Change tracking

C.

Transactional replication

D.

The Distributed Transaction Coordinator (DTC)

 

Answer: D

 

 

QUESTION 26  (Topic 3)

 

You need to add a new column named Confirmed to the Employees table. The solution must meet the following requirements:

 

 

Have a default value of TRUE.

Minimize the amount of disk space used.

 

Which code segment should you use?

 

clip_image006

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Answer: D

 

 

QUESTION 27  (Topic 3)

 

You need to modify usp_SelectEmployeesByName to support server-side paging. The solution must minimize the amount of development effort required.

 

What should you add to usp_SelectEmployeesByName?

 

A.

A table variable

B.

The ROWNUMBER keyword

C.

An OFFSET-FETCH clause

D.

A recursive common table expression

 

Answer: C

Explanation:http://www.mssqltips.com/sqlservertip/2696/comparing-performance-for-different-sql- serverpaging-methods/

http://msdn.microsoft.com/en-us/library/ms188385.aspx http://msdn.microsoft.com/en-us/library/ms180152.aspx http://msdn.microsoft.com/en-us/library/ms186243.aspx http://msdn.microsoft.com/en-us/library/ms186734.aspx http://www.sqlserver-training.com/how-to-use-offset-fetch-option-in-sql-server-order- byclause/-

http://www.sqlservercentral.com/blogs/juggling_with_sql/2011/11/30/using-offset-and-fetch/

 

 

QUESTION 28  (Topic 3)

 

You need to create the object used by the parameter of usp_UpdateEmployeeName.

 

Which code segment should you use?

 

A.

CREATE XML SCHEMA COLLECTION EmployeesInfo

B.

CREATE TYPE EmployeesInfo AS Table

C.

CREATE SCHEMA EmployeesInfo

D.

CREATE TABLE EmployeesInfo

 

Answer: B

Explanation:Example Usage of Table-Valued Parameters (Database Engine) http://msdn.microsoft.com/en-us/library/bb510489.aspx (Benefits of using Table-Valued Parameters)

/* Create a table type. */

CREATE TYPE LocationTableType AS TABLE

( LocationName VARCHAR(50)

, CostRate INT );

GO

/* Create a procedure to receive data for the table-valued parameter. */ CREATE PROCEDURE dbo. usp_InsertProductionLocation @TVP LocationTableType READONLY

AS

 

 

 

SET NOCOUNT ON

INSERT INTO AdventureWorks2012.Production.Location (Name

,CostRate

,Availability

,ModifiedDate)

SELECT *, 0, GETDATE()

FROM @TVP;

GO

Also:

 

http://msdn.microsoft.com/en-us/library/ms175007.aspx(CREATE TYPE *tabletypename* AS

TABLE)

http://msdn.microsoft.com/en-us/library/ms175010.aspx(table data types) Wrong Answers:

http://msdn.microsoft.com/en-us/library/ms174979.aspx(CREATE TABLE) http://msdn.microsoft.com/en-us/library/ms189462.aspx(CREATE SCHEMA) http://msdn.microsoft.com/en-us/library/ms176009.aspx(CREATE XML SCHEMA COLLECTION)

 

 

QUESTION 29  (Topic 3)

 

You need to provide referential integrity between the Offices table and Employees table.

 

Which code segment or segments should you add at line 27 of Tables.sql? (Each correct answer presents part of the solution. Choose all that apply.)

 

 

 

clip_image008

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Answer: CD

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

 

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

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