exam questions

Exam 70-762 All Questions

View all questions & answers for the 70-762 exam

Exam 70-762 topic 1 question 103 discussion

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

HOTSPOT -
You are developing queries and stored procedures to support a line-of-business application.
You need to use the appropriate isolation level based on the scenario.
Which isolation levels should you implement? To answer, select the appropriate isolation level for each scenario in the answer area. Each isolation level may be used only one.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: READ UNCOMMITTED -
Transactions running at the READ UNCOMMITTED level do not issue shared locks to prevent other transactions from modifying data read by the current transaction. READ UNCOMMITTED transactions are also not blocked by exclusive locks that would prevent the current transaction from reading rows that have been modified but not committed by other transactions. When this option is set, it is possible to read uncommitted modifications, which are called dirty reads.
Values in the data can be changed and rows can appear or disappear in the data set before the end of the transaction.

Box 2: READ COMMITTED -
READ COMMITTED specifies that statements cannot read data that has been modified but not committed by other transactions.
SERIALIZABLE specifies that statements cannot read data that has been modified but not yet committed by other transactions.

Box 3: REPEATABLE READ -
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.

Box 4: SNAPSHOT -
If READ_COMMITTED_SNAPSHOT is set to ON, the Database Engine uses row versioning to present each statement with a transactionally consistent snapshot of the data as it existed at the start of the statement.
References:
https://docs.microsoft.com/en-us/sql/t-sql/statements/set-transaction-isolation-level-transact-sql?view=sql-server-2017

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
BenAsare
Highly Voted 4 years, 10 months ago
Correct!
upvoted 13 times
stm22
4 years, 9 months ago
AGREE!
upvoted 2 times
...
...
Alex5x
Most Recent 4 years, 5 months ago
The last option is wrong. SNAPSHOT isolation level is used only when ALLOW_SNAPSHOT_ISOLATION is ON. This uses row versioning to present each statement with a snapshot of the data committed before the start of each TRANSACTION, not statement. The requirement says: "the data as it existed at the start of the statement". This means READ COMMITTED isolation level with READ_COMMITTED_SNAPSHOT ON.
upvoted 2 times
kimalto452
4 years, 4 months ago
answer is correct
upvoted 2 times
...
Backy
4 years, 5 months ago
SNAPSHOT exists only when ALLOW_SNAPSHOT_ISOLATION is ON - so this is assumed READ COMMITTED can exist with or without READ_COMMITTED_SNAPSHOT, in each case it has different meaning, if there is no mention of READ_COMMITTED_SNAPSHOT then it is assumed that READ_COMMITTED_SNAPSHOT is OFF
upvoted 3 times
...
...
krcmyoyo
4 years, 7 months ago
Correct
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago