考試代碼: 70-442
考試名稱: PRO: Designing and Optimizing Data Access by Using Microsoft SQL Server 2005
您將一次輕鬆通過 70-442 考試!
研發團隊致力於國際上最新的各種IT認證,根據最新考試中心截屏所得原始題庫,IT培訓中心和考試中心IT工程師和IT認證專家精心整理製作完成各種IT認證題庫;我們密切跟蹤IT認證的最新動態和考試變化,及時提供最新的試題升級,覆蓋率100%以上,保證您一次通過認證考試。
我們如何保持100%通過率的產品?
我們在題庫致力於客戶的成功。我們的產品出品極為謹慎和專業。我們利用來自世界各地的業界領先的組織專業人員隊伍的經驗和知識。
'客戶的成功就是我們的成功'
70-442 考試是 Microsoft 公司的 PRO: Designing and Optimizing Data Access by Using Microsoft SQL Server 2005 認證考試官方代號,CramBible的 70-442 權威全真題庫是 Microsoft 認證廠商的授權產品,絕對保證第一次參加 70-442 考試的考生即可順利通過,否則將全額退款!保證您的利益不受到任何的損失。
CramBible確保您的成功,否則全額退款!
產品介紹
PRO: Designing and Optimizing Data Access by Using Microsoft SQL Server 2005 認證作為全球IT領域專家 Microsoft 熱門認證之一,是許多大中IT企業選擇人才標準的必要條件。 如果您正在準備 70-442 考試,CramBible是您成功的最佳夥伴;最新70-442權威全真考題題庫,幫助您一次通過Microsoft認證考試。
根據70-442考試的變化動態更新,所有購買CramBible 70-442認證考題的客戶都將得到90天的免費升級服務,保證了對70-442考試題庫的完整覆蓋。
總結:
1)基本上有6個步驟,您應該遵循自己的方式來獲得認證,即:
2)決定哪個認證適合您 - 獲取認證概述
3 瞭解具體的細節 - 查看具體認證要求的經驗
4)選擇考試夥伴 - 選擇具有10年歷史的認證CramBible,由資深IT工程師和IT認證專家編寫的PDF格式考試資料。
5)複習考試資料 - 認真地複習我們的學習指南。
6)註冊並參加您所需的考試 - 您可以登記PROMETRIC或Pearson VUE的考試中心。
7)我們的的客戶都將得到90天的免費升級服務,保證了對70-442考試題庫的完整覆蓋。
即可擁有No 1的白金服務團隊
我如何用你們的產品通過考試?
CramBible產品足以通過考試。 我們建議學員學習CramBible7天時間,將幫助您評估您的實際考試前的準備。
。
如何下載產品?
產品可以下載很容易從會員的帳戶,登錄後點擊訂購代碼或“查看”按鈕,開始下載。
產品是什麼格式的?
Adobe Acrobat PDF 文件.您下載的檔為RAR壓縮格式. 請訪問Winrar tool 3.0 plus version 解壓縮檔後用Adobe Acrobat reader閱讀
忘記密碼?
請訪問找回密碼.
輸入您的用戶名,我們會向您發送一封含有密碼的電子郵件.
我怎樣才能得到優惠?
如果您購買的是3個或3個以上的產品,請發電子郵件到 sales@crambible.com,將為您提供提供一個優惠的價格。
如果我失敗了怎麼辦?
不要擔心失敗;為您提供沒有通過考試的退款保證。 你無法通過相應的考試,可以要求退款的保證。點擊這裡更多細節。
需要幫助?
您可以隨時與客戶支援聯繫
閱讀完整的常見問題解答
4步輕鬆得到產品
1. 選擇產品加入購物車
通過 "搜索" or "所有產品" 找到您需要的產品, 點擊"Add to cart" 按鈕, 加入購物車.
2. 登錄帳戶
點擊 頁面頂部的 "註冊" 按鈕, 成為本網站的正式成員。 (已註冊用戶,可以點擊“登錄”直接。)
3. 付款
我們提供的付款方式包括 線上支付(Visa/Master/Paypal) 和 西聯匯款。
大多數客戶使用線上支付,購買過程支持各種信用卡和銀行借記卡付款。沒有任何額外費用。
4. 下載
確認付款後,您可以即刻訪問您的會員中心,下載產品。
=
Microsoft Microsoft Licensing exam 70-442 Web Demo
This webdemo is just a demo data, only for reference and learning, there is no other purposes.
1.You are designing a stored procedure that records a sale and
decreases the inventory for the items that are being purchased. The
stored procedure contains the following code.
CREATE PROCEDURE UpdateSalesAndInventory (@ProductID int, @quantity int)
AS
SET IMPLICIT_TRANSACTION ON
INSERT INTO Sales.SalesOrder Values(@ProductID, @quantity)
UPDATE Inventory.ProductInventory
SET Quantity = Quantity - @quantity
WHERE ProductID = @ProductID
You run this stored procedure and discover that no updates are applied. You need to resolve the problem. What should you do?
A. Change SET IMPLICIT_TRANSACTION to OFF.
B. Use multiple active result sets (MARS) to execute the stored procedure.
C. Add logic to commit or roll back the transaction based on the successful updates of the data.
D. Add a BEGIN TRANSACTION statement to the stored procedure.
Answer: C
3. You are troubleshooting concurrency problems with the code that was
originally developed on the SQL Server 2000 database. You discover that
there are excessive read locks on important tables. You need to resolve
the problem. What should you do?
A. Set the transaction isolation level to REPEATABLE READ.
B. Set the transaction isolation level to SERIALIZABLE.
C. Set the ALLOW_SNAPSHOT_ISOLATION database option to ON.
D. Set the READ_COMMITTED_SNAPSHOT database option to ON.
Answer: D
4. You are designing the stored procedure that updates inventory quantities. The stored procedure contains the following code.
CREATE PROCEDURE UpdateInventory (@ProductID int, @Amount int)
AS
BEGIN TRANSACTION
DECLARE @CurrentQuantity int
SELECT @CurrentQuantity = Quantity
FROM Inventory.ProductInventory
WHERE ProductID = @ProductID
UPDATE Inventory.ProductInventory
SET Product.Quantity = @CurrentQuantity + @Amount
WHERE ProductID = @ProductID
IF @@ERROR <> 0
ROLLBACK TRAN
ELSE
COMMIT TRAN
You discover that the ProductInventory column is occasionally updated
incorrectly. You need to resolve the problem. What should you do?
A. Add a SET TRANSACTION ISOLATION LEVEL SERIALIZABLE statement to the stored procedure.
B. Remove the SELECT statement from the stored procedure. Perform the
update using the Product.Quantity column instead of the
@CurrentQuantity variable.
C. Add a NOLOCK hint to the SELECT statement.
D. Move the BEGIN TRANSACTION statement so that it immediately precedes the UPDATE statement.
Answer: B
5. BACKGROUND
company overview
Tailspin toys is a regional toy store chain,with stores in 30 cities.
Planned Changes
The company wants to add an online store to its chain of retail
stores.A prototype of the online store was developed by using SQL
server 2000 .However,the IT manager wants to move to SQL Sever 2005 to
take advantage of its new features.
The IT manager plans to automate certain database maintenance
operations,including scripting of database objects,backup and restore
activities ,and creation and maintenance of endpoints.
Problem Statement
The nightly processing of the sales data from each store executes very
slowly.with the addition of the online store,this performance must be
improved in order to complete the processing within the allotted frame.
EXISTING ENVIRONMENT
Existing Application Environment
The prototype of the online store is experiencing poor concurrency.
Existing supporting Infrastructure
Currently,the point of sale(POS) system for the retail stores has a SQL
Server 2000 database.Tailspin Toys has an Enterprise Resource
planning(ERP) system running on UNIX that must be able to communicate
with the online store's Inventory database.
BUSINESS REQUIREMENTS
General Application Solution Requirements
The company is developing an online store that is capable of displaying
pictures,prices,and information on products that are sold by Tailspin
Toys.
Customers must be able to find out whether toys that are available
online are also available at a physical store for pickup.The store
inventory for a selected store must be queried real-time as the
individual toys are displayed.Inventory quantities for a toy must all
be displayed prior to processing the next toy.
Store managers often run reports that query for all sales for a given date range.
New toys are introduced at the online store only once per month.
Performance
When a customer uses the online store to perform a search for toys,it should return results in 15 seconds or less.
Users can search for a toy category. The results of this search should
be used for future searches by the same user,to minimize round trips to
the database.
TECHNICAL REQUIREMENTS
Resource usage on the database server must be minimized.
The online store will have two databases named Sales and Inventory.When
a sale is completed,both databases must be kept consistent with each
other.
The IT department has specified that the online store will use a service-oriented architecture for data access.
2. You need to design the data access strategy for the Tailspin Toys
online store search requirement. Which strategy should you use?
A. System.Xml.XmlReader
B. System.Data.SqlClient.SqlDataReader
C. System.Data.DataSet
D. CLR user-defined type
Answer: C
6. You need to design the user interface that will display availability
to pick up items at a retail store for items that are ordered online.
You also must minimize the number of connections to the database. Which
data access strategy should you use?
A. ActiveX data objects (ADO)
B. multiple active result sets (MARS)
C. System.Data.DataReader
D. System.Data.DataSet
Answer: B
7. BACKGROUND
Company Overview
Margie's Travel is a small regional travel agency that handles many different types of travel arrangements.
Planned Change
Margie's Travel has purchased a COM component named Cruisex to be used to access cruise lines information.
Margie's Travel hosts the component in COM+.Cruisex will be used for
two purposes:to retrieve a read-only list of available cruises,and to
make reservations on cruises.Cruisex uses all default settings.
Problem Statements
Many of the company's in-house travel agents that the Web site that is used for making travel reservations
is too difficult to use. The company wants to create a smart client
application that will deliver a richer client experience for the
agents. The solution must support the Web site application for off-site
travel agents.
A monthly agent-commission report has been created. This report will be
executed once per month.This report currently uses a cursor with the
INSENSITIVE argument.The test team reports that this report runs slowly
and consumes a significant amount of database server resources.
A stored procedure named UpdateSeatSelection is used to update seat selections for airline reservations.
The test team reports that there is significant blocking when this stored procedure is being executed.
EXISTING ENVIRONMENT
Existing Supporing Infrastructure
The current travel agent application stores its data in a SQL Server 2005 database.
BUSINESS REQUIREMENTS
General Application Solution Requirements
The duplication of application logic must be minimized.
After an airline reservation is made,the aqent must help the customer
with seat selection. The seat selection process should not block the
application from performing other reservation tasks.However,the agent
must have the ability to cancel a seat selection query prior to its
completion.The application must receive a reply that cancellatio was
successful.
A report named FlightsBooked is being developed.The test team reports
that executing the report twice within a single transaction using the
same parameters occasionally produces different results.
However,subsequnt executions with those same parameters produce
consistent results.
A feature must be developed that will allow travel agents to seach for
customers by name of partial name.The data that is returned must not
include any data that is not yet committed.
Performance
To improve performance for the data access layer,the number of round
trips to the database must be limited,particularly for data that
changes only infrequently.
Infrequent changes are made to the information about trading partners
such as airlines,cruise lines,and hotel chains.Margie's Travel wants to
limit the bandwidth that is required to ensure that the smart client
application has the current values for trading partners .The company
wants to mininize the development effort that is needed to support this
requirement.
When an agent queries for available fight information,the data must be
returned as quickly as possible.This data will not be modified by the
agent.
A monthly agent-commission report has been created.This report will be
executed once per month.This report currently uses a cursor with the
INSENSITIVE argument.The test team reports that this report runs slowly
and consumes a significant amount of database server reslurces.
Recoverability
Once per month,all sales data must be transferred to the Accounting
database,which is on the same database server instance.In the case of
failure,recovery of the travel agent database and the Accounting
database must be ensured to the same logical point in time.
TECHNICAL REQUIREMENTS
Security
External access to company data must be allowed for only a specified set of IP addresses.
9. You need to improve the performance and reduce the database resource
usage of the stored procedure that will be used to generate the monthly
agent-commission report. What should you do?
A. Remove the INSENSITIVE argument from the cursor declaration.
B. Add the OPTIMISTIC argument to the cursor declaration.
C. Rewrite the stored procedure using set operations.
D. Rewrite the stored procedure as a user-defined type.
Answer: C
8. You design the following stored procedure that will be used by sales managers.
CREATE PROCEDURE StoreSales (@StartDate datetime, @EndDate datetime)
AS
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
SELECT StoreID, TotalSales
FROM Sales
WHERE SaleDate BETWEEN @StartDate AND @EndDate
While tuning the query, you notice that table locks are occurring. You need to resolve the problem. What should you do?
A. Change the isolation level to READ COMMITTED.
B. Add a HOLDLOCK table hint to the query.
C. Add a NOWAIT table hint to the query.
D. Add a READPAST table hint to the query.
Answer: A
2. You need to design the data access strategy for the Tailspin Toys
online store search requirement. Which strategy should you use?
A. System.Xml.XmlReader
B. System.Data.SqlClient.SqlDataReader
C. System.Data.DataSet
D. CLR user-defined type
Answer: C
2. You are designing a stored procedure that records a sale and
decreases the inventory for the items that are being purchased. The
stored procedure contains the following code.
CREATE PROCEDURE UpdateSalesAndInventory (@ProductID int, @quantity int)
AS
SET IMPLICIT_TRANSACTION ON
INSERT INTO Sales.SalesOrder Values(@ProductID, @quantity)
UPDATE Inventory.ProductInventory
SET Quantity = Quantity - @quantity
WHERE ProductID = @ProductID
You run this stored procedure and discover that no updates are applied. You need to resolve the problem. What should you do?
A. Change SET IMPLICIT_TRANSACTION to OFF.
B. Use multiple active result sets (MARS) to execute the stored procedure.
C. Add logic to commit or roll back the transaction based on the successful updates of the data.
D. Add a BEGIN TRANSACTION statement to the stored procedure.
Answer: C
3. You are troubleshooting concurrency problems with the code that was
originally developed on the SQL Server 2000 database. You discover that
there are excessive read locks on important tables. You need to resolve
the problem. What should you do?
A. Set the transaction isolation level to REPEATABLE READ.
B. Set the transaction isolation level to SERIALIZABLE.
C. Set the ALLOW_SNAPSHOT_ISOLATION database option to ON.
D. Set the READ_COMMITTED_SNAPSHOT database option to ON.
Answer: D
4. You are designing the stored procedure that updates inventory quantities. The stored procedure contains the following code.
CREATE PROCEDURE UpdateInventory (@ProductID int, @Amount int)
AS
BEGIN TRANSACTION
DECLARE @CurrentQuantity int
SELECT @CurrentQuantity = Quantity
FROM Inventory.ProductInventory
WHERE ProductID = @ProductID
UPDATE Inventory.ProductInventory
SET Product.Quantity = @CurrentQuantity + @Amount
WHERE ProductID = @ProductID
IF @@ERROR <> 0
ROLLBACK TRAN
ELSE
COMMIT TRAN
You discover that the ProductInventory column is occasionally updated
incorrectly. You need to resolve the problem. What should you do?
A. Add a SET TRANSACTION ISOLATION LEVEL SERIALIZABLE statement to the stored procedure.
B. Remove the SELECT statement from the stored procedure. Perform the
update using the Product.Quantity column instead of the
@CurrentQuantity variable.
C. Add a NOLOCK hint to the SELECT statement.
D. Move the BEGIN TRANSACTION statement so that it immediately precedes the UPDATE statement.
Answer: B
5. BACKGROUND
company overview
Tailspin toys is a regional toy store chain,with stores in 30 cities.
Planned Changes
The company wants to add an online store to its chain of retail
stores.A prototype of the online store was developed by using SQL
server 2000 .However,the IT manager wants to move to SQL Sever 2005 to
take advantage of its new features.
The IT manager plans to automate certain database maintenance
operations,including scripting of database objects,backup and restore
activities ,and creation and maintenance of endpoints.
Problem Statement
The nightly processing of the sales data from each store executes very
slowly.with the addition of the online store,this performance must be
improved in order to complete the processing within the allotted frame.
EXISTING ENVIRONMENT
Existing Application Environment
The prototype of the online store is experiencing poor concurrency.
Existing supporting Infrastructure
Currently,the point of sale(POS) system for the retail stores has a SQL
Server 2000 database.Tailspin Toys has an Enterprise Resource
planning(ERP) system running on UNIX that must be able to communicate
with the online store's Inventory database.
BUSINESS REQUIREMENTS
General Application Solution Requirements
The company is developing an online store that is capable of displaying
pictures,prices,and information on products that are sold by Tailspin
Toys.
Customers must be able to find out whether toys that are available
online are also available at a physical store for pickup.The store
inventory for a selected store must be queried real-time as the
individual toys are displayed.Inventory quantities for a toy must all
be displayed prior to processing the next toy.
Store managers often run reports that query for all sales for a given date range.
New toys are introduced at the online store only once per month.
Performance
When a customer uses the online store to perform a search for toys,it should return results in 15 seconds or less.
Users can search for a toy category. The results of this search should
be used for future searches by the same user,to minimize round trips to
the database.
TECHNICAL REQUIREMENTS
Resource usage on the database server must be minimized.
The online store will have two databases named Sales and Inventory.When
a sale is completed,both databases must be kept consistent with each
other.
The IT department has specified that the online store will use a service-oriented architecture for data access.
?>