exam questions

Exam 70-762 All Questions

View all questions & answers for the 70-762 exam

Exam 70-762 topic 1 question 85 discussion

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

HOTSPOT -

Background -
You have a database named HR1 that includes a table named Employee.
You have several read-only, historical reports that contain regularly changing totals. The reports use multiple queries to estimate payroll expenses. The queries run concurrently. Users report that the payroll estimate reports do not always run. You must monitor the database to identify issues that prevent the reports from running.
You plan to deploy the application to a database server that supports other applications. You must minimize the amount of storage that the database requires.

Employee Table -
You use the following Transact-SQL statements to create, configure, and populate the Employee table:


Application -
You have an application that updates the Employees table. The application calls the following stored procedures simultaneously and asynchronously:
✑ UspA: This stored procedure updates only the EmployeeStatus column.
✑ UspB: This stored procedure updates only the EmployeePayRate column.
The application uses views to control access to data. Views must meet the following requirements:
✑ Allow users access to all columns in the tables that the view accesses.
✑ Restrict updates to only the rows that the view returns.

Exhibit -

You view the Deadlock Graph as shown in the exhibit. (Click the Exhibit tab.)
Use the drop-down menus to select the answer choice that answers each question based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
References:
https://msdn.microsoft.com/en-us/library/ms186736.aspx

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
EdwardWang
Highly Voted 5 years, 6 months ago
An Exclusive lock
upvoted 40 times
...
JohnFan
Highly Voted 5 years, 3 months ago
Resource locks: Shared (S), Update (U), Exclusive (X), Intent shared (IS), Intent exclusive (IX), Shared with intent exclusive (SIX)。 Intent update (IU), Shared intent update (SIU), and Update intent exclusive (UIX).
upvoted 9 times
...
newsyk
Most Recent 4 years, 5 months ago
Most of the time optimizer decides which will be the victim by the cost of rollback. Victim will be the one that costs less to rollback.
upvoted 1 times
...
Newt
5 years, 1 month ago
https://www.sqlshack.com/understanding-graphical-representation-sql-server-deadlock-graph/ link explains the entire graph step by step. Exclusive locks.
upvoted 3 times
...
Heisenberg008
5 years, 4 months ago
For second part the answer would be “an exclusive lock” due to request mode “X” from process ID 56. https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-lock-transact-sql
upvoted 8 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 ...