Question 130
Few-shot examples include real customer records, and outputs occasionally reproduce them. What should the team change?
- Add more real examples to dilute each customer's visibility
- Increase maximum output length
- Rely only on a sentence saying examples are private
- Replace examples with representative synthetic or properly de-identified records
Explanation
Correct Answer
D:Demonstrations should teach structure without unnecessary personal data. Check that replacements preserve the task distinctions.
Incorrect Answers
A:More sensitive records increase exposure rather than providing a privacy control.
B:More capacity can permit more reproduction and does not remove sensitive input.
C:The model still sees the data, and instruction following does not eliminate leakage risk.
Question 131
An extraction stage returns an invalid date, which later prompts treat as verified. Where should the workflow stop the propagation?
- Repeat the invalid field in every intermediate prompt
- At the stage boundary, validate the date and route invalid results for correction
- Add a more confident writing style to the final prompt
- Only after the final report is published
Explanation
Correct Answer
B:Chained prompts amplify unchecked assumptions. Validation prevents derived stages from laundering a bad field into authoritative output.
Incorrect Answers
A:Repetition reinforces the error without verifying its correctness.
C:Confidence changes presentation and can conceal the invalid date.
D:Late detection allows invalid data to influence all intervening stages and users.
Question 132
A custom prompt renderer recursively expands {{variables}} until no markers remain. Customer-supplied text can contain the same syntax and unexpectedly reference internal template variables. Which repair best preserves the intended data boundary?
- Remove every customer message containing braces
- Escape only HTML characters before recursive template evaluation
- Perform controlled substitution of approved template slots once and keep inserted customer text literal
- Allow recursive expansion but ask the FM not to reveal internal variables
Explanation
Correct Answer
C:Recursive expansion can promote inserted data into template instructions. A single controlled binding phase prevents customer content from triggering another lookup while preserving its literal meaning.
Incorrect Answers
A:Braces can appear legitimately in code or data. Rejecting all such inputs sacrifices valid use instead of repairing the templating boundary.
B:HTML and template parsing have different syntax. Markup escaping does not necessarily neutralize the renderer's variable delimiters.
D:The exposure occurs in application rendering before inference. A later instruction cannot undo an internal value already substituted into the prompt.
Question 133
A prompt template expands multiple optional sections, sometimes leaving no room for the requested answer. What assembly policy fits?
- Budget tokens for instructions, context, history, and completion before sending the request
- Set every optional section to its maximum length
- Measure only the literal template before variable substitution
- Assume a larger HTTP payload limit increases model context
Explanation
Correct Answer
A:The total request must fit the chosen model's limits. Prioritize essential sections and shorten optional material predictably.
Incorrect Answers
B:This increases the overflow risk without considering the output requirement.
C:Expanded variables can dominate the request. Static template size understates actual input.
D:Transport and model token limits are different constraints.
Question 134
A classifier repeatedly labels refund requests as shipping issues. What few-shot addition most directly targets this confusion?
- Repeat the category names without definitions or examples
- Add verified contrasting examples near the refund-versus-shipping boundary
- Add unrelated positive reviews
- Increase answer verbosity while keeping the classification prompt unchanged
Explanation
Correct Answer
B:Boundary examples teach the distinction the model is missing. Evaluate new cases to ensure it learns the decision rather than memorizing records.
Incorrect Answers
A:Names alone may preserve the ambiguity that produced the error.
C:Those examples do not distinguish the confused categories.
D:Longer explanations do not necessarily correct the underlying category decision.
Question 135
A team wants to test a risky prompt change using production-like data without affecting live users. Which approach fits?
- Run a controlled test environment with approved data handling and a separate candidate reference
- Change the prompt name without changing its reference
- Send raw production secrets to a public test endpoint
- Overwrite the live prompt and monitor complaints
Explanation
Correct Answer
A:Isolation allows comparison and failure analysis before promotion. Production-like data still requires privacy controls.
Incorrect Answers
B:A cosmetic rename does not create an isolated execution path.
C:Testing does not authorize broader disclosure of sensitive data.
D:This exposes all users before the candidate has passed acceptance checks.
Question 136
Users need concise explanations of a recommendation and its supporting facts. What output design is most appropriate?
- Require unrestricted internal reasoning as the only audit artifact
- Show the full system prompt instead of decision evidence
- Request a brief decision summary with source-backed factors and stated uncertainty
- Display only an unexplained numerical confidence value
Explanation
Correct Answer
C:A user-facing explanation should identify evidence and limitations. It need not expose private internal reasoning traces.
Incorrect Answers
A:Internal narratives are not a substitute for verifiable evidence and can contain sensitive implementation details.
B:System instructions describe behavior, not the facts supporting this specific recommendation.
D:A number without calibration or evidence does not explain why the recommendation applies.
Question 137
Users can submit suggested prompt improvements. What should happen before suggestions alter the shared production prompt?
- Treat a high star rating as permission to change tools
- Use only the most recent suggestion regardless of origin
- Append every suggestion to the system prompt automatically
- Review, de-identify, and evaluate suggestions through the normal release workflow
Explanation
Correct Answer
D:Feedback can reveal failures but is untrusted input. Controlled promotion prevents malicious or unrepresentative suggestions from changing policy.
Incorrect Answers
A:Satisfaction feedback does not grant authority to expand operational privileges.
B:Recency does not establish correctness, representativeness, or authorization.
C:This lets external users modify governing instructions without validation.
Question 138
Several prompt templates duplicate the same policy text, and updates diverge. What maintenance design fits?
- Hide policy text in unrelated examples
- Let each model infer the current organization policy
- Use versioned shared components with explicit dependency tracking and regression tests
- Copy the newest text manually without recording dependents
Explanation
Correct Answer
C:Reusability reduces accidental divergence. Dependency tracking identifies which templates need retesting when a component changes.
Incorrect Answers
A:Implicit policies are harder to maintain and verify than explicit governed components.
B:Models do not automatically know the organization's approved policy revisions.
D:Manual copies can remain stale and provide no reliable impact inventory.
Question 139
An agent's payment tool times out after the provider may have charged the card. What prevents a retry from creating a second charge?
- Create a new payment identifier on every retry
- Ask the model whether payment probably succeeded
- Use a business-operation idempotency key and check the recorded outcome
- Assume any timeout means no side effect occurred
Explanation
Correct Answer
C:A stable key links retries to one intended payment. A timeout does not prove that the original operation failed.
Incorrect Answers
A:New identifiers make duplicate requests appear to be independent purchases.
B:Generated confidence cannot establish the provider's authoritative transaction state.
D:The provider may commit before the response is lost, leaving the caller uncertain.
Question 140
A booking tool requires an ISO date and a positive passenger count. Where should generated arguments be checked?
- By comparing the answer's fluency with earlier responses
- Validate types, formats, and business rules in the executor before booking
- After issuing the booking request
- Parse the arguments as JSON but skip date-format and quantity business checks
- Only in the tool's natural-language description
Explanation
Correct Answer
B:A schema catches structural errors; business checks catch inadmissible values. Neither should depend solely on the model following instructions.
Incorrect Answers
A:Linguistic quality does not establish date validity or passenger-count constraints.
C:Validation after execution cannot prevent an invalid reservation from being created.
D:A syntactically valid JSON object can contain an impossible date or negative passenger count. The executor must validate semantics before it books.
E:Descriptions guide selection but do not enforce valid runtime arguments.