Question 140
A production GenAI service has TWO independent requirements. (1) A service returns malformed JSON after the prompt template changes its formatting instructions. (2) A conversational assistant begins truncating the final user question as the history grows. Which TWO actions directly satisfy both requirements?
Explanation
Correct Answers
Correct for requirement (2). Input overflow can remove the most important recent instruction even when the API call succeeds. The action addresses this distinct requirement: A conversational assistant begins truncating the final user question as the history grows. The other requirement still needs its own authorized control.
Correct for requirement (1). Prompt maintenance errors can be isolated with versioned contract testing. The action addresses this distinct requirement: A service returns malformed JSON after the prompt template changes its formatting instructions. The other requirement still needs its own authorized control.
Incorrect Answers
Anonymous vote aggregates and model version alone cannot tie a complaint to the specific generated answer and its source evidence. In this case the first outcome requires the team to diff prompt versions, validate output schema and add failing examples to prompt regression tests, and the second requires it to inspect token accounting and context-window allocation, retaining key state while trimming old irrelevant messages. This option does not replace those two separate controls.
Stakeholder reporting should connect technical metrics to accepted operational outcomes. In this case the first outcome requires the team to diff prompt versions, validate output schema and add failing examples to prompt regression tests, and the second requires it to inspect token accounting and context-window allocation, retaining key state while trimming old irrelevant messages. This option does not replace those two separate controls.
Service availability and real task correctness require separate assertions. In this case the first outcome requires the team to diff prompt versions, validate output schema and add failing examples to prompt regression tests, and the second requires it to inspect token accounting and context-window allocation, retaining key state while trimming old irrelevant messages. This option does not replace those two separate controls.