FreeExam

Analytics engineer: Metrics and Semantic Definitions

Original technical interview practice in aggregation state, cohort and funnel definitions, metric units, filter scope, SQL windows, and reproducible semantic meaning.

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

  1. 1.Two disjoint eligible groups have 1 conversion among 2 members and 9 among 98. A metric is total converting members divided by total eligible members. What pooled rate follows?

    Show answer and explanation
    1. 50%
    2. About 29.6%
    3. About 9.2%
    4. 10%

    Answer: 10%

    The pooled numerator is 1+9=10 and denominator is 2+98=100. The ratio is 10%. Averaging the two group percentages gives a different weighting and does not implement the stated member-level metric.

  2. 2.A conversion metric has zero eligible members in a reporting slice. No convention defines a value for that case. What does assigning a displayed rate of 0% silently assert?

    Show answer and explanation
    1. An explicit no-population status kept separate from the rate
    2. A defined zero-rate interpretation for an undefined denominator
    3. A missing value that every aggregate automatically ignores
    4. A rate observed from a nonempty eligible population

    Answer: A defined zero-rate interpretation for an undefined denominator

    Zero population makes the ratio undefined. A report may adopt an explicit display/status convention, but should not conflate no eligible population with an observed positive population having zero conversions.

  3. 3.A report divides purchase-event count by distinct visitors and calls it the fraction of visitors who purchased. Some visitors purchase repeatedly. What numerator matches the stated fraction?

    Show answer and explanation
    1. Qualifying purchase count divided by active purchasing visitors
    2. Distinct purchase IDs divided by the same visitor denominator
    3. Distinct eligible visitors with at least one qualifying purchase
    4. Distinct visitors with no qualifying purchase

    Answer: Distinct eligible visitors with at least one qualifying purchase

    A person-level conversion fraction counts converting people, not repeated events. Its numerator must be a subset of the same eligible visitor population used by the denominator, with compatible scope and identity.

  4. 4.A semantic registry defines margin=net−cost and net=margin+cost, with no independent base for either margin or net. Why can a dependency planner not evaluate these definitions as a finite acyclic calculation?

    Show answer and explanation
    1. The derived definitions form a dependency cycle
    2. A shared cost input must always be counted twice
    3. Subtraction requires both inputs to be nonnegative
    4. The metric names have different character lengths

    Answer: The derived definitions form a dependency cycle

    Both derived metrics require the other first. Algebraic consistency does not provide independent input values, and an acyclic evaluation plan cannot resolve the cycle. At least one definition needs an appropriate independent base or a different explicit model.

  5. 5.Before: high-rate group 9/10 succeeds, low-rate group 20/100. After: high-rate group 80/100, low-rate group 1/10. What pattern occurs?

    Show answer and explanation
    1. Both subgroup rates fall while the pooled rate rises
    2. Both subgroup rates and the pooled rate fall
    3. Both subgroup rates rise while the pooled rate falls
    4. A pooled rate cannot change when both subgroup rates fall

    Answer: Both subgroup rates fall while the pooled rate rises

    The subgroup rates move from 90% to 80% and 20% to 10%. The mix shifts toward the higher-rate group, raising the pooled rate from 29/110 to 81/110. Aggregate movement need not describe within-group movement.

  6. 6.A defined rate rises from 20% to 25%. What absolute percentage-point change and relative percentage increase follow?

    Show answer and explanation
    1. +5 percentage points; +25% relative
    2. +20 percentage points; +25% relative
    3. +25 percentage points; +5% relative
    4. +5 percentage points; +5% relative

    Answer: +5 percentage points; +25% relative

    The absolute difference is 25%−20%=5 percentage points. Relative increase divides by the old rate: (25−20)/20=25%. The two quantities need different labels.

  7. 7.Three audience sets have sizes 10,12,14. Their pairwise intersections have sizes 4,3,5, each including the triple intersection of size 2. What is the union size?

    Show answer and explanation
    1. 36
    2. 24
    3. 26
    4. 38

    Answer: 26

    Inclusion-exclusion gives 10+12+14−4−3−5+2=26. Pairwise overlap subtraction removes triple members too often, so the triple intersection is added back once.

  8. 8.An approximate distinct-count algorithm supplies compatible mergeable states for set union. A rollup retains only each partition's final count estimate. What information is missing for its intended union merge?

    Show answer and explanation
    1. Only the arithmetic mean of the scalar estimates
    2. Only the maximum estimate among the partitions
    3. The compatible states, not merely their scalar estimates
    4. Only each estimate and its partition label

    Answer: The compatible states, not merely their scalar estimates

    Final count estimates do not retain the state needed by the supplied union algorithm. Compatible mergeable states can support the intended approximate rollup; adding displayed counts generally cannot account for overlapping identities.

  9. 9.Two equal-sized batches are [0,2] and [10,12]. Population variance is the mean squared deviation, dividing by N. What is the combined population variance?

    Show answer and explanation
    1. 26
    2. 25
    3. 1
    4. 13

    Answer: 26

    The combined mean is six. Squared deviations are 36,16,16,36, summing to 104; dividing by four gives 26. Averaging within-batch variances of one omits the between-batch mean difference.

  10. 10.Partitions contain [1,2,100] and [3,4,5]. For even N, define the median as the mean of the two middle ordered values. What is the combined median?

    Show answer and explanation
    1. 52.5
    2. 3
    3. 3.5
    4. 4

    Answer: 3.5

    The combined order is 1,2,3,4,5,100, so the middle values are three and four. Their mean is 3.5. Averaging the separate partition medians, two and four, would give three instead.

  11. 11.A metric defines P75 by nearest rank: the sorted value at rank ceil(0.75N), counting from one. Data are [0,10,20,100]. What P75 follows?

    Show answer and explanation
    1. 100
    2. 10
    3. 20
    4. 40

    Answer: 20

    Here N=4 and ceil(0.75×4)=3, so the third sorted value is twenty. An interpolation-based percentile may differ; the percentile convention is part of the metric definition.

  12. 12.A latency report excludes failed and timed-out requests but is labeled latency of all request attempts. What population decision remains unresolved?

    Show answer and explanation
    1. Whether the displayed time unit is milliseconds or seconds
    2. How failed/timed-out attempts enter the claimed metric
    3. Whether successful-request IDs use a numeric type
    4. How successful completions sort before aggregation

    Answer: How failed/timed-out attempts enter the claimed metric

    Latency over successful completions is a narrower population. An all-attempt metric needs an explicit treatment of failures, timeouts, duration endpoints, and any censoring rather than silently discard them.

  13. 13.A histogram of 100 durations has 80 values≤10, another 15 in (10,20], and 5 above 20. P90 uses nearest rank. What can this histogram establish about P90 without finer detail?

    Show answer and explanation
    1. It lies in (10,20]
    2. It is at most 10
    3. It is exactly 15
    4. It is exactly 20

    Answer: It lies in (10,20]

    The 90th value comes after the first eighty but within the next fifteen. The bucket bounds locate it, but the histogram does not identify its exact position inside that bucket.

  14. 14.A reliability metric counts 4 incidents over 200 device-hours of exposure. What unit and value follow for incidents per device-hour?

    Show answer and explanation
    1. 50 device-hours per device
    2. 4 incidents per device regardless of observation time
    3. 2% probability that a device ever has an incident
    4. 0.02 incidents per device-hour

    Answer: 0.02 incidents per device-hour

    The rate is 4/200=0.02 per device-hour. An exposure-based event rate is not automatically a bounded per-device probability, particularly when repeat incidents and unequal observation time are possible.

  15. 15.All days last 24 hours in this model, and now is hour 180. Last 168 hours means [12,180); last seven complete calendar days means [0,168). Events occur at hours 6 and 174. Which are included?

    Show answer and explanation
    1. Neither definition includes either event
    2. Rolling:174 only; complete days:6 only
    3. Both definitions include both events
    4. Rolling:6 only; complete days:174 only

    Answer: Rolling:174 only; complete days:6 only

    Hour six is before the rolling cutoff but inside the complete-day interval. Hour 174 is inside the rolling interval but after the last complete-day endpoint. Similar display names can hide different window definitions.

  16. 16.East contributes 30 units and West 70. A report filters to East but must show East's share of the full two-region total. What denominator must that metric retain?

    Show answer and explanation
    1. 1, because filtering makes every share a count
    2. 100, the defined full-population total
    3. 70, the excluded-region total
    4. 30, the selected-region total

    Answer: 100, the defined full-population total

    The requested share is 30/(30+70)=30%. Recomputing the denominator after selecting only East would produce 100%, answering a different filtered-population question.

  17. 17.A cohort contains 10 created orders, of which 6 complete. Its completion rate is completed cohort orders divided by all created cohort orders. A query globally filters to Completed before computing both counts. What rate can it incorrectly return?

    Show answer and explanation
    1. 0% instead of 60%
    2. 60% instead of 100%
    3. 100% instead of 60%
    4. 10% instead of 6%

    Answer: 100% instead of 60%

    After the global filter, both numerator and denominator contain the six completed orders. The resulting 6/6 is one. Metric-specific eligibility and outcome filters must not silently collapse the denominator population.

  18. 18.A defined signed net metric is charges minus credits. In one slice charges total 4 units and credits total 7. What result follows without an additional clamping rule?

    Show answer and explanation
    1. 0 units automatically
    2. +3 units
    3. −3 units
    4. 11 units

    Answer: −3 units

    The supplied definition gives 4−7=−3. A negative net can be legitimate under a signed measure. Clamping or taking absolute value would change the definition rather than repair arithmetic.

  19. 19.A metric's eligibility rule changes, but its identifier and historical report label remain unchanged. Old and new values are compared as if only business behavior changed. What context needs to be preserved?

    Show answer and explanation
    1. The latest result rounded to the old display precision
    2. The display label shared by both versions
    3. The query execution duration for the newer report
    4. The metric-definition version and its applicability

    Answer: The metric-definition version and its applicability

    Comparability depends on a stable or explicitly revised definition as well as data. Eligibility changes can move results without underlying behavior changing. Version and applicability context should make the interpretation and any restatement explicit.

  20. 20.A cohort has 100 members. At the report cutoff, 60 have a full seven-day observation window; 30 of those return during the defined day-7 interval. What observed day-7 rate among fully observable members follows?

    Show answer and explanation
    1. 60%
    2. 50%
    3. 100%
    4. 30%

    Answer: 50%

    The specified observable population is sixty, and thirty have the qualifying outcome. The rate is 30/60=50%. Treating forty not-yet-observable members as observed failures changes the population and biases that stated estimate.

  21. 21.A new-customer cohort is defined by each person's first qualifying purchase month. A query assigns people to every month in which they purchase. What did it change?

    Show answer and explanation
    1. The cohort membership rule
    2. The currency conversion rule for purchase amounts
    3. The inactivity-gap threshold used for sessions
    4. The calendar format used to print the cohort label

    Answer: The cohort membership rule

    A first-purchase anchor creates one entry cohort per person under that identity rule. Reassigning on every purchase month creates different populations and changes the meaning of subsequent retention comparisons.

  22. 22.A user is observed through day 20 and returns on day 12 only. Day-7 retention means activity in [7,8); rolling day-7 retention means any activity at or after day 7 within the observed horizon. Which outcomes follow?

    Show answer and explanation
    1. Day-7:no; rolling day-7:yes
    2. Both yes
    3. Both no
    4. Day-7:yes; rolling day-7:no

    Answer: Day-7:no; rolling day-7:yes

    Day twelve is outside the day-7 interval but is at or after seven and within the observed horizon. The two definitions ask different questions despite sharing a day number.

  23. 23.Period-specific retention is the fraction of an entry cohort active in each separate day's interval. Members may be inactive and later return. Must this curve be monotonically decreasing?

    Show answer and explanation
    1. Yes; inactivity permanently removes people from this cohort
    2. Yes; a fixed denominator forces nonincreasing numerators
    3. No; activity can resume in a later interval
    4. No; every interval necessarily starts a different cohort

    Answer: No; activity can resume in a later interval

    An activity-return measure is not the same as continuous survival without interruption. With fixed cohort identity, later reactivation can raise a day's retention relative to an earlier day without any data error.

  24. 24.A late earlier purchase changes a person's accepted first-purchase date. The cohort definition uses that date as its anchor. What can change besides the cohort label?

    Show answer and explanation
    1. The business meaning of every other cohort member
    2. Only the printed month name for an unchanged anchor
    3. The relative-age windows used for that person's outcomes
    4. The number of physical purchases necessarily recorded

    Answer: The relative-age windows used for that person's outcomes

    Changing the anchor can shift which cohort contains the person and how later events map to relative-age periods. Cohort attribution and outcome-window recomputation need the chosen history/revision policy.

  25. 25.A funnel contract requires A then B within the same session. One user has A in session S1 and B later in session S2, with no other events. What conversion follows under this contract?

    Show answer and explanation
    1. One conversion because B occurs after A
    2. One conversion attributed to S2 despite its missing A
    3. One conversion because the user identity matches
    4. No qualifying same-session conversion

    Answer: No qualifying same-session conversion

    Ordering across a user's entire history does not satisfy the stated same-session requirement. Session scope, identity, event ordering, and any time bounds must all match the funnel contract.

  26. 26.A funnel requires A before B. A user's only events are B at time 1 and A at time 2. A query checks merely that both labels exist. What does it wrongly infer?

    Show answer and explanation
    1. A conversion despite the reversed sequence
    2. A conversion counted only after sorting labels alphabetically
    3. No conversion because existence flags encode ordering
    4. Two conversions because both labels are present

    Answer: A conversion despite the reversed sequence

    Both-event presence is weaker than ordered progression. The supplied events contain no B after A, so the required funnel is not completed. Sequence semantics need explicit evaluation rather than two independent existence flags.

  27. 27.A funnel allows B within two time units after any A. A user's events are A at 1, A at 9, and B at 10. A query checks only the first A. What does that optimization miss?

    Show answer and explanation
    1. No pair because the latest A always replaces every B
    2. A qualifying pair from A at 1 to B at 10
    3. A qualifying pair from A at 9 to B at 10
    4. Two conversions because every A is automatically complete

    Answer: A qualifying pair from A at 9 to B at 10

    The stated rule allows any A. The later A is one unit before B and qualifies, although the first A is nine units before it. Restricting to the first anchor changes the funnel definition.

  28. 28.Sessionization starts a new session only when the gap since the previous event exceeds 30 minutes. A user's events occur at minutes 0,20,40. How many sessions follow this rule?

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

    Answer: 1

    Each consecutive gap is twenty minutes, so no new session begins after the first event. The total span of forty minutes does not violate a rule based on consecutive inactivity gaps rather than maximum session duration.

  29. 29.A person-level funnel counts a user once if any ordered A→B pair qualifies. One user has two A events followed by two B events, and all four joined pairs qualify. What is that user's numerator contribution?

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

    Answer: 1 user

    The join has pair grain, but the metric counts qualifying people. All four pairs belong to the same user and establish a single person-level conversion. Pair enumeration is not the final counting unit.

  30. 30.A last-touch reporting rule assigns a conversion to the most recent recorded campaign exposure. What does that assignment alone not establish?

    Show answer and explanation
    1. That the campaign causally created the conversion
    2. Which exposure receives credit under the declared rule
    3. Whether the reported allocation follows last-touch ordering
    4. Which exposure has the latest recorded timestamp

    Answer: That the campaign causally created the conversion

    Attribution is a specified assignment rule over observed history. Causal incrementality asks what would have happened under a different exposure, which is not established solely by the last observed touch.

  31. 31.A registered population has two users with activity counts 2 and 0. The requested mean is activity per registered user, including inactive users. What value follows?

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

    Answer: 1

    The numerator is two activities and the registered-user denominator is two, giving one. Restricting the population to active users would give two and answer a different question.

  32. 32.An audience identity policy changes to connect anonymous IDs with later authenticated IDs. What can change in historical distinct-person metrics even if raw events are unchanged?

    Show answer and explanation
    1. Only the numeric precision of the final count
    2. The inclusion of new physical events in the source
    3. Only the timestamp display format of unchanged events
    4. The equivalence classes used to count people

    Answer: The equivalence classes used to count people

    Distinct-person counts depend on the identity relation as well as the event data. Joining identities can collapse previously separate keys. Historical comparability needs the applicable identity-policy version and any restatement convention.

  33. 33.A mean metric is rolled up from partitions containing nullable observations. Which additive state supports the ordinary SQL mean of all non-NULL values?

    Show answer and explanation
    1. Sum of values and count of non-NULL values
    2. Only each partition's final average
    3. Sum of values and total rows including NULLs
    4. Only the maximum value from each partition

    Answer: Sum of values and count of non-NULL values

    The combined mean is total sum divided by the combined count of included values. Partition averages alone omit their weights; total row counts use the wrong denominator when NULL observations are excluded by the mean definition.

  34. 34.A metric adds amounts denominated in two currencies and labels the sum in one currency. No conversion policy or common valuation basis is defined. What is missing?

    Show answer and explanation
    1. Only a wider numeric storage type
    2. An unweighted mean of the two currency codes
    3. A larger number of decimal places on the raw sum
    4. A compatible unit and valuation convention

    Answer: A compatible unit and valuation convention

    Numerical addition does not make incompatible monetary units comparable. A meaningful total requires the intended conversion rates, timing, and scope or separate currency groups. This is a metric-unit contract, not merely a type declaration.

  35. 35.Three exact amounts of 0.005 units must be rounded half upward to two decimals. What totals result from rounding each amount first versus rounding their exact sum once?

    Show answer and explanation
    1. 0.015 versus 0.015
    2. 0.03 versus 0.03
    3. 0.03 versus 0.02
    4. 0.02 versus 0.03

    Answer: 0.03 versus 0.02

    Each amount rounds to 0.01, totaling 0.03. The exact sum is 0.015, which rounds to 0.02. Rounding grain and order are part of a reproducible measure definition.

  36. 36.A query assumes AVG(a)/AVG(b) always equals SUM(a)/SUM(b). Rows are (a,b)=(10,2) and (20,NULL), and ordinary SQL averages ignore NULLs. What values do the expressions give?

    Show answer and explanation
    1. 15 versus 15
    2. 7.5 versus 15
    3. 15 versus 7.5
    4. 7.5 versus 7.5

    Answer: 7.5 versus 15

    AVG(a)=15 and AVG(b)=2, so their ratio is 7.5. SUM(a)=30 and SUM(b)=2, giving fifteen. Different non-NULL counts prevent the average denominators from cancelling.

  37. 37.Daily rows exist only for days 1,2,10, each with amount 1. At day 10, a ROWS frame containing the current and two preceding rows is labeled a three-calendar-day total. What does it actually include?

    Show answer and explanation
    1. Only day 10 because rows automatically mean calendar days
    2. Exactly days 8,9,10 created by the window automatically
    3. Days 1,2,10 rather than only the relevant recent day 10
    4. A zero total because days 8 and 9 are missing

    Answer: Days 1,2,10 rather than only the relevant recent day 10

    A row-count frame counts observations, not elapsed calendar days. It includes three stored rows even across a gap. Calendar-window semantics require the appropriate time condition and any justified date-spine treatment.

  38. 38.Two rows have the same ORDER BY timestamp and amounts 2 and 3. A SUM window uses RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW, with no earlier rows. What sum appears on each peer row?

    Show answer and explanation
    1. 5 on both rows
    2. 2 on the first and 5 on the second, guaranteed
    3. 2 on one row and 3 on the other
    4. 0 on both rows

    Answer: 5 on both rows

    The RANGE frame through CURRENT ROW includes all peers at that ordering value. Both rows therefore see both amounts. A row-based running interpretation would need a suitable frame and ordering contract.

  39. 39.A report needs accounts whose net amount is positive, retaining all entries in each net. Account A has entries 10 and −8; B has 1 and −5. A query removes negative entries before grouping. What result does it substitute for the intended one?

    Show answer and explanation
    1. Only A=2, exactly the intended result
    2. A=10 and B=1 instead of only A=2
    3. No accounts because every account has a negative entry
    4. A=2 and B=−4, with the intended group filter applied

    Answer: A=10 and B=1 instead of only A=2

    The intended group-level condition is applied after computing net sums: A=2 qualifies and B=−4 does not. Filtering component rows first changes both the measure and qualifying groups.

  40. 40.A rollup output represents both an ordinary NULL region group and an all-regions subtotal with a NULL region value. What metadata can distinguish their meanings?

    Show answer and explanation
    1. Replacing every NULL region with the same label
    2. Grouping-level indicators or an equivalent explicit row role
    3. Sorting NULL region values before non-NULL values
    4. The raw region field alone, with both values NULL

    Answer: Grouping-level indicators or an equivalent explicit row role

    A subtotal marker is different from missing dimension data. Grouping metadata or an explicit aggregate-level field preserves that distinction. Treating all NULLs as one label can conflate separate metric populations.

  41. 41.A viewer can query only a permitted region's rows. A metric computes that region's amount divided by all rows visible to the viewer, returning 100%. What population does that denominator describe?

    Show answer and explanation
    1. All regions because a denominator removes row restrictions
    2. Only the forbidden population, since visible rows form the numerator
    3. The global population inferred by scaling the visible count
    4. The visible population, not necessarily the whole organization

    Answer: The visible population, not necessarily the whole organization

    The query's data scope affects its denominator. A global-share claim needs an appropriately authorized global aggregate and clear semantics; a local visible total should not be mislabeled as the complete organization total.

  42. 42.A metric cache key includes SQL text but omits the viewer's effective row-filter context. Two viewers execute the same SQL with different permitted populations. What risk follows?

    Show answer and explanation
    1. A cached result can reflect the wrong population for a viewer
    2. SQL text makes all permission-dependent populations equivalent
    3. A scalar cache hit is automatically filtered again by row permissions
    4. Omitting viewer context changes performance but never result scope

    Answer: A cached result can reflect the wrong population for a viewer

    The evaluated population is part of the result's meaning. Cache identity or isolation must reflect the relevant authorization/filter context and metric state. Matching query text alone does not establish equivalent results.

  43. 43.A derived metric changes formula from version V1 to V2, but a cache key retains only its unversioned display name. What can a cache hit return?

    Show answer and explanation
    1. A result from the superseded metric definition
    2. Only a V2 result because the display name has not changed
    3. Only a rendering change, because cached scalar values have no definition
    4. A blend whose formula is automatically inferred from both versions

    Answer: A result from the superseded metric definition

    A display name is not necessarily an immutable definition identity. Cached results must be scoped to the relevant formula, filters, inputs, and definition/version context to preserve the intended meaning.

  44. 44.A metric rises from 100 to 200, then returns from 200 to 100. What relative changes follow in sequence?

    Show answer and explanation
    1. +50%, then −100%
    2. +100%, then −100%
    3. +50%, then −50%
    4. +100%, then −50%

    Answer: +100%, then −50%

    Relative change uses the starting value for each interval. The rise is 100/100=100%; the fall is −100/200=−50%. Opposite absolute changes need not have symmetric percentage changes.

  45. 45.A metric value is multiplied by 1.10 in one period and by 0.90 in the next. What total relative change follows?

    Show answer and explanation
    1. 0%
    2. −1%
    3. +1%
    4. −20%

    Answer: −1%

    The combined factor is 1.10×0.90=0.99. Period-relative changes compound multiplicatively rather than cancel by adding +10% and −10%.

  46. 46.A report compares a fully observed 30-day period with the first 10 observed days of the next period, labeling the difference full-period growth. No projection model is defined. What is unaligned?

    Show answer and explanation
    1. The numeric ability to subtract two observed counts
    2. The observation-window coverage
    3. Only the report table column order
    4. Only the calendar label used for identical time coverage

    Answer: The observation-window coverage

    The observed populations cover different amounts of the intended period. A comparable-to-date or explicit projection measure can be defined, but partial observed activity should not be presented as an already observed full-period value.

  47. 47.User A has one event with value 100. User B has nine events with value 0. The requested metric gives each user equal weight after averaging their own events. What value follows?

    Show answer and explanation
    1. 0
    2. 10
    3. 100
    4. 50

    Answer: 50

    The per-user means are 100 and zero; their equal-weight mean is fifty. Averaging all ten events gives ten and weights users by event count, which is a different unit-of-analysis contract.

  48. 48.A completion-duration metric includes only workflows that finish during the report period. It is presented as the eventual duration of all workflows opened during that period. What population differs?

    Show answer and explanation
    1. Seconds versus minutes for the same population
    2. Completion-period cases versus opening-cohort cases
    3. Opening dates versus completion dates that select identical cases
    4. Only the display format of the completion timestamp

    Answer: Completion-period cases versus opening-cohort cases

    Open and completed cohorts need not contain the same cases. Unfinished cases and cross-period completions affect the interpretation. A duration metric must specify its cohort and treatment of incomplete observations.

  49. 49.Two machines are each available for 60 minutes, with 90 machine-minutes busy in total. Utilization is busy machine-time divided by available machine-time. What result follows?

    Show answer and explanation
    1. 75%
    2. 90%
    3. 150%
    4. 50%

    Answer: 75%

    Available exposure is 2×60=120 machine-minutes, so utilization is 90/120=75%. Dividing by only sixty wall-clock minutes mixes a parallel-resource numerator with the wrong denominator.

  50. 50.A report divides a current work-in-process count by a historical throughput rate and labels the result proven mean cycle time. The units reduce to time. What does dimensional consistency alone fail to establish?

    Show answer and explanation
    1. Only the arithmetic rule for dividing count by count-per-hour
    2. A requirement to express the final result in counts rather than hours
    3. The process/population and flow-model assumptions for that inference
    4. A requirement to replace throughput by its reciprocal first

    Answer: The process/population and flow-model assumptions for that inference

    Correct units are necessary for many relationships but do not prove their assumptions apply. A process-flow inference needs compatible populations, time scope, and the conditions of its governing model, rather than one instantaneous count alone.

  51. 51.A point estimate reports 12 qualifying outcomes among 100 observed eligible cases. A chart labels 12% as a guaranteed exact rate for every future population. What is unsupported?

    Show answer and explanation
    1. The observed ratio 12/100
    2. The ability to report a scoped descriptive fraction
    3. The guarantee about unobserved future populations
    4. The observed difference between 12 successes and 88 other cases

    Answer: The guarantee about unobserved future populations

    An observed fraction describes its measured population under the definition. Generalization requires appropriate assumptions and uncertainty analysis; the point estimate alone does not guarantee an exact future proportion.

  52. 52.A positive-valued metric reports exp(mean(log x)) for observations 1 and 9, using natural logarithms. What value and interpretation follow?

    Show answer and explanation
    1. 3, the geometric mean rather than the arithmetic mean 5
    2. 5, exactly the arithmetic mean
    3. 9, the larger observed value
    4. 10, the sum of the observations

    Answer: 3, the geometric mean rather than the arithmetic mean 5

    The mean log is (log1+log9)/2=log3, whose exponential is three. Transforming an average back through a nonlinear function changes its meaning; it is not generally the arithmetic average of the original values.

  53. 53.A metric is defined as exp(mean(log x)) over strictly positive observations. A new batch includes zero. A developer silently replaces zero by 0.001 so the query runs. What changed?

    Show answer and explanation
    1. Only the printed zero symbol, while every calculation stays identical
    2. The input interpretation and resulting metric definition
    3. Nothing, because all positive replacements have the same logarithm
    4. Only a precision change applied after the final average

    Answer: The input interpretation and resulting metric definition

    Zero is outside the stated log-domain contract. Substituting an arbitrary positive value changes the data and result. The source meaning and a defined exclusion/alternative metric policy must resolve the case.

  54. 54.A worker processes 10 items at 10 items/hour, then 10 items at 30 items/hour. What is overall throughput across the combined work and elapsed processing time?

    Show answer and explanation
    1. 40 items/hour
    2. 20 items/hour
    3. 10 items/hour
    4. 15 items/hour

    Answer: 15 items/hour

    Elapsed times are 1 hour and 1/3 hour. Overall rate is 20/(4/3)=15 items/hour. Equal amounts of work do not give equal time weights to the two rates.

  55. 55.For two observations 1 and 9, define an even-sample median as the arithmetic mean of the middle pair. What are median(x²) and [median(x)]²?

    Show answer and explanation
    1. 5 and 25
    2. 25 and 25
    3. 41 and 41
    4. 41 and 25

    Answer: 41 and 25

    The squared observations are one and eighty-one, whose conventional midpoint median is forty-one. The original midpoint median is five, and its square is twenty-five. This interpolation convention does not generally commute with a nonlinear transform.

  56. 56.A signed flow metric has entries +5 and −3. Gross movement is defined as SUM(abs(entry)), while absolute net is abs(SUM(entry)). What values follow?

    Show answer and explanation
    1. Both 8
    2. Both 2
    3. Gross 8; absolute net 2
    4. Gross 2; absolute net 8

    Answer: Gross 8; absolute net 2

    Absolute values before summing preserve both movement magnitudes: 5+3=8. Netting first gives 5−3=2 and then magnitude two. These are different measure definitions, not alternate displays of one quantity.

  57. 57.An engine's integer division truncates toward zero. A rate query divides integer counts 1/4 without conversion. What can it return instead of the defined fractional rate?

    Show answer and explanation
    1. 1 instead of 0.25
    2. 0.25 in every engine regardless of operand types
    3. 0 instead of 0.25
    4. 4 instead of 0.25

    Answer: 0 instead of 0.25

    Under the supplied integer-division rule, the fraction truncates to zero. The expression's numeric type must support the metric's intended fractional result. Engine and type semantics are part of executable definitions.

  58. 58.Two exact audience bitmaps over the same four-identity universe are 1011 and 1100. A union metric counts set bits after bitwise OR. What count follows?

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

    Answer: 4

    Bitwise OR gives 1111, containing four set bits. The individual counts are three and two, but one identity overlaps. A shared universe and the stated union operation make this an exact set calculation.

  59. 59.Daily distinct-user states use independently changed daily pseudonym mappings. The same person therefore has unrelated keys on different days. What must be resolved before interpreting their union as weekly distinct people?

    Show answer and explanation
    1. Only a common numeric storage type for the unrelated pseudonyms
    2. A rule that concatenating all daily states removes real-person duplicates
    3. Only each day’s final scalar audience count
    4. Cross-day identity compatibility under the authorized metric policy

    Answer: Cross-day identity compatibility under the authorized metric policy

    A union combines the represented keys, not unstated real-world equivalences. Rotating mappings can make one person appear as several identities. The weekly metric needs a compatible and authorized identity interpretation rather than an unexplained scalar rollup.

  60. 60.One logical request has three separately identified attempts: two failures followed by one success. What are attempt success fraction and logical-request eventual success fraction under these explicit units?

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

    Answer: 1/3 and 1

    One of three attempts succeeds, so the attempt fraction is one third. The single logical request eventually succeeds, so its request-level outcome is one. Both can be valid metrics if the unit and outcome window are labeled correctly.

  61. 61.An error-rate metric reads only completion logs. During an outage, some accepted requests produce no completion log at all. What population can be missing from its denominator and outcomes?

    Show answer and explanation
    1. Only the ordering of the completion rows already retained
    2. Only requests whose successful completion was logged
    3. Accepted requests with absent completion records
    4. Only duplicated requests that have several terminal rows

    Answer: Accepted requests with absent completion records

    Completion-only observations can exclude the failures or unfinished cases of greatest interest. A metric over accepted attempts needs appropriate intake/coverage evidence and a defined treatment of missing terminal outcomes.

  62. 62.A preaggregation stores total amount by month and region, discarding product identity. A metric engine promises arbitrary product filtering using only that table. What information is unavailable?

    Show answer and explanation
    1. Only the display label for the retained month
    2. The product-level contributions needed for the filter
    3. The order in which the same month/region rows are read
    4. The regional total that is explicitly stored

    Answer: The product-level contributions needed for the filter

    A coarser aggregate cannot generally reconstruct a dimension it discarded. Product-filtered queries need adequate retained state or another valid source/aggregation plan. Reusing the total under a product label does not recover that information.

  63. 63.Only complete daily totals are retained. A query requests an exact total from noon on day A through noon on day B. What limitation remains without within-day information?

    Show answer and explanation
    1. The partial boundary-day contributions are not identifiable
    2. Each boundary day necessarily contributes exactly half its total
    3. Replacing dates with timestamps recovers the discarded intraday values
    4. The exact result follows by choosing either whole boundary day

    Answer: The partial boundary-day contributions are not identifiable

    Whole-day aggregates omit the distribution within each day. An exact partial-day result needs finer data or a justified rule that changes the metric to an estimate. Timestamp formatting cannot reconstruct discarded detail.

  64. 64.Eligibility means a customer's lifetime amount exceeds 100 units. A month-specific metric should include eligible customers' activity in that month. A query first limits history to the month, then computes lifetime eligibility. What can change?

    Show answer and explanation
    1. The eligibility population because earlier history was removed
    2. The permanent identity of every customer in the month
    3. Only the storage order of the same eligible rows
    4. Only the number format of the lifetime threshold

    Answer: The eligibility population because earlier history was removed

    A lifetime condition has a different time scope from the displayed month's activity. Applying the month filter to its input changes the eligibility calculation. Filter dependencies and evaluation scopes need to preserve the definition.

  65. 65.A metric is a team's share of its department's amount for month M. The current filters select month M, department D, and team T. What denominator scope matches the definition?

    Show answer and explanation
    1. Keep M and D, but remove only the team selector
    2. Keep M, D, and T in the denominator
    3. Keep M and T, but remove department D
    4. Remove M, D, and T from the denominator

    Answer: Keep M and D, but remove only the team selector

    The denominator is the whole selected department for the same month. Removing all filters would create a broader comparison, while retaining the team filter would collapse the share to one. Filter scope is part of the measure.

  66. 66.A telemetry counter resets on process restart. Its recorded values go from 100 to 5 across a restart. A metric treats the difference −95 as negative completed work. What semantics were omitted?

    Show answer and explanation
    1. Only the unit used to print an integer
    2. A guarantee that every counter difference is real negative work
    3. The assumption that resets cannot happen when a process ID changes
    4. Counter lifecycle/reset handling

    Answer: Counter lifecycle/reset handling

    A reset breaks the within-instance cumulative-count interpretation. A rate/delta calculation needs the counter's lifecycle and defined reset behavior rather than assume every decrease is a negative business event.

  67. 67.One interval records 10 events over 1 second and the next 10 over 9 seconds. What combined event rate follows over the full observed time?

    Show answer and explanation
    1. About 5.56 events/second
    2. 20 events/second
    3. 10 events/second
    4. 2 events/second

    Answer: 2 events/second

    Total events are twenty over ten seconds, giving two per second. An unweighted average of interval rates gives equal weight to unequal elapsed durations and answers a different question.

  68. 68.A session has one recorded event, so last_event_time−first_event_time equals zero. A report labels that as proven actual engagement time. What remains unmeasured by that event span alone?

    Show answer and explanation
    1. The arithmetic difference between identical timestamps
    2. The presence of one event in the recorded session
    3. Only the unit conversion from seconds to minutes
    4. Actual engagement outside the observed event endpoints

    Answer: Actual engagement outside the observed event endpoints

    An observed event span is a particular proxy. A single event does not establish when engagement began or ended in reality. A duration definition may require additional signals or a stated inference convention.

  69. 69.An organization defines external receipts as units entering from outside its boundary. Five units transfer from one internal site to another. A report sums every site receipt and adds five external units. What scope condition is missing?

    Show answer and explanation
    1. Only the destination site’s display name
    2. Whether the receipt is positive at the receiving site
    3. Whether the counterparty is outside the organization
    4. Only whether the transfer was stored as one or two rows

    Answer: Whether the counterparty is outside the organization

    A site-level receipt and an organization-boundary receipt are different events/scopes. Rolling site activity upward needs the defined internal-transfer treatment. Aggregation alone does not change the boundary crossed by the movement.

  70. 70.A delivery contract says no new event with time strictly below watermark W can arrive. W=24. A daily metric covers [0,24), and all already delivered events have been processed. What does this contract establish about further source arrivals for that interval?

    Show answer and explanation
    1. A maximum observed event time of 24 would prove the same contract
    2. No further events for [0,24) under the stated contract
    3. No events with time exactly 24 can arrive either
    4. The interval is complete even if delivered rows remain unprocessed

    Answer: No further events for [0,24) under the stated contract

    Every timestamp in [0,24) is strictly below W. The contractual watermark excludes further arrivals there, and the separate processing condition includes delivered rows. Observing a large event timestamp alone supplies neither guarantee.

  71. 71.A report supports both as-published values and restated values after accepted late data. What context must a comparison retain to distinguish them?

    Show answer and explanation
    1. Only the physical order of the report rows
    2. The data/revision cutoff and metric-definition context
    3. Only the current unversioned report label
    4. Only the date on which the browser loaded the page

    Answer: The data/revision cutoff and metric-definition context

    Different accepted data cutoffs can yield different values under the same formula, and definition revisions can change meaning too. Reproducible comparisons need the relevant context rather than one unqualified latest result.

  72. 72.A chart combines fully observed daily values with a model's forecast for unobserved future days, using one indistinguishable label. What interpretation must be made explicit?

    Show answer and explanation
    1. Only the type used to store both sets of numeric outputs
    2. Whether future labels sort after historical labels
    3. Only the order in which chart points were inserted
    4. Which values are observed and which are projected

    Answer: Which values are observed and which are projected

    Observation and projection use different evidence. A projected metric can be useful, but its model, horizon, and status should not be confused with measured activity under the same label.

  73. 73.An account-level measure is requested by device model. Accounts can use several models, but no account-to-device attribution rule exists. What must a semantic planner establish before allowing that drilldown?

    Show answer and explanation
    1. Only the existence of a foreign-key path to device models
    2. An assumption that equal allocation follows from every join path
    3. A supported attribution/grain relationship or an explicit restriction
    4. Only a DISTINCT operation on repeated numeric account amounts

    Answer: A supported attribution/grain relationship or an explicit restriction

    A join path does not by itself define how an account-level amount belongs to multiple device models. Supported dimension/measure relationships need cardinality and attribution semantics, or the query can fabricate a rollup interpretation.

  74. 74.A metric engine uses SUM for every rollup, including distinct audiences, stored percentile values, and period-end balances. What metadata is missing?

    Show answer and explanation
    1. Only the display labels assigned to the grouping columns
    2. Only a common numeric output type for all metrics
    3. Each metric's permitted aggregation behavior and sufficient state
    4. A rule that every rollup sums the previous scalar output

    Answer: Each metric's permitted aggregation behavior and sufficient state

    Different measures have different rollup properties. Scalar distinct counts and quantiles generally do not combine by summation, and state measures need appropriate temporal treatment. Executable semantic definitions must encode the supported operations.

  75. 75.A metric moves from 1.041 to 1.049. Both are displayed as 1.0 at one decimal place. A change calculation subtracts the display values. What information does it lose?

    Show answer and explanation
    1. A guarantee that the exact values are equal
    2. The nonzero underlying change of 0.008
    3. Only an irrelevant difference in row order
    4. The fact that both display strings can be read

    Answer: The nonzero underlying change of 0.008

    Presentation rounding can erase changes present in the underlying values. A measure should use the defined precision and rounding stage, rather than silently treat rounded display text as its analytical source.

  76. 76.Region A's highest score is 10 and region B's is 9. A report requests the highest-scoring member within each region. A query selects only the single global highest score first. What requested result is lost?

    Show answer and explanation
    1. Region A's global winner
    2. Region B's within-region winner
    3. The ability to order numeric scores
    4. A guarantee that regions have equal maximum scores

    Answer: Region B's within-region winner

    Top selection has a grouping scope. A global limit before region-wise ranking discards groups that should still contribute their own winners. The metric/query must preserve the requested partition semantics.

  77. 77.Scores are [100,100,90]. The contract includes everyone tied at the highest score. A query retains ROW_NUMBER()=1 with an arbitrary tie order. What cardinality mismatch can occur?

    Show answer and explanation
    1. Exactly two guaranteed members from ROW_NUMBER()=1
    2. One returned member instead of both top-scoring members
    3. No returned members because every score is tied
    4. Three returned members instead of two

    Answer: One returned member instead of both top-scoring members

    ROW_NUMBER chooses one position even among equal scores. A tie-inclusive highest-score rule needs suitable rank/value semantics, not an arbitrary single-row selection. The desired tie policy must be explicit.

  78. 78.A metric wants the last value of an entire time-ordered partition on every row. LAST_VALUE uses a frame ending at CURRENT ROW; values are 2 at time 1 and 9 at time 2. What issue appears on the first row?

    Show answer and explanation
    1. Its frame yields 2 rather than the whole-partition last value 9
    2. Every last-value metric is undefined for two rows
    3. It must yield 9 because LAST_VALUE ignores window frames
    4. The partition is empty until the second timestamp arrives

    Answer: Its frame yields 2 rather than the whole-partition last value 9

    LAST_VALUE operates on its window frame. A current-row-ending frame need not include the partition's final row. The query needs a frame or equivalent aggregation plan matching the intended whole-period last value.

  79. 79.Sorted values are [4,4,9]. For each peer, percent_rank=(rank−1)/(N−1), while cume_dist counts values≤the peer divided by N. What do the two metrics give on either value-4 row?

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

    Answer: 0 and 2/3

    Both value-four rows have rank one, so percent_rank is zero. Two of three values are at most four, so cume_dist is two thirds. Rank-position and cumulative-proportion functions have different definitions, especially at ties.

  80. 80.A population has 100 members. Forty observed scores are all 8; sixty scores are unknown but bounded from 0 to 10. What range can the full-population mean occupy from this information alone?

    Show answer and explanation
    1. 3.2 to 9.2
    2. Exactly 8
    3. 0 to 10 with no tighter bound possible
    4. 3.2 to 8

    Answer: 3.2 to 9.2

    Known scores contribute 40×8=320. Unknown scores contribute between zero and 600. Dividing the total range [320,920] by one hundred gives [3.2,9.2]. The observed-only mean does not uniquely identify the full-population mean.

  81. 81.A supplied weighted-total estimator is Σy_i/π_i over sampled items. Two sampled contributions are y=10 with inclusion probability 0.5 and y=20 with probability 0.25. What estimator value follows?

    Show answer and explanation
    1. 60
    2. 15
    3. 100
    4. 30

    Answer: 100

    The terms are 10/0.5=20 and 20/0.25=80, summing to one hundred. This is the specified sampling-based estimator, not a claim that the observed unweighted sum thirty equals the population's exact total.

  82. 82.Two binary outcome metrics are measured on the same people. Their separate success counts are known, but which people succeeded on both is not. What is missing for a paired comparison's joint variation?

    Show answer and explanation
    1. Only the two marginal display percentages
    2. Only a change from percentages to integer marginal counts
    3. The joint/paired outcome information
    4. Only the fact that the two sample sizes match

    Answer: The joint/paired outcome information

    Marginal counts do not determine overlap or covariance. Different paired outcomes can produce the same separate rates while changing the variation of paired differences. The comparison must use the applicable joint information and design.

  83. 83.A reported rate uses the supplied smoothing formula (successes+1)/(trials+2). With zero observed trials, what value and interpretation follow?

    Show answer and explanation
    1. An observed 50% fraction among zero trials
    2. An observed zero fraction forced by no trials
    3. A raw fraction with denominator two measured trials
    4. 0.5 from the smoothing rule, not an observed success fraction

    Answer: 0.5 from the smoothing rule, not an observed success fraction

    The formula gives 1/2 using its added terms. No observed trial supplies that fraction. The result should retain its smoothing/model interpretation rather than be mislabeled as a raw empirical outcome rate.

  84. 84.A score moves from the 80th percentile position to the 90th in a reference population. Does this alone establish a 10% increase in its raw numeric score?

    Show answer and explanation
    1. Yes; the raw score increased by ten percent of its previous value
    2. Yes; ten percentile points must mean ten raw score units
    3. Yes; every percentile interval spans the same raw-score distance
    4. No; percentile position does not determine raw-score distance

    Answer: No; percentile position does not determine raw-score distance

    Percentile position describes ordering within a reference distribution. The raw-score spacing depends on that distribution and its conventions. A ten-point percentile-position change is not automatically a ten-percent raw-value change.

  85. 85.Five workflows belong to one cohort. Completed durations are 1,2,3; two remain open after 100 time units each. If those two eventually complete at durations≥100, what is the cohort's eventual ordinary median?

    Show answer and explanation
    1. 3
    2. 2
    3. 100
    4. 21.2

    Answer: 3

    The final ordered durations have 1,2,3 as their first three values and the other two at least one hundred. The middle of five is therefore three. The median of completed cases alone, two, describes a different population.

  86. 86.A metric defines a capped mean by replacing values above 10 with 10, then averaging. Observations are [1,1,100]. What capped and uncapped means follow?

    Show answer and explanation
    1. 1 and 34
    2. 34 and 4
    3. 10 and 34
    4. 4 and 34

    Answer: 4 and 34

    Capping gives [1,1,10], whose mean is four. The original sum is 102 over three observations, giving 34. A capped statistic is a distinct measure, not merely a display format for the raw mean.

  87. 87.A latency objective accepts actual duration≤5.00 ms. A request takes 5.04 ms but displays as 5.0 ms after rounding to one decimal. A classifier tests the display value. What can happen?

    Show answer and explanation
    1. Every request displayed as 5.0 must have identical actual duration
    2. The actual duration necessarily becomes 5.00 ms
    3. Rounding cannot affect threshold classification
    4. A failing request is classified as passing

    Answer: A failing request is classified as passing

    The actual value exceeds five, while its rounded display equals five and passes the altered comparison. Classification must use the specified precision and boundary rule rather than an unintended presentation-stage value.

  88. 88.A latency metric subtracts timestamps from two machines with an unknown clock offset. It observes a negative duration and clamps it to zero. What measurement issue remains unresolved?

    Show answer and explanation
    1. Only whether negative durations sort before positive durations
    2. Whether the timestamps share a valid elapsed-time basis
    3. Whether zero is a valid numeric value for storage
    4. Only the printed unit suffix on an otherwise accurate duration

    Answer: Whether the timestamps share a valid elapsed-time basis

    Cross-clock subtraction needs a justified time relationship. Clamping can hide an offset or timestamp error without measuring the elapsed duration correctly. The metric's clock and endpoint semantics are part of its definition.

  89. 89.Three requests have stage-A durations [1,4,9] and stage-B durations [9,4,1] in matching order. P95 uses nearest rank. What are P95 of end-to-end sums and the sum of separate stage P95s?

    Show answer and explanation
    1. 18 and 18
    2. 8 and 18
    3. 10 and 10
    4. 10 and 18

    Answer: 10 and 18

    Per-request totals are [10,8,10], so nearest-rank P95 is ten. Each stage's P95 is nine, summing to eighteen. Marginal percentile sums need not equal the percentile of paired end-to-end durations.

  90. 90.Events with distinct IDs have amounts 10 and 20. A join repeats each event three times. COUNT(DISTINCT event_id) still reports two. What can SUM(amount) report despite that apparently correct count?

    Show answer and explanation
    1. 90 instead of 30
    2. 30, guaranteed by the correct distinct count
    3. 2 instead of 30
    4. Zero because duplicate amounts cancel

    Answer: 90 instead of 30

    The distinct-count operator resists this particular duplication, but SUM repeats every amount three times. One measure's invariance does not establish that the same joined relation is safe for all measures.

  91. 91.A churn report reads only currently active accounts. Churned accounts were removed from that table before its numerator is built. What population information is needed for the intended churn fraction?

    Show answer and explanation
    1. Only a distinct count of the current active account IDs
    2. The defined at-risk cohort and its terminal outcomes
    3. Only the current active-row count
    4. Only the most recent update timestamp of surviving accounts

    Answer: The defined at-risk cohort and its terminal outcomes

    A churn measure needs the appropriate starting/exposure population and outcome history. Selecting survivors first can remove the events the metric is meant to count. Current-state membership is not automatically the required cohort.

  92. 92.An aggregate stores only count=3, sum=15, and minimum=1. The row with value 1 is removed. Can the exact new minimum be recovered from that state alone?

    Show answer and explanation
    1. Yes; subtract the deleted value from the old minimum
    2. Yes; divide the new sum by the new count to obtain the minimum
    3. No; different remaining values can share the same retained state
    4. Yes; retain one because it was the minimum before deletion

    Answer: No; different remaining values can share the same retained state

    Original datasets [1,5,9] and [1,4,10] share that state. Removing one leaves minima five and four. Count and sum can be adjusted with the removed value, but the exact next minimum needs more information or recomputation.

  93. 93.A mean's retained state is sum=15 and non-NULL count=3. A known non-NULL observation of 9 is deleted. What exact mean follows for the remaining observations?

    Show answer and explanation
    1. −4
    2. 3
    3. 5
    4. 6

    Answer: 3

    Update sum to 15−9=6 and count to 3−1=2, then divide to get three. The final scalar mean alone is not an additive deletion state; the sufficient components matter.

  94. 94.Window audience sets are A={u1,u2} and B={u2,u3}. A stored union is {u1,u2,u3}. When A expires, a system simply removes every A member from that union. What remaining member does it lose incorrectly?

    Show answer and explanation
    1. u2, which still belongs to B
    2. u3, which was never in the union
    3. u1, which belongs only to expired A
    4. No member; set union is always invertible by subtraction

    Answer: u2, which still belongs to B

    Naive subtraction leaves only u3, but the correct remaining B set is {u2,u3}. Union state alone does not record membership multiplicity across contributing partitions. Exact eviction needs appropriate retained support or recomputation.

  95. 95.Revenue per order is 12 currency units/order. Cost per shipped item is 4 currency units/item. A registry labels their difference 8 as margin per order without an item/order relationship. What is missing?

    Show answer and explanation
    1. A compatible denominator grain for the subtraction
    2. Only the choice between displaying 8 and 8.00
    3. A rule to divide every result by currency units
    4. A numeric type that can represent the integer eight

    Answer: A compatible denominator grain for the subtraction

    The operands have different denominator units. Cost per item must be related to the appropriate orders and item counts before a per-order margin can be derived. Subtracting scalar numbers does not reconcile their populations or units.

  96. 96.Prediction errors are [0,4]. Define MAE=mean(abs(error)) and RMSE=sqrt(mean(error²)). What values follow?

    Show answer and explanation
    1. Both 2
    2. MAE=2; RMSE=√8
    3. Both 4
    4. MAE=√8; RMSE=2

    Answer: MAE=2; RMSE=√8

    Absolute errors average to (0+4)/2=2. Squared errors average to (0+16)/2=8, then square root gives √8. The metrics aggregate error differently and have distinct sensitivity to larger errors.

  97. 97.A rolling metric uses the last five time units and calls the current clock internally. One event is at time 10. At now=14 it is included; at now=16 it is excluded. A cache key ignores evaluation time. What context is missing?

    Show answer and explanation
    1. Only the SQL text, which is identical at both times
    2. Only the source insertion timestamp, unchanged since time 10
    3. The effective window/evaluation-time context
    4. Only the immutable row ID of the unchanged event

    Answer: The effective window/evaluation-time context

    Time-dependent queries can change while source rows and query text stay unchanged. Cache identity or expiration must respect the metric's evaluation time and window bounds under its freshness contract.

  98. 98.A coherent old snapshot has 8 eligible and 8 successful cases; a new snapshot has 10 and 10. A query combines the new numerator with the old denominator. What apparent rate results?

    Show answer and explanation
    1. 80%, despite both snapshots having 100%
    2. 125%, despite both coherent snapshots having 100%
    3. 100%, because numerator and denominator labels match
    4. 0%, because different snapshots cannot be divided numerically

    Answer: 125%, despite both coherent snapshots having 100%

    The mixed result is 10/8=1.25. A fraction above one can reflect inconsistent input versions rather than a legitimate subset count. Numerator, denominator, identity, filters, and data context must align.

  99. 99.A population has 60 successes, 20 failures, and 20 pending outcomes. Failure rate is defined as failures divided by all 100 cases. What does 1−success_rate yield instead?

    Show answer and explanation
    1. 25%, the failure fraction among terminal outcomes
    2. 40%, the not-success share rather than the 20% failure rate
    3. 60%, the observed success fraction
    4. 20%, exactly the failure rate

    Answer: 40%, the not-success share rather than the 20% failure rate

    Failure is not the full complement of success when a third outcome exists. The complement includes both failed and pending cases. The outcome partition is part of the metric definition.

  100. 100.Two audience groups contain 12 and 9 distinct people. Their overlap is unknown, and there are no other groups. What exact bounds follow for their distinct union size?

    Show answer and explanation
    1. 12 to 21 inclusive
    2. Exactly 21
    3. 3 to 9 inclusive
    4. Exactly 12

    Answer: 12 to 21 inclusive

    The union is at least the larger group size, twelve, and at most the sum, twenty-one. Different overlaps achieve values within those bounds. Without overlap information, summing or choosing the maximum is not uniquely justified.

  101. 101.Two cohort members enter regions E and W respectively. The E entrant later moves to W and converts; the W entrant does not convert. Rates must group by entry region with fixed cohort denominators. What regional rates follow?

    Show answer and explanation
    1. E=0%; W=100%
    2. Both 100%
    3. Both 50%
    4. E=100%; W=0%

    Answer: E=100%; W=0%

    Each entry-region cohort has one member. The qualifying conversion belongs to the E entrant, so E is 1/1 and W is 0/1. Conversion-time location is a different dimension role and must not replace the stated entry-region attribution.