DP-420 practice question 6 of 25

You are troubleshooting the current issues caused by the application updates. Which action can address the application updates issue without affecting the functionality of the application?

Full set: 144 questions
Answer options
A: Enable time to live for the con-product container.
B: Set the default consistency level of account1 to strong.
C: Set the default consistency level of account1 to bounded staleness. Correct answer
D: Add a custom indexing policy to the con-product container.
Correct Answer:
C. Set the default consistency level of account1 to bounded staleness.
Explanation

Changing the default consistency level to Bounded Staleness is a common strategy to improve application performance and availability, especially in globally distributed scenarios. This level provides a balance by guaranteeing that reads lag behind writes by no more than a configured time or number of versions. If application updates introduced performance issues due to high latency from a stricter consistency level like Strong, relaxing it to Bounded Staleness can resolve these issues. This change addresses performance without altering the core data access functionality of the application, assuming it can tolerate a small amount of data staleness.

Why Incorrect

A. Enabling time to live (TTL) is for automatically deleting items after a certain period. It does not address general performance or functionality issues caused by application updates.
B. Setting the consistency to Strong would likely worsen performance issues by increasing read latency and reducing availability, as it guarantees reading the most recent committed data.
D. Adding a custom indexing policy is specific to optimizing query performance and RU cost. It would not address broader application issues unless they are solely due to inefficient queries.

References

1. Microsoft Docs

"Consistency levels in Azure Cosmos DB". This document explains the trade-offs between consistency

availability

and latency. Bounded Staleness is presented as a balance between Strong and weaker consistency levels.

2. Microsoft Docs

"Tune performance with consistency levels". This section details how choosing a more relaxed consistency level can improve latency and throughput

which is a common troubleshooting step for performance issues.

Scroll to Top