Question 330
Average latency is acceptable, but many users experience very slow answers during bursts. What metric should guide diagnosis?
- Only median latency without reporting the slow tail
- Tail latency with queueing, load, and token-length segmentation
- Only average latency measured during off-peak traffic
- Only the arithmetic mean again
Explanation
Correct Answer
B:Means hide slow outliers. Percentiles and workload slices reveal whether bursts or long requests drive the experience.
Incorrect Answers
A:The median can remain acceptable while a material fraction of users wait much longer. Tail percentiles are needed for the reported experience.
C:An unloaded average does not characterize the burst-related slow tail affecting users. Measure relevant percentiles under representative production conditions.
D:The same aggregate does not reveal the affected tail.
Question 331
Parallel retrieval across ten sources improves latency but overloads a shared database at peak load. The team must retain beneficial parallelism within the database capacity budget. Which concurrency policy best fits?
- Bound fan-out according to dependency capacity and measure end-to-end benefit
- Serialize all unrelated work without testing
- Increase fan-out without limit
- Measure only the number of started calls
Explanation
Correct Answer
A:Parallel work can reduce waiting until contention dominates. Limits should protect shared resources and deadlines.
Incorrect Answers
B:That may unnecessarily lose useful parallelism; the measured bottleneck calls for controlled limits.
C:More concurrency can worsen queueing and database saturation.
D:Started work does not establish completed useful throughput.
Question 332
Two requests have the same output length, but the one with a much longer prompt is slower before its first token. What should profiling distinguish?
- Input processing from incremental output generation
- Only time spent transmitting the final answer after generation completes
- Only the number of citations displayed
- Only final answer word count
Explanation
Correct Answer
A:Long inputs can increase prefill work. Equal completion length does not imply identical first-token latency.
Incorrect Answers
B:Output delivery is a separate latency component. The longer prompt's delay before the first token points to input processing or its queueing path.
C:Citation count may not represent the actual input token volume.
D:That omits the larger input-processing burden.
Question 333
Very long generations delay short interactive jobs in one shared queue. What scheduling design should be evaluated?
- Increase every job's output limit
- Separate or fairly schedule workload classes with bounded concurrency
- Ignore short-request latency because total throughput is high
- Use one unlimited FIFO queue for every workload
Explanation
Correct Answer
B:Long jobs can monopolize capacity. Workload-aware scheduling can protect interactive latency without abandoning offline tasks.
Incorrect Answers
A:Longer jobs may worsen the interference.
C:Aggregate throughput can conceal an unacceptable interactive experience.
D:That can preserve head-of-line blocking by long requests.
Question 334
A public FAQ produces the same approved answers for predictable queries. Which optimization should be evaluated?
- Precompute versioned answers and refresh them when authoritative content changes
- Never refresh because precomputation is deterministic
- Precompute private account balances for anonymous users
- Generate every FAQ answer multiple times per request
Explanation
Correct Answer
A:Predictability can avoid repeated generation. Freshness and applicability checks still govern reuse.
Incorrect Answers
B:A stable process can still produce outdated answers after source changes.
C:That changes the data scope and risks unauthorized disclosure.
D:That increases work without using the predictable nature of the task.
Question 335
A model offers a supported latency-optimized inference option. What should adoption testing compare?
- Only the option's marketing name
- Assume the option reduces all unrelated database delays
- End-to-end latency, quality, and cost under the actual model and workload
- Skip quality tests because latency is the only changed setting
Explanation
Correct Answer
C:A faster serving option has workload-specific tradeoffs. Verify eligibility and actual application benefit.
Incorrect Answers
A:A label does not measure the application's outcome.
B:Inference optimization does not directly repair retrieval or network bottlenecks.
D:Serving choices still warrant task-level regression checks.
Question 336
A service creates a new network client and TLS connection for every model request. What optimization is appropriate?
- Increase model temperature
- Reuse appropriately configured clients and connections within the runtime lifecycle
- Increase per-call read timeouts as the only change
- Disable TLS to eliminate handshake costs
Explanation
Correct Answer
B:Connection setup can add avoidable overhead. Preserve timeout, security, and concurrency behavior when reusing resources.
Incorrect Answers
A:Sampling has no effect on client connection setup.
C:Longer waiting allowances do not remove repeated connection setup. Connection lifecycle and timeout configuration solve different problems.
D:Removing transport protection is unnecessary for connection reuse.
Question 337
An endpoint handles 100 short requests per minute but throttles at the same count for long documents. Why?
- Only the number of completed HTTP responses, excluding submitted input and reserved output tokens
- Every request has identical computational cost
- Request counts alone omit model-specific token demand and quota dimensions
- A client serialization fault, without inspecting the returned throttling reason or quota metrics
Explanation
Correct Answer
C:Long inputs and outputs can consume more processing capacity. Capacity planning must reflect the actual token mix.
Incorrect Answers
A:Some serving and quota constraints depend on token demand rather than request count alone. Long documents can consume more constrained capacity per call.
B:Sequence lengths can differ substantially.
D:Long inputs can be valid and still hit token-related capacity limits. Diagnose the actual service response and demand before attributing the symptom to malformed requests.
Question 338
A performance benchmark uses one short prompt repeated with warm caches. What limitation should be reported?
- No further measurement is needed because the sample is large
- Repeated prompts automatically measure worst-case behavior
- It may not represent cold starts, long inputs, varied outputs, or production cache misses
- It proves every production request meets the same latency
Explanation
Correct Answer
C:A narrow benchmark characterizes one favorable path. Expand the workload before forecasting service-level performance.
Incorrect Answers
A:Many identical examples still provide narrow coverage.
B:Repetition often benefits caches and does not cover all workload extremes.
D:Real inputs and cache states can differ materially.
Question 339
A custom vector query spends most time evaluating a frequently used metadata predicate. What optimization should be considered?
- A store-supported metadata indexing or partitioning strategy measured on that filter workload
- Remove the filter even though it enforces required scope
- Move the required access predicate from retrieval to an unenforced post-generation instruction
- Increase vector search result count without examining the metadata-predicate execution plan
Explanation
Correct Answer
A:Predicate evaluation can dominate query cost. Verify the store's capabilities and resulting recall rather than applying generic tuning.
Incorrect Answers
B:Performance does not justify bypassing a necessary access boundary.
C:This might avoid database filtering work but changes the security boundary. Performance improvements must preserve required eligibility before evidence disclosure.
D:More candidates can add work while leaving the measured predicate bottleneck unchanged. Profile and tune the store-supported filtering path.
Question 340
A custom vector database has slow queries during large index rebuilds. Searches meet quality requirements outside those periods. Which operational change should be evaluated?
- Increase approximate-search speed settings only during every rebuild
- Restart the generator whenever index building begins
- Disable all index updates permanently
- Build replacement indexes with isolated capacity and switch traffic after validation
Explanation
Correct Answer
D:Separating heavy build work can reduce contention with live searches. The cutover still needs compatible metadata, permissions, and rollback.
Incorrect Answers
A:Less search work may reduce latency but can compromise recall without addressing shared build-resource contention.
B:The measured slowdown is in the database path. Generator restarts add disruption without isolating index-building work.
C:Avoiding updates sacrifices corpus freshness and does not provide a sustainable maintenance process.