Question 390

A streaming client parses every token chunk as a complete JSON object and reports repeated syntax errors. What should change?

  1. Parse each network frame independently and concatenate parsed objects
  2. Remove all quote characters from chunks
  3. Assemble the stream according to its event and content boundaries before parsing the completed object
  4. Ask every chunk to contain a full copy of the answer
  5. Treat parse errors as evidence of a vector mismatch

Explanation

Correct Answer

C:

Individual chunks can split strings and tokens. Incremental transport fragments are not necessarily standalone JSON documents.

Incorrect Answers

A:

Transport frames need not align with semantic JSON boundaries. Parsing must follow the documented stream framing and content assembly rules.

B:

That corrupts valid JSON rather than reconstructing it.

D:

That is not how the existing stream contract works and creates duplication.

E:

The failure follows the client's framing assumption, not embedding geometry.

Question 391

Retrieval quality declines after domain terminology changes, while infrastructure metrics remain healthy. What investigation fits?

  1. Evaluate current queries and corpus against embedding and query-processing behavior
  2. Assume healthy CPU proves retrieval quality
  3. Check only HTTP uptime
  4. Increase the browser cache lifetime

Explanation

Correct Answer

A:

Semantic drift can reduce matching without causing service errors. Compare new terminology and labeled failures with the prior baseline.

Incorrect Answers

B:

Resource health and evidence relevance are different properties.

C:

Availability does not measure semantic relevance.

D:

Presentation caching does not realign domain representations.

Question 392

A locally tested prompt works, but production still shows the old behavior. What should be verified?

  1. The actual deployed prompt version, rendered variables, and routing reference
  2. Delete the local test evidence
  3. Increase production traffic to gather more old outputs
  4. Rewrite the local prompt again without checking deployment

Explanation

Correct Answer

A:

Configuration mismatch can make local results irrelevant to runtime behavior. Inspect the real invocation artifact.

Incorrect Answers

B:

That removes useful comparison data without changing deployment.

C:

More samples of the wrong artifact do not fix the reference.

D:

Further edits do not establish which version production uses.

Question 393

Correct multilingual model text becomes garbled only after the API gateway response is decoded by the client. What should be checked?

  1. Fine-tune the model on the garbled text
  2. Content encoding and serialization across the gateway-client boundary
  3. Increase the model's completion budget while preserving the same decoder
  4. Rebuild all embeddings

Explanation

Correct Answer

B:

The model output is intact upstream. Diagnose the transformation where corruption first appears.

Incorrect Answers

A:

That targets a downstream decoding defect at the wrong layer.

C:

The upstream text is already correct. More output does not change a downstream character-encoding mismatch.

D:

Retrieval representations do not repair response-byte decoding.

Question 394

An extraction response passes JSON Schema but assigns the invoice total to the tax field. What additional diagnosis is needed?

  1. Assume schema validity proves factual correctness
  2. Increase HTTP retries with the identical prompt only
  3. Field-to-source alignment and extraction semantics
  4. Add more permitted numeric ranges but keep the ambiguous field mapping

Explanation

Correct Answer

C:

Schema validation checks shape and constrained values, not whether a number belongs to the correct business field.

Incorrect Answers

A:

A valid number can still be mapped to the wrong field.

B:

Repetition does not directly address ambiguous field instructions or evidence mapping.

D:

Range checks can reject impossible values, but a plausible total can still be assigned to tax. Validate meaning against source labels.

Question 395

A custom search backend returns cosine distance with smaller values indicating closer matches. An adapter sorts that field descending as though it were similarity, promoting poor matches. What should be corrected?

  1. Align ranking direction and score interpretation with the backend's documented metric
  2. Re-embed only queries using an arbitrary second model
  3. Multiply every cosine-distance value by a positive constant but retain descending order
  4. Increase the candidate count while preserving the reversed sort

Explanation

Correct Answer

A:

Distance and similarity need not share an ordering convention. Unit-test known close and distant pairs before passing candidates to the generator.

Incorrect Answers

B:

Changing representation can introduce incompatibility and leaves the adapter's descending-distance bug intact.

C:

Positive rescaling preserves the reversed ordering. Correct the distance-versus-similarity interpretation and verify ranking with known close and distant pairs.

D:

More candidates do not correct which end of the ranked list is considered best. Poor matches can still be promoted.

Question 396

A model rejects a tool result because its identifier does not match the outstanding tool request. What should the client correct?

  1. Increase model temperature
  2. Rename the business function without fixing the identifier
  3. Start another payment action to obtain a new ID
  4. Preserve and return the exact tool-use correlation identifier in the proper message structure

Explanation

Correct Answer

D:

The model needs the result associated with the pending call. A new arbitrary identifier breaks that association.

Incorrect Answers

A:

Sampling does not repair protocol correlation.

B:

Function naming and invocation correlation are different fields.

C:

An unrelated side effect does not resolve the existing pending result.

Question 397

A Converse client sets additionalModelResponseFieldPaths to an empty JSON Pointer and receives a 400 error. Its ordinary request fields are valid. What should the developer change?

  1. Move the empty pointer into the model's system prompt
  2. Increase maxTokens because the field name concerns the response
  3. Assume every missing native response field must be repaired by changing IAM
  4. Use valid supported JSON Pointer paths for requested native response fields or omit the optional setting

Explanation

Correct Answer

D:

An empty or malformed pointer is rejected. A syntactically valid pointer to an absent response field is a different case and does not imply the same malformed-request error.

Incorrect Answers

A:

A prompt instruction does not configure which native response fields the API returns.

B:

Completion capacity does not make an invalid pointer syntactically valid. The request needs correction before generation.

C:

Field extraction syntax and service authorization are separate. The stated 400 error is explained by the invalid pointer.

Question 398

An assistant starts refusing benign requests after a policy update. What should diagnosis compare?

  1. Disable all safety controls immediately
  2. Increase retrieval depth without inspecting refusals
  3. Policy intervention records, prompt versions, and labeled benign cases
  4. Assume every refusal is a network failure

Explanation

Correct Answer

C:

Refusal can originate in application instructions or safety controls. Isolate the changed layer before weakening protection.

Incorrect Answers

A:

That abandons protection without identifying the cause.

B:

More context may not affect a policy-triggered response.

D:

The model produced a response, so reachability alone does not explain it.

Question 399

An index suddenly contains many identical paragraphs after a connector update. What should be investigated?

  1. Source identity, connector enumeration, and idempotent ingestion keys
  2. Only reduce output temperature
  3. Delete all distinct source content
  4. Only increase database replicas

Explanation

Correct Answer

A:

A connector can enumerate the same content under multiple locations. Fix source mapping before merely hiding duplicate results.

Incorrect Answers

B:

Sampling does not prevent duplicate indexed records.

C:

That destroys useful evidence rather than isolating duplicate enumeration.

D:

More capacity stores the duplicates more efficiently without removing their cause.

Question 400

A sporadic answer defect cannot be reproduced from the user's latest message alone. What evidence supports controlled replay?

  1. Only the last user turn and today's corpus, without the original retrieved revisions
  2. Only today's default model settings
  3. The authorized conversation state, rendered prompt, retrieved revisions, and component settings
  4. Only aggregate invocation metrics without the failing request's assembled state

Explanation

Correct Answer

C:

The effective input includes more than the last turn. Capture enough protected context to reconstruct the failing conditions.

Incorrect Answers

A:

Conversation state and historical evidence can affect the outcome. Replaying against current sources can fail to reproduce a defect tied to older context.

B:

Defaults may differ from the configuration active during failure.

D:

Aggregates describe service behavior but do not reconstruct the specific history, evidence, and configuration that produced the answer.

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