exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 1 question 4 discussion

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

You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database.
You need to prevent the application from reading data that is locked by other transactions. You also need to prevent exclusive range locks.
Which isolation level should you use?

  • A. ReadCommitted
  • B. Serializable
  • C. Repeatable
  • D. ReadUncommitted
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Dreamchaser1980
Highly Voted 4 years, 7 months ago
I think the choice is between ReadCommitted and Repeatable. RepeatableRead also prevents the application from reading data that is locked by other transactions. In addition it does not use exclusive range locks as Serializable does. The advantage of using RepeatableRead instead of ReadCommitted is that RepeatableRead has a higher consistency, because it avoids nonrepeatable reads. However this could be a tricky question, since the question uses the phrase Repeatable and not RepeatableRead, but that would be very childish thing to do.
upvoted 7 times
zimzimzimma
4 years, 7 months ago
Welcome to Microsoft exams!
upvoted 2 times
...
Fizunik
4 years, 5 months ago
Except in the answer we have "Repeatable" instead of "RepeatableRead".
upvoted 3 times
...
...
sscooter1010
Highly Voted 5 years, 2 months ago
Objective 1.3. ReadCommitted: Shared locks are held during reads. This has the result of avoiding dirty reads, unlike ReadUncommitted. However, the data can be changed before the end of the transaction, resulting in nonrepeatable reads or phantom data.
upvoted 5 times
...
tanujgyan
Most Recent 4 years, 11 months ago
Can't use serializable as one of the requirement is not to use exclusive range locks
upvoted 3 times
...
[Removed]
5 years, 3 months ago
https://docs.microsoft.com/en-us/dotnet/api/system.transactions.isolationlevel?view=netframework-4.8
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