exam questions

Exam 70-767 All Questions

View all questions & answers for the 70-767 exam

Exam 70-767 topic 1 question 126 discussion

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

HOTSPOT -
You manage the data warehouse for a large retail company. The company has many store locations. Each location runs their own independent sales systems.
They report daily sales and receipt information to a central system every night. You plan to load data from all locations into a fact table named fact.Sales by using
SQL Server Integration Services (SSIS) packages. You create the following Transact-SQL statement:

You need to select the columns for the primary key and clustered column key. The keys must meet the following requirements:
✑ Prevent duplicate rows from being entered by a single system.
✑ Allow for point lookups of a single sale.
✑ Minimize storage requirements for nonclustered indexes.
✑ Store rows in the order that they are inserted into the table.
How should you configure the keys? To answer, select the appropriate column type in the answer area.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation

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
kimalto452
4 years, 5 months ago
How can be more than one clustered index in the table?
upvoted 1 times
Lukis92
4 years, 5 months ago
One clustered index on multiple columns.
upvoted 1 times
...
rya
4 years, 5 months ago
There can't be. i think the answer is: SalesID : primary key column ReceiptID : clustered key column
upvoted 1 times
...
...
AlexSuciu
5 years, 2 months ago
Prevent duplicate rows from being entered by a single system/Allow for point lookups of a single sale StoreId+SaleId: This combo would meet the above requireptments. Each sale generates a receipt, that by law must identity unqiuley a sale transaction. A store should not have duplicate receipt id's. The column SystemID is a red hering(personal point of view):" The company has many store locations. Each location runs their own independent sales systems." This can mean that two separate locations use the same "independent sales system", thus a combo of StoreID+SystemId does not guranatee uniquness. Safest combo would be StoreId+SaleID+SystemID, but when building a compoiste key we should stick to as few columns as necesary. Store rows in the order that they are inserted into the table: saleid: clustered index on it. Because it is an identity(1,1) column, oredring the table by it enforces the above request
upvoted 2 times
als2kool
5 years ago
I agree with m8rvil, the question doesn't mention composite keys and it does mention minimize storage requirements for the non-clustered indexes
upvoted 1 times
...
...
m8rvil
5 years, 2 months ago
SalesID : primary key column SystemID : clustered key column ReceiptID : clustered key column StoredID : primary key column
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago