Question 430
An architect proposes this change: Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency. The workload context is: A Cosmos DB workload serves high global write demand and must support multiple writable Azure regions rather than a single write region. Which evidence would most directly validate the change?
- Write a test sequence and verify reads conform to the configured staleness bound under load.
- Insert and update a test document and confirm change feed processor receives it with tracked continuation state.
- Create a short-lived item and confirm expiration is enforced without a separate cleanup service.
- Write from two configured regions and verify cross-region propagation and conflict outcomes under controlled concurrent updates.
Explanation
Correct Answer
D:The decisive evidence is: Write from two configured regions and verify cross-region propagation and conflict outcomes under controlled concurrent updates. This measures the mechanism of the planned change, not an unrelated Azure service: Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency.
Incorrect Answers
A:The alternative test targets: Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters. The scenario's actual proposed remedy is: Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency. Verify that one by: Write from two configured regions and verify cross-region propagation and conflict outcomes under controlled concurrent updates.
B:The decisive evidence is: Write from two configured regions and verify cross-region propagation and conflict outcomes under controlled concurrent updates.
C:That observation pertains to a separate failure: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. Its cause is: TTL was not enabled for the required automatic item expiration lifecycle. It does not confirm the result of this design. The direct proof would be: Write from two configured regions and verify cross-region propagation and conflict outcomes under controlled concurrent updates.
Question 431
During architecture troubleshooting, a team reports: An overseas region must send writes to a remote single-write region despite local performance targets. Context: A Cosmos DB workload serves high global write demand and must support multiple writable Azure regions rather than a single write region. Which underlying design mistake explains the observed behavior most precisely?
- TTL was not enabled for the required automatic item expiration lifecycle.
- Multi-region write capability and conflict resolution were not designed for the active-active requirement.
- The consistency level does not enforce a bounded staleness guarantee.
- No change feed consumer exists for incremental document changes.
Explanation
Correct Answer
B:The incident is explained by: Multi-region write capability and conflict resolution were not designed for the active-active requirement. The reported symptom is: An overseas region must send writes to a remote single-write region despite local performance targets. The corresponding design fix is: Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency.
Incorrect Answers
A:The alternative diagnosis “TTL was not enabled for the required automatic item expiration lifecycle” does not match the observed symptom: An overseas region must send writes to a remote single-write region despite local performance targets. Context: A Cosmos DB workload serves high global write demand and must support multiple writable Azure regions rather than a single write region. The incident is explained by: Multi-region write capability and conflict resolution were not designed for the active-active requirement. The reported symptom is: An overseas region must send writes to a remote single-write region despite local performance targets. The evidence instead supports “Multi-region write capability and conflict resolution were not designed for the active-active requirement”.
C:The alternative diagnosis “The consistency level does not enforce a bounded staleness guarantee” does not match the observed symptom: An overseas region must send writes to a remote single-write region despite local performance targets. Context: A Cosmos DB workload serves high global write demand and must support multiple writable Azure regions rather than a single write region. The incident is explained by: Multi-region write capability and conflict resolution were not designed for the active-active requirement. The reported symptom is: An overseas region must send writes to a remote single-write region despite local performance targets. The evidence instead supports “Multi-region write capability and conflict resolution were not designed for the active-active requirement”.
D:The alternative diagnosis “No change feed consumer exists for incremental document changes” does not match the observed symptom: An overseas region must send writes to a remote single-write region despite local performance targets. Context: A Cosmos DB workload serves high global write demand and must support multiple writable Azure regions rather than a single write region. The incident is explained by: Multi-region write capability and conflict resolution were not designed for the active-active requirement. The reported symptom is: An overseas region must send writes to a remote single-write region despite local performance targets. The evidence instead supports “Multi-region write capability and conflict resolution were not designed for the active-active requirement”.
Question 432
The design change is: Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency. The original failure was: An overseas region must send writes to a remote single-write region despite local performance targets. Which ongoing control best prevents recurrence of the same root cause?
- Monitor replication and conflict metrics, documenting bounded consistency tradeoffs.
- Review consistency requirements and their latency/RU implications across regions.
- Monitor TTL policy and RU consumption when session expiration rates increase.
- Persist checkpoints and make downstream processing idempotent for retries/replays.
Explanation
Correct Answer
A:The key follow-up control is: Monitor replication and conflict metrics, documenting bounded consistency tradeoffs. It avoids recurrence of the scenario in which: An overseas region must send writes to a remote single-write region despite local performance targets. It addresses: Multi-region write capability and conflict resolution were not designed for the active-active requirement.
Incorrect Answers
B:The alternative diagnosis “Review consistency requirements and their latency/RU implications across regions” does not match the observed symptom: The design change is: Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency. The key follow-up control is: Monitor replication and conflict metrics, documenting bounded consistency tradeoffs. It avoids recurrence of the scenario in which: An overseas region must send writes to a remote single-write region despite local performance targets. The evidence instead supports “Monitor replication and conflict metrics, documenting bounded consistency tradeoffs”.
C:The alternative diagnosis “Monitor TTL policy and RU consumption when session expiration rates increase” does not match the observed symptom: The design change is: Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency. The key follow-up control is: Monitor replication and conflict metrics, documenting bounded consistency tradeoffs. It avoids recurrence of the scenario in which: An overseas region must send writes to a remote single-write region despite local performance targets. The evidence instead supports “Monitor replication and conflict metrics, documenting bounded consistency tradeoffs”.
D:The alternative diagnosis “Persist checkpoints and make downstream processing idempotent for retries/replays” does not match the observed symptom: The design change is: Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency. The key follow-up control is: Monitor replication and conflict metrics, documenting bounded consistency tradeoffs. It avoids recurrence of the scenario in which: An overseas region must send writes to a remote single-write region despite local performance targets. The evidence instead supports “Monitor replication and conflict metrics, documenting bounded consistency tradeoffs”.
Question 433
A design workshop has this requirement: An application needs bounded-staleness reads in Cosmos DB, limiting how far replica data may lag behind the latest writes. Operators currently observe: Occasionally stale analytics exceed an explicitly documented maximum acceptable age. Select the ONE design remedy that best addresses the root cause.
- Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency.
- Select Azure Cosmos DB for NoSQL with an appropriate partition key and RU/s model when its APIs meet the workload.
- Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters.
- Consume the appropriate Azure Cosmos DB change feed with a checkpointed processor for the supported API.
Explanation
Correct Answer
C:The targeted implementation is: Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters. The problem is not generic resource availability: The consistency level does not enforce a bounded staleness guarantee. Verify the result by: Write a test sequence and verify reads conform to the configured staleness bound under load.
Incorrect Answers
A:The alternative diagnosis “Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency” does not match the observed symptom: Occasionally stale analytics exceed an explicitly documented maximum acceptable age. The targeted implementation is: Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters. The problem is not generic resource availability: The consistency level does not enforce a bounded staleness guarantee. The evidence instead supports “Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters”.
B:The alternative diagnosis “Select Azure Cosmos DB for NoSQL with an appropriate partition key and RU/s model when its APIs meet the workload” does not match the observed symptom: Occasionally stale analytics exceed an explicitly documented maximum acceptable age. The targeted implementation is: Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters. The problem is not generic resource availability: The consistency level does not enforce a bounded staleness guarantee. The evidence instead supports “Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters”.
D:The alternative diagnosis “Consume the appropriate Azure Cosmos DB change feed with a checkpointed processor for the supported API” does not match the observed symptom: Occasionally stale analytics exceed an explicitly documented maximum acceptable age. The targeted implementation is: Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters. The problem is not generic resource availability: The consistency level does not enforce a bounded staleness guarantee. The evidence instead supports “Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters”.
Question 434
The planned architecture is: Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters. Workload context: An application needs bounded-staleness reads in Cosmos DB, limiting how far replica data may lag behind the latest writes. Which acceptance test demonstrates that the required behavior works?
- Insert heterogeneous JSON documents and measure point reads using full partition-key and item-ID values.
- Write a test sequence and verify reads conform to the configured staleness bound under load.
- Insert and update a test document and confirm change feed processor receives it with tracked continuation state.
- Write from two configured regions and verify cross-region propagation and conflict outcomes under controlled concurrent updates.
Explanation
Correct Answer
B:The acceptance test is specific: Write a test sequence and verify reads conform to the configured staleness bound under load. Its purpose is to establish that the proposed architecture works: Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters.
Incorrect Answers
A:Insert heterogeneous JSON documents and measure point reads using full partition-key and item-ID values would not address the need for write a test sequence and verify reads conform to the configured staleness bound under load.
C:The alternative test targets: Consume the appropriate Azure Cosmos DB change feed with a checkpointed processor for the supported API. The scenario's actual proposed remedy is: Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters. Verify that one by: Write a test sequence and verify reads conform to the configured staleness bound under load.
D:Its purpose is to establish that the proposed architecture works: Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters.
Question 435
The customer states: An application needs bounded-staleness reads in Cosmos DB, limiting how far replica data may lag behind the latest writes. An incident reveals: Occasionally stale analytics exceed an explicitly documented maximum acceptable age. What cause best accounts for this evidence?
- Multi-region write capability and conflict resolution were not designed for the active-active requirement.
- The datastore was chosen without matching the flexible document and multi-region serving requirements.
- The consistency level does not enforce a bounded staleness guarantee.
- No change feed consumer exists for incremental document changes.
Explanation
Correct Answer
C:The recorded behavior follows from: The consistency level does not enforce a bounded staleness guarantee. The appropriate mitigation would be: Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters. Verify with: Write a test sequence and verify reads conform to the configured staleness bound under load.
Incorrect Answers
A:Multi-region write capability and conflict resolution were not designed for the active-active requirement. The consistency level does not enforce a bounded staleness guarantee.
B:The datastore was chosen without matching the flexible document and multi-region serving requirements. The consistency level does not enforce a bounded staleness guarantee.
D:No change feed consumer exists for incremental document changes. The consistency level does not enforce a bounded staleness guarantee.
Question 436
Workload context: An application needs bounded-staleness reads in Cosmos DB, limiting how far replica data may lag behind the latest writes. The implemented remedy is: Choose the supported bounded staleness consistency level with appropriate lag/staleness parameters. Which ongoing practice most specifically prevents recurrence of this failure: Occasionally stale analytics exceed an explicitly documented maximum acceptable age.?
- Persist checkpoints and make downstream processing idempotent for retries/replays.
- Monitor replication and conflict metrics, documenting bounded consistency tradeoffs.
- Review consistency requirements and their latency/RU implications across regions.
- Monitor partition key distribution and provisioned/request-unit usage before scaling.
Explanation
Correct Answer
C:The key follow-up control is: Review consistency requirements and their latency/RU implications across regions. It avoids recurrence of the scenario in which: Occasionally stale analytics exceed an explicitly documented maximum acceptable age. It addresses: The consistency level does not enforce a bounded staleness guarantee.
Incorrect Answers
A:Persist checkpoints and make downstream processing idempotent for retries/replays would not review consistency requirements and their latency/RU implications across regions.
B:Monitoring replication and conflict metrics, documenting bounded consistency tradeoffs would not review consistency requirements and their latency/RU implications across regions.
D:Monitoring partition key distribution and provisioned/request-unit usage would not review consistency requirements and their latency/RU implications across regions.
Question 437
A solution architect is reviewing a workload: A Cosmos DB container contains temporary sessions that should expire automatically thirty days after creation unless renewed. The observed incident is: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. Which architecture choice most directly removes the identified weakness?
- Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency.
- Consume the appropriate Azure Cosmos DB change feed with a checkpointed processor for the supported API.
- Select Azure Cosmos DB for NoSQL with an appropriate partition key and RU/s model when its APIs meet the workload.
- Configure Cosmos DB time-to-live behavior for the container or items as appropriate.
Explanation
Correct Answer
D:The evidence (Old session JSON documents accumulate indefinitely until a manual cleanup job runs.) identifies the following cause: TTL was not enabled for the required automatic item expiration lifecycle. The design that removes it is: Configure Cosmos DB time-to-live behavior for the container or items as appropriate. The acceptance check is: Create a short-lived item and confirm expiration is enforced without a separate cleanup service.
Incorrect Answers
A:Configuring supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency would not configure Cosmos DB time-to-live behavior for the container or items as appropriate.
B:Consume the appropriate Azure Cosmos DB change feed with a checkpointed processor for the supported API would not configure Cosmos DB time-to-live behavior for the container or items as appropriate.
C:Selecting Azure Cosmos DB for NoSQL with an appropriate partition key and RU/s model when its APIs meet the workload would not configure Cosmos DB time-to-live behavior for the container or items as appropriate.
Question 438
An architect proposes this change: Configure Cosmos DB time-to-live behavior for the container or items as appropriate. The workload context is: A Cosmos DB container contains temporary sessions that should expire automatically thirty days after creation unless renewed. Which evidence would most directly validate the change?
- Write from two configured regions and verify cross-region propagation and conflict outcomes under controlled concurrent updates.
- Insert and update a test document and confirm change feed processor receives it with tracked continuation state.
- Insert heterogeneous JSON documents and measure point reads using full partition-key and item-ID values.
- Create a short-lived item and confirm expiration is enforced without a separate cleanup service.
Explanation
Correct Answer
D:The acceptance test is specific: Create a short-lived item and confirm expiration is enforced without a separate cleanup service. Its purpose is to establish that the proposed architecture works: Configure Cosmos DB time-to-live behavior for the container or items as appropriate.
Incorrect Answers
A:That observation pertains to a separate failure: An overseas region must send writes to a remote single-write region despite local performance targets. Its cause is: Multi-region write capability and conflict resolution were not designed for the active-active requirement. It does not confirm the result of this design. The direct proof would be: Create a short-lived item and confirm expiration is enforced without a separate cleanup service.
B:The alternative test targets: Consume the appropriate Azure Cosmos DB change feed with a checkpointed processor for the supported API. The scenario's actual proposed remedy is: Configure Cosmos DB time-to-live behavior for the container or items as appropriate. Verify that one by: Create a short-lived item and confirm expiration is enforced without a separate cleanup service.
C:Its purpose is to establish that the proposed architecture works: Configure Cosmos DB time-to-live behavior for the container or items as appropriate.
Question 439
During architecture troubleshooting, a team reports: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. Context: A Cosmos DB container contains temporary sessions that should expire automatically thirty days after creation unless renewed. Which underlying design mistake explains the observed behavior most precisely?
- No change feed consumer exists for incremental document changes.
- The datastore was chosen without matching the flexible document and multi-region serving requirements.
- Multi-region write capability and conflict resolution were not designed for the active-active requirement.
- TTL was not enabled for the required automatic item expiration lifecycle.
Explanation
Correct Answer
D:This is the failure mechanism rather than an incidental symptom: TTL was not enabled for the required automatic item expiration lifecycle. It accounts for: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. The architectural repair is: Configure Cosmos DB time-to-live behavior for the container or items as appropriate.
Incorrect Answers
A:The alternative diagnosis “No change feed consumer exists for incremental document changes” does not match the observed symptom: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. Context: A Cosmos DB container contains temporary sessions that should expire automatically thirty days after creation unless renewed. This is the failure mechanism rather than an incidental symptom: TTL was not enabled for the required automatic item expiration lifecycle. It accounts for: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. The evidence instead supports “TTL was not enabled for the required automatic item expiration lifecycle”.
B:The alternative diagnosis “The datastore was chosen without matching the flexible document and multi-region serving requirements” does not match the observed symptom: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. Context: A Cosmos DB container contains temporary sessions that should expire automatically thirty days after creation unless renewed. This is the failure mechanism rather than an incidental symptom: TTL was not enabled for the required automatic item expiration lifecycle. It accounts for: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. The evidence instead supports “TTL was not enabled for the required automatic item expiration lifecycle”.
C:The alternative diagnosis “Multi-region write capability and conflict resolution were not designed for the active-active requirement” does not match the observed symptom: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. Context: A Cosmos DB container contains temporary sessions that should expire automatically thirty days after creation unless renewed. This is the failure mechanism rather than an incidental symptom: TTL was not enabled for the required automatic item expiration lifecycle. It accounts for: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. The evidence instead supports “TTL was not enabled for the required automatic item expiration lifecycle”.
Question 440
A design review identifies: A Cosmos DB container contains temporary sessions that should expire automatically thirty days after creation unless renewed. The failure is: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. Select TWO distinct decisions that together provide the immediate technical solution AND an ongoing prevention control. A verification-only step does not replace either responsibility.
- Configure supported Azure Cosmos DB multi-region writes with an explicit conflict resolution strategy and appropriate consistency.
- Consume the appropriate Azure Cosmos DB change feed with a checkpointed processor for the supported API.
- Monitor partition key distribution and provisioned/request-unit usage before scaling.
- Configure Cosmos DB time-to-live behavior for the container or items as appropriate.
- Monitor TTL policy and RU consumption when session expiration rates increase.
Explanation
Correct Answers
D:The evidence (Old session JSON documents accumulate indefinitely until a manual cleanup job runs.) identifies the following cause: TTL was not enabled for the required automatic item expiration lifecycle. The design that removes it is: Configure Cosmos DB time-to-live behavior for the container or items as appropriate. The acceptance check is: Create a short-lived item and confirm expiration is enforced without a separate cleanup service.
E:The key follow-up control is: Monitor TTL policy and RU consumption when session expiration rates increase. It avoids recurrence of the scenario in which: Old session JSON documents accumulate indefinitely until a manual cleanup job runs. It addresses: TTL was not enabled for the required automatic item expiration lifecycle.
Incorrect Answers
A:Multi-region writes address distributed availability and conflicts; they do not configure a 30-day item expiry policy for temporary sessions.
B:The change feed records item changes for processing, but it does not automatically expire old session documents without a TTL policy.
C:Partition and request-unit monitoring can support capacity management, but it does not provide the TTL-based automatic deletion described in the requirement.
Designing Microsoft Azure Infrastructure Solutions (AZ-305) Practice Tests