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?

  1. Increase approximate-search speed settings only during every rebuild
  2. Restart the generator whenever index building begins
  3. Disable all index updates permanently
  4. 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.

Question 341

Model processing duration is stable, but end-to-end latency rises with queue wait. What intervention targets the cause?

  1. Increase accepted backlog indefinitely
  2. Increase the per-request timeout while leaving arrival rate and available capacity unchanged
  3. Attribute the full delay to slower token generation
  4. Adjust admission, capacity, or scheduling using queue-age and demand measurements

Explanation

Correct Answer

D:

The delay is before execution. Optimizing prompt prose alone does not remove a saturated waiting line.

Incorrect Answers

A:

More waiting work can worsen deadline misses without increasing capacity.

B:

More patience may delay failure but does not remove accumulated waiting work. Admission, scheduling, or capacity must address the queue pressure.

C:

Measured processing is stable, so that diagnosis conflicts with the evidence.

Question 342

A developer lowers temperature to improve deterministic extraction. What test is needed?

  1. Compare extraction accuracy and repeatability on representative cases under controlled conditions
  2. Change the dataset simultaneously and attribute all gains to temperature
  3. Assume zero temperature guarantees factual truth
  4. Measure only whether sentences sound creative

Explanation

Correct Answer

A:

Lower variability can help but does not guarantee correct fields. Evaluate both stability and task correctness.

Incorrect Answers

B:

Confounding prevents isolating the parameter's effect.

C:

Deterministic output can be consistently wrong.

D:

Creativity is not the extraction acceptance criterion.

Question 343

A self-hosted serving engine supports continuous batching. Static batches wait for every sequence to finish before admitting new requests, leaving capacity underused when sequence lengths vary. Which change should be evaluated?

  1. Change only the API gateway's response compression setting
  2. Pad every generation to the maximum completion length before releasing it
  3. Admit new eligible sequences as completed sequences release capacity, subject to memory limits
  4. Increase the static batch size without checking active-token memory

Explanation

Correct Answer

C:

Continuous batching can reduce idle capacity caused by waiting for the longest sequence. Test throughput, tail latency, and memory under the actual workload.

Incorrect Answers

A:

Transport compression does not alter scheduling within the inference engine.

B:

Artificially extending finished work wastes resources and preserves the wait for the longest sequence.

D:

Larger batches can worsen memory pressure and do not guarantee prompt admission when completed slots remain unused.

Question 344

A read-only public-answer service has occasional slow inference stragglers. Two approved compatible targets are available, and an experiment may issue a delayed duplicate. What condition should govern this hedge?

  1. Return both completions concatenated without selecting a coherent validated result
  2. Measure tail-latency gains against extra cost and load, and cancel or disregard the losing request safely
  3. Issue every request to both targets immediately and call the extra work free
  4. Use the same strategy on irreversible payment tools without idempotency

Explanation

Correct Answer

B:

Hedging can reduce waiting for a straggler while consuming duplicate capacity. Limit its use, preserve target eligibility, and account for requests that continue after cancellation.

Incorrect Answers

A:

Two answers can conflict or repeat content. The application still needs a defined outcome and normal output checks.

C:

Duplicate inference consumes capacity and can increase load. Immediate universal duplication ignores the intended tail-focused tradeoff.

D:

A read-only inference hedge is not permission to duplicate transactional side effects. Tool operations need separate safeguards.

Question 345

A team must decide whether adding inference capacity will improve response time. Which TWO measurements are most useful? Choose TWO.

  1. Only the number of model names in the catalog
  2. Queue wait and age under representative load
  3. Actual inference utilization and service time by token workload
  4. Only total invocation count, without queue delay or workload segmentation
  5. Only time to first token for one unloaded development request

Explanation

Correct Answers

B:

Growing waits indicate demand exceeding available processing or scheduling capacity.

C:

These distinguish saturated inference from another bottleneck and help estimate added capacity benefit.

Incorrect Answers

A:

Catalog breadth does not indicate current capacity demand.

D:

Request count cannot show whether serving is saturated by long sequences or whether time is spent waiting elsewhere. Queue and utilization measurements localize the constraint.

E:

A single low-load sample does not establish production saturation or the likely value of added capacity. Measure representative demand and serving behavior.

Question 346

A slow answer may originate in authentication, retrieval, tool use, or inference. What observability design fits?

  1. Only one total duration at the frontend
  2. Correlated spans across stages with timing, status, and relevant version identifiers
  3. Only a vector-index storage graph
  4. Only the final answer text

Explanation

Correct Answer

B:

A distributed trace localizes the critical path. Protect sensitive payloads while preserving operational metadata.

Incorrect Answers

A:

That shows the symptom but not which dependency caused it.

C:

Storage volume does not cover authentication, tools, or inference.

D:

Content alone does not establish stage timings.

Question 347

A dashboard should show hallucination rates. What must the application add?

  1. A defined assessment process with sampled or automated labels and an explicit denominator
  2. Assume CloudWatch automatically knows truth for arbitrary answers
  3. Rename the HTTP error metric hallucinations
  4. Count every answer without a citation as factually false

Explanation

Correct Answer

A:

Hallucination is not inferred reliably from HTTP success. Document the evaluator's coverage and error limits.

Incorrect Answers

B:

Telemetry requires meaningful measurements supplied by the application or evaluation system.

C:

Transport failures and unsupported claims measure different phenomena.

D:

Some tasks require no external source, while cited answers can still be wrong. The metric needs a defined evidence-based rubric.

Question 348

A tool returns quickly but often receives invalid model-generated arguments. What should monitoring include?

  1. Only average tool duration
  2. Only model output token count
  3. Argument-validation failure rate and successful task outcomes alongside tool latency
  4. Only the number of tools registered

Explanation

Correct Answer

C:

Fast responses can still represent failed work. Separate model selection and argument errors from dependency availability.

Incorrect Answers

A:

A fast rejection looks healthy under latency-only monitoring.

B:

Token volume cannot identify which tool arguments were invalid.

D:

Catalog size does not describe runtime effectiveness.

Question 349

A token-usage alarm triggers constantly during expected business peaks. What should be improved?

  1. Lower the threshold further without analysis
  2. Treat each alarm as proof of an attack
  3. Use workload-aware baselines and actionable thresholds tied to impact or budgets
  4. Disable every usage alarm permanently

Explanation

Correct Answer

C:

Expected seasonality can create noise. Alert design should identify deviations requiring a concrete response.

Incorrect Answers

A:

More expected alerts can increase fatigue.

B:

High usage can be legitimate; diagnosis requires context.

D:

That removes visibility into real spikes or budget breaches.

Question 350

The ingestion pipeline reports success but searchable document counts steadily fall. What monitoring is useful?

  1. Assume fewer documents always improve relevance
  2. Reconcile source revisions, processed records, indexed records, and retrieval coverage
  3. Only monitor generator response time
  4. Only count successful HTTP requests to ingestion

Explanation

Correct Answer

B:

Pipeline success can conceal partial omissions. Stage-level counts and sampled searches reveal completeness issues.

Incorrect Answers

A:

Unintended loss of required sources is a data-quality defect.

C:

A fast model can answer from an incomplete corpus.

D:

Request acceptance does not establish complete indexing.

AWS Certified Generative AI Developer - Professional AIP-C01 Practice Tests