Microsoft AB-620 Practice Test 12
Question 110
A service tool returns a JSON list of eligible products and the topic must select one ID. A proposed alternative is: 'Parse arbitrary tool output as executable code and trust every model-selected ID'. Which diagnosis BEST explains the deficiency in that alternative?
- Free-form text can violate parser expectations
- Conversation state must reflect the latest confirmed selection to avoid wrong-target actions
- Evolving tool schemas must not create null exceptions or false discounts
- Unchecked execution and unvalidated identifiers create reliability and security risks
Explanation
Correct Answer
D:Parsing arbitrary tool output as executable code creates an unnecessary injection surface, while a model-chosen ID outside the permitted result list may act on a different product. Typed parsing and server-side authorization must both succeed.
Incorrect Answers
A:This concern relates to a different decision: An agent needs to return strict JSON to an internal middleware caller but readable prose in a customer chat It does not directly diagnose the rejected proposal here: Parse arbitrary tool output as executable code and trust every model-selected ID
B:That justification supports another control: Use explicit conditions and correctly reset or overwrite topic variables when the product changes It does not establish the immediate flaw in this scenario's proposal.
C:This describes a future change: The service later adds a nullable discount value It does not explain why the present proposed action is deficient.
Question 111
A service tool returns a JSON list of eligible products and the topic must select one ID. After adopting 'Use typed output fields, parse the tool result and validate the chosen identifier before action', which result is the STRONGEST evidence that the control works?
- Tests switch products mid-dialogue and confirm only the final authorized ID is used
- The design board approves 'Use typed output fields, parse the tool result and validate the chosen identifier before action' on paper, without executing its validation procedure.
- No user complaints have been recorded about the configure topics service since the last meeting.
- A simulated malformed response is rejected with a safe customer message and no downstream update
Explanation
Correct Answer
D:A malformed test JSON response should fail closed: the agent returns a controlled error, performs no downstream purchase or update, and records an actionable trace. A plausible answer produced from an invalid schema is not acceptance evidence.
Incorrect Answers
A:This confirms a different outcome: A customer chooses a different product during a multi-step cancellation conversation It does not directly demonstrate the current implemented control.
B:Governance approval is not the same as operational evidence. A stronger proof for this case is: A simulated malformed response is rejected with a safe customer message and no downstream update
C:Absence of complaints does not establish control effectiveness. This case needs observed evidence: A simulated malformed response is rejected with a safe customer message and no downstream update
Question 112
The original requirement was: A service tool returns a JSON list of eligible products and the topic must select one ID. The initial control is already in place. A new requirement appears: The service later adds a nullable discount value. What ADDITIONAL action BEST addresses that change?
- Use typed output fields, parse the tool result and validate the chosen identifier before action
- Parse arbitrary tool output as executable code and trust every model-selected ID
- A simulated malformed response is rejected with a safe customer message and no downstream update
- Handle the optional field explicitly and default only according to business rules
Explanation
Correct Answer
D:A newly optional discount field should be treated as nullable in the response schema. Apply a default only when an approved pricing rule says how null differs from zero, and verify that absence never becomes an invented discount.
Incorrect Answers
A:This is the already deployed original solution. The topic needs a stable interface between returned tool data and subsequent choices It does not address the additional requirement by itself.
B:This was not defensible for the initial situation and remains inappropriate. Unchecked execution and unvalidated identifiers create reliability and security risks
C:This documents the original outcome rather than implementing the new change. A simulated malformed response is rejected with a safe customer message and no downstream update
Question 113
A topic calls a payment-status flow but sometimes omits the mandatory invoice number. Which recommendation BEST meets the original requirement?
- Add a variable validation and an explicit clarifying question before invoking the flow
- Send an empty invoice number and let the provider guess the customer's account
- Present eligible choices with identifiers securely bound to the signed-in user
- Configure channel-aware response formatting and a schema-valid structured output for the middleware
Explanation
Correct Answer
A:Validate the invoice number before invoking the payment-status tool. If it is missing or malformed, ask a clarifying question and do not call the backend with an unbound customer identifier.
Incorrect Answers
B:Unvalidated identifiers can return incorrect or unauthorized data The rejected option is: Send an empty invoice number and let the provider guess the customer's account
C:This applies when a different later requirement appears: A later requirement allows an invoice number to be selected from previously verified invoices Previously verified context can assist input collection only with authorization It is not the requested initial control.
D:This can be useful in a different Configure topics context: An agent needs to return strict JSON to an internal middleware caller but readable prose in a customer chat It is not the most directly justified action for the stated scenario.
Question 114
A topic calls a payment-status flow but sometimes omits the mandatory invoice number. A proposed alternative is: 'Send an empty invoice number and let the provider guess the customer's account'. Which diagnosis BEST explains the deficiency in that alternative?
- Unvalidated identifiers can return incorrect or unauthorized data
- Mismatched state can cancel an unintended product
- Structured retrieval results let the agent answer from the permitted proprietary index
- Previously verified context can assist input collection only with authorization
Explanation
Correct Answer
A:An empty invoice number does not identify the intended payment and should not authorize the provider to guess a customer account. The topic must collect a usable value and the backend must still verify that the caller can view the invoice.
Incorrect Answers
B:This concern relates to a different decision: A customer chooses a different product during a multi-step cancellation conversation It does not directly diagnose the rejected proposal here: Send an empty invoice number and let the provider guess the customer's account
C:That justification supports another control: Implement a governed custom knowledge retrieval trigger or tool with properly shaped grounded results It does not establish the immediate flaw in this scenario's proposal.
D:This describes a future change: A later requirement allows an invoice number to be selected from previously verified invoices It does not explain why the present proposed action is deficient.
Question 115
A topic calls a payment-status flow but sometimes omits the mandatory invoice number. After adopting 'Add a variable validation and an explicit clarifying question before invoking the flow', which result is the STRONGEST evidence that the control works?
- Tests demonstrate missing identifiers request clarification, and valid identifiers map to the proper record
- Evaluation traces contain only authorized top-ranked excerpts with source identifiers
- The design board approves 'Add a variable validation and an explicit clarifying question before invoking the flow' on paper, without executing its validation procedure.
- No user complaints have been recorded about the configure topics service since the last meeting.
Explanation
Correct Answer
A:Test a missing number, an invalid number, and a correct authorized invoice. Only the validated case should reach the backend; the other cases should prompt for correction without leaking other customers’ statuses.
Incorrect Answers
B:This confirms a different outcome: A proprietary search service is the only approved source for a complex contract-answer topic It does not directly demonstrate the current implemented control.
C:Governance approval is not the same as operational evidence. A stronger proof for this case is: Tests demonstrate missing identifiers request clarification, and valid identifiers map to the proper record
D:Absence of complaints does not establish control effectiveness. This case needs observed evidence: Tests demonstrate missing identifiers request clarification, and valid identifiers map to the proper record
Question 116
The original requirement was: A topic calls a payment-status flow but sometimes omits the mandatory invoice number. The initial control is already in place. A new requirement appears: A later requirement allows an invoice number to be selected from previously verified invoices. What ADDITIONAL action BEST addresses that change?
- Present eligible choices with identifiers securely bound to the signed-in user
- Add a variable validation and an explicit clarifying question before invoking the flow
- Send an empty invoice number and let the provider guess the customer's account
- Tests demonstrate missing identifiers request clarification, and valid identifiers map to the proper record
Explanation
Correct Answer
A:When a user may pick among previously verified invoices, display only invoice identifiers returned for the authenticated principal. Revalidate the chosen ID at tool execution; prior chat state alone does not authorize a financial lookup.
Incorrect Answers
B:This is the already deployed original solution. Required inputs should be collected or validated before a transaction query It does not address the additional requirement by itself.
C:This was not defensible for the initial situation and remains inappropriate. Unvalidated identifiers can return incorrect or unauthorized data
D:This documents the original outcome rather than implementing the new change. Tests demonstrate missing identifiers request clarification, and valid identifiers map to the proper record
Question 117
An agent needs to return strict JSON to an internal middleware caller but readable prose in a customer chat. Which recommendation BEST meets the original requirement?
- Version and validate the output contract before deployment
- Use explicit conditions and correctly reset or overwrite topic variables when the product changes
- Configure channel-aware response formatting and a schema-valid structured output for the middleware
- Reuse a free-form conversational paragraph where the consuming API requires JSON
Explanation
Correct Answer
C:The internal middleware requires schema-valid JSON, whereas a human chat requires readable text. Keep a typed or validated machine-facing output contract and apply channel-specific presentation rather than passing arbitrary prose to a JSON parser.
Incorrect Answers
A:This applies when a different later requirement appears: The middleware later introduces a required schema version field A breaking contract change requires schema management rather than opportunistic prose It is not the requested initial control.
B:This can be useful in a different Configure topics context: A customer chooses a different product during a multi-step cancellation conversation It is not the most directly justified action for the stated scenario.
D:Free-form text can violate parser expectations The rejected option is: Reuse a free-form conversational paragraph where the consuming API requires JSON
Question 118
An agent needs to return strict JSON to an internal middleware caller but readable prose in a customer chat. A proposed alternative is: 'Reuse a free-form conversational paragraph where the consuming API requires JSON'. Which diagnosis BEST explains the deficiency in that alternative?
- Runtime errors must not be shown as fabricated successful availability
- A breaking contract change requires schema management rather than opportunistic prose
- Free-form text can violate parser expectations
- Bulk exposure increases confidentiality and context-limit risks
Explanation
Correct Answer
C:Natural-language prose is not guaranteed to parse as JSON and may omit required keys or quote characters. The machine consumer must receive a validated structured response, with failures surfaced separately from normal customer-facing text.
Incorrect Answers
A:That justification supports another control: Add an explicit transient-error branch with bounded retry and a useful fallback message It does not establish the immediate flaw in this scenario's proposal.
B:This describes a future change: The middleware later introduces a required schema version field It does not explain why the present proposed action is deficient.
D:This concern relates to a different decision: A proprietary search service is the only approved source for a complex contract-answer topic It does not directly diagnose the rejected proposal here: Reuse a free-form conversational paragraph where the consuming API requires JSON
Question 119
An agent needs to return strict JSON to an internal middleware caller but readable prose in a customer chat. After adopting 'Configure channel-aware response formatting and a schema-valid structured output for the middleware', which result is the STRONGEST evidence that the control works?
- The design board approves 'Configure channel-aware response formatting and a schema-valid structured output for the middleware' on paper, without executing its validation procedure.
- No user complaints have been recorded about the configure topics service since the last meeting.
- Schema tests parse the API output and human-channel tests display clear natural language
- Injected 503 tests show a safe unavailable-status message without fabricated slots
Explanation
Correct Answer
C:Exercise JSON schema tests with required and optional fields and run a human-channel test for readable, nontechnical messaging. A schema pass alone cannot prove a chat answer is useful, just as a fluent reply cannot prove middleware compatibility.
Incorrect Answers
A:Governance approval is not the same as operational evidence. A stronger proof for this case is: Schema tests parse the API output and human-channel tests display clear natural language
B:Absence of complaints does not establish control effectiveness. This case needs observed evidence: Schema tests parse the API output and human-channel tests display clear natural language
D:This confirms a different outcome: An agent's HTTP topic occasionally receives a 503 error from an availability API It does not directly demonstrate the current implemented control.
Question 120
The original requirement was: An agent needs to return strict JSON to an internal middleware caller but readable prose in a customer chat. The initial control is already in place. A new requirement appears: The middleware later introduces a required schema version field. What ADDITIONAL action BEST addresses that change?
- Reuse a free-form conversational paragraph where the consuming API requires JSON
- Schema tests parse the API output and human-channel tests display clear natural language
- Version and validate the output contract before deployment
- Configure channel-aware response formatting and a schema-valid structured output for the middleware
Explanation
Correct Answer
C:If a new middleware field becomes mandatory, evolve and version the structured schema and add regression cases. Do not silently change customer-facing wording or send a partially compliant payload to the dependent service.
Incorrect Answers
A:This was not defensible for the initial situation and remains inappropriate. Free-form text can violate parser expectations
B:This documents the original outcome rather than implementing the new change. Schema tests parse the API output and human-channel tests display clear natural language
D:This is the already deployed original solution. Machine-readable contracts and human responses have distinct format requirements It does not address the additional requirement by itself.