Ensurepass

Application Information

You have two servers named SQL1 and SQL2 that have SQL Server 2012 installed.

You have an application that is used to schedule and manage conferences.

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.

A junior database administrator has created all the scripts that will be used to create the database.

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. (Line numbers are included for reference only.)

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

A stored procedure named usp_UpdateSpeakersName will be executed only by other stored procedures. The stored procedures executing usp_UpdateSpeakersName will always handle transactions.

A stored procedure named usp_SelectSpeakersByName will be used to retrieve the names of speakers. Usp_SelectSpeakersByName can read uncommitted data.

A stored procedure named usp_GetFutureSessions will be used to retrieve sessions that will occur in the future.

 

Procedures.sql

70-464-demo-2

70-464-demo-3

 

 

Indexes.sql

 

70-464-demo-4

 

 

Tables.sql

 

70-464-demo-5

 

 

QUESTION 1

You need to recommend a solution to ensure that SQL1 supports the auditing requirements of usp_UpdateSpeakerName. What should you include in the recommendation?

 

  1. the Distributed Transaction Coordinator (DTC)

  2. transactiona
    l replication

  3. change data capture

  4. change tracking

 

Correct Answer: A

 

 

QUESTION 2

You need to modify usp_SelectSpeakersByName to support server-side paging. The solution must minimize the amount of development effort required. What should you add to

usp_SelectSpeakersByName?

 

  1. an OFFSET-FETCH clause

  2. a table variable

  3. the ROWNUMBER keyword

  4. a recursive common table expression

 

Correct Answer: A

 

 

QUESTION 3

You are evaluating the table design. You need to recommend a change to Tables.sql that reduces the amount of time it takes for usp_AttendeesReport to execute. What should you add at line 14 of Tables.sql?

 

  1. FullName AS (FirstName + ‘ ‘ + LastName),

  2. FullName nvarchar(100) NOT NULL DEFAULT (dbo.CreateFullName(FirstName, LastName)),

  3. FullName AS (FirstName + ‘ ‘ + LastName) PERSISTED,

  4. FullName nvarchar(100) NOT NULL CONSTRAINT DF_FullName DEFAULT

(dbo.CreateFullName (FirstName, LastName)),

 

Correct Answer: C

 

 

QUESTION 4

You need to provide referential integrity between the Sessions table and Speakers table. Which code segment should you add at line 47 of Tables.sql?

 

  1. ALTER TABLE dbo.Sessions ADD CONSTRAINT

FK_Sessions_Speakers FOREIGN KEY (SessionID)

REFERENCES dbo.Speakers (SpeakerID);

 

  1. ALTER TABLE dbo.Speakers ADD CONSTRAINT

FK_Speakers_Sessions FOREIGN KEY (SessionID)

REFERENCES dbo.Sessions (SessionID);

 

  1. ALTER TABLE dbo.Sessions ADD CONSTRAINT

FK_Sessions_Speakers FOREIGN KEY (SpeakerID)

REFERENCES dbo.Speakers (SpeakerID);

 

  1. ALTER TABLE dbo.Speakers ADD CONSTRAINT

FK_Speakers_Sessions FOREIGN KEY (SpeakerID)

REFERENCES dbo.Sessions (SessionID);

 

Correct Answer: A

 

 

QUESTION 5

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

 

  • Have a default value of false.

  • Minimize the amount of disk space used.

 

Which code block should you use?

 

  1. ALTER TABLE Attendees

ADD Confirmed bit DEFAULT 0;

 

  1. ALTER TABLE Attendees

ADD Confirmed char(1) DEFAULT ‘0’;

 

  1. ALTER TABLE Attendees

ADD Confirmed char(1) DEFAULT ‘1’;

 

  1. ALTER TABLE Attendees

ADD Confirmed bit DEFAULT 1;

 

Correct Answer: A

 

 

QUESTION 6

You execute usp_TestSpeakers. You discover that usp_SelectSpeakersByName uses inefficient execution plans. You need to update usp_SelectSpeakersByName to ensure that the most efficient execution plan is used. What should you add at line 30 of Procedures.sql?

 

  1. OPTION (FCRCESCAN)

  2. OPTION (FCRCESEEX)

  3. OPTION (OPTIMIZE FOR UNKNOWN)

  4. OPTION (OPTIMIZE FOR (@lastName = ‘Anderson’))

 

Correct Answer: C

 

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

Try Microsoft MCSE 70-464 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.