PrepAway - Latest Free Exam Questions & Answers

Category: 70-464 (v.3)

Briefing 70-464: Developing Microsoft SQL Server 2012 Databases (update January 2nd, 2018)

What should you add to usp_SelectEmployeesByName?

###BeginCaseStudy###

Testlet 1
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

Tables.sql

###EndCaseStudy###

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?

Which code segment or segments should you add at line 2…

###BeginCaseStudy###

Testlet 1
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

Tables.sql

###EndCaseStudy###

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.)

Which code segment should you use?

###BeginCaseStudy###

Testlet 1
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

Tables.sql

###EndCaseStudy###

You need to create the object used by the parameter of usp_UpdateEmployeeName.
Which code segment should you use?

Which code segment should you use?

###BeginCaseStudy###

Testlet 1
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

Tables.sql

###EndCaseStudy###

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?

What should you include in the recommendation?

###BeginCaseStudy###

Testlet 1
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

Tables.sql

###EndCaseStudy###

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

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

###BeginCaseStudy###

Testlet 1
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

Tables.sql

###EndCaseStudy###

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?

You need to recommend a change to Indexes.sql Which lin…

###BeginCaseStudy###
Testlet 1
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

Indexes.sql

Tables.sql

###EndCaseStudy###

You are evaluating the index design for the database.
You have the following requirements:
minimize the amount of time it takes for usp_AttendeesReport to run
minimize the amount of database fragmentation.
You need to recommend a change to Indexes.sql
Which line of code should you use to replace line 12 of Indexes.sql?

You need to ensure that if any of the statements in usp…

###BeginCaseStudy###
Testlet 1
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

Indexes.sql

Tables.sql

###EndCaseStudy###

You need to ensure that if any of the statements in usp_UpdateSpeakerName return an error message, all of
the changes executed by usp_UpdateSpeakerName are not committed to the database.
What should you do in Procedures.sql? (Each correct answer presents part of the solution.
Choose all that apply.)

You need to minimize the amount of time it takes to exe…

###BeginCaseStudy###
Testlet 1
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

Indexes.sql

Tables.sql

###EndCaseStudy###

B\\Batch 1
While testing usp.GetFutureSessions, you discover that IX_Sessions is accessed by a scan rather than a seek.
You need to minimize the amount of time it takes to execute usp_GetFutureSessions.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

What should you update?

###BeginCaseStudy###
Testlet 1
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

Indexes.sql

Tables.sql

###EndCaseStudy###

You discover that usp.SelectSpeakersByName executes slowly if usp_UpdateSpeakerName executes
simultaneously.
You need to minimize the execution time of usp.SelectSpeakersByName. The solution must not affect the
performance of the other stored procedures.
What should you update?


Page 17 of 19« First...10...1516171819