nerdexam
Microsoft

70-518 · Question #141

You are designing the data access layer (DAL) for an application that uses Microsoft SQL Server 2008, Microsoft ADO.NET, and Microsoft Visual Studio 2010. Conflicts are occurring in the SQL Server…

The correct answer is D. Use optimistic locking. See the full explanation below for the reasoning.

Question

You are designing the data access layer (DAL) for an application that uses Microsoft SQL Server 2008, Microsoft ADO.NET, and Microsoft Visual Studio 2010. Conflicts are occurring in the SQL Server database due to concurrent updates. You need to design a database locking strategy that meets the following requirements:

  • Resolves concurrent update conflicts without loss of data
  • Ensures that data conflicts can be resolved by users
  • Locks only the data necessary for updates

What should you do?

Options

  • AUse optimistic locking.
  • BUse pessimistic locking.
  • CUse pessimistic locking.
  • DUse optimistic locking.

How the community answered

(19 responses)
  • A
    11% (2)
  • B
    11% (2)
  • C
    5% (1)
  • D
    74% (14)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice