PrepAway - Latest Free Exam Questions & Answers

Category: 70-465 (v.2)

Exam 70-465: Designing Database Solutions for Microsoft SQL Server 2012 (update April 27th, 2017)

What should you recommend?

You need to recommend a solution that addresses the concurrency requirement. What should you
recommend?Case Study:
Contoso, Ltd
Overview:
Application Overview
Contoso, Ltd., is the developer of an enterprise resource planning (ERP) application.
Contoso is designing a new version of the ERP application.The previous version of the ERP application used
SQL Server 2008 R2. The new version will use SQL Server 2012.
The ERP application relies on an import process to load supplier data. The import process updates thousands
of rows simultaneously, requires exclusive access to the database, and runs daily.
You receive several support calls reporting unexpected behavior in the ERP application.
After analyzing the calls, you conclude that users made changes directly to the tables in the database.
Tables
The current database schema contains a table named OrderDetails. The OrderDetails table contains
information about the items sold for each purchase order. OrderDetails stores the product ID, quantities, and
discounts applied to each product in a purchase order. The product price is stored in a table named Products.
The Products table was defined by using the SQL_Latin1_General_CP1_CI_AS collation. A column named
ProductName was created by using the varchar data type.
The database contains a table named Orders. Orders contains all of the purchase orders from the last 12
months. Purchase orders that are older than 12 months are stored in a table named OrdersOld.
The previous version of the ERP application relied on table-level security.
Stored Procedures
The current version of the database contains stored procedures that change two tables. The following shows
the relevant portions of the two stored procedures:

Customer Problems:
Installation Issues
The current version of the ERP application requires that several SQL Server logins be set up to function
correctly. Most customers set up the ERP application in multiple locations and must create logins multiple
times.
Index Fragmentation Issues
Customers discover that clustered indexes often are fragmented. To resolve this issue, the customers
defragment the indexes more frequently.
All of the tables affected by fragmentation have the following columns that are used as the clustered index key:

Backup Issues
Customers who have large amounts of historical purchase order data report that backup time is unacceptable.
Search Issues
Users report that when they search product names, the search results exclude product names that contain
accents, unless the search string includes the accent.
Missing Data Issues
Customers report that when they make a price change in the Products table, they cannot retrieve the price that
the item was sold for in previous orders.
Query Performance Issues
Customers report that query performance degrades very quickly. Additionally, the customers report that users
cannot run queries when SQL Server runs maintenance tasks.
Import Issues
During the monthly import process, database administrators receive many supports call from users who report
that they cannot access the supplier data. The database administrators want to reduce the amount of time
required to import the data.
Design Requirements:
File Storage Requirements
The ERP database stores scanned documents that are larger than 2 MB. These files must only be accessed
through the ERP application. File access must have the best possible read and write performance.
Data Recovery RequirementsIf the import process fails, the database must be returned to its prior state immediately.
Security Requirements
You must provide users with the ability to execute functions within the ERP application, without having direct
access to the underlying tables.
Concurrency Requirements
You must reduce the likelihood of deadlocks occurring when Sales.Prod and Sales.Proc2 execute.

What should you include in the recommendation?

You need to recommend a solution that addresses the backup issue. The solution must minimize the amount of
development effort. What should you include in the recommendation?
Case Study:
Contoso, Ltd
Overview:
Application Overview
Contoso, Ltd., is the developer of an enterprise resource planning (ERP) application.
Contoso is designing a new version of the ERP application.The previous version of the ERP application used
SQL Server 2008 R2. The new version will use SQL Server 2012.
The ERP application relies on an import process to load supplier data. The import process updates thousands
of rows simultaneously, requires exclusive access to the database, and runs daily.
You receive several support calls reporting unexpected behavior in the ERP application.
After analyzing the calls, you conclude that users made changes directly to the tables in the database.
Tables
The current database schema contains a table named OrderDetails. The OrderDetails table contains
information about the items sold for each purchase order. OrderDetails stores the product ID, quantities, and
discounts applied to each product in a purchase order. The product price is stored in a table named Products.
The Products table was defined by using the SQL_Latin1_General_CP1_CI_AS collation. A column named
ProductName was created by using the varchar data type.The database contains a table named Orders. Orders contains all of the purchase orders from the last 12
months. Purchase orders that are older than 12 months are stored in a table named OrdersOld.
The previous version of the ERP application relied on table-level security.
Stored Procedures
The current version of the database contains stored procedures that change two tables. The following shows
the relevant portions of the two stored procedures:

Customer Problems:
Installation Issues
The current version of the ERP application requires that several SQL Server logins be set up to function
correctly. Most customers set up the ERP application in multiple locations and must create logins multiple
times.
Index Fragmentation Issues
Customers discover that clustered indexes often are fragmented. To resolve this issue, the customers
defragment the indexes more frequently.
All of the tables affected by fragmentation have the following columns that are used as the clustered index key:

Backup Issues
Customers who have large amounts of historical purchase order data report that backup time is unacceptable.
Search Issues
Users report that when they search product names, the search results exclude product names that contain
accents, unless the search string includes the accent.
Missing Data Issues
Customers report that when they make a price change in the Products table, they cannot retrieve the price that
the item was sold for in previous orders.
Query Performance Issues
Customers report that query performance degrades very quickly. Additionally, the customers report that users
cannot run queries when SQL Server runs maintenance tasks.
Import Issues
During the monthly import process, database administrators receive many supports call from users who report
that they cannot access the supplier data. The database administrators want to reduce the amount of time
required to import the data.
Design Requirements:
File Storage Requirements
The ERP database stores scanned documents that are larger than 2 MB. These files must only be accessed
through the ERP application. File access must have the best possible read and write performance.
Data Recovery Requirements
If the import process fails, the database must be returned to its prior state immediately.
Security Requirements
You must provide users with the ability to execute functions within the ERP application, without having direct
access to the underlying tables.
Concurrency Requirements
You must reduce the likelihood of deadlocks occurring when Sales.Prod and Sales.Proc2 execute.

What should you include in the recommendation?

You need to recommend a solution to meet the security requirements of the junior database administrators.
What should you include in the recommendation?
Case Study:
A)
Datum Case B
Overview:
General Overview
A)
Datum Corporation has offices in Miami and Montreal.
The network contains a single Active Directory forest named adatum.com. The offices connect to each other by
using a WAN link that has a 5-ms latency.
A)
Datum standardizes its database platform by using SQL Server 2012 Enterprise edition.
Databases Each office contains databases named Sales, Inventory, Customers, Products, Personnel, and Dev.
Servers and databases are managed by a team of database administrators. Currently, all of the database
administrators have the same level of permissions on all of the servers and all of the databases.
The Customers database contains two tables named Customers and Classifications. The following graphic
shows the relevant portions of the tables:

The following table shows the current data in the Classifications table:

The Inventory database is updated frequently. The database is often used for reporting. A full backup of the
database currently takes three hours to complete.
Stored Procedures
A stored procedure named sp1 generates millions of rows of data for multiple reports. Sp1 combines data from
five different tables from the Sales and Customers databases in a table named Table1.
After Table1 is created, the reporting process reads data from Table1 sequentially several times. After the
process is complete, Table1 is deleted.
A stored procedure named sp2 is used to generate a product list. The product list contains the names of
products grouped by category. Sp2 takes several minutes to run due to locks on the tables the procedure
accesses. The locks are caused by sp1 and sp3.
A stored procedure named sp3 is used to update prices. Sp3 is composed of several UPDATE statements
called in sequence from within a transaction. Currently, if one of the UPDATE statements fails, the stored
procedure fails.
A stored procedure named sp4 calls stored procedures in the Sales, Customers, and Inventory databases. The
nested stored procedures read tables from the Sales, Customers, and Inventory databases. Sp4 uses an
EXECUTE AS clause. All nested stored procedures handle errors by using structured exception handling.
A stored procedure named sp5 calls several stored procedures in the same database. Security checks are
performed each time sp5 calls a stored procedure.
You suspect that the security checks are slowing down the performance of sp5.
All stored procedures accessed by user applications call nested stored procedures. The nested stored
procedures are never called directly.
Design Requirements:
Data Recovery
You must be able to recover data from the Inventory database if a storage failure occurs. You have a Recovery
Time Objective (RTO) of 5 minutes.
You must be able to recover data from the Dev database if data is lost accidentally. You have a Recovery Point
Objective (RPO) of one day.
Classification Changes
You plan to change the way customers are classified. The new classifications will have four levels based on the
number of orders. Classifications may be removed or added in the future.
Management requests that historical data be maintained for the previous classifications.
SecurityA group of junior database administrators must be able to manage security for the Sales database. The junior
database administrators will not have any other administrative rights. A. Datum wants to track which users run
each stored procedure.
Storage
A)
Datum has limited storage. Whenever possible, all storage space should be minimized for all databases and
all backups.
Error Handling
There is currently no error handling code in any stored procedure. You plan to log errors in called stored
procedures and nested stored procedures. Nested stored procedures are never called directly.

What should you include in the recommendation?

You need to recommend a solution to ensure that sp4 adheres to the security requirements. What should you
include in the recommendation?
Case Study:
A)
Datum Case B
Overview:
General Overview
A)
Datum Corporation has offices in Miami and Montreal.
The network contains a single Active Directory forest named adatum.com. The offices connect to each other by
using a WAN link that has a 5-ms latency.
A)
Datum standardizes its database platform by using SQL Server 2012 Enterprise edition.
Databases Each office contains databases named Sales, Inventory, Customers, Products, Personnel, and Dev.
Servers and databases are managed by a team of database administrators. Currently, all of the database
administrators have the same level of permissions on all of the servers and all of the databases.
The Customers database contains two tables named Customers and Classifications. The following graphic
shows the relevant portions of the tables:

The following table shows the current data in the Classifications table:

The Inventory database is updated frequently. The database is often used for reporting. A full backup of the
database currently takes three hours to complete.
Stored Procedures
A stored procedure named sp1 generates millions of rows of data for multiple reports. Sp1 combines data from
five different tables from the Sales and Customers databases in a table named Table1.
After Table1 is created, the reporting process reads data from Table1 sequentially several times. After the
process is complete, Table1 is deleted.
A stored procedure named sp2 is used to generate a product list. The product list contains the names of
products grouped by category. Sp2 takes several minutes to run due to locks on the tables the procedure
accesses. The locks are caused by sp1 and sp3.
A stored procedure named sp3 is used to update prices. Sp3 is composed of several UPDATE statements
called in sequence from within a transaction. Currently, if one of the UPDATE statements fails, the stored
procedure fails.
A stored procedure named sp4 calls stored procedures in the Sales, Customers, and Inventory databases. The
nested stored procedures read tables from the Sales, Customers, and Inventory databases. Sp4 uses an
EXECUTE AS clause. All nested stored procedures handle errors by using structured exception handling.
A stored procedure named sp5 calls several stored procedures in the same database. Security checks are
performed each time sp5 calls a stored procedure.
You suspect that the security checks are slowing down the performance of sp5.
All stored procedures accessed by user applications call nested stored procedures. The nested stored
procedures are never called directly.
Design Requirements:
Data Recovery
You must be able to recover data from the Inventory database if a storage failure occurs. You have a Recovery
Time Objective (RTO) of 5 minutes.
You must be able to recover data from the Dev database if data is lost accidentally. You have a Recovery Point
Objective (RPO) of one day.
Classification Changes
You plan to change the way customers are classified. The new classifications will have four levels based on the
number of orders. Classifications may be removed or added in the future.
Management requests that historical data be maintained for the previous classifications.
Security
A group of junior database administrators must be able to manage security for the Sales database. The junior
database administrators will not have any other administrative rights. A. Datum wants to track which users run
each stored procedure.
Storage
A)
Datum has limited storage. Whenever possible, all storage space should be minimized for all databases and
all backups.
Error HandlingThere is currently no error handling code in any stored procedure. You plan to log errors in called stored
procedures and nested stored procedures. Nested stored procedures are never called directly.

What should you recommend?

You need to recommend a solution to allow application users to perform UPDATE operations on the database
tables. The solution must meet the business requirements. What should you recommend?
Case Study:
A)
Datum Case B
Overview:
General Overview
A)
Datum Corporation has offices in Miami and Montreal.
The network contains a single Active Directory forest named adatum.com. The offices connect to each other by
using a WAN link that has a 5-ms latency.
A)
Datum standardizes its database platform by using SQL Server 2012 Enterprise edition.
Databases Each office contains databases named Sales, Inventory, Customers, Products, Personnel, and Dev.
Servers and databases are managed by a team of database administrators. Currently, all of the database
administrators have the same level of permissions on all of the servers and all of the databases.
The Customers database contains two tables named Customers and Classifications. The following graphic
shows the relevant portions of the tables:

The following table shows the current data in the Classifications table:

The Inventory database is updated frequently. The database is often used for reporting. A full backup of the
database currently takes three hours to complete.
Stored Procedures
A stored procedure named sp1 generates millions of rows of data for multiple reports. Sp1 combines data fromfive different tables from the Sales and Customers databases in a table named Table1.
After Table1 is created, the reporting process reads data from Table1 sequentially several times. After the
process is complete, Table1 is deleted.
A stored procedure named sp2 is used to generate a product list. The product list contains the names of
products grouped by category. Sp2 takes several minutes to run due to locks on the tables the procedure
accesses. The locks are caused by sp1 and sp3.
A stored procedure named sp3 is used to update prices. Sp3 is composed of several UPDATE statements
called in sequence from within a transaction. Currently, if one of the UPDATE statements fails, the stored
procedure fails.
A stored procedure named sp4 calls stored procedures in the Sales, Customers, and Inventory databases. The
nested stored procedures read tables from the Sales, Customers, and Inventory databases. Sp4 uses an
EXECUTE AS clause. All nested stored procedures handle errors by using structured exception handling.
A stored procedure named sp5 calls several stored procedures in the same database. Security checks are
performed each time sp5 calls a stored procedure.
You suspect that the security checks are slowing down the performance of sp5.
All stored procedures accessed by user applications call nested stored procedures. The nested stored
procedures are never called directly.
Design Requirements:
Data Recovery
You must be able to recover data from the Inventory database if a storage failure occurs. You have a Recovery
Time Objective (RTO) of 5 minutes.
You must be able to recover data from the Dev database if data is lost accidentally. You have a Recovery Point
Objective (RPO) of one day.
Classification Changes
You plan to change the way customers are classified. The new classifications will have four levels based on the
number of orders. Classifications may be removed or added in the future.
Management requests that historical data be maintained for the previous classifications.
Security
A group of junior database administrators must be able to manage security for the Sales database. The junior
database administrators will not have any other administrative rights. A. Datum wants to track which users run
each stored procedure.
Storage
A)
Datum has limited storage. Whenever possible, all storage space should be minimized for all databases and
all backups.
Error Handling
There is currently no error handling code in any stored procedure. You plan to log errors in called stored
procedures and nested stored procedures. Nested stored procedures are never called directly.

What should you recommend?

You need to recommend a solution for the planned changes to the customer classifications. What should you
recommend? (Each correct answer presents part of the solution. Choose all that apply.)
Case Study:
A) Datum Case B
Overview:
General Overview
A)
Datum Corporation has offices in Miami and Montreal.
The network contains a single Active Directory forest named adatum.com. The offices connect to each other by
using a WAN link that has a 5-ms latency.
A)
Datum standardizes its database platform by using SQL Server 2012 Enterprise edition.
Databases Each office contains databases named Sales, Inventory, Customers, Products, Personnel, and Dev.
Servers and databases are managed by a team of database administrators. Currently, all of the database
administrators have the same level of permissions on all of the servers and all of the databases.
The Customers database contains two tables named Customers and Classifications. The following graphic
shows the relevant portions of the tables:

The following table shows the current data in the Classifications table:

The Inventory database is updated frequently. The database is often used for reporting. A full backup of the
database currently takes three hours to complete.
Stored Procedures
A stored procedure named sp1 generates millions of rows of data for multiple reports. Sp1 combines data from
five different tables from the Sales and Customers databases in a table named Table1.
After Table1 is created, the reporting process reads data from Table1 sequentially several times. After the
process is complete, Table1 is deleted.
A stored procedure named sp2 is used to generate a product list. The product list contains the names of
products grouped by category. Sp2 takes several minutes to run due to locks on the tables the procedure
accesses. The locks are caused by sp1 and sp3.A stored procedure named sp3 is used to update prices. Sp3 is composed of several UPDATE statements
called in sequence from within a transaction. Currently, if one of the UPDATE statements fails, the stored
procedure fails.
A stored procedure named sp4 calls stored procedures in the Sales, Customers, and Inventory databases. The
nested stored procedures read tables from the Sales, Customers, and Inventory databases. Sp4 uses an
EXECUTE AS clause. All nested stored procedures handle errors by using structured exception handling.
A stored procedure named sp5 calls several stored procedures in the same database. Security checks are
performed each time sp5 calls a stored procedure.
You suspect that the security checks are slowing down the performance of sp5.
All stored procedures accessed by user applications call nested stored procedures. The nested stored
procedures are never called directly.
Design Requirements:
Data Recovery
You must be able to recover data from the Inventory database if a storage failure occurs. You have a Recovery
Time Objective (RTO) of 5 minutes.
You must be able to recover data from the Dev database if data is lost accidentally. You have a Recovery Point
Objective (RPO) of one day.
Classification Changes
You plan to change the way customers are classified. The new classifications will have four levels based on the
number of orders. Classifications may be removed or added in the future.
Management requests that historical data be maintained for the previous classifications.
Security
A group of junior database administrators must be able to manage security for the Sales database. The junior
database administrators will not have any other administrative rights. A. Datum wants to track which users run
each stored procedure.
Storage
A)
Datum has limited storage. Whenever possible, all storage space should be minimized for all databases and
all backups.
Error Handling
There is currently no error handling code in any stored procedure. You plan to log errors in called stored
procedures and nested stored procedures. Nested stored procedures are never called directly.

What should you recommend?

You need to recommend a solution for the error handling of sp3. The solution must minimize the amount of
custom code required. What should you recommend?
Case Study:
A)
Datum Case B
Overview:
General Overview
A)
Datum Corporation has offices in Miami and Montreal.The network contains a single Active Directory forest named adatum.com. The offices connect to each other by
using a WAN link that has a 5-ms latency.
A)
Datum standardizes its database platform by using SQL Server 2012 Enterprise edition.
Databases Each office contains databases named Sales, Inventory, Customers, Products, Personnel, and Dev.
Servers and databases are managed by a team of database administrators. Currently, all of the database
administrators have the same level of permissions on all of the servers and all of the databases.
The Customers database contains two tables named Customers and Classifications. The following graphic
shows the relevant portions of the tables:

The following table shows the current data in the Classifications table:

The Inventory database is updated frequently. The database is often used for reporting. A full backup of the
database currently takes three hours to complete.
Stored Procedures
A stored procedure named sp1 generates millions of rows of data for multiple reports. Sp1 combines data from
five different tables from the Sales and Customers databases in a table named Table1.
After Table1 is created, the reporting process reads data from Table1 sequentially several times. After the
process is complete, Table1 is deleted.
A stored procedure named sp2 is used to generate a product list. The product list contains the names of
products grouped by category. Sp2 takes several minutes to run due to locks on the tables the procedure
accesses. The locks are caused by sp1 and sp3.
A stored procedure named sp3 is used to update prices. Sp3 is composed of several UPDATE statements
called in sequence from within a transaction. Currently, if one of the UPDATE statements fails, the stored
procedure fails.
A stored procedure named sp4 calls stored procedures in the Sales, Customers, and Inventory databases. The
nested stored procedures read tables from the Sales, Customers, and Inventory databases. Sp4 uses an
EXECUTE AS clause. All nested stored procedures handle errors by using structured exception handling.A stored procedure named sp5 calls several stored procedures in the same database. Security checks are
performed each time sp5 calls a stored procedure.
You suspect that the security checks are slowing down the performance of sp5.
All stored procedures accessed by user applications call nested stored procedures. The nested stored
procedures are never called directly.
Design Requirements:
Data Recovery
You must be able to recover data from the Inventory database if a storage failure occurs. You have a Recovery
Time Objective (RTO) of 5 minutes.
You must be able to recover data from the Dev database if data is lost accidentally. You have a Recovery Point
Objective (RPO) of one day.
Classification Changes
You plan to change the way customers are classified. The new classifications will have four levels based on the
number of orders. Classifications may be removed or added in the future.
Management requests that historical data be maintained for the previous classifications.
Security
A group of junior database administrators must be able to manage security for the Sales database. The junior
database administrators will not have any other administrative rights. A. Datum wants to track which users run
each stored procedure.
Storage
A)
Datum has limited storage. Whenever possible, all storage space should be minimized for all databases and
all backups.
Error Handling
There is currently no error handling code in any stored procedure. You plan to log errors in called stored
procedures and nested stored procedures. Nested stored procedures are never called directly.

What should you include in the recommendation?

You need to recommend a disaster recovery strategy for the Inventory database. What should you include in
the recommendation?
Case Study:
A)
Datum Case B
Overview:
General Overview
A)
Datum Corporation has offices in Miami and Montreal.
The network contains a single Active Directory forest named adatum.com. The offices connect to each other by
using a WAN link that has a 5-ms latency.
A)
Datum standardizes its database platform by using SQL Server 2012 Enterprise edition.
Databases Each office contains databases named Sales, Inventory, Customers, Products, Personnel, and Dev.Servers and databases are managed by a team of database administrators. Currently, all of the database
administrators have the same level of permissions on all of the servers and all of the databases.
The Customers database contains two tables named Customers and Classifications. The following graphic
shows the relevant portions of the tables:

The following table shows the current data in the Classifications table:

The Inventory database is updated frequently. The database is often used for reporting. A full backup of the
database currently takes three hours to complete.
Stored Procedures
A stored procedure named sp1 generates millions of rows of data for multiple reports. Sp1 combines data from
five different tables from the Sales and Customers databases in a table named Table1.
After Table1 is created, the reporting process reads data from Table1 sequentially several times. After the
process is complete, Table1 is deleted.
A stored procedure named sp2 is used to generate a product list. The product list contains the names of
products grouped by category. Sp2 takes several minutes to run due to locks on the tables the procedure
accesses. The locks are caused by sp1 and sp3.
A stored procedure named sp3 is used to update prices. Sp3 is composed of several UPDATE statements
called in sequence from within a transaction. Currently, if one of the UPDATE statements fails, the stored
procedure fails.
A stored procedure named sp4 calls stored procedures in the Sales, Customers, and Inventory databases. The
nested stored procedures read tables from the Sales, Customers, and Inventory databases. Sp4 uses an
EXECUTE AS clause. All nested stored procedures handle errors by using structured exception handling.
A stored procedure named sp5 calls several stored procedures in the same database. Security checks are
performed each time sp5 calls a stored procedure.
You suspect that the security checks are slowing down the performance of sp5.
All stored procedures accessed by user applications call nested stored procedures. The nested storedprocedures are never called directly.
Design Requirements:
Data Recovery
You must be able to recover data from the Inventory database if a storage failure occurs. You have a Recovery
Time Objective (RTO) of 5 minutes.
You must be able to recover data from the Dev database if data is lost accidentally. You have a Recovery Point
Objective (RPO) of one day.
Classification Changes
You plan to change the way customers are classified. The new classifications will have four levels based on the
number of orders. Classifications may be removed or added in the future.
Management requests that historical data be maintained for the previous classifications.
Security
A group of junior database administrators must be able to manage security for the Sales database. The junior
database administrators will not have any other administrative rights. A. Datum wants to track which users run
each stored procedure.
Storage
A)
Datum has limited storage. Whenever possible, all storage space should be minimized for all databases and
all backups.
Error Handling
There is currently no error handling code in any stored procedure. You plan to log errors in called stored
procedures and nested stored procedures. Nested stored procedures are never called directly.

Which change should you recommend?

You need to recommend a change to sp3 to ensure that the procedure continues to execute even if one of the
UPDATE statements fails. Which change should you recommend?
Case Study:
A)
Datum Case B
Overview:
General Overview
A)
Datum Corporation has offices in Miami and Montreal.
The network contains a single Active Directory forest named adatum.com. The offices connect to each other by
using a WAN link that has a 5-ms latency.
A)
Datum standardizes its database platform by using SQL Server 2012 Enterprise edition.
Databases Each office contains databases named Sales, Inventory, Customers, Products, Personnel, and Dev.
Servers and databases are managed by a team of database administrators. Currently, all of the database
administrators have the same level of permissions on all of the servers and all of the databases.
The Customers database contains two tables named Customers and Classifications. The following graphic
shows the relevant portions of the tables:

The following table shows the current data in the Classifications table:

The Inventory database is updated frequently. The database is often used for reporting. A full backup of the
database currently takes three hours to complete.
Stored Procedures
A stored procedure named sp1 generates millions of rows of data for multiple reports. Sp1 combines data from
five different tables from the Sales and Customers databases in a table named Table1.
After Table1 is created, the reporting process reads data from Table1 sequentially several times. After the
process is complete, Table1 is deleted.
A stored procedure named sp2 is used to generate a product list. The product list contains the names of
products grouped by category. Sp2 takes several minutes to run due to locks on the tables the procedure
accesses. The locks are caused by sp1 and sp3.
A stored procedure named sp3 is used to update prices. Sp3 is composed of several UPDATE statements
called in sequence from within a transaction. Currently, if one of the UPDATE statements fails, the stored
procedure fails.
A stored procedure named sp4 calls stored procedures in the Sales, Customers, and Inventory databases. The
nested stored procedures read tables from the Sales, Customers, and Inventory databases. Sp4 uses an
EXECUTE AS clause. All nested stored procedures handle errors by using structured exception handling.
A stored procedure named sp5 calls several stored procedures in the same database. Security checks are
performed each time sp5 calls a stored procedure.
You suspect that the security checks are slowing down the performance of sp5.
All stored procedures accessed by user applications call nested stored procedures. The nested stored
procedures are never called directly.
Design Requirements:
Data Recovery
You must be able to recover data from the Inventory database if a storage failure occurs. You have a RecoveryTime Objective (RTO) of 5 minutes.
You must be able to recover data from the Dev database if data is lost accidentally. You have a Recovery Point
Objective (RPO) of one day.
Classification Changes
You plan to change the way customers are classified. The new classifications will have four levels based on the
number of orders. Classifications may be removed or added in the future.
Management requests that historical data be maintained for the previous classifications.
Security
A group of junior database administrators must be able to manage security for the Sales database. The junior
database administrators will not have any other administrative rights. A. Datum wants to track which users run
each stored procedure.
Storage
A)
Datum has limited storage. Whenever possible, all storage space should be minimized for all databases and
all backups.
Error Handling
There is currently no error handling code in any stored procedure. You plan to log errors in called stored
procedures and nested stored procedures. Nested stored procedures are never called directly.

What should you include in the recommendation?

You need to recommend a solution to minimize the amount of time it takes to execute sp5. What should you
include in the recommendation?
Case Study:
A)
Datum Case A
General Overview:
A)
Datum Corporation has offices in Miami and Montreal.
The network contains a single Active Directory forest named adatum.com. The offices connect to each other by
using a WAN link that has a 5-ms latency.
A)
Datum standardizes its database platform by using SQL Server 2012 Standard edition.
Databases:
Each office contains databases named Sales, Inventory, Customers, Products, Personnel, and Dev.
Servers and databases are managed by a team of database administrators. Currently, all of the database
administrators have the same level of permissions on all of the servers and all of the databases.
The Customers database contains two tables named Customers and Classifications. The following graphic
shows the relevant portions of the tables:

The following table shows the current data in the Classifications table:

The Inventory database is used mainly for reports. The database is recreated every day. A full backup of the
database currently takes three hours to complete.
Stored Procedures:
A stored procedure named sp1 generates millions of rows of data for multiple reports. Sp1 combines data from
five different tables from the Sales and Customers databases in a table named Table1.
After Table1 is created, the reporting process reads data from a table in the Products database and searches
for information in Table1 based on input from the Products table. After the process is complete, Table1 is
deleted.
A stored procedure named sp2 is used to generate a product list. Sp2 takes several minutes to run due to locks
on the tables the procedure accesses. A stored procedure named sp3 is used to update prices. Sp3 is
composed of several UPDATE statements called in sequence from within a transaction. Currently, if one of the
UPDATE statements fails, the stored procedure continues to execute. A stored procedure named sp4 calls
stored procedures in the Sales, Customers, and Inventory databases. The nested stored procedures read
tables from the Sales, Customers, and Inventory databases. Sp4 uses an EXECUTE AS clause.
A stored procedure named sp5 changes data in multiple databases. Security checks are performed each time
sp5 accesses a database.
You suspect that the security checks are slowing down the performance of sp5.
All stored procedures accessed by user applications call nested stored procedures. The nested stored
procedures are never called directly.
Design Requirements:
Data RecoveryYou must be able to recover data from the Inventory database if a storage failure occurs. You have a Recovery
Point Objective (RPO) of one hour.
You must be able to recover data from the Dev database if data is lost accidentally. You have a Recovery Point
Objective (RPO) of one day.
Classification Changes
You plan to change the way customers are classified. The new classifications will have four levels based on the
number of orders. Classifications may be removed or added in the future. Management requests that historical
data be maintained for the previous classifications.
Security
A group of junior database administrators must be able to view the server state of the SQL Server instance that
hosts the Sales database. The junior database administrators will not have any other administrative rights.


Page 10 of 11« First...7891011