exam questions

Exam 70-764 All Questions

View all questions & answers for the 70-764 exam

Exam 70-764 topic 1 question 186 discussion

Actual exam question from Microsoft's 70-764
Question #: 186
Topic #: 1
[All 70-764 Questions]

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_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.
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.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
- 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.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Slava_bcd81
4 years, 9 months ago
D - as the ProductPrice doesn't relate to the primary key of Products table, it relates to primary key of OderDetails table, so we need to normalize Products table
upvoted 2 times
Cococo
4 years, 7 months ago
Agree, price is changing and should be in a "Price" table with the price changes history, so we need to Normalize the Products table and get rid of the 'Current Price' column
upvoted 1 times
...
...
Iva10
5 years, 3 months ago
I think that anwser is C. In current design ProductDetails has foreing key on table Products so if you change price in Products every previous price is lost. You have to add this last price in ProductDetails, means that you have to normalize ProductDetails table.
upvoted 1 times
Iva10
5 years, 3 months ago
I mean OrderDetails instead ProductDetalils
upvoted 1 times
Iva10
5 years, 3 months ago
Now table OrderDetails is in Normalized forms, so we should to put it ni Denormalized form. So the right answer is B instead C.
upvoted 4 times
...
...
...
TheSwedishGuy
5 years, 4 months ago
https://en.wikipedia.org/wiki/Denormalization
upvoted 1 times
TheSwedishGuy
5 years, 3 months ago
Denormalization is a strategy used on a previously-normalized database to increase performance. In computing, denormalization is the process of trying to improve the read performance of a database, at the expense of losing some write performance, by adding redundant copies of data or by grouping data. Therefore, you normalize the already denormalized values. Then the "ghost values" will disappear.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...