Analytics engineer: Dimensional History and Business Grain
Original technical interview practice in temporal dimensions, identity and revision grain, allocation, snapshots, hierarchies, and historical attribution.
These prompts are original practice. They are not questions from a named employer or a live hiring loop.
1.A warehouse stores one parcel observation per sensor, parcel, and observation instant. The same parcel can be seen by several sensors at that instant. Which declared business grain preserves these distinct observations?
Show answer and explanation
- One row per parcel and observation instant
- One row per sensor regardless of the observed parcel
- One row per parcel regardless of sensor or time
- One row per sensor, parcel, and observation instant
Answer: One row per sensor, parcel, and observation instant
The sensor is part of the observation's identity under the stated process. Removing it collapses distinct observations. A grain declaration must describe the intended business event, not just a convenient subset of its columns.
2.A device registry reuses serial number 42 after an earlier device is retired. Historical events for both devices remain. What additional identity information is needed beyond source system plus serial number?
Show answer and explanation
- Only source system plus the reused serial number
- A device-lifetime identity or equivalent disambiguator
- Only the newest display name, without a lifetime mapping
- A shared identity forced solely by matching serial text
Answer: A device-lifetime identity or equivalent disambiguator
A namespace prevents collisions across systems but not reuse within one system. Distinct device lifetimes need distinguishable identities, with event-time mapping when necessary. Renaming an old device does not establish that identity.
3.A type-2 dimension is rebuilt and receives new sequential surrogate keys. Existing facts keep their old keys. The natural entities and attributes did not change. What must the rebuild preserve or migrate consistently?
Show answer and explanation
- Physical row order treated as identity regardless of stored keys
- Only the maximum new surrogate value
- The fact-to-version key mapping
- Only the dimension row count
Answer: The fact-to-version key mapping
Surrogate keys identify particular referenced rows. Reassigning them without preserving the fact mapping can silently relabel history or leave broken references. Equal row counts do not establish referential or semantic equivalence.
4.Two customer accounts merge at day 20. The reporting contract keeps pre-merger activity under the account that owned it then. What would updating every old fact to the surviving account's key violate?
Show answer and explanation
- A rule that the surviving account owns all history by definition
- The assumption that current identity must replace original ownership
- The historical ownership attribution contract
- A guarantee that merger arrival time is every fact's business time
Answer: The historical ownership attribution contract
The physical merger does not authorize rewriting all historical ownership. The model can retain historical identities while separately representing the merged or current relationship for analyses that request it.
5.A service territory splits into two territories at day 50. Old visits lack information that could divide them between the new areas. A report assigns every old visit to both new territories. What issue does this create?
Show answer and explanation
- Evidence that each visit actually occurred in both successors
- Unsupported attribution and possible duplication
- A uniquely determined split from successor names alone
- Guaranteed preservation of distinct visits in summed territory totals
Answer: Unsupported attribution and possible duplication
The split does not supply missing historical location detail. Assigning full old activity to both successors invents an attribution and can duplicate totals. A documented mapping/allocation policy or retained old territory is needed.
6.An entity's recorded type-2 row is Blue on [0,20). A newly accepted correction says Green applies on [8,12), with Blue elsewhere. Ignoring knowledge-time history for this question, what valid-time segmentation preserves that correction?
Show answer and explanation
- Green [0,20) replacing all former Blue time
- Blue [0,20) plus Green [8,12), both active
- Blue [0,8), Green [8,12), Blue [12,20)
- Blue [0,8), Green [8,20)
Answer: Blue [0,8), Green [8,12), Blue [12,20)
The corrected interval must be carved out of the original rather than overlapped with it. Three segments retain Blue before and after the specifically corrected range while assigning Green only where supported.
7.Two versions for one entity are A on [2,9) and B on [9,15), with half-open bounds. Which version applies to an event at time 9?
Show answer and explanation
- A only
- Neither version
- Both A and B
- B only
Answer: B only
A half-open interval includes its start and excludes its end. Time nine is excluded from A and included in B, giving exactly one match at the shared boundary.
8.A dimension has one entity's versions on [0,5) and [7,12). A no-overlap check passes. Facts can occur at any time in [0,12). What additional condition remains unproved?
Show answer and explanation
- Coverage of every required fact time
- Ordering of the listed interval starts
- Absence of overlapping version intervals
- Existence of at least two dimension rows
Answer: Coverage of every required fact time
The intervals do not overlap, but times from five through just before seven are uncovered. Nonoverlap establishes at most one match, not the existence of a match for every required fact.
9.For one entity, versions cover [1,7) and [6,9). A fact occurs at time 6.5 and joins using start≤time<end. How many matching version rows does it have?
Show answer and explanation
- 3
- 2
- 1
- 0
Answer: 2
Time 6.5 lies inside both intervals. The temporal join returns two matches, so a fact-to-version relationship intended to be single-valued is ambiguous even if each version's surrogate key is unique.
10.A temporal join returns two applicable versions for a fact because their valid intervals overlap. A developer selects the largest surrogate key and declares the history repaired. What is still missing?
Show answer and explanation
- A different deterministic sort without resolving conflicting claims
- An authoritative history-resolution rule
- A guarantee that larger keys always encode later valid states
- Only descending surrogate-key order
Answer: An authoritative history-resolution rule
A technical tie-breaker can make output deterministic without making the chosen history correct. The overlapping claims need resolution from the business/source contract or an explicit documented uncertainty policy.
11.Adjacent valid-time rows have identical business attributes, but their separate provenance records are required for audit. What is a valid consideration before coalescing them into one interval?
Show answer and explanation
- Required provenance must remain representable
- Coalescing automatically preserving every source record identity
- Adjacency alone proving that no audit distinction can exist
- Equal values making every provenance record dispensable
Answer: Required provenance must remain representable
Coalescing can simplify a value history, but value equivalence does not imply audit equivalence. If provenance is required, it must remain representable through retained records or another explicit lineage structure.
12.Two source changes have the same effective timestamp but disagree on category. Their ingest order differs across retries, and no authoritative ordering is supplied. What can last-ingest-wins guarantee about the correct business state?
Show answer and explanation
- No authoritative resolution from arrival order alone
- The last arrival is always the correct business state
- Equal effective timestamps force equal business attributes
- The largest loaded key supplies missing source precedence
Answer: No authoritative resolution from arrival order alone
Arrival order is not the supplied business precedence, and here it can vary across retries. Selecting the last arrival does not establish which conflicting effective-time assertion is authoritative. Resolution needs an appropriate source/business rule or an explicit unresolved state.
13.A corrected history would move some prior-quarter facts from East to West. The published report contract forbids silent restatement. What should a revised release make explicit?
Show answer and explanation
- A claim that category changes never alter grouped historical reports
- Only that the final grand total is unchanged
- Unchanged published interpretation assumed despite revised inputs
- The restatement policy and changed attribution
Answer: The restatement policy and changed attribution
Changing historical classification can alter grouped results even when the grand total is conserved. A release must follow the reporting contract, including versioned restatement or preserved prior interpretation where required.
14.A product report needs both category at the sale instant and the product's current category. Why should those be represented as distinct query relationships?
Show answer and explanation
- A prohibition on multiple dimension roles for one fact
- Guaranteed equality of historical and current classifications
- Different temporal attribution questions
- Historical classification inferred by sorting current names
Answer: Different temporal attribution questions
One relationship selects the historical version for the event; another selects the current classification under a defined current-time rule. Conflating them makes the report's meaning depend on whichever join happened to be used.
15.An entity has several type-2 versions for its tier. Its misspelled display name is defined as a type-1 correction across all history. Only the latest version's name is fixed. What is inconsistent with that contract?
Show answer and explanation
- Earlier versions retain the superseded name
- The tier intervals remain unchanged
- More than one version existing for the tier history
- A corrected spelling on the latest version
Answer: Earlier versions retain the superseded name
The stipulated name correction applies across historical versions. Updating only one row leaves contradictory names for the same entity under that contract. Tier history and name-correction policy are separate attributes of the design.
16.A dimension versions changes in plan class but overwrites formatting-only name corrections. A change detector hashes every attribute together and creates a new version whenever the hash changes. What behavior needs correction?
Show answer and explanation
- Overwrite attributes being unable to affect a hash
- A requirement that every attribute follow one history policy
- An all-attribute hash automatically enforcing both policies
- Name-only edits can trigger unintended versions
Answer: Name-only edits can trigger unintended versions
The detector must distinguish attributes that trigger versioning from attributes governed by overwrite rules. One all-attribute change flag does not implement different history policies merely because it is deterministic.
17.Two accepted changes for one entity share the same valid-from instant. Applying both naively creates an intermediate interval [t,t). What does that interval represent under half-open bounds?
Show answer and explanation
- An empty valid-time interval
- A state valid at t but at no other instant
- A state whose validity extends indefinitely
- A state valid for one clock tick by definition
Answer: An empty valid-time interval
No instant satisfies t≤time<t. A zero-duration row cannot supply a valid-time state. Whether both source changes must be retained for provenance or knowledge history is a separate requirement.
18.A model represents an open valid-to bound with NULL in an ordinary SQL column. The join uses only
fact_time<valid_to. What can happen for facts intended to match the open version?Show answer and explanation
- The comparison is unknown and those rows fail the join predicate
- Every fact is matched twice because NULL equals every timestamp
- The predicate always accepts the row because the bound is missing
- NULL is automatically treated as positive infinity in every comparison
Answer: The comparison is unknown and those rows fail the join predicate
An ordinary NULL comparison does not express an unbounded interval. The join needs the model's explicit open-end handling, such as a defined valid-to condition. This differs from a database range type's own unbounded-bound semantics.
19.Two dimension changes occur at instants 10.2 and 10.8. Storage truncates both to integer time 10, but downstream reports require their original order. What information has been lost?
Show answer and explanation
- Sub-unit timing needed to distinguish the changes
- Evidence that the two physical changes were simultaneous
- A reliable event order inferred from two identical truncated values
- Only a display format
Answer: Sub-unit timing needed to distinguish the changes
Truncation can collapse distinct instants. Once the more precise timestamps or authoritative sequence are discarded, integer time alone cannot recover their order or represent the original sub-unit intervals.
20.A source reports a local clock time that occurred twice during an offset change. The two possible absolute instants lie in different dimension versions. No offset or disambiguator is supplied. What can the warehouse determine from that time alone?
Show answer and explanation
- The later version because it has a larger surrogate key
- The earlier version because it arrived first
- Both versions describe the same physical instant
- No unique temporal-version assignment
Answer: No unique temporal-version assignment
The local representation identifies two possible instants under the stated clock behavior. A temporal lookup cannot choose uniquely without additional information or an explicit uncertainty policy. Arrival order is not a substitute for the missing time meaning.
21.A report asks both when a classification applied in the business and when the warehouse accepted that classification as its current knowledge. What two axes must its history distinguish?
Show answer and explanation
- Daily date and monthly date of the same event
- Entity key and version key without time information
- Valid-from and valid-to on one timeline only
- Valid time and recorded knowledge time
Answer: Valid time and recorded knowledge time
One axis describes business effectivity; the other describes the evolution of accepted records. A single effective interval does not preserve what earlier reporting knew before a retroactive correction arrived.
22.A classification correction is valid from day 4 but accepted into the warehouse on day 11. A report must reproduce knowledge as of day 8. Should that correction affect the reproduced result?
Show answer and explanation
- Yes, whenever today's current row includes the correction
- No, because it was not yet accepted by that cutoff
- No correction may ever affect an earlier valid date
- Yes, because its effective day precedes the report cutoff
Answer: No, because it was not yet accepted by that cutoff
Reproducing knowledge at day eight excludes records first accepted at day eleven. A current restated history may apply the correction to day four, but that is a different query from the specified earlier knowledge snapshot.
23.Two bitemporal rows for one entity overlap in valid time but have disjoint recorded-time intervals. Is that overlap alone proof of an ambiguous as-known lookup?
Show answer and explanation
- Yes; recorded-time bounds cannot affect row selection
- No; every query must sum both conflicting version rows
- No; the knowledge cutoff can distinguish the revisions
- Yes; every valid-time overlap invalidates every bitemporal model
Answer: No; the knowledge cutoff can distinguish the revisions
Bitemporal uniqueness concerns the combination of both time axes. Rows can express different successive beliefs about the same valid period while remaining nonoverlapping at each recorded-time cutoff.
24.A source committed a correction on day 3, but the warehouse first received it on day 9. A report must reproduce information available inside that warehouse on day 5. Which time controls availability in this requirement?
Show answer and explanation
- The date when a consumer reruns the query today
- The source's day-3 commit alone
- The correction's possibly earlier business-valid time
- Warehouse acceptance time
Answer: Warehouse acceptance time
The requirement is about the warehouse's own knowledge. Source commit and business effectivity do not make an unavailable record observable there before arrival/acceptance. The selected time perspective must match the report's definition.
25.A predictive training table claims features available at each past decision time. It joins a dimension containing today's retroactively corrected history without a knowledge-time restriction. What risk remains despite a correct valid-time join?
Show answer and explanation
- The training labels become independent merely from the join
- Every historical category is guaranteed unchanged by corrections
- Every dimension key necessarily becomes NULL
- Later knowledge can leak into earlier decision features
Answer: Later knowledge can leak into earlier decision features
A valid-time predicate selects when the state applied according to the chosen history. It does not exclude corrections learned only after the decision. Point-in-time availability needs the relevant knowledge cutoff as well.
26.A bitemporal lookup checks the correct entity and valid instant, but no row exists at the requested knowledge cutoff. A developer silently uses today's latest row. What meaning changes?
Show answer and explanation
- The entity's business-valid time automatically changes to today
- The result becomes informed by a different knowledge snapshot
- A latest-row fallback preserves every historical reproducibility claim
- The fallback proves the original cutoff had complete data
Answer: The result becomes informed by a different knowledge snapshot
A missing match at the cutoff is not permission to substitute future knowledge. Any fallback must be explicit and compatible with the requested semantics; otherwise the report no longer reproduces the stated information state.
27.An operational source deletes an entity at day 12. The reporting contract retains its earlier states and activity, whose facts already reference dimension versions. A loader physically removes every version. What does the model need instead?
Show answer and explanation
- Represent the business ending while preserving required history
- Move every prior event to an unrelated currently active entity
- Delete all earlier fact references because a source row disappeared
- Treat source deletion as proof the entity never existed
Answer: Represent the business ending while preserving required history
A business lifecycle ending and removal of all warehouse history are different actions. Retained reports and facts still need their historical context. The lifecycle and retention contract must be modeled without breaking those required relationships.
28.A historical report must remain reproducible after dimensions are corrected. Only today's overwritten dimension state is retained. What additional preservation is needed?
Show answer and explanation
- Only the SQL text, regardless of changed inputs
- The relevant versioned inputs or equivalent report snapshot
- A guarantee that unchanged grand totals imply identical classifications
- Only the report's filename and last refresh timestamp
Answer: The relevant versioned inputs or equivalent report snapshot
Reproduction depends on both transformation logic and the input interpretation used. A versioned dataset, retained knowledge history, or sufficient immutable snapshot can preserve that basis; current overwritten values alone cannot.
29.A company supports two reports: original published attribution and fully restated attribution after accepted corrections. What model design helps keep those interpretations distinct?
Show answer and explanation
- One report title applied to whichever result refreshes first
- A hidden latest-row lookup for both report labels
- An explicit, consistent report/revision context
- Deletion of the old context so both labels use current truth
Answer: An explicit, consistent report/revision context
Both interpretations can be legitimate when their contracts are explicit. Queries need the appropriate retained/revised context rather than silently switching between original and corrected historical assignments.
30.A dimension has Gold valid on [0,30) and Platinum valid on [30,∞). The latest row is Platinum, but business time now is 20. Which classification is in force now under these valid intervals?
Show answer and explanation
- Platinum
- Gold
- Both Gold and Platinum
- Neither classification
Answer: Gold
Business time twenty lies in the Gold interval. The latest planned or stored row is not necessarily the version effective now. Future-dated changes require a current-time definition tied to effectivity.
31.An entity retires at time 30, and all its valid intervals end by 30. Business time is now 40. A test demands exactly one currently effective row for every entity ever observed. What population condition is missing?
Show answer and explanation
- Whether the entity is required to be active at the tested time
- One version per entity is required even outside its lifecycle
- Every retired entity must retain an open-ended active version
- A surrogate key proves the entity remains active forever
Answer: Whether the entity is required to be active at the tested time
An entity can have valid historical coverage without being active now. Current-row requirements must apply to the intended active population and time scope, rather than treating retirement as a mandatory data defect.
32.A fact dimension uses separate members for Unknown and Not applicable. A cleanup merges them because both lack an ordinary descriptive value. What distinction can disappear?
Show answer and explanation
- Missing information versus inapplicability
- Only dimension row order
- A guarantee that unresolved data and structural absence are equivalent
- A rule that every unknown value means the attribute cannot apply
Answer: Missing information versus inapplicability
Unknown says a relevant value is unresolved; not applicable says the attribute does not apply. Combining them changes the interpretation of grouped facts and can conceal data-quality issues or distort applicable-population analysis.
33.An inferred dimension member was created for an otherwise identified entity before its descriptive data arrived. Later data confirms the same entity and the placeholder's intended effective period. What can preserve already linked facts without inventing a new identity?
Show answer and explanation
- Drop all linked facts as if the entity had never been observed
- Resolve the placeholder under its identity/history policy
- Retain permanent unknowns because an existing key cannot be resolved
- Create a different entity solely because attributes arrived late
Answer: Resolve the placeholder under its identity/history policy
The missing descriptive context does not necessarily mean a different entity. Where identity and effectivity are confirmed, the placeholder can be resolved consistently. Whether attributes overwrite or create history still follows the agreed attribute policies.
34.An entity is first observed by the warehouse on day 40. Its source provides no evidence of when its current classification began. A loader backdates that classification to day 0. What is unsupported?
Show answer and explanation
- The asserted pre-observation effective history
- The option to retain an explicit unknown earlier period
- The existence of the classification in the delivered record
- The fact that the row was observed on day 40
Answer: The asserted pre-observation effective history
Observation time does not establish when a state began in business time. Backdating creates an unsupported historical claim. Earlier periods need source evidence, a documented rule, or an explicit unresolved state.
35.A source changes the business identifier of a single continuing contract to correct a registration error. Old events retain the prior identifier. What must the identity mapping preserve?
Show answer and explanation
- Invalidation of all events carrying the earlier identifier
- Entity continuity across corrected identifier aliases
- A new business entity for each warehouse processing run
- Two entities forced by different identifier text
Answer: Entity continuity across corrected identifier aliases
A business-key correction need not create a new business entity. Mapping old and corrected identifiers to the continuing identity preserves the intended event relationships while retaining the identifier history where required.
36.An identity service offers uncertain matches between records from two systems. A dimension loader treats every suggested match as a confirmed merge. What report property can be corrupted?
Show answer and explanation
- Which entities facts are attributed to
- An integer surrogate turning every suggested match into a confirmed one
- Only physical row order
- Uncertainty affecting display text but never identity grouping
Answer: Which entities facts are attributed to
Identity matching changes the equivalence classes used to attach and group facts. Uncertain links cannot be promoted to confirmed identity without a policy and evidence appropriate to the reporting use.
37.One organization has two valid historical dimension versions, both referenced by its facts. A report counts DISTINCT
version_keyand calls it the number of organizations represented. What can it return?Show answer and explanation
- Two versions even though there is only one organization
- Zero because historical versions cannot have distinct keys
- Exactly the organization count for every versioning policy
- One organization automatically because version keys share an entity
Answer: Two versions even though there is only one organization
Version identity and enduring business identity have different grains. Counting distinct version keys can count states of the same entity more than once. An organization count must use the appropriate enduring identity under its population contract.
38.A measurement fact stores several kinds of observations for the same asset at the same instant: temperature and vibration amplitude. It uses one row per asset, instant, and measurement kind. What is wrong with declaring only asset plus instant unique?
Show answer and explanation
- Every observation must instead overwrite the asset's current dimension
- The pair can never repeat even across distinct measurement kinds
- Measurement kind changes only the physical column order
- Different measurement kinds legitimately share that pair
Answer: Different measurement kinds legitimately share that pair
The stated grain includes the kind of measurement. A narrower uniqueness rule would reject or collapse distinct observations. Unit and measure semantics also need to stay associated with the kind.
39.A row contains two measures,
produced_units=0 andrejected_units=NULL because rejection measurement is unavailable. An unpivot step drops NULL-valued measures. What semantic information can be lost if absence is later treated as zero?Show answer and explanation
- Asset identity changing merely because columns become rows
- Unpivoting automatically converting every numeric sign to positive
- Unavailable rejection data can become a false zero
- A measured zero becoming null necessarily
Answer: Unavailable rejection data can become a false zero
Reshaping changes the physical row grain to row-plus-measure. Dropping an unavailable measure and later interpreting absence as zero changes its meaning. Presence, applicability, and observed value need a defined representation.
40.A fact store retains every correction version of an order line. Its consumer view promises one currently accepted row per order line. Which key distinction matters when documenting the store and view?
Show answer and explanation
- Every retained revision being an active consumer row
- Both requiring identical row counts
- Stored revision grain versus logical consumer grain
- Retaining corrections eliminating the order line's identity
Answer: Stored revision grain versus logical consumer grain
A history store can legitimately contain multiple revisions of one logical fact. A current view selects according to its acceptance policy. Their keys and row meanings differ and should not be conflated in tests or measures.
41.A 30-unit handling charge belongs to one order. Three lines receive weights 0.2, 0.3, and 0.5 under an explicit allocation rule. What amounts preserve the charge at line grain?
Show answer and explanation
- 6, 9, and 30 units
- 10, 10, and 30 units
- 30, 30, and 30 units
- 6, 9, and 15 units
Answer: 6, 9, and 15 units
Multiplying thirty by the three weights gives 6, 9, and 15, summing to thirty. Copying the entire header charge onto each line would create a different, duplicated additive measure.
42.A 10-cent charge has equal ideal shares across three lines. Stored allocations use integer cents, exact conservation, and a documented deterministic residual rule. Which allocation can satisfy those conditions?
Show answer and explanation
- 3, 3, and 3 cents with the remaining cent discarded
- 3, 3, and 4 cents with a defined residual recipient
- 4, 4, and 4 cents because each share rounds upward
- 3.33, 3.33, and 3.33 cents in an integer-cent field
Answer: 3, 3, and 4 cents with a defined residual recipient
Equal ideal shares are 10/3 cents, which are not integers. A deterministic remainder rule can assign the remaining cent while keeping the total ten. The chosen tie-break and any fairness implications belong in the allocation contract.
43.A credit of −10 units is allocated using valid fixed weights 0.2 and 0.8. What signed allocations preserve the credit under this rule?
Show answer and explanation
- +2 and +8
- −2 and −8
- −10 and −10
- −2 and +8
Answer: −2 and −8
The same signed amount is multiplied by each weight: −10×0.2=−2 and −10×0.8=−8. They sum to −10. Taking absolute values would change a credit into a positive charge.
44.A model allocates an 8-unit fee proportionally to signed line amounts +50 and −50 using amount/
sum(amount). What problem must be resolved before applying that formula?Show answer and explanation
- Both line amounts must be interpreted as zero
- The allocation denominator is zero
- A negative line makes every possible allocation rule invalid
- The fee must be duplicated because there are two lines
Answer: The allocation denominator is zero
The signed basis sums to zero even though both lines exist. The stated proportional formula is undefined. An alternative authorized basis or an explicit exception policy is needed; inventing one silently changes the business allocation rule.
45.One 20-unit activity is intentionally fully attributed to each of two campaign labels. The report clearly calls this multi-attribution, not an allocation. What happens when label totals are added?
Show answer and explanation
- They sum to 40, exceeding the distinct activity total of 20
- They must sum to 20 because labels are dimensions
- They sum to zero because the labels are different
- Their sum proves the underlying activity amount was 40
Answer: They sum to 40, exceeding the distinct activity total of 20
Full attribution can intentionally count one activity under multiple labels. Those grouped figures are not additive back to a distinct total. The metric contract must distinguish multi-attribution from conserved allocation.
46.A fact's amount is 60 and its bridge has weights 0.25, 0.25, and 0.25. The contract requires all of this fact's amount to be allocated. What does the weight sum reveal?
Show answer and explanation
- All 60 is allocated because each weight is below one
- The amount must be multiplied by four before joining
- Only 45 is allocated; 15 is unassigned
- Exactly 180 is allocated because there are three rows
Answer: Only 45 is allocated; 15 is unassigned
The weights sum to 0.75, so their allocated amount is 60×0.75=45. A full-allocation contract requires a sum of one per fact under the applicable mapping, not merely individually plausible weights.
47.A temporal allocation bridge stores weights per applicable fact instant. A query filters out one recipient before checking whether retained weights sum to one. It renormalizes the remainder and calls it the original allocation. What changed?
Show answer and explanation
- The fact's original amount becomes unknowable by definition
- Only the order in which the same shares are displayed
- The allocation population and resulting shares
- Nothing, because renormalization preserves each original recipient's share
Answer: The allocation population and resulting shares
Renormalizing over a subset assigns the excluded share to retained recipients. That can be a legitimate new allocation, but it is not the original one. Population filtering and allocation semantics must be explicit.
48.A 40-unit fact has allocation rows of 0.7 and 0.3. One recipient dimension accidentally has two matching historical rows at the fact instant. What protects allocation conservation in this join?
Show answer and explanation
- Only normalized source bridge weights
- Distinct display labels replacing cardinality checks
- Unique applicable versions as well as normalized weights
- Decimal multiplication automatically cancelling duplicated joins
Answer: Unique applicable versions as well as normalized weights
A duplicated recipient match repeats its weighted contribution. Bridge normalization alone does not guarantee a joined result conserves the fact amount. The downstream temporal dimension relationship must satisfy its cardinality contract too.
49.Two independent bridges each fully allocate a 100-unit fact. A query cross-joins their recipients and multiplies the two weights. What additional semantic claim does it make beyond conserving the grand total?
Show answer and explanation
- That both recipient sets are necessarily the same business dimension
- That multiplying normalized weights proves business independence
- A joint allocation across recipient pairs that needs justification
- That every recipient pair has been observed directly in source data
Answer: A joint allocation across recipient pairs that needs justification
Product weights can sum to one while imposing a particular pairwise allocation, often corresponding to an independence assumption. Arithmetic conservation does not establish that those pairwise shares reflect the intended business relationship.
50.An attendance report identifies expected sessions from a dated enrollment relationship and actual attendance from a separate event fact. Why is the enrollment history needed to interpret missing attendance?
Show answer and explanation
- Current enrollment automatically applying to all earlier sessions
- A requirement that every relationship carry a numeric measure
- Every missing event proving prior enrollment
- The dated population expected to attend
Answer: The dated population expected to attend
Absence is meaningful relative to a coverage population. A person not enrolled at the session time should not be inferred absent merely because no attendance event exists. Completeness of the attendance source also matters.
51.A closing snapshot stamped boundary 10 explicitly represents the state immediately before that boundary. Ownership is A on [0,10) and B on [10,20). Which owner applies under the snapshot's stipulated pre-boundary meaning?
Show answer and explanation
- A, using the represented pre-boundary state
- Neither owner because every closing timestamp is invalid
- Both A and B because all closing snapshots have two owners
- B, by treating the stamp as an exact time-10 observation
Answer: A, using the represented pre-boundary state
The stamp labels a snapshot whose represented state is explicitly before ten. That state belongs to A. Timestamp role and snapshot semantics must be aligned before applying an ordinary exact-instant lookup.
52.At time 0, bins A and B contain 8 and 20 units. Later observations are A=0 at time 1 and B=5 at time 2; states persist between observations. A query discards zero rows, selects each bin's latest remaining row, and sums at time 2. What does it report?
Show answer and explanation
- 13 instead of the correct 5
- 28 instead of the correct 5
- 0 because both latest states are absent
- 5, the correct closing total
Answer: 13 instead of the correct 5
Filtering zero before selecting the latest row resurrects A's older eight units. B contributes five, giving thirteen. The actual states at time two are A=0 and B=5, so the correct total is five.
53.A daily snapshot pipeline emits no row for an account on a day when its source extract failed. A calendar join fills the missing row with balance zero. What claim has been introduced without evidence?
Show answer and explanation
- That the account's balance was zero on the missing day
- That the extract failed to supply an observation
- That the account existed in some other recorded period
- That the calendar contains the missing date
Answer: That the account's balance was zero on the missing day
A missing observation is not a measured zero. Filling it may be appropriate only under an explicit business/coverage rule. Here extract failure provides no evidence for the account's balance on that date.
54.An inventory model starts with 40 units, records 7 received and 12 issued, and excludes all other adjustments. What closing quantity satisfies the stated balance equation?
Show answer and explanation
- 59 units
- 21 units
- 35 units
- 45 units
Answer: 35 units
Closing quantity is beginning plus receipts minus issues: 40+7−12=35. A reconciliation should compare compatible item/location/time grains rather than combine movements and snapshots indiscriminately.
55.A position's opening value is 100, closing value is 115, and a recorded revaluation adds 10. No other noncash adjustments exist. Why is closing minus opening not necessarily its net transaction flow?
Show answer and explanation
- Every value change must be a new transaction
- Revaluation always changes quantity by the same percentage
- Opening and closing values cannot be compared in any model
- It includes revaluation as well as transaction flow
Answer: It includes revaluation as well as transaction flow
The bridge is closing=opening+flow+revaluation under the stated scope. Thus transaction flow is 115−100−10=5, while the raw difference is 15. Snapshot differences need the appropriate adjustment context.
56.Two assets have quantities A=[10,0] and B=[0,10] at two shared snapshot instants. What happens if a report sums each asset's separate maximum to estimate the peak simultaneous total?
Show answer and explanation
- It reports 10 because maxima always commute with summation
- It reports zero because the peaks occur at different instants
- It proves both assets held 10 at the same instant
- It reports 20 although the simultaneous total never exceeds 10
Answer: It reports 20 although the simultaneous total never exceeds 10
The per-asset maxima occur at different times. Their sum is twenty, but each common-time total is ten. Taking a maximum after aligned summation is different from summing independent maxima.
57.An application workflow can be reopened and completed several times. A single accumulating row overwrites its completion date on every reopening. Analysts need turnaround for each attempt. What additional grain is needed?
Show answer and explanation
- A workflow-attempt identity
- Only latest completion time
- Application identity alone regardless of repeated attempts
- A reopened flag that erases all earlier completion records
Answer: A workflow-attempt identity
One row per application can summarize a chosen lifecycle, but it cannot retain every attempt's timing when repeated completions overwrite one field. Attempt-level history is needed for the specified analysis.
58.A case has attempt intervals [2,5) and [8,9). Active processing time is defined as the sum of matched attempt durations. A query uses latest finish minus earliest start. What does its result include incorrectly?
Show answer and explanation
- One extra completed attempt
- A negative interval because starts are not adjacent
- Three units of time between attempts
- Only the four units of defined active processing
Answer: Three units of time between attempts
The query returns 9−2=7. Defined active time is (5−2)+(9−8)=4. The difference of three is the gap from five to eight, which the requested metric excludes.
59.A workflow began at time 4 and is still open at reporting cutoff 10. No completion event exists. How should its six elapsed units be interpreted for a completed-turnaround analysis?
Show answer and explanation
- Proof that the next event must be completion at the cutoff
- Elapsed-to-cutoff data, not a completed duration
- A completion observed at time 10
- A zero-duration completion implied by a missing finish
Answer: Elapsed-to-cutoff data, not a completed duration
The observation is incomplete at the cutoff. Six units are known to have elapsed, but final completion time is unobserved. The model/report must preserve that censoring or open-status distinction rather than invent a completion.
60.A ledger retains an original +30 entry and its later −30 reversal. Net amount is defined as the sum of both accepted entries. A query excludes the original because its current status is Cancelled but retains the reversal. What result follows?
Show answer and explanation
- +60 because a reversal repeats the original charge
- +30 instead of the defined net zero
- −30 instead of the defined net zero
- Zero, because cancellation automatically supplies the removed +30
Answer: −30 instead of the defined net zero
The ledger contract nets +30 and −30 to zero. Removing only the original leaves −30 and counts the cancellation effect inconsistently. Current status and additive reversal history need compatible interpretation.
61.A 100-unit service charge covers an interval crossing two owner versions. The contract allocates by actual service delivered, whose rate over that interval is unknown. Can time fractions alone uniquely determine owner shares?
Show answer and explanation
- Yes; assign the full 100 to each owner without changing the total
- No; duration alone does not establish service distribution
- Yes; every interval measure is uniformly distributed by definition
- No interval-crossing fact can ever be modeled with allocations
Answer: No; duration alone does not establish service distribution
An interval describes temporal support, not necessarily uniform delivery. Time weighting needs a compatible rate assumption or actual delivery data. A total charge plus change time does not uniquely determine the requested service-based allocation.
62.A service is explicitly billed at a constant 20 units per hour over [0,10). Ownership is A on [0,4) and B on [4,10). Under duration-based ownership allocation, what charges follow?
Show answer and explanation
- A:120; B:80
- A:200; B:200
- A:80; B:120
- A:100; B:100
Answer: A:80; B:120
The applicable durations are four and six hours. Multiplying each by the stated uniform rate gives 80 and 120, preserving the 200-unit total. The uniform-rate premise makes this allocation identifiable.
63.Two half-open intervals are [3,11) and [8,14), using the same time units. What is the duration of their intersection?
Show answer and explanation
- 8
- 11
- 6
- 3
Answer: 3
The overlap begins at max(3,8)=8 and ends at min(11,14)=11, giving duration three. In general an intersection duration is max(0,min(ends)−max(starts)) for these intervals.
64.One dimension changes at time 8 inside [0,20). Another changes at 5 and 12. A fact needs segments where both states stay fixed. How many positive-duration segments result from the combined boundaries?
Show answer and explanation
- 4
- 5
- 6
- 3
Answer: 4
The distinct boundaries are 0,5,8,12,20. Consecutive pairs form four segments. Taking every pair of dimension versions without their temporal intersections would create combinations that never coexisted.
65.An interval allocation's weights sum to one at its start and end, but every recipient weight is zero throughout an interior subinterval where service continues. What do endpoint checks fail to establish?
Show answer and explanation
- Conservation throughout the service interval
- The requirement that each recipient receive the entire amount
- A guarantee that service stopped during the weight gap
- The numerical endpoint sums that were checked
Answer: Conservation throughout the service interval
For time-distributed allocation, the applicable weights must satisfy the contract throughout the relevant support. Valid endpoint sums do not prove coverage inside the interval. A gap can leave some delivered service unassigned.
66.A supplied business calendar maps day D to absolute hours [100,123). A daily valid period includes D only. A loader assumes every day lasts 24 hours and maps it to [100,124). What extra coverage does it introduce?
Show answer and explanation
- One hour outside the defined business day
- A missing first hour of day D
- No change because every date must span 24 hours
- An empty valid interval
Answer: One hour outside the defined business day
The calendar explicitly ends the day at hour 123. Extending the bound to 124 includes one hour beyond it. Date-grain effectivity must use the applicable calendar mapping rather than an unsupported fixed elapsed duration.
67.A source supplies only that an ownership change took effect sometime on day 12. Reports require attribution of events before and after noon that day. No intraday convention or additional evidence exists. What is unresolved?
Show answer and explanation
- Noon chosen automatically as the only possible transition
- The fact timestamps having greater precision
- The missing intraday effectivity boundary
- The stated date of the change
Answer: The missing intraday effectivity boundary
Date-level effectivity does not locate the transition within the day. Assigning an exact instant requires evidence or an explicit business convention. More precise fact timestamps do not create missing precision in the dimension history.
68.A source sends a proposed future classification and later an approved effective classification. A history table stores both without distinguishing proposal status. What ambiguity does this introduce?
Show answer and explanation
- Proposals becoming authoritative on arrival
- Mandatory deletion of all future-dated records
- Status affecting only the physical sort order
- Proposed states can be mistaken for accepted history
Answer: Proposed states can be mistaken for accepted history
Different assertion types need distinguishable status or provenance when consumers must select accepted history. Future effectivity alone does not tell whether a proposal became authoritative.
69.A sales fact stores the agreed unit price at order time. The product dimension stores today's catalog price. A query recomputes old sales using the catalog price and calls this realized sales. What contract has changed?
Show answer and explanation
- Catalog price is always equal to every past agreed price
- The original order's business identity necessarily changed
- Actual transaction terms were replaced by a current price assumption
- Only the formatting of the same realized amount
Answer: Actual transaction terms were replaced by a current price assumption
Realized transaction value depends on the accepted transaction terms and adjustments. A current catalog-price valuation can be useful, but is a different analysis. A dimension lookup must not silently substitute its meaning for a fact's recorded measure.
70.A daily exchange-rate table has one row per currency pair, date, provider, and rate type. A fact joins on currency pair and date alone, while multiple providers/types are present. What relationship is missing?
Show answer and explanation
- The assumption that currency pair and date always identify one row
- Only a longer decimal representation of each rate
- The rate-selection context needed for one applicable quote
- A rule that every provider must quote identical values
Answer: The rate-selection context needed for one applicable quote
The dimension's declared grain includes provider and type. Joining on a narrower subset can return multiple quotes or choose an undefined valuation basis. The fact/report contract must specify the applicable context.
71.Two 10-EUR facts must convert at their own transaction-time rates of 1.2 and 1.3 USD/EUR. What total USD amount follows under that contract?
Show answer and explanation
- 26 USD
- 25 USD
- 20 USD
- 24 USD
Answer: 25 USD
Convert each fact before summing: 10×1.2+10×1.3=12+13=25 USD. Aggregating the currency amount first and applying only the latest rate would instead impose a different valuation convention.
72.Two marts both expose
customer_id. One identifies billing organizations; the other identifies individual users. An engineer joins them directly because the column names match. What needs conformance first?Show answer and explanation
- Column positions making organization and user keys conformed
- The business entity and identity relationship
- Matching names proving matching business identities
- Only column capitalization
Answer: The business entity and identity relationship
A conformed key requires shared identity meaning, not just matching names or compatible data types. Organization-to-user relationships may be one-to-many or temporal and need their own explicit model.
73.A date dimension has rows keyed by (date,
calendar_id), supporting two fiscal calendars. A fact joins only on date. Both calendars cover its date. What result can occur?Show answer and explanation
- No match because two calendars cannot share a date
- Automatic selection of the correct fiscal calendar
- Two dimension matches for one fact
- Exactly one match guaranteed by the date value
Answer: Two dimension matches for one fact
The table's grain includes calendar identity. A date-only join does not determine which interpretation is requested and can fan out. Calendar context must be supplied by the fact or report contract.
74.A business hierarchy legitimately skips a level for some branches. A transformation removes those branches because their middle-level label is NULL. What is the modeling problem?
Show answer and explanation
- Every hierarchy level being required to have equal membership
- Every leaf becoming a new entity
- Structural level absence was treated as member absence
- A ragged hierarchy necessarily implying duplicate source keys
Answer: Structural level absence was treated as member absence
A missing intermediate level can be an intentional hierarchy structure. Filtering by that label can erase valid leaves and their facts. The model must distinguish structural absence from missing or invalid entity data.
75.A hierarchy has two distinct paths from leaf L to ancestor R. A report should credit each leaf fact once to each reachable ancestor. A closure table retains one row per path. What must the query account for?
Show answer and explanation
- A rule that every path must contribute the full fact again
- The impossibility of a graph having multiple paths
- Only whether L and R have different display names
- Duplicate L-to-R reachability across paths
Answer: Duplicate L-to-R reachability across paths
Path grain and leaf-ancestor relationship grain differ. If the report wants each reachable ancestor once, multiple paths to the same pair must not multiply the fact. Retaining paths can still be useful for other analyses.
76.Parent links are A→B on [0,5) and B→A on [5,10). A cycle check unions all historical links. What extra condition is needed to claim that its detected cycle was active at some instant?
Show answer and explanation
- A common active instant for every cycle edge
- Arrival-date sorting without interval intersection
- Only distinct parent identifiers
- Only a cycle in the all-history union
Answer: A common active instant for every cycle edge
The opposite links are never active together under half-open bounds: their interval intersection is empty. A cycle in the all-history union needs a common active instant across every edge before it supports a temporal-cycle claim.
77.A historical hierarchy query starts with a leaf's parent at event time, then follows each parent's current parent today. What can the resulting ancestor chain represent?
Show answer and explanation
- The uniquely correct hierarchy at the event time
- Only a physical query optimization with identical semantics
- An unchanged historical chain guaranteed by stable keys
- A chain whose relationships never coexisted
Answer: A chain whose relationships never coexisted
Each edge must be evaluated under the intended temporal context. Mixing event-time and current relationships can synthesize a chain absent from every real historical snapshot, even when every individual edge exists in storage.
78.A report left joins an asset dimension to event facts and groups by asset. An asset with no events has one NULL-extended row. Event_id is non-NULL on every actual fact. Which count reflects actual matched events?
Show answer and explanation
- COUNT(*)=1, interpreted as one actual event
- COUNT(asset_id)=1, interpreted as one actual event
- COUNT(event_id)=0
- COUNT(*)−COUNT(event_id)=1, interpreted as one actual event
Answer: COUNT(event_id)=0
The preserved asset row is not an event. Counting the non-NULL event key yields zero for the unmatched case. Outer-join row count and business-event count are different quantities.
79.A dimension contract requires non-NULL
entity_id, non-NULLvalid_from, and uniqueness of their pair. A check validates only pair uniqueness and passes. What remains unverified?Show answer and explanation
- Only pair uniqueness again
- Required non-NULL key values
- A guarantee that uniqueness implies all key fields are present
- A nonempty string label for every numeric measure
Answer: Required non-NULL key values
Uniqueness and presence are different constraints. A check covering one does not prove the others. All parts of the declared key and temporal contract need appropriate validation.
80.Two legitimate bitemporal revisions share
entity_idandvalid_frombut occupy disjoint recorded-time intervals. A new globalUNIQUE(entity_id,valid_from)rule rejects one. What did the rule ignore?Show answer and explanation
- A requirement that all business entities use different names
- The fact that both revisions necessarily apply at every cutoff
- A rule that valid_from may never appear in any key
- The recorded-time/revision dimension of the stored grain
Answer: The recorded-time/revision dimension of the stored grain
The physical history can retain multiple recorded beliefs about the same valid-time start. Global uniqueness on that narrower pair can conflict with the intended bitemporal grain. As-known uniqueness must use the relevant temporal context.
81.Two facts are +100 and −100 units. A faulty join duplicates both twice. A validation compares only the final grand total before and after the join. What happens?
Show answer and explanation
- Both totals are zero, so the duplication can escape that check
- The total necessarily becomes 400 and reveals the problem
- A matching total proves every original fact appears exactly once
- Signed measures make duplication mathematically impossible
Answer: Both totals are zero, so the duplication can escape that check
Both 100−100 and 200−200 are zero. Offsetting errors can preserve an aggregate. Key-level cardinality and suitable component reconciliations are needed to support a stronger completeness/conservation claim.
82.A transformation accidentally drops five valid zero-amount events. Its
sum(amount)still matches the source exactly. What validation would detect the missing business records directly?Show answer and explanation
- Event-key coverage or event counts at the required grain
- A guarantee that zero-amount rows are never real events
- Only checking that every retained amount is nonnegative
- Only another calculation of the same amount sum
Answer: Event-key coverage or event counts at the required grain
Amounts do not encode the existence of zero-valued events. When those events belong to the fact contract, their identities or counts must be checked independently of the additive amount total.
83.A state dimension records isolated observations only; it does not assert that values persist until the next observation. A query forward-fills each state across all intervening time. What assumption has it added?
Show answer and explanation
- A guarantee that every forward-filled time was directly measured
- Persistence between observations
- A proof that no unobserved state changes could occur
- Only a lossless change in physical storage layout
Answer: Persistence between observations
Forward filling creates a piecewise-constant interpretation. That may be appropriate under a documented state/observation contract, but is not implied by isolated observations alone. Observation grain and continuous validity must be distinguished.
84.A planning mart retains both forecast and actual quantities for the same item-period. A consumer sums them without selecting a scenario or measure role and labels the result actual output. What is conflated?
Show answer and explanation
- Two independent actual events
- A requirement that forecasts equal actuals before loading
- Only alternative display names for the same realized measurement
- Forecast and actual assertion types
Answer: Forecast and actual assertion types
Forecast and actual are different statements about a period. Their coexistence requires a scenario/type distinction in the grain or measure definition. Adding them does not produce actual output merely because item and period match.
85.A fact's event time is missing, while its entity has several historical classifications. A loader substitutes the processing timestamp to choose a version and labels the result event-time attribution. What is unsupported?
Show answer and explanation
- The option to retain an unresolved attribution explicitly
- The existence of more than one historical dimension version
- The existence of a processing timestamp
- That processing time identifies when the business event occurred
Answer: That processing time identifies when the business event occurred
Processing and business event time are different axes. A fallback may be defined by a contract, but cannot be presented as observed event-time attribution without supporting information.
86.A source patch omits the tier field, meaning leave it unchanged. Explicit tier=NULL means clear it. A loader converts both omission and explicit NULL into the same value before building history. What distinction is lost?
Show answer and explanation
- Only the source column's physical position
- No change versus an intentional value removal
- A guarantee that every tier change creates a new entity
- The ability to store integer surrogate keys
Answer: No change versus an intentional value removal
Patch presence is part of the source semantics. Collapsing absence and an explicit nullification can create false transitions or suppress real ones. History construction must retain enough information to apply the defined update meaning.
87.A loader receives a source file containing only entities changed today. It expires every dimension entity absent from the file, treating it as a deletion. What missing source guarantee makes that inference invalid?
Show answer and explanation
- Every absent entity is guaranteed to have been deleted today
- The file is not a complete authoritative population snapshot
- A change feed necessarily lists every unchanged entity too
- The file contains no entity identifiers at all
Answer: The file is not a complete authoritative population snapshot
Absence from a changes-only extract does not imply deletion. Expiration by absence needs the appropriate complete-snapshot contract or explicit deletion information. Otherwise unchanged live entities can acquire false historical end dates.
88.An unordered nested list contains child IDs [A,B], then later [B,A], with no child data changes. A dimension uses
parent_idplus array position as each child's enduring identity. What false history can result?Show answer and explanation
- Only a harmless sort operation on stable keys
- Child IDs automatically retained by using array positions
- Children can appear to exchange identities
- A new parent identity required by every unordered-list permutation
Answer: Children can appear to exchange identities
Position is not stable business identity when ordering is nonsemantic. A reorder can make one positional key refer to a different child. The model needs the source's stable child identity under the stated unordered-list contract.
89.A product's eligibility class depends on elapsed days since activation. The activation date never changes, but the class crosses a known age boundary tomorrow. A dimension updates that derived class only on source-row changes. What can become stale?
Show answer and explanation
- The activation date merely because time passes
- The fact that tomorrow follows the current business date
- Every historical fact's originally recorded amount
- The time-derived classification despite unchanged source attributes
Answer: The time-derived classification despite unchanged source attributes
A derived attribute can change as time advances even if its source fields do not. Its effective-time logic must account for those transitions or compute the value under the requested time context.
90.A business organization can act simultaneously as both a vendor and a customer. A model forces exactly one of those labels as its permanent entity subtype. What relationship can that erase?
Show answer and explanation
- Two unrelated identities forced by the role names
- A prohibition on stable organization identifiers
- Only display ordering of organization names
- Concurrent roles of one organization
Answer: Concurrent roles of one organization
Vendor and customer can be roles rather than mutually exclusive identities. The model should represent the required role relationships and their effectivity without forcing a false exclusive subtype rule.
91.An entity is required to cover [0,10). Its dimension intervals are [0,6) and [5,9). Their lengths sum to 10. Does that sum prove complete, nonoverlapping coverage?
Show answer and explanation
- Yes; equal total duration proves exact coverage
- Yes; interval order prevents overlap automatically
- No; every pair of intervals must have identical starts
- No; there is both an overlap and an uncovered tail
Answer: No; there is both an overlap and an uncovered tail
The intervals overlap on [5,6) and leave [9,10) uncovered. The duplicated duration offsets the missing duration in the sum. Temporal-set coverage and nonoverlap cannot be proved from summed lengths alone.
92.A materialized summary reports East=70 and West=30 units. An accepted classification correction moves a 10-unit fact from East to West without changing its amount. What revised grouped totals follow?
Show answer and explanation
- East=60; West=30
- East=60; West=40
- East=70; West=30
- East=80; West=20
Answer: East=60; West=40
The fact's contribution leaves East and enters West, giving 70−10=60 and 30+10=40. The grand total stays 100, but grouped materializations still need consistent recomputation or adjustment.
93.The source declares revision 8 authoritative over revision 7 for the same entity and valid interval. A retry delivers revision 7 after revision 8. A loader lets last ingestion win. What ordering rule did it violate?
Show answer and explanation
- The source's declared revision precedence
- The guarantee that lower revision numbers describe newer accepted truth
- A requirement that effective intervals never remain equal
- A rule that arrival order always equals source revision order
Answer: The source's declared revision precedence
Transport arrival is not the declared source precedence. Retries can reorder delivery. Choosing the latest accepted source revision under its contract prevents an older revision from replacing the authoritative one merely by arriving later.
94.A late source row states a classification was effective on [10,15), but arrives at processing time 30. A loader changes its
valid_fromto 30 while still calling the interval business-valid history. What was conflated?Show answer and explanation
- The source's valid-to bound with an unbounded interval
- Business effectivity with processing time
- The entity key with its descriptive label
- The amount measure with its currency unit
Answer: Business effectivity with processing time
The source assertion concerns business time ten through fifteen. Recording that it arrived at thirty is useful, but belongs to an availability/recorded-time perspective. Replacing effectivity with processing time changes the asserted history.
95.No currently stored fact references an old dimension version. A cleanup proposes deleting it, although late facts and retained historical report contexts may still need it. What criterion is insufficient for safe historical retention decisions?
Show answer and explanation
- Considering the required report and late-arrival time horizons
- Checking which consumers require earlier interpretations
- Preserving version identity under the retention contract
- Only counting current physical foreign-key references
Answer: Only counting current physical foreign-key references
A version can be needed by future late-arriving facts or retained as-known/report contexts without a current physical fact reference. Retention must follow the full temporal and consumer contract, not just today's reference count.
96.A fact names natural entity B but stores a dimension version key belonging to entity A. The version key exists, so a single-column foreign-key check passes. What additional consistency is missing?
Show answer and explanation
- Every existing version key automatically belonging to B
- Only integer key syntax
- Matching display labels replacing the identity relationship
- Entity agreement with the referenced version
Answer: Entity agreement with the referenced version
Existence of a referenced row does not prove it is the correct entity's row. The model must preserve the identity relationship between natural source context and the selected dimension version as well as reference existence.
97.Three unresolved source entities all use the same Unknown dimension member. A report counts distinct dimension surrogate keys and labels that the number of unresolved business entities. What can it report incorrectly?
Show answer and explanation
- Exactly the true count regardless of retained source identity
- Three keys because a shared member becomes unique per row
- One key instead of three distinct unresolved entities
- Zero keys because Unknown cannot appear in a dimension
Answer: One key instead of three distinct unresolved entities
A shared Unknown member represents an unresolved classification, not necessarily one enduring business entity. Distinct-key counts collapse those source identities. The entity-count contract needs appropriate retained identity information or an explicit unknown-population policy.
98.A report joins facts from knowledge cutoff 12 to dimensions from cutoff 25, but claims to reproduce the complete warehouse as known at 12. What consistency requirement is violated?
Show answer and explanation
- Surrogate keys sorted by their descriptive labels
- Only equal physical row counts
- A consistent information cutoff across inputs
- Facts and dimensions having identical schemas
Answer: A consistent information cutoff across inputs
A coherent as-known result must use inputs compatible with the claimed cutoff. Combining later dimension knowledge with earlier facts can yield an interpretation that was not available at the stated time.
99.A fact at time 14 stores a version key whose valid interval is [0,10). That key exists and belongs to the correct entity. What important relationship check still fails?
Show answer and explanation
- The fact instant is outside its referenced version's valid interval
- The version key must be missing from the dimension
- The interval must cover all future events once referenced
- The entity reference must be wrong merely because the time is wrong
Answer: The fact instant is outside its referenced version's valid interval
Referential existence, entity agreement, and temporal applicability are distinct conditions. This row passes the first two under the premise but fails 0≤14<10. All required relationships need validation.
100.Two facts should each match one dimension version. The join produces zero matches for F1 and two for F2. A test compares total inner-join rows with total input facts. What does it observe?
Show answer and explanation
- A row count of four that necessarily reveals both errors
- Equal counts of two, despite both fact-level violations
- A proof that each fact matched exactly once
- An impossible situation because inner joins preserve every fact
Answer: Equal counts of two, despite both fact-level violations
The total is 0+2=2, matching the two inputs. Aggregate row-count equality can hide an unmatched fact offset by a multiply matched one. The one-version contract must be checked per fact identity.
101.All intervals are half-open. One entity is Blue on valid [0,10), recorded [0,20). After recorded time 20, accepted history is Blue [0,6) and Green [6,10). Facts of 7 and 9 units occur at valid times 5 and 8. What totals follow at knowledge cutoffs 10 and 25?
Show answer and explanation
- Both cutoffs: Blue16
- Cutoff 10: Blue16; cutoff 25: Blue7, Green9
- Cutoff 10: Green16; cutoff 25: Blue16
- Both cutoffs: Blue7, Green9
Answer: Cutoff 10: Blue16; cutoff 25: Blue7, Green9
At cutoff ten only the original recorded belief applies, so both facts are Blue. At cutoff twenty-five the corrected history assigns time five to Blue and time eight to Green. Both totals remain sixteen while the accepted historical attribution changes.