Microsoft 70-464 - Developing Microsoft SQL Server 2012/2014 Databases Exam
Page: 3 / 42
Total 209 questions
Question #11 (Topic: Testlet 2)
Scenario 2
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
[Microsoft-70-464-1.0/xmlfile-19_1.png]
[Microsoft-70-464-1.0/xmlfile-21_1.png]
Indexes.sql
[Microsoft-70-464-1.0/xmlfile-22_1.png]
Tables.sql
[Microsoft-70-464-1.0/xmlfile-23_1.png]
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?
[Microsoft-70-464-1.0/xmlfile-24_1.jpg]
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
[Microsoft-70-464-1.0/xmlfile-19_1.png]
[Microsoft-70-464-1.0/xmlfile-21_1.png]
Indexes.sql
[Microsoft-70-464-1.0/xmlfile-22_1.png]
Tables.sql
[Microsoft-70-464-1.0/xmlfile-23_1.png]
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?
[Microsoft-70-464-1.0/xmlfile-24_1.jpg]
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Question #12 (Topic: Testlet 2)
Scenario 2
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
[Microsoft-70-464-1.0/xmlfile-19_1.png]
[Microsoft-70-464-1.0/xmlfile-21_1.png]
Indexes.sql
[Microsoft-70-464-1.0/xmlfile-22_1.png]
Tables.sql
[Microsoft-70-464-1.0/xmlfile-23_1.png]
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?
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
[Microsoft-70-464-1.0/xmlfile-19_1.png]
[Microsoft-70-464-1.0/xmlfile-21_1.png]
Indexes.sql
[Microsoft-70-464-1.0/xmlfile-22_1.png]
Tables.sql
[Microsoft-70-464-1.0/xmlfile-23_1.png]
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?
A. OPTION (FORCESCAN)
B. OPTION (FORCESEEK)
C. OPTION (OPTIMIZE FOR UNKNOWN)
D. OPTION (OPTIMIZE FOR (@LastName= 'Anderson'))
Answer: C
Question #13 (Topic: Testlet 2)
Scenario 2
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
[Microsoft-70-464-1.0/xmlfile-19_1.png]
[Microsoft-70-464-1.0/xmlfile-21_1.png]
Indexes.sql
[Microsoft-70-464-1.0/xmlfile-22_1.png]
Tables.sql
[Microsoft-70-464-1.0/xmlfile-23_1.png]
You need to recommend a solution to ensure that SQL1 supports the auditing requirements of usp_UpdateSpeakerName.
What should you include in the recommendation?
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
[Microsoft-70-464-1.0/xmlfile-19_1.png]
[Microsoft-70-464-1.0/xmlfile-21_1.png]
Indexes.sql
[Microsoft-70-464-1.0/xmlfile-22_1.png]
Tables.sql
[Microsoft-70-464-1.0/xmlfile-23_1.png]
You need to recommend a solution to ensure that SQL1 supports the auditing requirements of usp_UpdateSpeakerName.
What should you include in the recommendation?
A. The Distributed Transaction Coordinator (DTC)
B. Transactional replication
C. Change data capture
D. Change tracking
Answer: A
Question #14 (Topic: Testlet 2)
Scenario 2
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
[Microsoft-70-464-1.0/xmlfile-19_1.png]
[Microsoft-70-464-1.0/xmlfile-21_1.png]
Indexes.sql
[Microsoft-70-464-1.0/xmlfile-22_1.png]
Tables.sql
[Microsoft-70-464-1.0/xmlfile-23_1.png]
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?
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
[Microsoft-70-464-1.0/xmlfile-19_1.png]
[Microsoft-70-464-1.0/xmlfile-21_1.png]
Indexes.sql
[Microsoft-70-464-1.0/xmlfile-22_1.png]
Tables.sql
[Microsoft-70-464-1.0/xmlfile-23_1.png]
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?
A. FullName nvarchar(100) NOT NULL CONSTRAINT DF_FuIlName DEFAULT (dbo.CreateFullName (FirstName, LastName)),
B. FullName AS (FirstName +` '+ LastName),
C. FullName nvarchar(100) NOT NULL DEFAULT (dbo.CreateFullName (FirstName, LastName)).
D. FullName AS (FirstName +` '+ LastName) PERSISTED,
Answer: D
Question #15 (Topic: Testlet 2)
Scenario 2
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
[Microsoft-70-464-1.0/xmlfile-19_1.png]
[Microsoft-70-464-1.0/xmlfile-21_1.png]
Indexes.sql
[Microsoft-70-464-1.0/xmlfile-22_1.png]
Tables.sql
[Microsoft-70-464-1.0/xmlfile-23_1.png]
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?
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
[Microsoft-70-464-1.0/xmlfile-19_1.png]
[Microsoft-70-464-1.0/xmlfile-21_1.png]
Indexes.sql
[Microsoft-70-464-1.0/xmlfile-22_1.png]
Tables.sql
[Microsoft-70-464-1.0/xmlfile-23_1.png]
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?
A. A table variable
B. An OFFSET-FETCH clause
C. The ROWNUMBER keyword
D. A recursive common table expression
Answer: B