PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which data type should you use?

You are designing a database that contains a data definition language (DDL) trigger. The DDL trigger will provide the maximum amount of data available when any attempt is made to change the database schema. You need to design a table to meet the following requirements:
* Accept the EVENTDATA information that is provided by the trigger
* Support the searching and retrieval of nodes and values
* Minimize development time
Which data type should you use?

What should you do?

You use SQL Server 2008 to design a database that will hold incoming XML responses for an EDI system. You have the following requirements:
* The data is accessible to heterogeneous platforms.
* The database stores various types of reports from multiple sources.
* The solution allows search by keywords.
* The database stores large amounts of data.
* The database is scalable.
You need to design the database to meet the given requirements. What should you do?

What isolation level should you use?

You are a database developer. You plan to design a database solution by using SQL Server 2008. A stored procedure in a database uses a transaction to retrieve data from a table and produces aggregations. You must design a solution that meets the following requirements:
* Update operations cannot be performed on the retrieved data while the stored procedure is being executed.
* Insert operations in the table can be performed while the stored procedure is being executed.
You need to ensure that the solution meets the requirements. What isolation level should you use?

What should you do?

You are a database developer. You develop a database by using SQL Server 2008 in an enterprise environment. The database has a table named Sales.Inventory. The table is partitioned into four geographic regions. You update the Sales.Inventory table for each region by using the following stored procedure:

CREATE STORED PROCEDURE usp_Update
@RegionID tinyint
AS
UPDATE Sales.Inventory
SET Qty = T.CurrentQuantity
FROM Sales.Inventory I
JOIN Sales.TempData T ON I.ItemID = T.ItemID
AND I.RegionID = @RegionID;

The UPDATE statement locks the Sales.Inventory table when a single region is updated. You need to prevent the locking of the Sales.Inventory table when a single region is updated. What should you do?