FreeExam

Data engineer: Data Quality Contracts and Lineage

Original interview cases on executable data invariants, schema meaning, quality measurements, temporal joins, lineage, and accountable incident recovery. Scenarios state their contracts and distinguish validation evidence from unsupported guarantees.

These prompts are original practice. They are not questions from a named employer or a live hiring loop.

  1. 1.A supplied SQL CHECK accepts TRUE or UNKNOWN. A table has CHECK(amount>0) but no NOT NULL constraint. Which row can still pass this check?

    Show answer and explanation
    1. No row with a missing amount
    2. A row with amount=−1
    3. A row with amount=NULL
    4. A row with amount=0

    Answer: A row with amount=NULL

    The supplied three-valued rule allows UNKNOWN. A separate nonnull constraint is needed if every row must supply an amount.

  2. 2.An amount contract requires integer cents. A row contains amount=1250 and currency=USD. What dollar amount does that contract represent?

    Show answer and explanation
    1. $125.00
    2. $1,250.00
    3. $1.25
    4. $12.50

    Answer: $12.50

    One dollar is 100 cents, so 1250 cents is $12.50. A syntactically valid integer still needs a documented unit convention.

  3. 3.An event contract allows only status values pending, paid, and void. A producer emits refunded. What is the immediate contract finding?

    Show answer and explanation
    1. The JSON is necessarily malformed.
    2. The value is outside the declared domain.
    3. The amount must be negative.
    4. The row must have a duplicate key.

    Answer: The value is outside the declared domain.

    A new enum value can violate a closed domain even when its encoding is valid. Its intended meaning and consumer handling require an explicit change decision.

  4. 4.A table promises one row per (order_id,line_id). Two rows share an order ID but have different line IDs. Which uniqueness check matches the stated grain?

    Show answer and explanation
    1. Uniqueness of the pair
    2. Uniqueness of the price value
    3. Uniqueness of line_id across every order
    4. Uniqueness of order_id alone

    Answer: Uniqueness of the pair

    The contract defines a composite grain. Testing either component alone imposes a different requirement.

  5. 5.A field contains identifiers such as 00042. They are labels, not quantities. What can integer coercion lose?

    Show answer and explanation
    1. The ability to compare any values
    2. Significant identifier formatting
    3. The number of records necessarily
    4. The field's uniqueness in every possible dataset

    Answer: Significant identifier formatting

    Integer conversion maps 00042 to 42. If formatting distinguishes valid identifiers, that coercion changes meaning even when parsing succeeds.

  6. 6.A contract distinguishes a measured zero from an unavailable measurement. A loader replaces all missing values with zero. What is lost?

    Show answer and explanation
    1. The observed-versus-missing distinction
    2. An automatically irrelevant distinction
    3. Only the ordering of rows
    4. Only numeric formatting

    Answer: The observed-versus-missing distinction

    The replacement conflates two states. Aggregation and downstream decisions can change because absence is treated as an observation.

  7. 7.A decimal field permits five total digits and two fractional digits under a fixed-point contract. Which positive value exceeds its range?

    Show answer and explanation
    1. 999.99
    2. 1,000.00
    3. 12.34
    4. 0.01

    Answer: 1,000.00

    Five total digits with two fractional digits leaves three integer digits. The largest positive represented value is 999.99.

  8. 8.A timestamp contract requires an explicit UTC offset. The value 2026-11-01 01:30:00 has no offset. What validation issue is present?

    Show answer and explanation
    1. The date string proves the event occurred in UTC.
    2. The field must contain a negative duration.
    3. The required time-zone information is absent.
    4. Every local time has exactly one universal interpretation.

    Answer: The required time-zone information is absent.

    A naive local timestamp does not satisfy the offset contract. Its universal interpretation requires additional information, particularly near clock changes.

  9. 9.A field changes from nullable to required. Historical records still contain nulls. Which evidence is needed before enforcing the new reader assumption?

    Show answer and explanation
    1. Compatibility of retained data and consumers
    2. Only the new schema file's syntax
    3. A guarantee historical rows change automatically
    4. Only successful writes from the newest producer

    Answer: Compatibility of retained data and consumers

    Schema rollout must address existing data and relevant reader versions. A new declaration does not rewrite stored history.

  10. 10.A nested field is optional, but the contract requires it whenever type=shipment. What kind of validation is necessary?

    Show answer and explanation
    1. A conditional cross-field rule
    2. Only independent type checks on present fields
    3. Only a check that the outer object exists
    4. A guarantee optional fields are never required in context

    Answer: A conditional cross-field rule

    Conditional requirements describe relationships between fields. Shape checks alone may accept an invalid shipment record.

  11. 11.A consumer ignores unknown fields, and a new field is optional with no effect on existing semantics. What change is supported under these stated assumptions?

    Show answer and explanation
    1. Changing an old field's unit is automatically harmless.
    2. Every possible schema change is now safe.
    3. Adding that field can preserve this reader's behavior.
    4. Removing an old required field is equally safe.

    Answer: Adding that field can preserve this reader's behavior.

    Compatibility depends on actual reader behavior and semantics. The supplied assumptions support this particular additive change, not arbitrary changes.

  12. 12.A producer reuses an event ID for two different business actions. A deduplicator retains only one row per ID. What should the contract clarify?

    Show answer and explanation
    1. A guarantee duplicate IDs always denote retries
    2. The event identity and uniqueness scope
    3. Only the maximum payload size
    4. Only whether IDs are printable

    Answer: The event identity and uniqueness scope

    Deduplication relies on stable identity semantics. Reusing one ID for distinct actions can erase a legitimate event.

  13. 13.An ingest parser accepts a JSON record, but its end_time precedes start_time despite a nonnegative-duration contract. What does parsing fail to establish?

    Show answer and explanation
    1. The existence of both parsed time fields
    2. Semantic validity
    3. The ability to run a later domain check
    4. Syntactic acceptance of that record

    Answer: Semantic validity

    Valid encoding does not establish relationships among values. A cross-field rule must check the supplied temporal invariant.

  14. 14.A contract version says weight_kg, while the producer sends values measured in pounds without conversion. All values remain positive. Which check targets the defect?

    Show answer and explanation
    1. Unit-aware semantic validation
    2. Only field presence
    3. Only positivity
    4. Only numeric parsing

    Answer: Unit-aware semantic validation

    The other checks can pass while the physical quantity is wrong. Unit conversion and provenance must match the declared meaning.

  15. 15.A producer adds a default value unknown for a newly required category. Consumers treat unknown as an actual business category. What should review examine?

    Show answer and explanation
    1. A guarantee defaulted values are true observations
    2. Only the spelling of the field name
    3. The default's downstream meaning
    4. Only whether serialization succeeds

    Answer: The default's downstream meaning

    A technically readable default can alter analysis. The contract should distinguish an unknown category from measured business state where that distinction matters.

  16. 16.A data contract names a table but omits whether rows represent current state or historical changes. What ambiguity affects consumers?

    Show answer and explanation
    1. Only the number of physical files
    2. Only the table's storage compression
    3. A guarantee every repeated key is an error
    4. The meaning of repeated business keys over time

    Answer: The meaning of repeated business keys over time

    Repeated keys can be legitimate history or invalid duplicates depending on the table's semantics. State that temporal grain explicitly.

  17. 17.A quality rule is evaluated on zero rows and reports 100% valid by convention. The feed was expected to contain data. What else must be checked?

    Show answer and explanation
    1. Only the reported percentage
    2. Expected delivery and row presence
    3. Only whether the validation query returned a number
    4. A guarantee a perfect percentage proves completeness

    Answer: Expected delivery and row presence

    A valid-row ratio can be vacuous on an empty input. Delivery and completeness need separate expectations.

  18. 18.A file's declared row count is 1,000. Decoding yields 998 rows, with two parse failures. What should ingestion account for?

    Show answer and explanation
    1. A guarantee parser failures are outside the quality scope
    2. Only a 100% validity rate among decoded rows
    3. Both decoded rows and rejected input records
    4. Only the 998 successful rows

    Answer: Both decoded rows and rejected input records

    Dropping failures from the denominator can hide loss. Reconcile the intended input with accepted, rejected, and otherwise unaccounted records.

  19. 19.A column allows empty strings but forbids nulls. A later analysis treats both as missing. What should be aligned?

    Show answer and explanation
    1. A guarantee null and empty string are interchangeable everywhere
    2. The contract and analytical missing-value semantics
    3. Only the storage engine's row order
    4. Only the column's byte width

    Answer: The contract and analytical missing-value semantics

    A representation rule and an analytical rule can disagree. Specify how each relevant missing or empty state should be interpreted.

  20. 20.Two source systems use customer_id=17 for different customers. A combined table keeps that value without a source namespace. What can result?

    Show answer and explanation
    1. Only a change in numeric precision
    2. Guaranteed global uniqueness
    3. False identity collisions
    4. An automatic merge of the same real person

    Answer: False identity collisions

    Source-local identity is not necessarily global identity. A suitable namespace or entity-resolution contract is needed.

  21. 21.A nonnull rule passes 990 of 1,000 expected records. What is the nonnull completeness rate for that field?

    Show answer and explanation
    1. 99%
    2. 99.9%
    3. 1%
    4. 100%

    Answer: 99%

    The rate is 990/1000=0.99. This describes the stated field and denominator, not completeness of the entire population.

  22. 22.A quality dashboard divides valid parsed rows by parsed rows while silently excluding all parse failures. What bias can this create?

    Show answer and explanation
    1. An overstated end-to-end acceptance rate
    2. A necessarily lower reported rate
    3. An exact measure of source completeness
    4. An automatic estimate of missing business events

    Answer: An overstated end-to-end acceptance rate

    The denominator omits rejected inputs. The metric can look healthy while the pipeline loses malformed records.

  23. 23.A feed is on time but contains only half the expected partitions. Which property can still fail?

    Show answer and explanation
    1. Successful receipt of at least some data
    2. Completeness
    3. The recorded arrival times of those files
    4. Arrival of the observed files by the deadline

    Answer: Completeness

    Timeliness of received data does not establish that all required data arrived. Check the expected partition set separately.

  24. 24.A row count stays constant while 200 old rows disappear and 200 unrelated rows appear. Which reconciliation is more informative than count alone?

    Show answer and explanation
    1. Key-level set differences
    2. Only the table's current byte size
    3. A guarantee equal counts imply equal populations
    4. Only another count of the same rows

    Answer: Key-level set differences

    Equal cardinality can hide substitutions. Compare relevant identities and, where needed, values or versioned content.

  25. 25.A validation sample is drawn only from successfully processed records. What population does its defect rate directly describe?

    Show answer and explanation
    1. All submitted records automatically
    2. Only records rejected before parsing
    3. Every future source version
    4. The sampled successful-record population

    Answer: The sampled successful-record population

    Sampling after a selection step conditions the estimate on that selection. Rejected and missing inputs need their own accounting.

  26. 26.A rule flags every legitimate seasonal peak as a defect because it uses a fixed historical mean. What should be reconsidered?

    Show answer and explanation
    1. Only the number of alert recipients
    2. Expected variation and the rule's reference model
    3. Only the output file format
    4. A guarantee all peaks are corrupt data

    Answer: Expected variation and the rule's reference model

    A useful anomaly rule must represent relevant seasonality or regime changes. A deviation is a signal to assess, not automatically proof of corruption.

  27. 27.A validator uses the producer's own duplicated count as its only expected-count reference. What weakness remains?

    Show answer and explanation
    1. A reference generated by the producer can never be useful.
    2. Matching counts establish independent completeness.
    3. Every duplication must change the file size.
    4. A shared upstream error can pass both sides.

    Answer: A shared upstream error can pass both sides.

    Reconciliation is stronger when the reference provides appropriately independent evidence. Shared defects can survive agreement.

  28. 28.A table has 20 null emails among 500 rows, but nulls are allowed for guest users. What must a defect rate distinguish?

    Show answer and explanation
    1. Allowed nulls from contract violations
    2. Only null versus nonnull counts without context
    3. Every guest user as an invalid record
    4. All emails as valid because some nulls are allowed

    Answer: Allowed nulls from contract violations

    The contract defines which absences are valid. Counting all nulls as defects can misstate quality.

  29. 29.A supplied rule requires a value between 0 and 100 inclusive. Which boundary case must pass?

    Show answer and explanation
    1. A missing value that is separately forbidden
    2. 100.01
    3. 100
    4. −0.01

    Answer: 100

    The upper bound is inclusive. Boundary tests should follow the actual contract, including any independent missingness rule.

  30. 30.A quality check passes on yesterday's snapshot, but today's publication uses a newer snapshot. What must be linked to the result?

    Show answer and explanation
    1. Only the rule's name
    2. A guarantee a previous pass covers every subsequent version
    3. Only the validator's start time
    4. The exact dataset version tested

    Answer: The exact dataset version tested

    Quality evidence attaches to the data actually checked. A later dataset can contain changes that the prior run never examined.

  31. 31.A quality service reports 99.5% valid over 200,000 inputs. Under that definition, how many inputs are invalid?

    Show answer and explanation
    1. 1,000
    2. 100
    3. 199,000
    4. 10,000

    Answer: 1,000

    The invalid fraction is 0.5%=0.005. Multiplying by 200,000 gives 1,000.

  32. 32.A source sends 80 records and a transformation intentionally expands each into three line rows. What target count follows if no filtering or loss occurs?

    Show answer and explanation
    1. 240
    2. 80
    3. 83
    4. 26.67

    Answer: 240

    The stated transformation has a one-to-three relationship. Reconciliation must account for this expected change of grain.

  33. 33.A validation rule requires exactly one dimension match for every fact. Five facts each find two matches. What issue does the rule identify?

    Show answer and explanation
    1. Only a harmless sort-order difference
    2. Ambiguous join multiplicity
    3. A guaranteed duplication in the original fact input
    4. Five necessarily missing facts

    Answer: Ambiguous join multiplicity

    Multiple dimension matches can fan out facts. The defect may be in dimension uniqueness or temporal overlap rather than in the original fact table.

  34. 34.A pipeline's accepted count is 9,700, rejected count 200, and source manifest count 10,000. What remains unreconciled?

    Show answer and explanation
    1. 200 records
    2. 100 records
    3. 0 records
    4. 300 records

    Answer: 100 records

    Accepted plus rejected is 9,900. The remaining 100 inputs need explanation rather than being hidden by a success-only metric.

  35. 35.A feed has 100 required partitions. Ninety-seven arrive and all received rows pass their checks. What is partition completeness?

    Show answer and explanation
    1. 97%
    2. 97 rows
    3. 3%
    4. 100%

    Answer: 97%

    Partition completeness uses the expected partition set: 97/100. Row validity among received partitions measures a different property.

  36. 36.A monitor labels missing metrics as zero defects, even when the validation job never ran. What state should be represented separately?

    Show answer and explanation
    1. A successful check with no violations
    2. A measured zero defect count
    3. A confirmed clean dataset
    4. Unknown validation status

    Answer: Unknown validation status

    No evidence is different from evidence of no defects. Preserve check execution and status rather than silently treating absence as a pass.

  37. 37.A rule flags 40 records for manual review; reviewers confirm 30 are truly invalid. What is the precision of the rule's flags on that reviewed set?

    Show answer and explanation
    1. 133%
    2. 25%
    3. 75%
    4. 30%

    Answer: 75%

    Precision is confirmed invalid flags divided by all flags: 30/40=0.75. This does not estimate how many invalid records were missed.

  38. 38.A rule catches 30 of 50 independently confirmed invalid records. What is its recall on that reference set?

    Show answer and explanation
    1. 167%
    2. 60%
    3. 40%
    4. 75%

    Answer: 60%

    Recall is detected true defects divided by all reference defects: 30/50=0.6. The quality and coverage of the reference set also matter.

  39. 39.A score averages ten quality dimensions equally. One critical key-uniqueness rule fails completely while nine pass. What should release policy consider?

    Show answer and explanation
    1. Only the 90% composite score
    2. Critical-rule requirements beyond the average
    3. Only whether the score rose since yesterday
    4. A guarantee averaging makes every defect acceptable

    Answer: Critical-rule requirements beyond the average

    Averages can conceal a decisive failure. Define hard requirements for invariants whose violation makes the dataset unsafe for its intended use.

  40. 40.A dashboard's defect rate improves after the validator stops inspecting its hardest source. What must the comparison account for?

    Show answer and explanation
    1. Changed coverage of the monitored population
    2. A guarantee the underlying data improved
    3. Only the newer rate's extra decimal digits
    4. Only the validator's completion time

    Answer: Changed coverage of the monitored population

    A lower rate over an easier subset need not reflect better data. Report coverage changes and compare like populations.

  41. 41.A history table uses half-open intervals [valid_from,valid_to). A fact occurs exactly at the next version's valid_from. Which interval should contain it when versions meet without a gap?

    Show answer and explanation
    1. Both intervals
    2. The new version's interval
    3. The old version's interval
    4. Neither interval

    Answer: The new version's interval

    The old interval excludes its upper endpoint, while the new one includes its lower endpoint. This convention avoids a double match at the boundary.

  42. 42.A dimension has versions [0,10) and [8,20) for one business key. A fact at time 9 joins by key and containment. How many matches result?

    Show answer and explanation
    1. 0
    2. 1
    3. 2
    4. 3

    Answer: 2

    Time nine lies in both intervals. Their overlap violates an exactly-one-version join contract for that key and time.

  43. 43.A dimension has intervals [0,5) and [7,12). A fact at time 6 should have a matching historical version. What defect is exposed?

    Show answer and explanation
    1. A temporal coverage gap
    2. A duplicate fact necessarily
    3. An overlapping version pair
    4. A guaranteed invalid fact timestamp

    Answer: A temporal coverage gap

    Neither interval contains six. Under the supplied requirement, the dimension history lacks a needed version.

  44. 44.A training feature joins each historical event to the customer's current status, which includes changes made after that event. What should be investigated?

    Show answer and explanation
    1. Point-in-time leakage
    2. Only the final training-row order
    3. A guarantee current data are historically correct
    4. Only physical partition count

    Answer: Point-in-time leakage

    Using future state for historical decisions can expose information unavailable at the event time. Define the required as-of semantics.

  45. 45.A record was effective Monday but became known to the system Thursday. An audit asks what the system knew Tuesday. Which temporal distinction matters?

    Show answer and explanation
    1. Only the day the report is printed
    2. A guarantee business-effective time equals arrival time
    3. Only the record's current value
    4. Effective time versus knowledge time

    Answer: Effective time versus knowledge time

    Business validity and system knowledge can differ. A bitemporal or equivalent history can be needed to reconstruct the requested view.

  46. 46.An as-of join selects the greatest version_time not exceeding event_time. Available versions are at times 2, 6, and 11; the event is at 9. Which version is selected?

    Show answer and explanation
    1. 2
    2. 11
    3. 9
    4. 6

    Answer: 6

    The latest eligible time is six. Version eleven would use information beyond the event's stated cutoff.

  47. 47.A load-time freshness monitor looks healthy because old events are reloaded every minute. What additional signal targets source recency?

    Show answer and explanation
    1. Event-time lag
    2. Only the count of successful reloads
    3. A guarantee frequent writes imply current source events
    4. Only the most recent write time

    Answer: Event-time lag

    Recent ingestion can repeatedly publish old information. Distinguish processing recency from recency of the underlying events.

  48. 48.The maximum expected event time is 12:00, but the latest complete published event-time boundary is 11:42. Under that definition, what is lag?

    Show answer and explanation
    1. 12 minutes
    2. 0 minutes
    3. 42 minutes
    4. 18 minutes

    Answer: 18 minutes

    The difference from 11:42 to 12:00 is eighteen minutes. State the boundary's completeness semantics rather than confuse it with any recent individual event.

  49. 49.A table has one event stamped far in the future, causing MAX(event_time) to exceed now. What can a max-only freshness rule miss?

    Show answer and explanation
    1. A large gap in ordinary recent events
    2. The ability to compute a timestamp difference
    3. The existence of that maximum value
    4. The fact that some event timestamp was supplied

    Answer: A large gap in ordinary recent events

    One bad future timestamp can hide missing or stale normal data. Validate timestamps and use completeness-aware recency signals.

  50. 50.A watermark policy permits late events for two hours. An event arrives three hours after its window closes. What should the contract specify?

    Show answer and explanation
    1. Only the serialization format of its ID
    2. An assumption it must always be silently dropped
    3. Its explicit late-data handling
    4. A guarantee the watermark makes it arrive earlier

    Answer: Its explicit late-data handling

    A watermark is a policy or progress mechanism, not a physical guarantee about arrivals. Specify rejection, correction, retraction, or another justified treatment.

  51. 51.A daily report is labeled final, but the pipeline later applies allowed late corrections without versioning the report. What is unclear?

    Show answer and explanation
    1. Only the original report's row count
    2. A guarantee final means every source event has arrived
    3. Only whether any computation occurred
    4. Which published result a consumer relied on

    Answer: Which published result a consumer relied on

    Publication status and correction policy need clear semantics. Preserve versions or other evidence when later changes affect previously consumed results.

  52. 52.A fact table has 100 rows. Ten rows each match three dimension records, while the other 90 match one. What is the joined row count?

    Show answer and explanation
    1. 300
    2. 130
    3. 100
    4. 120

    Answer: 120

    The join yields 10×3+90×1=120. A row-count increase can indicate unintended multiplicity under a one-match contract.

  53. 53.An inner join drops unmatched facts before a referential-integrity report counts failures. What is the problem?

    Show answer and explanation
    1. The failed matches have disappeared from the measured set.
    2. The join necessarily creates duplicate facts.
    3. Every retained fact must have invalid keys.
    4. Only the dimension's storage format changed.

    Answer: The failed matches have disappeared from the measured set.

    Measure unmatched rows using an appropriate anti-join or retained match indicator. A success-only joined table cannot count discarded failures.

  54. 54.A left join emits NULL dimension attributes for unmatched facts. Which check avoids confusing a legitimately null attribute with no match?

    Show answer and explanation
    1. Only whether any descriptive attribute is null
    2. A guarantee every null attribute means no dimension row
    3. An explicit match indicator or nonnull dimension key
    4. Only whether the fact amount is positive

    Answer: An explicit match indicator or nonnull dimension key

    A matched row can itself contain nullable attributes. Use an indicator whose semantics actually distinguish match absence.

  55. 55.A monthly balance table stores end-of-month snapshots. An analyst sums all daily copies of each snapshot to estimate month-end balance. What semantic issue should review identify?

    Show answer and explanation
    1. Every balance is an event amount by definition.
    2. A nonadditive snapshot is being accumulated over time.
    3. The source balance must be missing.
    4. The monthly partition key is necessarily duplicated illegally.

    Answer: A nonadditive snapshot is being accumulated over time.

    Snapshot measures do not automatically add across time. Define the aggregation appropriate to the business quantity.

  56. 56.A backfill corrects facts for March, but a derived quarterly aggregate is not recomputed. What lineage question matters?

    Show answer and explanation
    1. Only how many rows the backfill wrote
    2. Only the current aggregate's last query time
    3. A guarantee changing a source rewrites every derivative
    4. Which outputs depend on the changed March data

    Answer: Which outputs depend on the changed March data

    Source corrections can invalidate downstream materializations. Dependency and partition lineage help identify the needed recomputation.

  57. 57.An incremental model selects rows with updated_at greater than the last cutoff. A correction has the same timestamp as that cutoff. What can happen?

    Show answer and explanation
    1. A strict inequality guarantees complete capture.
    2. The correction can be skipped.
    3. The correction must be invalid by definition.
    4. Every previous row is necessarily duplicated.

    Answer: The correction can be skipped.

    Boundary and tie semantics matter. A compound cursor, overlap with deduplication, or another justified design can avoid equal-timestamp omissions.

  58. 58.A cursor is (update_time,id), ordered lexicographically. The last pair is (20,8). Which pair is strictly later under that supplied order?

    Show answer and explanation
    1. (20,9)
    2. (20,8)
    3. (20,7)
    4. (19,99)

    Answer: (20,9)

    At equal time twenty, ID nine exceeds ID eight. A well-defined tie breaker can distinguish records sharing a timestamp.

  59. 59.A deletion is represented by a source tombstone. A quality reconciliation ignores all tombstones but compares against current source state. What discrepancy can remain?

    Show answer and explanation
    1. All downstream timestamps must be invalid.
    2. Every live entity becomes a duplicate.
    3. A tombstone can never affect state reconciliation.
    4. Deleted entities can persist downstream.

    Answer: Deleted entities can persist downstream.

    Rebuilding current state requires applying the source's deletion semantics. Counting only positive updates can retain entities that no longer exist.

  60. 60.A source is snapshotted while updates continue. The snapshot and following change stream have an untracked gap. What must be established for a complete rebuild?

    Show answer and explanation
    1. Only a recent snapshot completion time
    2. A consistent snapshot-to-stream boundary
    3. A guarantee snapshot completion includes all later updates
    4. Only the total number of received change records

    Answer: A consistent snapshot-to-stream boundary

    A correct handoff must account for changes around the boundary. A fresh snapshot and an active stream do not alone prove gap-free coverage.

  61. 61.An aggregate has valid source tables, but its transformation uses the wrong join key. What does source-only validation fail to establish?

    Show answer and explanation
    1. That source checks ran on those inputs
    2. The source tables' tested properties
    3. The existence of a transformation step
    4. Correctness of the derived result

    Answer: Correctness of the derived result

    Quality checks should also address transformation semantics and output invariants. Valid inputs can be combined incorrectly.

  62. 62.A lineage graph tracks table names, but an incident affects only one historical partition. What extra detail helps narrow impact?

    Show answer and explanation
    1. Only the total number of graph nodes
    2. A guarantee every table version is equally affected
    3. Partition and version dependencies
    4. Only a longer list of table owners

    Answer: Partition and version dependencies

    Finer-grained lineage can identify which outputs actually used the affected data. Table-level reachability can be conservative but broad.

  63. 63.A column-level lineage claim says total_amount depends on quantity and unit_price. The code also applies a discount. What is missing?

    Show answer and explanation
    1. Only a row-count statistic
    2. A real transformation dependency
    3. Only the source table's creation time
    4. A guarantee derived fields need only two recorded parents

    Answer: A real transformation dependency

    Lineage must reflect actual computation, including additional columns or external parameters that affect outputs.

  64. 64.A reproducible metric requires both a data snapshot and the transformation version. Only the snapshot ID is saved. What remains unspecified?

    Show answer and explanation
    1. The number of files in that recorded snapshot
    2. The identity of the saved snapshot
    3. The computation applied to that snapshot
    4. The ability to inspect stored data

    Answer: The computation applied to that snapshot

    The same data can produce different metrics under different logic. Record relevant code, configuration, and semantic versions as well as input identity.

  65. 65.A pipeline records a human-readable source path that later points to different content. What stronger lineage reference can help?

    Show answer and explanation
    1. Only a new display label
    2. A guarantee stable paths imply stable bytes
    3. Only the path's current spelling
    4. An immutable version or content identity

    Answer: An immutable version or content identity

    A mutable location is not a complete version identity. Preserve an accessible immutable reference and necessary provenance.

  66. 66.An output uses an exchange-rate table selected by run date, but the run manifest records only the fact snapshot. What additional dependency matters?

    Show answer and explanation
    1. A guarantee rerunning later uses the same rates
    2. The rate-table version and selection rule
    3. Only the number of source amounts
    4. Only the output's currency label

    Answer: The rate-table version and selection rule

    External reference data and time-dependent selection logic can change results. They belong in the computation's provenance.

  67. 67.A cached metric is keyed by dataset ID but not the contract version used to interpret a renamed field. What can occur?

    Show answer and explanation
    1. Only an increase in arithmetic precision
    2. A guarantee identical dataset IDs imply identical semantics
    3. Only a lower cache hit rate
    4. Reuse under the wrong interpretation

    Answer: Reuse under the wrong interpretation

    Cache identity should include inputs and semantics that affect the result. A contract or transformation change can invalidate a cached value.

  68. 68.A column is removed from a producer schema. A lineage graph shows no direct dashboard references, but a shared view still uses it. What should impact analysis include?

    Show answer and explanation
    1. Only the producer's row count
    2. A guarantee unreferenced display fields are unused
    3. Transitive dependencies
    4. Only direct dashboard reads

    Answer: Transitive dependencies

    Views and intermediate transformations can carry a dependency to consumers. Follow the relevant transitive graph, not just direct references.

  69. 69.A table-level lineage edge shows an output uses a customer table. A sensitive column is removed from that output's query. What would support a claim that the output no longer derives from that column?

    Show answer and explanation
    1. Only the remaining table-level edge
    2. Only the output table's row count
    3. A guarantee dropping a displayed field removes every derived dependency
    4. Column-aware analysis of the actual transformation

    Answer: Column-aware analysis of the actual transformation

    Derived values, filters, and intermediate views can still depend on a column. Examine the actual computation at the needed granularity.

  70. 70.A dependency graph omits a manually uploaded reference file used during one run. What should provenance capture?

    Show answer and explanation
    1. Only tables owned by the same team
    2. A guarantee ad hoc files cannot influence production results
    3. That actual run input
    4. Only scheduled database reads

    Answer: That actual run input

    Lineage must reflect the inputs actually consumed, including manual or external sources. Scheduled metadata alone can miss a real dependency.

  71. 71.A validator writes a pass record, then the publication step reads a mutable staging table that changes before commit. What race must be prevented?

    Show answer and explanation
    1. Publishing data different from the validated version
    2. Only a delayed notification email
    3. A guarantee a recorded pass locks every later write
    4. Only two checks finishing at the same time

    Answer: Publishing data different from the validated version

    Bind validation and publication to the same immutable version or suitable transactional boundary. A pass on one state does not certify another.

  72. 72.A failed quality check leaves yesterday's good dataset available. What should the published status distinguish?

    Show answer and explanation
    1. Only whether a table can be queried
    2. Only the number of successful dashboard reads
    3. Stale retained data from a fresh successful publication
    4. A guarantee an available table is current

    Answer: Stale retained data from a fresh successful publication

    Availability and freshness are separate. Retaining a good prior version can be appropriate if users can interpret its age and status.

  73. 73.A pipeline quarantines invalid records. What is necessary to later repair and reconcile them?

    Show answer and explanation
    1. Only the output table's latest schema
    2. Only an aggregate count of rejected records
    3. A guarantee every rejected row can be reconstructed from its position
    4. Stable identity, reason, and relevant source context

    Answer: Stable identity, reason, and relevant source context

    Quarantine should support accountable resolution and safe replay. Retain appropriate evidence while respecting data-access and retention requirements.

  74. 74.An invalid record is repaired and replayed. The original failed attempt remains in a rejection count. What metric needs defined semantics?

    Show answer and explanation
    1. A guarantee retries are new business events
    2. Only the repaired row's byte size
    3. Attempt counts versus logical-record outcomes
    4. Only the number of validator processes

    Answer: Attempt counts versus logical-record outcomes

    Operational attempts and final logical outcomes answer different questions. Define denominators and statuses so repairs are not double counted as new records.

  75. 75.A quality test for a sum is rerun after rows are reordered, with no other change. Which expectation fits an exact arithmetic sum contract?

    Show answer and explanation
    1. Each reorder creates a new valid business total.
    2. The sum is unchanged.
    3. The sum changes by the number of swaps.
    4. The sum becomes the maximum row.

    Answer: The sum is unchanged.

    Permutation invariance is a useful structural check. Floating-point implementations may need a justified tolerance rather than a bitwise requirement.

  76. 76.A duplicate-detection rule uses a hash of the full payload, while retries add a new ingestion timestamp. What can it miss?

    Show answer and explanation
    1. Only duplicates within a sorted partition
    2. A guarantee every retry is a new event
    3. Repeated logical events with different transport metadata
    4. Only records whose payloads are exactly identical

    Answer: Repeated logical events with different transport metadata

    Identity should reflect the intended event semantics. Including changing attempt metadata can prevent recognition of the same logical event.

  77. 77.A quality pipeline samples one row per file. Some files have ten rows and others a million. What must a population defect estimate account for?

    Show answer and explanation
    1. Only whether sample rows parse successfully
    2. Only equal numbers of sampled files
    3. A guarantee each row had equal sampling chance
    4. Unequal inclusion probabilities

    Answer: Unequal inclusion probabilities

    One-per-file sampling does not give every row the same inclusion probability when file sizes differ. Use a suitable estimator and design.

  78. 78.A new detector finds more defects after its coverage expands. What comparison avoids automatically concluding data worsened?

    Show answer and explanation
    1. Only the raw alert total
    2. Only the newest detector's sample size
    3. Rates on comparable populations with coverage reported
    4. A guarantee more alerts always mean worse source quality

    Answer: Rates on comparable populations with coverage reported

    Detection effort and population changes affect counts. Separate better detection from changes in actual data quality.

  79. 79.A metric checks only that foreign keys exist somewhere in the dimension's entire history. What can it miss for an as-of join?

    Show answer and explanation
    1. The ability to compare business keys
    2. Whether a valid version exists at the fact's time
    3. The existence of that key in any stored version
    4. The dimension table's current row count

    Answer: Whether a valid version exists at the fact's time

    Historical existence is weaker than temporal validity at a required time. Check the relationship the consumer actually relies on.

  80. 80.A quality incident affects the latest partition, but a dashboard averages validity over five years of data. What can that average hide?

    Show answer and explanation
    1. The historical record count
    2. The fact that some old rows pass
    3. A severe current failure
    4. The arithmetic definition of an average

    Answer: A severe current failure

    Large healthy history can dilute a recent critical defect. Monitoring windows and segment checks should reflect operational use.

  81. 81.A check is noisy and expensive. An engineer proposes removing it because it never blocked a release. What evidence should review consider?

    Show answer and explanation
    1. A guarantee an untriggered check has no value
    2. Only whether its query has many lines
    3. Defect coverage, false alarms, and downstream consequences
    4. Only its current count of blocked releases

    Answer: Defect coverage, false alarms, and downstream consequences

    A check's value depends on the risks it detects and its operating characteristics, not just whether it has fired recently.

  82. 82.A new rule is first deployed in observe-only mode. What should be measured before using it to block publication?

    Show answer and explanation
    1. Its behavior on valid and invalid cases
    2. A guarantee every alert is a true defect
    3. Only whether the rule has an owner name
    4. Only the number of times the rule executed

    Answer: Its behavior on valid and invalid cases

    Assess detection, false positives, coverage, and consequences. Blocking policy should be supported by evidence about the rule's actual behavior.

  83. 83.A release policy allows at most 0.2% invalid rows out of 50,000 inputs, inclusive. How many invalid rows are allowed at the boundary?

    Show answer and explanation
    1. 100
    2. 10
    3. 1,000
    4. 250

    Answer: 100

    The threshold count is 0.002×50000=100. The inclusive policy permits exactly that count, subject to other stated requirements.

  84. 84.A detector's threshold is tuned repeatedly until a historical dataset has no alerts. What independent evidence is useful?

    Show answer and explanation
    1. Only a higher threshold
    2. A guarantee historical silence proves future usefulness
    3. Only another run on the same tuned dataset
    4. Evaluation on relevant untouched or deliberately faulty cases

    Answer: Evaluation on relevant untouched or deliberately faulty cases

    Tuning can overfit the reference dataset. Test relevant valid variation and known defects without selecting solely for silence.

  85. 85.A test fixture represents malformed units, duplicate IDs, and late arrivals only one at a time. What may combined fixtures reveal?

    Show answer and explanation
    1. Interactions between failure modes
    2. A proof individual checks are irrelevant
    3. Only extra output formatting
    4. A guarantee independent tests cover every combination

    Answer: Interactions between failure modes

    Failures can interact: one rejection or transformation may hide another issue. Relevant combinations can expose behavior absent from isolated cases.

  86. 86.An incremental check validates only newly inserted rows, while corrections update old rows in place. What coverage gap remains?

    Show answer and explanation
    1. Only brand-new identifiers
    2. Modified existing records
    3. A guarantee passing inserts certifies all later updates
    4. Only the count of scheduled check runs

    Answer: Modified existing records

    Validation scope should include all relevant changes. An insert-only check can miss defects introduced by updates or deletions.

  87. 87.A source retry writes the same event twice. The target applies an atomic upsert by the stable event key. What must still be assessed for the whole pipeline?

    Show answer and explanation
    1. Other effects and boundaries outside that upsert
    2. Only the target table's name
    3. Only whether the key is printable
    4. A guarantee this establishes exactly-once behavior everywhere

    Answer: Other effects and boundaries outside that upsert

    Idempotence of one write does not cover separate counters, notifications, source commits, or other external effects. Define the scope of the guarantee.

  88. 88.A consumer commits its source position before a durable target write. It crashes between those operations. What failure is possible on ordinary restart from that position?

    Show answer and explanation
    1. Every record must be duplicated instead.
    2. The target write is guaranteed to appear later.
    3. The crash changes the source records' business keys.
    4. Unpublished records can be skipped.

    Answer: Unpublished records can be skipped.

    Advancing the source position can hide work not durably published. Use a suitable atomic, transactional, or replay-safe design for the stated boundary.

  89. 89.A target write succeeds, then the consumer crashes before advancing its source position. What property can make replay safe for the target state?

    Show answer and explanation
    1. A larger batch size alone
    2. A longer network timeout alone
    3. A guarantee restart never rereads records
    4. An idempotent write keyed by logical identity

    Answer: An idempotent write keyed by logical identity

    Replay may repeat delivered work. An appropriate idempotent effect or transactional scheme can prevent duplicate target state.

  90. 90.A rolling migration has old and new consumers. The producer removes a field still required by old readers. What must rollout coordination establish?

    Show answer and explanation
    1. When those readers no longer require the old contract
    2. Only that the new schema parses
    3. A guarantee the registry updates every running reader
    4. Only that new consumers pass their tests

    Answer: When those readers no longer require the old contract

    A migration must account for actual consumer versions and dependencies. Producer-side success does not establish fleet-wide compatibility.

  91. 91.A validation result says PASS but omits which rule version ran. Why can that matter after rules change?

    Show answer and explanation
    1. The meaning of the historical pass is unclear.
    2. The old result can never be stored.
    3. The tested dataset must have changed.
    4. Every pass becomes automatically false.

    Answer: The meaning of the historical pass is unclear.

    Rule evolution changes what was tested. Record versioned rule definitions and relevant configuration with the result.

  92. 92.A rule's failure message includes only invalid, while the remediation team needs to distinguish a unit error from a missing key. What improves the interface?

    Show answer and explanation
    1. Only a total failure count
    2. Only a larger red indicator
    3. Specific failure codes and actionable context
    4. A guarantee operators infer every cause from the table name

    Answer: Specific failure codes and actionable context

    Diagnostics should support appropriate investigation and recovery. Structured reasons can help without exposing unnecessary sensitive payloads.

  93. 93.A quality incident is fixed by rerunning a downstream report, but its upstream malformed source remains unchanged. What should follow-up verify?

    Show answer and explanation
    1. A guarantee one successful report repairs the source contract
    2. Only the successful rerun's wall time
    3. Whether the cause will recur
    4. Only the report's current row count

    Answer: Whether the cause will recur

    A downstream workaround can restore one result without eliminating the defect's origin. Investigate cause, preventive checks, and recurrence risk.

  94. 94.A team wants a single data-quality SLO. What must be defined for that SLO to be assessable?

    Show answer and explanation
    1. Only a percentage target
    2. A guarantee all data consumers share one failure cost
    3. Only the number of installed checks
    4. A specific population, outcome, window, and measurement rule

    Answer: A specific population, outcome, window, and measurement rule

    An objective needs a clear denominator and event definition. Different datasets and uses may require distinct reliability requirements.

  95. 95.A validation query times out on the largest partitions. The dashboard omits those results from its pass rate. What should be represented?

    Show answer and explanation
    1. A guarantee timed-out partitions passed
    2. The unmeasured coverage and execution failures
    3. Only successful check results
    4. Only the average query time of completed checks

    Answer: The unmeasured coverage and execution failures

    Missing measurement is not a pass. Large or difficult partitions can fail selectively, so coverage and status matter.

  96. 96.A change reduces defect alerts but also removes the only check for duplicate payments. What should the success claim examine?

    Show answer and explanation
    1. Only the lower alert total
    2. A guarantee fewer alerts mean more correct data
    3. Coverage and business consequences, not alert count alone
    4. Only the time spent triaging alerts

    Answer: Coverage and business consequences, not alert count alone

    Alert reduction can improve noise or conceal lost detection. Evaluate which defects remain detectable and how consumers are affected.

  97. 97.A data-quality fix changes historical rows. Which consumer behavior can require explicit coordination?

    Show answer and explanation
    1. Only future insertion order
    2. Only the physical block size
    3. A guarantee consumers always prefer silently revised history
    4. Reproduction of previously published results

    Answer: Reproduction of previously published results

    Consumers may need stable historical outputs or clear restatement policies. Versioning and communication should match the data contract.

  98. 98.A test asserts that every partition has equal row count, but legitimate business volume varies across partitions. What should be reviewed?

    Show answer and explanation
    1. A guarantee all unequal partitions are corrupt
    2. Only the test's execution speed
    3. Whether the invariant reflects the actual contract
    4. Only the count of partitions in the test

    Answer: Whether the invariant reflects the actual contract

    A validation rule can be wrong. Choose invariants supported by the domain and expected variation rather than arbitrary symmetry.

  99. 99.A repaired pipeline produces a lower aggregate defect rate, but a critical source still fails its nonnull-key contract. What should release judgment use?

    Show answer and explanation
    1. A guarantee averaging makes local violations disappear
    2. The critical source's required invariant
    3. Only the improved global average
    4. Only the number of healthy sources

    Answer: The critical source's required invariant

    Aggregate improvement does not override a critical requirement. Define and assess the relevant source-level contract explicitly.

  100. 100.A source manifest has 10,000 records: 9,800 are accepted, 150 rejected, and 50 still pending. Which statement matches these states?

    Show answer and explanation
    1. The dataset is complete and therefore meets every quality rule.
    2. The rejection rate is 2% and nothing is pending.
    3. All records are accepted because the counts sum correctly.
    4. All records are accounted for; only 98% are accepted.

    Answer: All records are accounted for; only 98% are accepted.

    The states sum to 10,000, but accounting completeness is different from acceptance. Accepted share is 9800/10000=98%; pending work remains.

  101. 101.An invoice has total 100 and two lines worth 60 and 40. A join repeats the header total on both line rows, and SUM(header_total) yields 200. The two-row count matches expectations. Which assertion targets the error?

    Show answer and explanation
    1. Require every line amount to equal the invoice total.
    2. Reconcile monetary values at their declared grain.
    3. Accept the result because the joined row count is correct.
    4. Deduplicate by currency rather than invoice identity.

    Answer: Reconcile monetary values at their declared grain.

    A correct row count can coexist with double-counting a header-level measure at line grain. Reconcile the intended invoice total separately from line-row cardinality.