exam questions

Exam 70-764 All Questions

View all questions & answers for the 70-764 exam

Exam 70-764 topic 1 question 284 discussion

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

DRAG DROP -
You have an SQL Server 2014 server. You plan to create four stored procedures that will use transactions. The stored procedures will be configured as shown in the following table.

You need to recommend an isolation level for each stored procedure. The solution must support the concurrency strategy of each stored procedure and must minimize locks.
What should you recommend?
To answer, drag the appropriate isolation levels to the correct stored procedures. Each isolation level may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
✑ SP1 SNAPSHOT The transaction can only recognize data modifications that were committed before the start of the transaction. Data modifications made by other transactions after the start of the current transaction are not visible to statements executing in the current transaction. The effect is as if the statements in a transaction get a snapshot of the committed data as it existed at the start of the transaction.
✑ SP2: REPEATABLE READ Specifies that statements cannot read data that has been modified but not yet committed by other transactions and that no other transactions can modify data that has been read by the current transaction until the current transaction completes.
✑ SP3: READ COMMITTED Specifies that statements cannot read data that has been modified but not committed by other transactions. This prevents dirty reads.
✑ SP4: SERIALIZABLE specification include: / No other transactions can modify data that has been read by the current transaction until the current transaction completes.
References: SET TRANSACTION ISOLATION LEVEL (Transact-SQL)
https://msdn.microsoft.com/en-us/library/ms173763.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
San98
Highly Voted 5 years, 6 months ago
I believe the second one should be read_uncommitted
upvoted 6 times
...
TheSwedishGuy
Highly Voted 5 years, 3 months ago
1) Snapshot 2) Read Uncommitted 3) Read Committed 4) Serializable.
upvoted 6 times
huzein
4 years, 5 months ago
4) must be repeatable read because repeatable read prevents dirty reads and other transactions from modifying data in the current transaction. Serializable do the same but further more prevents phantom reads, what repeatable read does not prevent but that is not required. Since minimizing locks is required, repeatable read is the choice instead of serializable.
upvoted 1 times
...
...
mckmck
Most Recent 5 years, 4 months ago
Yes, I thing the secont is read_uncommitted. READ UNCOMMITTED Specifies that statements can read rows that have been modified by other transactions but not yet committed. This is from: https://docs.microsoft.com/en-us/sql/t-sql/statements/set-transaction-isolation-level-transact-sql?view=sql-server-ver15
upvoted 2 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