Original practice scenario: A simulated wealth dashboard combines positions, prices and foreign-exchange rates that refresh independently. How should a snapshot communicate consistency?
Read model answer +
A portfolio total is meaningful only with a defined valuation time and completeness policy. Independently latest values can form a combination that never existed as a coherent snapshot.
Work through it
Version position events and market observations with source and effective times; define acceptable freshness and missing-price behavior before calculating totals.
Build an immutable valuation snapshot identifying the exact position, price and currency-rate versions, with explicit stale or unavailable components.
Test delayed feeds, price corrections, corporate-action boundaries and partially unavailable currencies; expose snapshot status alongside its timestamp.
Tradeoffs to discuss
Waiting for aligned inputs improves comparability but increases latency; provisional snapshots are faster if their limitations remain visible.
Common pitfalls
Do not replace a missing price with zero without a declared policy.
Keep the exercise focused on data consistency rather than presenting investment recommendations.
Original practice scenario: Design a research assistant over fictional analyst documents with different client entitlements and frequent revisions.
Read model answer +
Authorization belongs in retrieval and evidence handling, not merely in the final prompt. A fluent answer is unacceptable if it uses a passage the requesting user cannot access.
Work through it
Attach document version, publication time and access metadata during ingestion; enforce the user's current entitlement before returning candidate chunks.
Evaluate retrieval and citation support with synthetic questions, conflicting versions and no-answer cases; prefer current authorized evidence under a documented policy.
Recheck permissions when opening cited material, record access-safe diagnostics and test revoked access, malicious document instructions and expired sessions.
Tradeoffs to discuss
Filtering before search protects boundaries but can reduce recall; overfetching must still prevent unauthorized text from reaching the model or logs.
Common pitfalls
Do not assume a citation proves that every generated sentence is supported.
Never place real client documents into the practice dataset.