The interview problem
A customer is piloting an AI assistant that explains equipment alerts. Two vendors send fields named temperature and duration, but the sources use different units. The customer says the model is unreliable and asks you to retrain it before next week's launch. Investigate, propose a repair, and define evidence for a safe rollout.
Original FDE practice, not a reported interview. All customer details, records and acceptance thresholds are hypothetical. Sources retrieved September 28, 2026; interview date not applicable.
1. Find the meaning of the numbers
Ask for one disputed alert and trace it from vendor payload to normalized record, model feature, generated explanation and displayed value. Obtain the source contract and firmware version rather than infer units solely from ranges. A value of 86 could be Fahrenheit, Celsius, a temperature difference or a sensor error.
Clarify whether duration is elapsed seconds, milliseconds, machine-running time or time between two wall-clock timestamps. Confirm whether temperature means an instantaneous reading, a window average, a maximum or a change from baseline. Units alone cannot resolve those distinctions.
Contain the affected workflow while investigating: route uncertain-source alerts to a review queue and label missing context. Keep unaffected sources operating if isolation is reliable. Record the scope and owner of the temporary restriction, with a rollback route for the repair.
2. Agree on a typed measurement contract
| Field | Purpose | Example |
|---|---|---|
| quantity kind | Distinguish meanings | absolute temperature vs temperature change |
| value and unit | Interpret the number | 86 degrees Fahrenheit |
| measurement window | Explain aggregation | maximum over a specified 60-second interval |
| source and version | Select an approved mapping | vendor B, firmware 4, contract 2 |
| quality and provenance | Expose uncertainty | measured, missing, invalid or inferred |
| transform version | Reproduce the feature | temperature-normalizer-v3 |
Keep the raw payload and canonical representation together or linked through a stable record ID. Canonical units might be seconds for elapsed duration and Celsius for displayed absolute temperature, with quantity kinds explicitly represented. Models needing thermodynamic ratios should use an appropriate absolute scale, not divide Celsius values casually.
Use a controlled unit vocabulary and tested conversions. A standards-based unit code helps encode units, but the customer still owns definitions such as what starts a duration and which samples count toward an average. Assign one domain owner and one integration owner to approve each mapping.
3. Demonstrate the error numerically
Vendor A reports an absolute temperature of 30 °C and elapsed duration of 2.5 seconds. Vendor B reports the same physical values as 86 °F and 2,500 milliseconds.
temperature_C = (86 − 32) / 1.8 = 30 duration_s = 2,500 / 1,000 = 2.5
Assume the temperature is constant over the stated interval. Suppose an illustrative feature is excess temperature above a 25 °C baseline multiplied by exposure time:
correct feature = max(0, 30 − 25) × 2.5 = 12.5 °C·s naive feature = max(0, 86 − 25) × 2,500 = 152,500 numerical inflation = 152,500 / 12.5 = 12,200×
The naive result cannot honestly be labeled °C·s: it mixes Fahrenheit readings with a Celsius threshold and milliseconds with seconds. The ratio illustrates numeric distortion in this specific pipeline, not a physical unit conversion. Retraining on mixed inputs could learn source-specific artifacts instead of fixing meaning.
Now consider a temperature rise of 18 °F. Its rise in Celsius degrees is 18/1.8 = 10, with no subtraction of 32. Applying the absolute-temperature formula would give about −7.78 and reverse the sign of the change. This is why “temperature” and “temperature difference” must be separate quantity kinds.
4. Repair at a reproducible boundary
raw vendor event → source-contract lookup → typed validation
→ versioned conversion
→ canonical event + provenance
→ feature pipeline → assistant
unknown mapping → quarantine + customer reviewNormalize once at the ingestion boundary and record the conversion version. Downstream components accept canonical events with explicit schema versions, rather than guessing whether a number was converted already. Enforce dimensional compatibility before evaluating derived features.
Keep display conversion separate from model-feature conversion. A user may view Fahrenheit while the model uses canonical values. Generated explanations should obtain values and units from structured fields; asking the language model to repair ambiguous units in free text is not an auditable normalization strategy.
Preserve precision until the presentation layer. Round for display, not before threshold comparisons. Carry measurement quality flags; converting an invalid sentinel does not turn it into a valid measurement. Unknown or contradictory source metadata should produce an explicit unresolved state, not a guessed unit.
5. Reprocess history without applying the conversion twice
Identify affected raw records by source version and time range. Rebuild canonical records and derived features from immutable raw inputs, writing a new dataset version. Do not multiply existing feature values by a blanket factor: offsets, clipping and aggregation may make that mathematically wrong.
If the model trained on corrupted features, evaluate retraining using the corrected dataset and the same label definitions. Compare against the existing model and a simple rule baseline. Fixing serving alone can introduce train–serve mismatch; keeping an old model requires evidence that its training representation was already compatible.
Shadow the repaired pipeline, compare source-specific changes, and review disagreements with the customer's domain owner. Promote the normalizer, feature specification and compatible model version as a tested bundle. Retain the previous version for operational rollback, but do not present known-invalid old outputs as a safe fallback.
6. Write acceptance tests with the customer
- Equivalent inputs: the two vendor records above produce matching canonical values and a feature of 12.5 within agreed floating-point tolerances.
- Absolute and interval cases: 32 °F converts to 0 °C, while an 18 °F rise converts to a 10-degree Celsius rise.
- Identity and version handling: already canonical records are not converted again; an unsupported schema version is quarantined.
- Unknown metadata: a value without sufficient unit evidence remains unresolved, even if a guessed conversion looks plausible.
- Workflow semantics: paused machine time, missing samples and aggregation windows match the signed-off business definition.
- Downstream consistency: features, alert thresholds, UI labels and assistant explanations all refer to the same measurement meaning.
For an illustrative audit of 2,000 records, suppose 1,980 are convertible under approved mappings and 20 have unknown units. Report 99% conversion coverage and 1% quarantine, rather than 100% success after dropping the unknowns. Passing all 1,980 conversion checks demonstrates consistency on that sample, not that every physical reading was accurate or every future schema is supported.
Define release gates separately for mapping correctness, quarantine handling and customer task outcomes. The domain owner approves meaning, the integration owner approves traceability and rollback, and the product owner approves how unresolved alerts are handled. If any critical source remains ambiguous, scope the launch to validated sources.
7. Explain the decision to the customer
“The two vendors describe equivalent conditions using different units. Our current ingestion path treats them as identical numbers. I propose repairing and versioning that boundary first, replaying affected records, and then evaluating whether the model needs retraining. We can launch the validated sources while unresolved mappings stay in review.”
A permissive adapter is quicker to launch but hides uncertainty. A strict contract creates operational review work, yet prevents silent interpretation changes. Choose the unresolved-data workflow with the customer; dropping records without a visible coverage metric simply moves the failure elsewhere.
Converting every measurement to one unit also does not harmonize incompatible definitions. A peak temperature and a mean temperature can share a unit and still require different features. Currency values, local timestamps and percentages similarly need context beyond dimensional conversion.
Failure analysis and self-review
Investigate source-specific prediction drift, sudden 1,000× changes, improbable negative temperature differences, unexplained quarantine growth and model-version mismatches. Test vendor schema changes in a staging contract suite before production ingestion.
Follow-ups: How would you handle a device that switches units midstream? Can an aggregate be repaired without raw observations? What changes for timezone-aware timestamps, absolute pressure versus gauge pressure, or percentages versus fractions?
A strong FDE answer traces the customer complaint to a concrete record and establishes a typed contract. An excellent answer distinguishes quantity meaning from unit syntax, shows the arithmetic, repairs history reproducibly and negotiates a bounded launch. “Retrain the model” or “ask an LLM to infer the units” is insufficient without evidence and acceptance criteria.
Sources and attribution
- NIST: SI units — temperature — exact absolute-temperature conversions and temperature-interval relationship.
- Unified Code for Units of Measure specification — unit representation and special conversion functions; dimensional compatibility is not a complete business-semantic contract.
Retrieved September 28, 2026; exact page publication dates not established in this review. The customer scenario, exposure feature, rollout protocol and audit counts are original. No company interview attribution is claimed. Continue with customer discovery and feature evaluation discipline.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.