PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You need to update the CreateMonthlyTotalsReports() method to use database transactions.
Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
SqlConnection.BeginTransaction(IsolationLevel.ReadCommitted);

B.
SqlConnection.BeginTransaction(IsolationLevel.ReadUnconwited);

C.
SqlConnection.BeginTransaction(IsolationLevel.Chaos);

D.
SqlConnection.BeginTransaction(IsolationLevel.Serializable);

Explanation:

4 Comments on “Which code segment should you use?

  1. Blue says:

    There is a missing requirement:
    “The Create MonthlyTotalsReport() method must lock the data and prevent others from updating or inserting new rows until complete.”
    Correct answer D




    2



    0

Leave a Reply