Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-300 Exam - Topic 1 Question 14 Discussion

Posted by Kirk on May 09, 2022 at 09:36 PM

You deploy a database to an Azure SQL Database managed instance.

D18912E1457D5D1DDCBD40AB3BF70D5D

You need to prevent read queries from blocking queries that are trying to write to the database.

Which database option should set?

Suggested Answer: D

In SQL Server, you can also minimize locking contention while protecting transactions from dirty reads of uncommitted data modifications using either:

The READ COMMITTED isolation level with the READ_COMMITTED_SNAPSHOT database option set to ON.

The SNAPSHOT isolation level.

If READ_COMMITTED_SNAPSHOT is set to ON (the default on SQL Azure Database), 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. Locks are not used to protect the data from updates by other transactions.

Incorrect Answers:

A: When the PARAMETERIZATION database option is set to SIMPLE, the SQL Server query optimizer may choose to parameterize the queries. This means that any literal values that are contained in a query are substituted with parameters. This process is referred to as simple parameterization. When SIMPLE parameterization is in effect, you cannot control which queries are parameterized and which queries are not.

B: You can specify that all queries in a database be parameterized by setting the PARAMETERIZATION database option to FORCED. This process is referred to as forced parameterization.

C: Delayed transaction durability is accomplished using asynchronous log writes to disk. Transaction log records are kept in a buffer and written to disk when the buffer fills or a buffer flushing event takes place. Delayed transaction durability reduces both latency and contention within the system.

Some of the cases in which you could benefit from using delayed transaction durability are:

You can tolerate some data loss.

You are experiencing a bottleneck on transaction log writes.

Your workloads have a high contention rate.


https://docs.microsoft.com/en-us/sql/t-sql/statements/set-transaction-isolation-level-transact-sql

Get Premium DP-300 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
14 comments · newest first
JO
Johna 11 months ago
Definitely not PARAMETERIZATION to FORCED, that’s for sure!
AN
Annice 12 months ago
I’ve always used SIMPLE, but I’m not convinced it’s the best here.
SH
Shenika 12 months ago
Wait, are you sure about that? I thought Delayed Durability was better for this.
LY
Lynelle 12 months ago
Yeah, that makes sense!
DE
Delmy 1 year ago
I think READ_COMMITTED_SNAPSHOT to ON is the way to go.
MO
Mose 1 year ago
PARAMETERIZATION options seem less relevant here, but I can't recall if SIMPLE or FORCED would help with blocking.
OZ
Ozell 1 year ago
I practiced a similar question, and I feel like READ_COMMITTED_SNAPSHOT was mentioned as a way to reduce blocking.
JE
Jess 1 year ago
I'm not entirely sure, but I remember something about delayed durability being useful in certain scenarios. Maybe it's C?
TI
Tiara 1 year ago
I think the answer might be D, setting READ_COMMITTED_SNAPSHOT to ON could help with blocking issues.
PI
Pilar 1 year ago
I remember learning about this in class. Even though null is a special value, the typeof operator still returns 'object' for it. So the correct answer here is A, 'object'.
CA
Caitlin 1 year ago
This question seems pretty straightforward. I'm pretty confident I can narrow it down to the right answer.
ME
Merilyn 1 year ago
This seems like a straightforward question. I'll think through the options carefully and select the one that best matches the description.
CH
Chau 1 year ago
Hmm, I'm a little unsure about this one. I know it has something to do with testing, but I'm not totally clear on the difference between statement and branch coverage. I'll have to think this through carefully.
CA
Camellia 1 year ago
I remember practicing a similar question where “Housing” was related to room bookings. That might be relevant here too.
0/2000 characters

Save Cancel