AI/ML engineering manager: Technical Roadmaps and Architecture
Original technical interview scenarios on model and data contracts, artifact compatibility, dependency planning, capacity boundaries, trusted execution, lifecycle decisions, and end-to-end architecture.
These prompts are original practice. They are not questions from a named employer or a live hiring loop.
1.A roadmap schedules a new model service, but no task delivers an input through features, inference, and the consuming application. What early milestone would expose integration assumptions?
Show answer and explanation
- A throughput benchmark that bypasses features and the consumer
- Independent component demos and unit tests
- A full-size training run on interface stubs
- A thin end-to-end slice with explicit contracts
Answer: A thin end-to-end slice with explicit contracts
A minimal working path can reveal mismatched formats, missing dependencies, and unclear ownership before the full investment. It needs acceptance criteria; a thin slice is not evidence that all final requirements are met.
2.The feature team will finalize its schema only after seeing the model API; the model team will define its API only after receiving that schema. Both milestones block each other. What should the manager resolve?
Show answer and explanation
- Train more models in parallel.
- Agree on an interface decision to break the cycle.
- Delay both blocked interfaces.
- Wait for both blocked outputs.
Answer: Agree on an interface decision to break the cycle.
The roadmap contains a logical cycle, not merely too little compute. Agree on a contract, provisional boundary, or staged interface that lets the dependent work proceed and be tested.
3.A trained model loads only when a custom operator and a particular preprocessing package are available. The handoff contains weights alone. What deliverable is missing?
Show answer and explanation
- A reproducible execution specification and required dependencies
- A training-loss report used in place of an executable handoff specification
- The seed without runtime and preprocessing requirements
- A weights-only checksum and upload receipt
Answer: A reproducible execution specification and required dependencies
Weights are not necessarily a runnable system. Capture relevant operators, package/runtime compatibility, transforms, and load validation so serving can execute the intended procedure.
4.A registry's entry called latest can be overwritten. A decision record must identify exactly which weights and tokenizer produced a response. What reference design supports that requirement?
Show answer and explanation
- A mutable latest alias
- Immutable artifact IDs in a versioned manifest
- The family name and response time
- Overwritable version filenames
Answer: Immutable artifact IDs in a versioned manifest
A mutable label can resolve to different bytes at different times. Record stable artifact identities and their compatible configuration; aliases can remain convenient pointers without becoming the only provenance.
5.Weights W2 require tokenizer T2. A service reads separate mutable weight and tokenizer pointers during each request. What architecture prevents observing W2 with T1 during an update?
Show answer and explanation
- Accept any pair whose files individually pass their own format checks.
- Read each latest pointer independently.
- Resolve one immutable compatible bundle per request.
- Update weights first and tokenizer on the next request.
Answer: Resolve one immutable compatible bundle per request.
Compatibility is a relationship among artifacts. An atomic selection of a complete manifest avoids an update gap between separately read mutable pointers and keeps one request on a coherent configuration.
6.A new embedding model emits 768 values, while the existing index accepts only 1,024-value vectors. The roadmap schedules a pointer switch with no index work. What dependency is missing?
Show answer and explanation
- An extra replica of the old index
- A pointer rename that preserves the incompatible index dimension
- A compatible index and embedding migration
- A query adapter that pads vectors without validating meaning
Answer: A compatible index and embedding migration
The vector shape violates the existing index contract. Plan and validate compatible query/document encoding and index construction rather than assume a model pointer can change the storage interface.
7.Two embedding encoders emit the same vector dimension but learned different coordinate spaces. Existing documents use the old encoder; queries switch to the new one. What must be established?
Show answer and explanation
- A matching distance-metric name alone
- Compatibility of query and document representations
- Vector length alone
- An unchanged index filename and equal encoder output dimensions
Answer: Compatibility of query and document representations
Matching dimensions is necessary for many interfaces but does not establish a shared semantic space. Validate the representation relationship and rebuild or migrate affected document embeddings where needed.
8.An answer depends on model version, retrieval snapshot, prompt policy, and caller permissions. A shared cache key includes only the question text. What should the design capture?
Show answer and explanation
- A shared key that ignores retrieval changes and caller authorization scope
- Only the visible query text
- All relevant output and access determinants
- Only the model family and the output length limit
Answer: All relevant output and access determinants
A cache must distinguish contexts that can legitimately produce different or differently authorized outputs. Key design, validation, and invalidation need to reflect the relevant dependencies, not just the visible question.
9.A document can be revoked after an answer is cached. The contract forbids returning its contents to a caller after revocation. What must the cache path enforce?
Show answer and explanation
- Current authorization before returning protected contents
- A longer TTL for frequently requested protected entries
- Authorization at insertion only
- A content hash without any current access check
Answer: Current authorization before returning protected contents
Immutable content identity does not imply persistent access rights. Revalidate against current authority or use an equally sound revocation design before releasing protected cached data.
10.Training lowercases and trims identifiers; serving preserves their original bytes. Some identifiers are case-sensitive. What architectural decision needs explicit ownership?
Show answer and explanation
- Replica-count parity
- A shared field name with different transforms
- A policy that treats case sensitivity as an internal implementation detail
- The identifier-normalization contract
Answer: The identifier-normalization contract
A transformation can change identity semantics. Define and test the intended normalization across the relevant paths rather than allow independently chosen transforms to silently change the meaning of inputs.
11.A feature contract distinguishes an observed zero from an unavailable measurement. A proposed storage rewrite encodes both as zero. What is lost?
Show answer and explanation
- Column order
- Serialization whitespace
- Positive-versus-negative separation
- The missing-versus-observed distinction
Answer: The missing-versus-observed distinction
Collapsing distinct states can change model behavior and interpretation. Preserve the contract's missingness representation or explicitly redesign and validate the feature/model combination.
12.The online feature producer changes duration values from seconds to milliseconds without changing the field name or version. The model still expects seconds. What should the interface specify?
Show answer and explanation
- Numeric type alone
- The producer's deployment date
- Field presence alone
- Units and versioned semantic compatibility
Answer: Units and versioned semantic compatibility
Type compatibility alone does not preserve meaning. Units, ranges, missingness, and relevant transforms form part of the feature contract; changing scale requires coordinated compatibility handling.
13.Training maps bronze to 0 and gold to 1. A serving rewrite sorts category names alphabetically and maps gold to 0. Both send valid integers. What artifact must be coordinated?
Show answer and explanation
- The category column name
- Integer field schemas
- The category-to-index mapping
- Integer width
Answer: The category-to-index mapping
The same integer now represents a different category. Persist and use the compatible vocabulary/mapping with the model rather than infer semantic compatibility from an integer type.
14.A classifier's input vocabulary may encounter categories absent during training. The product requires a defined response for those inputs. What belongs in the serving contract?
Show answer and explanation
- Assume input categories cannot change after training vocabulary creation.
- An explicit unknown-category behavior
- Choose a known category independently in each consumer.
- Map every unknown to the first known category.
Answer: An explicit unknown-category behavior
Unknown input behavior should be deliberate and tested, such as a validated unknown representation, fallback, or rejection. The right choice depends on the task; silently inventing a known value changes its meaning.
15.A live feature has a maximum permitted age of ten minutes. A feature store returns a validly typed value from yesterday with no timestamp. What interface information is missing?
Show answer and explanation
- A different feature name
- Freshness metadata and stale-value handling
- Read-success status
- A raw value without age
Answer: Freshness metadata and stale-value handling
Availability and freshness are different properties. A consumer needs enough metadata and policy to decide whether the value satisfies its age requirement or requires a defined alternative.
16.An event occurred at 10:00 but arrived at 10:20. A feature means purchases in the hour before a 10:10 prediction. Which timestamp determines whether the event falls in that event-time window?
Show answer and explanation
- Its 10:20 ingestion time
- Its 10:00 occurrence time
- The training run start time
- The time the feature query is finally retried
Answer: Its 10:00 occurrence time
Occurrence time determines event-time window membership: 10:00 is within the hour before 10:10. Arrival at 10:20 is a separate availability fact; a real-time prediction still cannot use data it has not received.
17.A historical feature join selects the most recently updated customer record without restricting its effective time. Training examples represent earlier decisions. What join property is needed?
Show answer and explanation
- A point-in-time availability and validity boundary
- Account-key equality
- A current latest-record join
- Nonempty-value filtering
Answer: A point-in-time availability and validity boundary
Historical reconstruction must respect relevant decision-time availability and effective validity. Merely selecting a current latest record can inject information that the original decision could not have used.
18.Outcome labels can be corrected after a training snapshot is created. The roadmap needs reproducible retraining and traceable corrections. What design helps?
Show answer and explanation
- Mutable label overwrites
- A shared export filename
- Only the latest corrected labels
- Versioned label snapshots with correction lineage
Answer: Versioned label snapshots with correction lineage
Retain the identities and derivation of the data actually used, while recording later corrections. Reproducibility and correction propagation need traceable versions rather than ambiguous mutable exports.
19.A dataset record feeds training exports, derived embeddings, and cached summaries. A contractual deletion request must cover its affected retained derivatives. What capability is needed?
Show answer and explanation
- Renaming the model without mapping retained derivatives
- Traceable dependencies and a defined deletion scope
- A record hash used as a substitute for checking affected retained artifacts
- Raw-row deletion only
Answer: Traceable dependencies and a defined deletion scope
Identify which retained assets depend on the record and the applicable handling requirements. A raw-row deletion alone does not demonstrate that affected retained derivatives have been handled.
20.A training join expects one account-feature row per account but sometimes finds three. The pipeline silently creates three training rows per example. What contract check would expose the defect?
Show answer and explanation
- Join cardinality and key uniqueness
- A test that the model accepts the resulting row shape
- A sort that groups duplicate account rows but leaves their training weights unchanged
- Output file-size checks
Answer: Join cardinality and key uniqueness
A many-to-one assumption has become a many-to-many expansion, changing example weights. Enforce or explicitly resolve cardinality instead of accepting duplicated training evidence as extra coverage.
21.A producer may resend the same logical training event after an acknowledgment is lost. A consumer deduplicates using arrival timestamp, which changes on resend. What identity should the design preserve?
Show answer and explanation
- Current batch position
- A fresh consumer-side ID independently generated for every resend
- Delivery arrival time
- A stable logical event identifier
Answer: A stable logical event identifier
Delivery identity is not necessarily logical event identity. A stable event key and a suitable deduplication policy can recognize resends without erasing distinct legitimate events.
22.Two retraining jobs write to the same output directory. The slower older job finishes last and overwrites the newer approved model. What publication boundary is needed?
Show answer and explanation
- Distinct immutable job outputs and controlled activation
- A common shared filename plus job-completion timestamps
- Last-writer-wins output
- Activation determined solely by whichever job finishes after the others
Answer: Distinct immutable job outputs and controlled activation
Separate artifact creation from selection for use. Unique immutable outputs plus a checked activation step prevent job completion order from silently determining the approved serving model.
23.A consumer treats the existence of checkpoint.bin as evidence that an export finished, but it can see that file halfway through a write. What should signal a usable export?
Show answer and explanation
- File existence
- A directory timestamp created before the checkpoint contents are finished
- A verified completion manifest published after the export
- A nonzero checkpoint size
Answer: A verified completion manifest published after the export
Partial presence is not completion. Write and verify artifacts before publishing the ready manifest or equivalent atomic completion signal that consumers are required to follow.
24.An imported model package may execute arbitrary code during loading. The service currently loads any uploaded package in its privileged web process. What architectural boundary is needed?
Show answer and explanation
- An upload-size limit
- A model filename suffix
- A serialization-success check
- Controlled trusted loading or a suitable isolation boundary
Answer: Controlled trusted loading or a suitable isolation boundary
A model artifact can be an executable dependency under the stated loader contract. Validate trust and use appropriate isolation and privileges rather than treat arbitrary uploads as passive numeric data.
25.A model startup script downloads unpinned code and a tokenizer from mutable remote URLs. What roadmap item improves reproducible execution?
Show answer and explanation
- A mutable latest alias
- Successful download timestamps
- Pinned, verified dependencies with controlled retrieval
- A longer download timeout
Answer: Pinned, verified dependencies with controlled retrieval
A stable execution environment requires identifying the relevant dependency versions and bytes. Retrieval controls and integrity checks reduce ambiguity; a successful mutable download does not establish reproducibility.
26.An artifact's checksum matches a value supplied in the same untrusted upload. What does that check alone fail to establish?
Show answer and explanation
- Trusted provenance
- Agreement between supplied checksum values
- Readability of the submitted checksum field
- Recomputation of a deterministic checksum
Answer: Trusted provenance
An attacker can supply both bytes and their checksum. Integrity relative to a supplied value is different from authenticity or approval; the trust anchor must come from an authorized source.
27.An old consumer explicitly rejects unknown response fields. A producer proposes adding an optional field without a version negotiation step. What follows from this stated parser behavior?
Show answer and explanation
- It is compatible because existing field names remain unchanged.
- It is compatible because the field is optional.
- The change can break that consumer.
- It is compatible whenever the extra value is null.
Answer: The change can break that consumer.
Compatibility depends on actual consumer behavior and semantics. An optional field in the new producer's schema is not automatically accepted by an older strict parser.
28.A model was trained with scaler S1. Serving loads new scaler S2 while keeping the same weights. Both produce vectors of the expected shape. What should the bundle relationship require?
Show answer and explanation
- Compatible transforms and weights
- Equal shape alone
- A common transform method name without fitted-parameter compatibility
- A newer scaler publication date
Answer: Compatible transforms and weights
Preprocessing defines the numerical inputs the weights interpret. Shape compatibility does not establish semantic equivalence; version and validate the intended transform/model combination.
29.A feature is being renamed. Old and new consumers will coexist during migration, and neither understands the other's exclusive field name. What staged interface plan supports coexistence?
Show answer and explanation
- A compatibility period, then planned retirement
- Old-field removal first
- Different meanings under one name
- An immediate exclusive rename
Answer: A compatibility period, then planned retirement
Plan a compatibility period or adapter and explicit retirement criteria. Coexisting versions need a common understood representation before the old interface can safely disappear.
30.Offline training and online serving independently implement a complex feature transform. Their outputs have already diverged. What capability should the architecture provide?
Show answer and explanation
- More training examples without comparing the independently computed feature values
- A governed transform specification and parity checks
- Inspection of only the offline transform
- Name consistency alone
Answer: A governed transform specification and parity checks
Reduce semantic drift through a clear transform definition, shared implementation where appropriate, and representative parity checks. Identical names and more rows do not repair incompatible feature meanings.
31.Latency-sensitive inference shares accelerators with unbounded batch training jobs that cannot be preempted. The service has a strict response-time requirement. What resource boundary should the roadmap address?
Show answer and explanation
- Extra batch experiments in the same queue
- Inference capacity isolation
- A timeout starting only after GPU admission
- Compute-time reporting without serving reservations
Answer: Inference capacity isolation
A quality model cannot compensate for unavailable serving capacity. Use an appropriate isolation, reservation, or scheduling design and verify it under competing work rather than assume a shared queue protects latency-sensitive requests.
32.Tenant quotas are enforced separately, but their combined permitted demand exceeds the shared service's safe capacity. What additional admission boundary is needed?
Show answer and explanation
- A global capacity constraint as well as tenant limits
- Acceptance whenever each tenant separately satisfies its own limit
- Larger individual quotas with no aggregate admission
- Only per-tenant reporting
Answer: A global capacity constraint as well as tenant limits
Per-tenant limits can constrain individual demand without bounding their sum. Enforce the shared capacity requirement alongside fairness and tenant contracts.
33.Serving memory is sized using weights alone. Long requests also allocate a large per-request attention cache. What resource model is incomplete?
Show answer and explanation
- The accelerator instruction-set name
- Weight-fit checks before requests allocate state
- Identity of the immutable weight-file checksum
- Runtime memory
Answer: Runtime memory
Weights are only one memory component. Include relevant request concurrency, sequence lengths, runtime state, and overhead in capacity planning rather than assume a weight-fit test proves serving feasibility.
34.An asynchronous service accepts work indefinitely while its consumers are slower than arrivals. The product requires bounded memory use. What contract must accompany the queue?
Show answer and explanation
- An acknowledgment that promises completion without a retained-work boundary
- Immediate unlimited resubmission of queued work
- An unlimited queue
- Bounded admission and an overload policy
Answer: Bounded admission and an overload policy
A queue decouples rates temporarily but does not create unlimited capacity. Bound retained work and define rejection, deferral, or another deliberate overload response consistent with the product's requirements.
35.A scheduler gives each tenant the same number of requests, but one tenant's requests use fifty times more compute. What fairness policy must be clarified?
Show answer and explanation
- Which resource the allocation is meant to share
- Equal work per endpoint name
- Only request count
- Only HTTP-success counts
Answer: Which resource the allocation is meant to share
Fairness can be defined over requests, compute, latency, reservations, or another contract. Request-count parity is not compute parity when work differs substantially; make the intended allocation explicit.
36.A serving optimization shares immutable weights across requests and proposes also sharing mutable conversation state across unrelated callers. What boundary is essential?
Show answer and explanation
- Global conversation state
- A common session buffer whose only scope marker is the shared model name
- Per-request or appropriately scoped mutable state
- The most recently used caller context for every request
Answer: Per-request or appropriately scoped mutable state
Read-only model data and caller-specific mutable state have different sharing semantics. Preserve the intended session/tenant boundaries and prevent one caller's context from becoming another's input.
37.Batching improves accelerator efficiency, but the proposed batcher waits indefinitely for a full batch. Some tenants send only one request an hour. What batching contract is missing?
Show answer and explanation
- A larger minimum batch for sparse traffic
- Full-batch admission only
- A maximum wait or compatible deadline policy
- Latency measured only after the batch finally fills and begins computation
Answer: A maximum wait or compatible deadline policy
Batch formation contributes to end-to-end latency. Bound waiting according to the service contract instead of reporting efficient compute while sparse traffic waits without limit.
38.A product promises a complete structured answer within two seconds. A streaming prototype sends one token quickly but may take twenty seconds to finish. What interface metric must the roadmap distinguish?
Show answer and explanation
- First-byte latency only
- Compute time that excludes waiting for the final structured output
- Token count without a usable-result event
- First output and complete usable result latency
Answer: First output and complete usable result latency
Streaming can improve perceived responsiveness without meeting a completion deadline. Define and measure the event the consumer actually needs, including a complete valid result where required.
39.A model task can take fifteen minutes, while clients may disconnect after one minute. The service must let authorized callers retrieve completed results later. What API shape fits that requirement?
Show answer and explanation
- One synchronous connection
- Durable job identity, state, and result retrieval
- A successful result response before durable task identity or output exists
- An uncorrelated new task created by each status poll
Answer: Durable job identity, state, and result retrieval
Long-lived work needs a contract independent of a single connection. Durable job identity and explicit states let clients observe the same work and retrieve its result after reconnecting.
40.A generated plan can reserve an external resource before its final response is produced. A client cancels generation after the reservation succeeds. What should the system contract define?
Show answer and explanation
- An assumption that losing the final response proves the reservation never happened
- Cancellation as effect rollback
- Side-effect disposition separately from generation cancellation
- Deletion of only the local generation buffer
Answer: Side-effect disposition separately from generation cancellation
Stopping computation does not automatically reverse completed external effects. Define cancellation, reconciliation, and any valid compensation for actions independently of response generation.
41.A model emits a proposed tool call containing an account ID and operation. What should authorize execution?
Show answer and explanation
- A trusted policy check using the actual caller and operation
- The model's confidence
- JSON field presence
- The previous request's permission
Answer: A trusted policy check using the actual caller and operation
Generated content is a proposal, not an authority grant. Bind execution to trusted caller identity, permissions, parameters, and applicable policy before performing an effect.
42.A retrieved document contains text instructing the assistant to reveal a different tenant's records. The document is task data, not a trusted instruction source. What boundary matters?
Show answer and explanation
- Assign execution privileges from whichever retrieved document ranks highest.
- Trust the retrieved instructions.
- Keep retrieved text from granting execution authority.
- Use document relevance as an access grant.
Answer: Keep retrieved text from granting execution authority.
Relevant content can still contain untrusted instructions. Separate information used to answer a task from the trusted controls that govern access and tool execution.
43.A generated tool request passes a JSON schema: all required fields and types are valid. What remains to be checked before a consequential action?
Show answer and explanation
- The model's confidence statement without domain or permission validation
- The order of fields in a schema-valid request
- JSON parseability alone
- Semantic validity and authorization
Answer: Semantic validity and authorization
Structural validity does not establish that an account exists, an amount is allowed, or an action is authorized. Apply domain and permission checks outside the generator's syntax validation.
44.A single model-facing credential can read all tenants and perform every write. Most tasks require only a narrow read. What architecture reduces the authority available to a task?
Show answer and explanation
- A stronger prompt
- A generated safety statement used in place of executable permission limits
- A hidden name for the same unrestricted credential
- Scoped capabilities or credentials enforced by trusted code
Answer: Scoped capabilities or credentials enforced by trusted code
Limit actual executable authority to the task's needs and enforce it independently of generated text. Instruction wording and secrecy of a credential's name are not permission boundaries.
45.A tool may complete a billable action and lose its response. Automatic retries use a fresh operation ID every time. What effect-control design is needed?
Show answer and explanation
- More retries with fresh operation IDs
- Shorter timeouts
- An assumption that every lost response is proof of a failed external effect
- A stable operation identity with appropriate deduplication or reconciliation
Answer: A stable operation identity with appropriate deduplication or reconciliation
An uncertain response can follow a completed effect. Preserve logical operation identity and an appropriate execution protocol so retries do not silently become new billable actions.
46.An assistant can recursively call a planning tool that starts another assistant. Each layer can repeat this indefinitely. What architecture must bound the work?
Show answer and explanation
- An enforced end-to-end iteration and resource budget
- Unlimited child budgets
- Visible-answer length only
- Shared project trace labels
Answer: An enforced end-to-end iteration and resource budget
A local step limit can be bypassed by unbounded nested work. Track and enforce relevant global work, time, and resource boundaries across the call structure.
47.A request has a total budget of 100 units. Each of three nested services independently assumes it may spend all 100. What contract avoids this accidental multiplication?
Show answer and explanation
- Visible-output token limits
- Post-completion totals
- Fresh budgets per hop
- A shared or correctly allocated end-to-end budget
Answer: A shared or correctly allocated end-to-end budget
Budget propagation must account for aggregate consumption, not just local allowances. Allocate or centrally enforce the total and include nested attempts and relevant resource classes.
48.A caller allows 800 ms in total. An upstream stage spends 500 ms, then starts a downstream call with a fresh 800 ms timeout. What should the deadline design carry?
Show answer and explanation
- The remaining end-to-end deadline
- Only the downstream historical mean
- A new full timeout granted whenever an upstream step is slow
- A fresh 800 ms per hop
Answer: The remaining end-to-end deadline
Independent full timeouts can exceed the caller's total allowance. Propagate the deadline and reserve appropriate completion time rather than reset the entire budget at each hop.
49.A fallback answer service uses the same unavailable feature store as the primary service. It is described as protection against that store failing. What architectural property is missing?
Show answer and explanation
- The same model family on both serving paths
- Equal replica counts across both service pools
- A common release date for primary and fallback
- Dependency independence
Answer: Dependency independence
A fallback can inherit the very failure it is intended to handle. Map shared dependencies and ensure the proposed degraded path can actually operate under the target fault.
50.When a required source cannot be verified, the contract permits an explicit unavailable result but forbids invented facts. What degradation behavior follows that contract?
Show answer and explanation
- Return the defined unavailable state.
- Omit the evidence and mark the answer verified.
- Treat source unavailability as support for the most frequent answer.
- Invent a substitute answer.
Answer: Return the defined unavailable state.
A deliberate unavailable or abstaining path can preserve the stated semantics. Producing a plausible answer without required verification does not satisfy the contract merely because the service returns success.
51.A task contract permits processing a dataset only within region R. A new fallback sends the raw dataset to region S when R is busy. What must the architecture review address?
Show answer and explanation
- Schema compatibility alone
- Latency improvement only
- The fallback's compliance with the explicit data boundary
- A model-size comparison that omits the raw data's processing destination
Answer: The fallback's compliance with the explicit data boundary
A fallback remains subject to the given processing constraint. Capacity relief does not waive an explicit data boundary; choose a compatible path or a defined unavailable response.
52.A design keeps raw examples on separate devices but transmits model updates to an aggregator. The team claims that raw-data locality alone proves the updates reveal no private information. What is missing?
Show answer and explanation
- The numeric representation of updates treated as proof that they disclose nothing
- A justified privacy analysis of the transmitted information
- Only the number of contributing devices
- Raw-file transfer count
Answer: A justified privacy analysis of the transmitted information
Keeping raw examples local changes data movement but does not itself prove that transmitted updates disclose nothing. Assess the information released and any claimed protection under explicit assumptions.
53.A cross-region recovery plan replicates weights but omits the compatible vocabulary, feature configuration, and index snapshot. What recovery unit is incomplete?
Show answer and explanation
- A recovery target that omits the vocabulary, feature configuration, and index
- The runnable, compatible serving bundle
- Weight-file replication alone
- The number of second-region model replicas
Answer: The runnable, compatible serving bundle
A recoverable service needs the relevant compatible dependencies and state, not just the largest file. Define and test the complete unit required to produce valid behavior in recovery.
54.A diagnostic store retains only irreversible prompt hashes and permitted metadata. A proposed workflow promises to reconstruct every exact original prompt from those hashes alone. What is the unsupported capability?
Show answer and explanation
- Hash equality comparisons
- Linking records with matching hashes
- Exact replay
- Recording when a hash was observed
Answer: Exact replay
An irreversible hash can support identity comparisons without retaining the original input. It does not provide the full input needed for exact replay; a permissible reproduction workflow needs other appropriate evidence.
55.An old tokenizer is no longer the default, but retained model versions and rollback paths still depend on it. What should determine when it can be deleted?
Show answer and explanation
- Time since the default switch
- Live and retained dependency requirements
- The newer tokenizer's vocabulary size
- The absence of the old tokenizer from the default serving alias alone
Answer: Live and retained dependency requirements
Default selection and dependency retirement are different events. Identify required retained versions and recovery paths before deleting an artifact that can still be needed.
56.Experimental endpoints remain provisioned indefinitely after their owners move teams. No consumer inventory or expiry policy exists. What lifecycle capability should the roadmap add?
Show answer and explanation
- A new endpoint name
- A low-traffic threshold treated as proof that no consumer depends on an endpoint
- More reserved capacity for every experiment
- Ownership, dependency inventory, and retirement criteria
Answer: Ownership, dependency inventory, and retirement criteria
Track accountable ownership and actual consumers, then define review, expiration, and retirement behavior. Low traffic alone does not establish that an endpoint is unused or safe to remove.
57.One request fans out to eight retrieval shards, each of which may retry twice after its initial call. Ignoring nested work beyond those calls, what maximum shard-call count must a budget allow?
Show answer and explanation
- 16 calls
- 8 calls
- 24 calls
- 64 calls
Answer: 24 calls
Each of eight shards can receive one initial call plus two retries, for 8×3 = 24. Fan-out and retry multiplicity both contribute to worst-case work.
58.A service limits request count, but each request can contain an arbitrarily large input and request a very long output. What additional admission dimensions matter?
Show answer and explanation
- Only the caller's preferred language
- Relevant work-size and resource bounds
- An admission rule granting unlimited work to every accepted request
- Request-count limits alone
Answer: Relevant work-size and resource bounds
Request-count limits do not necessarily bound compute or memory when request sizes vary. Constrain relevant input/output sizes, work, concurrency, and budgets in line with the service contract.
59.An overloaded dependency returns a retryable response. Every client immediately retries without limit. What system-wide behavior should the design control?
Show answer and explanation
- Retry amplification and aggregate work
- Retry-message wording
- A policy that excludes retries from the dependency's capacity accounting
- A larger maximum immediate retry count
Answer: Retry amplification and aggregate work
Retries can multiply load on an already constrained service. Bound attempts and concurrent work, use appropriate delay and admission behavior, and preserve logical operation identity where effects are involved.
60.Precomputed predictions are served from a table, but source changes can invalidate them before the next scheduled refresh. What must the product contract define?
Show answer and explanation
- Freshness and invalidation behavior
- Stored-prediction existence
- Table read success
- Optimizer choice
Answer: Freshness and invalidation behavior
Offline computation can be appropriate, but consumers need a defined age and change-validity contract. A successful read establishes availability, not that a prediction still matches current source state.
61.A training pipeline's filtering rule changes from including all valid records to including only recently active accounts. Downstream datasets keep the same schema. What dependency metadata needs updating?
Show answer and explanation
- The semantic derivation and affected consumers
- A claim that equal column names establish an unchanged training population
- Only the unchanged record-shape schema
- Only export delimiters
Answer: The semantic derivation and affected consumers
Data semantics can change without a shape change. Record the transformation and identify consumers whose intended population assumptions depend on the previous filtering rule.
62.Two teams share a feature named purchases. One means purchases in the last hour; the other means lifetime purchases. What should prevent accidental interchange?
Show answer and explanation
- A common short feature name
- Explicit feature semantics and compatible identities
- A shared storage table without the meaning of each count's time window
- Integer type equality
Answer: Explicit feature semantics and compatible identities
A feature's identity includes the relevant meaning and computation window. Equal names and types do not make distinct quantities interchangeable inputs to a model.
63.A retrieval contract ranks by cosine similarity. Query q=(1,0), document A=(2,1), and document B=(1,0). Which ranks higher under that contract?
Show answer and explanation
- B
- A
- The ranking is undefined because neither vector has zero length.
- They tie because their first coordinates are positive.
Answer: B
Cosine values are 2/√5 for A and 1 for B, so B ranks higher. Raw dot products would instead favor A; changing the metric can therefore change the retrieval behavior.
64.An index uses dot product on vectors whose query and document norms are all exactly one. What relation holds to cosine similarity for those vectors?
Show answer and explanation
- The relation is determined solely by the total number of indexed documents.
- Dot product is the square of cosine.
- They are numerically equal.
- They always have opposite signs.
Answer: They are numerically equal.
Cosine is dot product divided by the product of the norms. Under the explicit unit-norm premise that divisor is one; this equivalence does not extend automatically to unnormalized vectors.
65.A model roadmap relies on a feature source with no accountable owner and no agreed availability or schema contract. What prerequisite should be made concrete?
Show answer and explanation
- A downstream delivery target chosen by the model team
- A larger model consuming the undefined source
- A source contract
- A readiness label without provider accountability
Answer: A source contract
Dependencies need accountable delivery and operational contracts. A downstream model milestone cannot make an undefined upstream capability available by assigning it an optimistic date.
66.A research dependency has not demonstrated that its core algorithm meets the required input-size limit. The roadmap treats its result as a guaranteed prerequisite for several committed integrations. What planning boundary is missing?
Show answer and explanation
- A date labeled complete without size-limit evidence
- An assumption that an approved research budget guarantees the required capability
- More dependent integrations
- A feasibility gate before dependent commitments
Answer: A feasibility gate before dependent commitments
Exploratory work and committed capabilities have different uncertainty. Define the evidence needed to proceed and an alternative or revised scope if the feasibility assumption fails.
67.A milestone says export complete when files appear in storage. The actual consumer has never loaded them and requires a custom runtime operator. What stronger acceptance criterion addresses the gap?
Show answer and explanation
- The training job reports success.
- The export files exceed the previous total size.
- The producer writes a model filename containing the consumer's team name.
- The intended consumer loads and executes the exported bundle.
Answer: The intended consumer loads and executes the exported bundle.
A producer-only completion signal can miss consumer incompatibility. Acceptance should exercise the relevant handoff, including the actual execution dependencies, rather than equate file creation with integration readiness.
68.A roadmap bundles a new data source, new objective, new model class, and new serving engine into one indivisible delivery. Any failure would leave no usable evidence about the other changes. What decomposition would improve learning?
Show answer and explanation
- Delay all interface checks until the joint replacement.
- Test separable assumptions at explicit integration boundaries.
- Rename the same joint milestone.
- Add status labels without separate acceptance.
Answer: Test separable assumptions at explicit integration boundaries.
Decompose where meaningful so intermediate evidence can validate key assumptions and localize failure. The design still needs end-to-end checks; component progress alone is not a final-system guarantee.
69.A proposed platform abstraction must support only one unstable experimental workflow today. Its API would freeze assumptions that the experiment is still testing. What should the manager assess?
Show answer and explanation
- API breadth alone
- A rule generalizing every experiment before feasibility work
- The cost of premature coupling and a narrower provisional boundary
- An assumption that a broad shared API cannot make experimental changes costly
Answer: The cost of premature coupling and a narrower provisional boundary
An abstraction can make uncertain assumptions expensive for consumers to change. Prefer a justified boundary and explicit evolution plan rather than freeze an unvalidated workflow into a broad mandatory interface.
70.Several teams implement the same stable model-artifact verification rule differently and have produced incompatible acceptance behavior. What shared capability is justified by this evidence?
Show answer and explanation
- A larger registry that preserves the different incompatible acceptance behaviors
- A common contract and reusable verification implementation
- Independent verification rules
- Comparison of artifact filenames only
Answer: A common contract and reusable verification implementation
Repeated stable requirements and observed inconsistency support a shared verified capability. Standardize the relevant behavior without assuming that every unrelated workflow also needs one generic abstraction.
71.A model requires a new field from a shared event schema. The producing team has no scheduled work for that field, but the model plan assumes it will arrive next week. What should change?
Show answer and explanation
- Record and agree the actual cross-team delivery dependency.
- Remove the dependency from planning while leaving it required by serving code.
- Declare a placeholder ready.
- Assign a provider date in the consumer's chart alone.
Answer: Record and agree the actual cross-team delivery dependency.
A plan cannot supply an upstream deliverable by assumption. Agree on the contract, provider work, readiness evidence, and sequence, or revise the dependent capability and timeline.
72.A feature service and a model service each reject responsibility for inconsistent transforms at their boundary. What ownership artifact would help resolve recurring ambiguity?
Show answer and explanation
- A common team-name prefix without defined transform responsibilities
- A specified boundary contract with accountable maintainers
- Last-deployer ownership
- Only an aggregate prediction-quality dashboard
Answer: A specified boundary contract with accountable maintainers
A precise contract and accountable maintenance clarify which behavior is promised and how defects are handled. Ownership should follow the defined boundary rather than an arbitrary naming or deployment-order rule.
73.A service has a one-second completion budget. The proposed critical path includes 250 ms retrieval, 600 ms inference, and 250 ms postprocessing, all sequential with no overlap. What does the plan show?
Show answer and explanation
- It meets the budget because each stage individually fits.
- It meets the budget because inference is below one second.
- It exceeds the budget by 100 ms.
- It takes 750 ms because only retrieval and postprocessing add to inference halfway.
Answer: It exceeds the budget by 100 ms.
The sequential path is 250 + 600 + 250 = 1,100 ms. Component compliance with a larger bound does not imply end-to-end compliance; allocate and verify the actual critical-path budget.
74.A model needs an annotated dataset that cannot begin until a new event field is collected. The delivery plan schedules final training before collection starts. What should the dependency graph show?
Show answer and explanation
- Final training before any required observations exist
- Collection and required annotation before dependent final training
- Independent task labels
- An empty annotation file treated as the completed required labeled dataset
Answer: Collection and required annotation before dependent final training
Data prerequisites are real dependencies. A prototype can use a justified substitute, but final training evidence cannot claim to use future observations or labels that do not yet exist.
75.A team wants to retire an old feature API after migrating the largest consumer. Smaller consumers and scheduled jobs have not been inventoried. What retirement evidence is missing?
Show answer and explanation
- Only the old API's age
- A new API label displayed by the single already-migrated consumer
- Coverage of all required consumers and compatibility paths
- Largest-consumer traffic only
Answer: Coverage of all required consumers and compatibility paths
Retirement depends on remaining consumers and supported recovery paths, not merely the largest traffic source. Inventory actual dependencies and define when the old contract can end.
76.A hosted model meets a benchmark, but the application requires pinned behavior for six months. The provider's API can change the underlying model at any time. What capability must the architecture decision address?
Show answer and explanation
- Version stability or a compatible change-handling design
- The model family name treated as a six-month behavior guarantee
- Only the provider's stable endpoint URL
- Current HTTP uptime
Answer: Version stability or a compatible change-handling design
A stable endpoint name does not guarantee a stable underlying procedure. Establish a suitable version contract, detection and reassessment path, or alternative design for the application's required behavior window.
77.An integration stores all business logic in provider-specific prompt fields with no internal representation or adapter boundary. The roadmap assumes easy provider replacement. What should that assumption account for?
Show answer and explanation
- Hostname replacement only
- Semantic coupling and migration validation
- The common JSON transport format alone
- Equal context-window limits treated as proof of interchangeable behavior
Answer: Semantic coupling and migration validation
Provider replacement can change prompt semantics, tools, settings, and outputs even when transport formats match. Use appropriate boundaries and evaluate the actual migration work instead of inferring portability from superficial similarity.
78.Training data exports identify examples by their row number in each file. Repartitioning changes those numbers, and label corrections can no longer be joined reliably. What identity design is needed?
Show answer and explanation
- Stable example identities independent of export position
- Export row positions
- A new shuffled row number generated independently for each export
- Directory file order
Answer: Stable example identities independent of export position
A positional identity is unstable across reshuffling and repartitioning. Preserve suitable logical keys so labels, lineage, deduplication, and corrections can refer to the same intended examples.
79.A numerical accelerator can produce small floating-point differences across runs. The product needs outputs within a declared tolerance, while the roadmap promises bit-for-bit equality without supporting controls. What should be specified?
Show answer and explanation
- A tolerance selected anew after each mismatch
- A shared model name
- The required reproducibility level and justified execution controls
- An exact-equality promise that does not account for nondeterministic operations
Answer: The required reproducibility level and justified execution controls
Define whether the requirement is byte identity, numerical tolerance, or behavioral equivalence, then establish appropriate controls and tests. Those guarantees are different and should not be silently substituted for one another.
80.A model response currently labels money as amount without currency. Consumers have begun assuming different currencies. What contract change is needed?
Show answer and explanation
- The same field name while preserving each consumer's incompatible currency assumption
- More generated decimal places
- A wider number type
- An unambiguous unit/currency representation and migration plan
Answer: An unambiguous unit/currency representation and migration plan
A valid number is not a complete monetary meaning. Make the semantic unit explicit and handle existing consumers deliberately rather than rely on incompatible unstated defaults.
81.Two training runs use the same seed but different parallel operation orders and runtime versions. What does matching the seed alone establish?
Show answer and explanation
- It is one control, not proof of identical execution.
- It proves identical weight bytes.
- It guarantees that parallel operation order and hardware cannot affect outputs.
- It makes runtime versioning unnecessary.
Answer: It is one control, not proof of identical execution.
A seed can control specified randomness while other nondeterministic or version-dependent behavior remains. Record and control the factors relevant to the required reproducibility guarantee.
82.A training job reads each shard from a mutable latest path. Halfway through, an upstream refresh replaces some shards. What dataset identity should the job resolve?
Show answer and explanation
- Only the final shard's timestamp
- A shared directory name reused for all past and future source refreshes
- A fresh latest read per shard
- One coherent immutable input snapshot
Answer: One coherent immutable input snapshot
A run can otherwise consume a mixture that never existed as an intended dataset. Resolve and record a coherent manifest or equivalent snapshot of the required input artifacts.
83.A pipeline's feature job uses source snapshot S1, while its label job silently uses S2. The model requires a consistent example/label relationship. What should coordinate those jobs?
Show answer and explanation
- Equal output file counts
- A shared project name while each stage independently resolves its latest input
- Only a common job-start month
- Compatible snapshot and derivation identities
Answer: Compatible snapshot and derivation identities
A pipeline can be individually successful yet semantically inconsistent across stages. Propagate and validate the relevant snapshot and derivation boundaries rather than infer consistency from timing or row counts.
84.Two event sources publish completeness watermarks. A derived feature requires both sources complete through time T, but the pipeline publishes when either one reaches T. What readiness rule is required?
Show answer and explanation
- Either source boundary is enough.
- The faster source defines completeness for both.
- The average watermark can stand in for missing coverage in the slower source.
- Both required source boundaries must be satisfied.
Answer: Both required source boundaries must be satisfied.
For a feature depending on both complete inputs, readiness is conjunctive. A fast source does not fill another source's missing interval; retain an explicit partial-data state if the contract permits one.
85.Outcome feedback arrives days after a model decision and must be attributed to the exact displayed recommendation. What record needs to survive the handoff?
Show answer and explanation
- An unrelated label-job identifier with no link to the original exposure
- Decision/exposure identity linked to its model configuration
- The recommendation currently in the same display slot
- Latest model at label arrival
Answer: Decision/exposure identity linked to its model configuration
Delayed feedback needs a stable association with the actual decision or exposure. A user's later state or a recycled display position can attach the label to the wrong recommendation or model version.
86.A ranking pipeline logs only the winning item, but future research needs to understand which eligible items were considered and displayed. What data contract should be designed before that research depends on it?
Show answer and explanation
- Today's catalog treated as the original eligible set
- Every unlogged candidate presumed to have been displayed and rejected
- Permitted candidate, eligibility, and exposure records
- Only the winner's title
Answer: Permitted candidate, eligibility, and exposure records
Candidate eligibility, selection, and exposure are different events. Design authorized records that support the intended analysis; later catalog contents or missing records do not reconstruct the original decision context.
87.The feedback store records clicks but has no record of which items were shown without a click. What is missing for an exposure-based click-rate feature?
Show answer and explanation
- The number of unrelated background training jobs
- Model parameter count
- The exposure denominator
- Only the clicked-item count
Answer: The exposure denominator
A click count alone does not identify a click rate. Retain the relevant permitted exposure population and linkage instead of treating missing clicks as known nonclick exposures without evidence.
88.Each tenant assigns customer IDs starting at one. A shared feature table keys rows only by customer ID. What key property is missing?
Show answer and explanation
- Tenant scope
- The model's prediction threshold
- The tenant's signup position
- The customer ID's display width
Answer: Tenant scope
A locally unique identifier need not be globally unique. Include the appropriate scope in keys and authorization boundaries to prevent collisions between distinct tenants' customers.
89.A training export pages through a live table by numeric offset while rows are inserted and deleted. It must contain each record from one declared snapshot exactly once. What read contract is required?
Show answer and explanation
- Stable snapshot membership and traversal
- Only the number of exported pages
- A different random table ordering before each page is fetched
- Larger numeric offsets
Answer: Stable snapshot membership and traversal
Offset pagination over changing membership can skip or duplicate records. Use a suitable snapshot and consistent traversal for the required export semantics rather than assume page counts prove completeness.
90.A historical backfill shares all read capacity with latency-sensitive online features. The roadmap budgets compute but ignores source-database load. What resource dependency needs control?
Show answer and explanation
- The assumption that offline jobs consume no online source-service resources
- Backfill impact on shared source capacity
- Only GPU count
- Only the output schema
Answer: Backfill impact on shared source capacity
Data movement can compete for storage, network, and source-service capacity before training begins. Bound or isolate backfill pressure and verify the online contract under that workload.
91.A source sometimes emits a negative age for an account feature whose contract permits only nonnegative ages. The pipeline silently clips all negative values to zero. What should be decided at the boundary?
Show answer and explanation
- Clip and declare valid.
- Validation and explicit handling of invalid source values
- Remove the constraint silently.
- Ask the model to infer which observed zeros came from invalid source values.
Answer: Validation and explicit handling of invalid source values
A repair transform changes the input semantics and can hide defects. Define the validation and handling policy, retain appropriate error evidence, and validate any permitted repair rather than silently relabel invalid values.
92.A consumer expects exact integer counts, but a generated response can contain rounded floating-point summaries. Both are placed in a field called count. What contract needs clarification?
Show answer and explanation
- The quantity, precision, and allowed representation
- The response's successful HTTP status
- A common field name used for both exact observed counts and rounded estimates
- Parseable number type alone
Answer: The quantity, precision, and allowed representation
Syntactic numeric output does not establish exactness or even the intended quantity. Specify observed counts versus estimates, permissible representation, and validation at the consuming boundary.
93.A service returns a cached prediction after its input record was corrected. Cache expiration is one day, but the contract requires predictions to reflect accepted corrections immediately. What dependency should invalidate the entry?
Show answer and explanation
- The prediction's creation day alone
- A cache key omitting corrected source state because the weights did not change
- The relevant input-record version or correction event
- Only the model version
Answer: The relevant input-record version or correction event
A model-stable prediction can become stale because its inputs changed. Associate cached results with relevant source versions or an equally sound invalidation mechanism that meets the correction contract.
94.Events carry local timestamps with no timezone or offset. A feature window spans a daylight-saving transition with repeated local times. What time contract is missing?
Show answer and explanation
- Local text sorting
- An unambiguous instant and window interpretation
- A larger window without resolving ambiguous instants
- A rule treating repeated local-clock strings as the same occurrence
Answer: An unambiguous instant and window interpretation
Ambiguous local clock text may not identify a unique instant. Define the relevant timezone/offset or absolute-time representation and the intended window semantics rather than infer chronological identity from display strings.
95.A model emits scores whose interpretation depends on a separate calibration map. A proposed service allows the score model and calibrator to update independently. What compatibility relationship must be managed?
Show answer and explanation
- Only a common probability field name
- Decimal display precision
- A rule permitting any calibration map on every score model and data regime
- The calibrator's intended score-model and data regime
Answer: The calibrator's intended score-model and data regime
A calibration transform is fitted under particular score and data conditions. Package or validate compatible combinations instead of treating any numeric transform as a universal probability interpretation.
96.Tenant isolation requires unauthorized source text never to reach the model. A design retrieves every tenant's documents and asks the model to discard forbidden ones. What boundary should move earlier?
Show answer and explanation
- Trusted authorization before protected content is supplied
- Only a final-response filter
- A larger context window used in place of pre-exposure access enforcement
- A stronger late instruction
Answer: Trusted authorization before protected content is supplied
A post-input instruction cannot satisfy a requirement that prohibited content never reach the model. Enforce access in the trusted retrieval/input path before exposure, along with any necessary downstream controls.
97.A batch inference engine returns results in completion order. The caller attaches them to input rows by position, although requests can finish out of order. What interface property is missing?
Show answer and explanation
- A larger output buffer without any identity mapping
- The common model name assigned to the batch
- The number of completed tasks without input keys
- Input-output correlation
Answer: Input-output correlation
Completion order need not match submission order. Carry a stable correlation key or an equivalent explicit ordering contract so each result is attached to its actual input rather than a coincidentally matching position.
98.A signed model artifact is approved for offline inference, but its package also tries to contact an external endpoint during execution. The serving contract forbids outbound network use. What additional boundary is required?
Show answer and explanation
- Only the package checksum
- Enforced runtime egress policy
- A trust rule granting every correctly signed package unrestricted runtime capabilities
- Signature verification alone
Answer: Enforced runtime egress policy
Artifact authenticity and permitted runtime behavior are separate controls. Apply the stated execution restrictions even to a correctly identified package; approval for one use does not waive the egress contract.
99.A fleet loads a separate large model for each tenant on demand. The capacity estimate assumes all tenants can be simultaneously warm, but total model memory exceeds the fleet. What architecture decision is unresolved?
Show answer and explanation
- Only the number of model aliases
- Response length only
- Placement, residency, and cold-load behavior
- An assumption that separate model files do not compete for shared fleet memory
Answer: Placement, residency, and cold-load behavior
Per-tenant customization can create a residency and placement problem. Define feasible warm capacity, loading/eviction behavior, and relevant latency contracts instead of assuming every model fits concurrently.
100.Approved model revisions are stored in a registry, but the live application reads only a model file bundled at application build time. The roadmap promises revision publication without application deployments. What reader change is needed?
Show answer and explanation
- Upload registry revisions only.
- Keep the bundled reader and rename its file latest.
- Resolve approved registry revisions at runtime with defined freshness.
- Treat registry upload success as proof that all running instances serve the revision.
Answer: Resolve approved registry revisions at runtime with defined freshness.
A publication mechanism changes what readers see only when those readers follow it. Runtime selection needs an explicit approved-version and freshness contract, with verified serving behavior after publication.
101.Two authorized operators approve different candidate bundles after reading the same active version. The service must reject an approval based on an obsolete active version. What activation primitive fits?
Show answer and explanation
- Last-completing unconditional write
- A post-write status log without a check of the previously observed active version
- Separate updates of weights and tokenizer pointers
- A checked compare-and-swap on the observed version
Answer: A checked compare-and-swap on the observed version
An atomic expected-version check can reject stale competing activation. Pair it with immutable compatible bundles and explicit retry/review behavior rather than let timing silently override another approved change.