exam questions

Exam 70-767 All Questions

View all questions & answers for the 70-767 exam

Exam 70-767 topic 1 question 7 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have the following line-of-business solutions:
✑ ERP system
✑ Online WebStore
✑ Partner extranet
One or more Microsoft SQL Server instances support each solution. Each solution has its own product catalog. You have an additional server that hosts SQL
Server Integration Services (SSIS) and a data warehouse. You populate the data warehouse with data from each of the line-of-business solutions. The data warehouse does not store primary key values from the individual source tables.
The database for each solution has a table named Products that stored product information. The Products table in each database uses a separate and unique key for product records. Each table shares a column named ReferenceNr between the databases. This column is used to create queries that involve more than once solution.
You need to load data from the individual solutions into the data warehouse nightly. The following requirements must be met:
✑ If a change is made to the ReferenceNr column in any of the sources, set the value of IsDisabled to True and create a new row in the Products table.
✑ If a row is deleted in any of the sources, set the value of IsDisabled to True in the data warehouse.
Solution: Perform the following actions:
✑ Enable the Change Tracking for the Product table in the source databases.
✑ Query the CHANGETABLE function from the sources for the updated rows.
✑ Set the IsDisabled column to True for the listed rows that have the old ReferenceNr value.
✑ Create a new row in the data warehouse Products table with the new ReferenceNr value.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
We must check for deleted rows, not just updates rows.
References: https://www.timmitchell.net/post/2016/01/18/getting-started-with-change-tracking-in-sql-server/

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
DudeHere
4 years, 7 months ago
I'm going with YES. "SQL Server 2008 introduces two tracking features that enable applications to determine the DML changes (insert, update, and delete operations) that were made to user tables in a database. Before these features were available, custom tracking mechanisms had to be implemented in applications. Change tracking captures the fact that rows in a table were changed, but does not capture the data that was changed. This enables applications to determine the rows that have changed with the latest row data being obtained directly from the user tables." https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/cc280519(v=sql.105)?redirectedfrom=MSDN
upvoted 2 times
nickname_200
4 years, 5 months ago
Aww so the answer is YES
upvoted 1 times
eggzamtaker
4 years, 5 months ago
Wrong. The answer is NO. CDC is what you want not simply Change Tracking.
upvoted 1 times
...
...
...
Cococo
4 years, 9 months ago
"Enable the Change Tracking" - This only lets you know that a particular row has changed since your last query. You have no idea - how many times it’s changed, the various change values over time. So, you need a solution with CDC. https://www.sqlservercentral.com/blogs/the-difference-between-change-tracking-and-change-data-capture
upvoted 2 times
Cococo
4 years, 9 months ago
Question 9 has the cdc.fn_cdc_get_all_changes_capture_dbo_products function but it is not doing this - "Set the IsDIsabled column to True on the data warehouse Products table for the listed rows."
upvoted 1 times
...
...
divyatsl
4 years, 9 months ago
if we query the change table won't it show all changed records?(updates and deletes?
upvoted 1 times
...
Kartheek285
4 years, 10 months ago
While querying we need to get deleted records too, to update the IsDisabled column to TRUE. I think the answer is correct NO.
upvoted 4 times
...
Anette
4 years, 10 months ago
I think the answer is YES. I do not see any reason why it must be NO. Any hint?
upvoted 1 times
Slava_bcd81
4 years, 8 months ago
you can see it from the decision - its only about updated rows, but the question is also about deleted rows
upvoted 3 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 ...