Download New Updated (June) Microsoft 70-465 Practice Test Topic 2, Contoso Ltd

Ensurepass

 

Topic 2, 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 2014. 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_CPl_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.

 

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:

 

clip_image002

 

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:

 

clip_image004

 

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.Proc1 and Sales.Proc2 execute.

 

 

 

 

 

 

QUESTION 11

You need to recommend a solution that resolves the missing data issue. The solution must minimize the amount of development effort. What should you recommend?

 

A.

Denormalize the Products table.

B.

Denormalize the OrderDetails table.

C.

Normalize the OrderDetails table.

D.

Normalize the Products table.

 

Correct Answer: D

Explanation:

* Scenario:

/ 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. / 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. http://technet.microsoft.com/en-us/library/aa933055(v=sql.80).aspx

 

 

QUESTION 12

You need to recommend a solution that addresses the index fragmentation and index width issue.

What should you include in the recommendation? (Each correct answer presents part of the solution. Choose all that apply.)

 

A.

Change the data type of the lastModified column to smalldatetime.

B.

Remove the lastModified column from the clustered index.

C.

Change the data type of the modifiedBy column to tinyint.

D.

Change the data type of the id column to bigint.

E.

Remove the modifiedBy column from the clustered index.

F.

Remove the id column from the clustered index.

 

Correct Answer: BE

Explanation:

Scenario:

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:

 

clip_image004[1]

 

 

QUESTION 13

You need to recommend a solution that reduces the time it takes to import the supplier data. What should you include in the recommendation?

 

A.

Enable instant file initialization.

B.

Reorganize the indexes.

C.

Disable Resource Governor.

D.

Enable Auto Update Statistics.

 

Correct Answer: C

Explanation:

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

Resource Governor

 

 

QUESTION 14

You need to recommend a solution that meets the data recovery requirement. What should you include in the recommendation?

 

A.

A differential backup

B.

A transaction log backup

C.

Snapshot isolation

D.

A database snapshot

 

Correct Answer: D

Explanation:

How Database Snapshots Work

 

 

QUESTION 15

You need to recommend a solution that addresses the file storage requirements. What should you include in the recommendation?

 

A.

FileStream

B.

FileTable

C.

The varbinary data type

D.

The image data type

 

Correct Answer: B

Explanation:

* Scen
ario:

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.

 

* FileTables remove a significant barrier to the use of SQL Server for the storage and management of unstructured data that is currently residing as files on file servers. Enterprises can move this data from file servers into FileTables to take advantage of integrated administration and services provided by SQL Server. At the same time, they can maintain Windows application compatibility for their existing Windows applications that see this data as files in the file system.

FileTables (SQL Server)

 

 

 

QUESTION 16

You need to recommend a solution that addresses the installation issues. What should you include in the recommendation?

 

A.

Windows logins

B.

Server roles

C.

Contained users

D.

Database roles

 

Correct Answer: C

Explanation:

* Scenario:

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.

* Creating contained users enables the user to connect directly to the contained database. This is a very significant feature in high availability and disaster recovery scenarios such as in an AlwaysOn solution. If the users are contained users, in case of failover, people would be able to connect to the secondary without creating logins on the instance hosting the secondary. This provides an immediate benefit.

Contained Databases

 

 

QUESTION 17

You need to recommend a solution that addresses the security requirement. What should you recommend?

 

A.

Revoke user permissions on the ta
bles. Create stored procedures that manipulate data. Grant the users the EXECUTE permission on the stored procedures.

B.

Grant the users the SELECT permission on the tables. Create views that retrieve data from the tables. Grant the users the SELECT permission on the views.

C.

Deny the users SELECT permission on the tables. Create views that retrieve data from the tables. Grant the users the SELECT permission on the views.

D.

Deny the users the SELECT permission on the tables. Create stored procedures that manipulate data. Grant the users the EXECUTE permission on the stored procedures.

 

Correct Answer: C

Explanation:

* Security Requirements

You must provide users with the ability to execute functions within the ERP application, without having direct access to the underlying tables.

 

 

QUESTION 18

You need to recommend changes to the ERP application to resolve the search issue. The solution must minimize the impact on other queries generated from the ERP application. What should you recommend changing?

 

A.

The collation of the Products table

B.

The index on the ProductName column

C.

The collation of the ProductName column

D.

The data type of the ProductName column

 

Correct Answer: C

Explanation:

http://technet.microsoft.com/en-us/library/aa214408(v=sql.80).aspx

 

 

QUESTION 19

You need to recommend a solution that addresses the concurrency requirement. What should you recommend?

 

A.

Break each stored procedure into two separate procedures, one that changes Sales.Table1 and one that changes Sales.Table2.

B.

Make calls to Sales.Proc1 and Sales.Proc2 synchronously.

C.

Call the stored procedures in a Distributed Transaction Coordinator (DTC) transaction.

D.

Modify the stored procedures to update tables in the same order for all of the stored procedures.

 

Correct Answer: D

Explanation:

*Concurrency Requirements

You must reduce the likelihood of deadlocks occurring when Sales.Proc1 and Sales.Proc2 execute.

 

 

QUESTION 20

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?

 

A.

Indexed views

B.

Filegroups

C.

Table partitioning

D.

Indexes

 

Correct Answer: B

Explanation:

* Backup Issues

Customers who have large amounts of historical purchase order data report that backup time is unacceptable.

* For very large databases (and by that, I mean, at least 500gb, but more like 5-10tb or more), it can become too expensive to regularly run a straight full backup . So, where needed, you canchoose to backup smaller pieces of the database by choosing to back up one of the files or file groups that make up a database.

 

Using Filegroups and Files to Store Data

 

 

Free VCE & PDF File for Microsoft 70-465 Real Exam

Instant Access to Free VCE Files: MCSE|MCSA|MCITP…
Instant Access to Free PDF Files: MCSE|MCSA|MCITP…