Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

A worked example

Complete the statement

Contoso runs a scheduled reconciliation pass over each shopper's active facts in the memories container of an Azure Cosmos DB for NoSQL account. For one shopper, the pass returned the two pairs shown in the exhibit. Requirements:

  • Each distinct piece of knowledge about the shopper must have exactly one active fact.
  • Recall must reflect the shopper's current state.
  • The team must be able to reconstruct how a belief changed and undo a reconciliation that the model got wrong.
  • The recall query already excludes records with WHERE IS_NULL(c.supersededBy) and does not filter on confidence.
PairidcontentconfidencecreatedAt
Af-101Prefers components that fit a carbon frame0.922026-03-02
Af-214Wants parts compatible with a carbon frame0.742026-09-18
Bf-118Headlight budget is at most 40 dollars0.952026-04-11
Bf-307Headlight budget has been raised to 60 dollars0.802026-10-05

Complete the reconciliation decision for this shopper.

For pair A, keep active. For pair B, keep active. Retire each other record in a pair by .

  • Blank 1: f-101 (correct answer)

    Pair A states the same fact in different words, so it is a duplicate and the higher-confidence record (f-101, 0.92) is kept. f-214 is newer but recency is the rule for conflicts, not duplicates. Keeping both leaves two active records for one fact.

  • Blank 2: f-307 (correct answer)

    Pair B is a genuine conflict, a change of state, so the newer record (f-307) is kept even though its confidence is lower. Keeping f-118 because of its higher confidence would recall an outdated budget. Keeping both leaves two conflicting active facts.

  • Blank 3: setting supersededBy to the kept fact's id (correct answer)

    Setting supersededBy to the kept fact's id excludes the obsolete fact from recall and preserves the link for auditing and reversal. Using delete_item removes the obsolete fact and loses its history. Setting confidence to 0 leaves supersededBy null, so recall still returns the obsolete fact.

Why

The same reconciliation pass finds two different problems that need different rules. Duplicates only waste space, so the higher-confidence wording is kept; contradictions mean the shopper changed their mind, so the newer record wins whatever its confidence. In both cases the other record is retired, not deleted, by pointing supersededBy at the kept record, which removes it from recall while preserving an auditable, reversible history.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free