Question 380A software team tests model behavior only with the live API and cannot reproduce regressions caused by network variability. Which recurring verification should remain in place after repair? Keep recorded contracts and isolated integration smoke tests with explicit cost budgets. Gate merges on schema compatibility and track contract versions in source control. Version external schemas and run contract tests whenever SDK and API versions change. Enforce dependency locking and software-bill-of-materials review in CI. ExplanationCorrect Answer A:Keep recorded contracts and isolated integration smoke tests with explicit cost budgets. This maintains the fix beyond the immediate incident. The underlying issue is that separating model-independent code behavior from remote model variability makes failures reproducible. The immediate corrective action remains: Introduce mocked API responses and deterministic fixtures for unit tests, reserving live calls for integration suites. Other Answers B:Cross-component integrations depend on consistent executable contracts, not just a passing local unit test. Reducing this risk requires a practice to keep recorded contracts and isolated integration smoke tests with explicit cost budgets. C:Static types do not automatically validate unpredictable JSON received over the network. The lasting safeguard is to keep recorded contracts and isolated integration smoke tests with explicit cost budgets. D:Reproducibility requires versioned dependencies, prompts, schemas, and model identities, not only application source. The lasting safeguard is to keep recorded contracts and isolated integration smoke tests with explicit cost budgets.
Question 381A web application returns user-visible stack traces from API failures, disclosing internal file paths and service configuration. What action would correct this specific behavior? Define typed response contracts and validate external payloads at the boundary before use. Separate confidential credentials from ordinary config, mask diagnostics, and restrict debugging endpoints. Use structured logs with redaction, trace identifiers, and minimum necessary diagnostic fields. Translate internal exceptions into safe public error types while retaining restricted structured diagnostics. ExplanationCorrect Answer D:Error messages cross a trust boundary and can reveal implementation details if surfaced unfiltered. To confirm, trigger a synthetic integration exception and compare client response with protected server logs. Other Answers A:Static types do not automatically validate unpredictable JSON received over the network. The required change instead is to translate internal exceptions into safe public error types while retaining restricted structured diagnostics. B:A configuration interface can become a secret-exfiltration path when introspection exposes its entire environment. A more relevant action is to translate internal exceptions into safe public error types while retaining restricted structured diagnostics. C:Unfiltered debug logging creates a secondary exposure path for secrets and sensitive content. The corrective action for this requirement is to translate internal exceptions into safe public error types while retaining restricted structured diagnostics.
Question 382A web application returns user-visible stack traces from API failures, disclosing internal file paths and service configuration. Which technical mechanism explains why the intended correction works? Error messages cross a trust boundary and can reveal implementation details if surfaced unfiltered. Static types do not automatically validate unpredictable JSON received over the network. A configuration interface can become a secret-exfiltration path when introspection exposes its entire environment. Unfiltered debug logging creates a secondary exposure path for secrets and sensitive content. ExplanationCorrect Answer A:Error messages cross a trust boundary and can reveal implementation details if surfaced unfiltered. This is why the appropriate action is to translate internal exceptions into safe public error types while retaining restricted structured diagnostics. The expected evidence is: Trigger a synthetic integration exception and compare client response with protected server logs. Other Answers B:Static types do not automatically validate unpredictable JSON received over the network. In the stated system, error messages cross a trust boundary and can reveal implementation details if surfaced unfiltered. C:A configuration interface can become a secret-exfiltration path when introspection exposes its entire environment. In the stated system, error messages cross a trust boundary and can reveal implementation details if surfaced unfiltered. D:Unfiltered debug logging creates a secondary exposure path for secrets and sensitive content. By contrast, error messages cross a trust boundary and can reveal implementation details if surfaced unfiltered.
Question 383A web application returns user-visible stack traces from API failures, disclosing internal file paths and service configuration. How should the implementation be tested against this failure? Trigger a synthetic integration exception and compare client response with protected server logs. Return a deliberately wrong field type and verify the application surfaces a controlled error. Call diagnostic endpoints with low privileges and verify no secret material is returned. Trigger a controlled error and scan captured logs for tokens, identifiers, and unmasked payloads. ExplanationCorrect Answer A:Trigger a synthetic integration exception and compare client response with protected server logs. This directly checks whether the proposed action occurred: Translate internal exceptions into safe public error types while retaining restricted structured diagnostics. The relevant mechanism is: Error messages cross a trust boundary and can reveal implementation details if surfaced unfiltered. Other Answers B:Static types do not automatically validate unpredictable JSON received over the network. A more meaningful verification is to trigger a synthetic integration exception and compare client response with protected server logs. C:A configuration interface can become a secret-exfiltration path when introspection exposes its entire environment. The relevant acceptance check is to trigger a synthetic integration exception and compare client response with protected server logs. D:Unfiltered debug logging creates a secondary exposure path for secrets and sensitive content. The failure is checked more directly by a test to trigger a synthetic integration exception and compare client response with protected server logs.
Question 384A web application returns user-visible stack traces from API failures, disclosing internal file paths and service configuration. What durable design rule should be enforced? Centralize exception mapping and review externally visible messages for information disclosure. Review diagnostic outputs during security testing and avoid broad environment dumps. Enforce central log scrubbing rules and test them under error as well as success paths. Version external schemas and run contract tests whenever SDK and API versions change. ExplanationCorrect Answer A:Centralize exception mapping and review externally visible messages for information disclosure. This maintains the fix beyond the immediate incident. The underlying issue is that error messages cross a trust boundary and can reveal implementation details if surfaced unfiltered. The immediate corrective action remains: Translate internal exceptions into safe public error types while retaining restricted structured diagnostics. Other Answers B:A configuration interface can become a secret-exfiltration path when introspection exposes its entire environment. The stronger recurring control is to centralize exception mapping and review externally visible messages for information disclosure. C:Unfiltered debug logging creates a secondary exposure path for secrets and sensitive content. Reducing this risk requires a practice to centralize exception mapping and review externally visible messages for information disclosure. D:Static types do not automatically validate unpredictable JSON received over the network. The lasting safeguard is to centralize exception mapping and review externally visible messages for information disclosure.
Question 385A service interprets a numeric money field as a string after JSON parsing and silently concatenates values rather than adding them. What is the most defensible fix under these conditions? Validate the application schema and business invariants independently of HTTP success and model fluency. Run automated contract tests and code review that update client and server schema together. Define typed response contracts and validate external payloads at the boundary before use. Apply schema and unit validation before arithmetic and reject values whose type or currency is ambiguous. ExplanationCorrect Answer D:Syntactically valid JSON does not ensure business types and units match consumer assumptions. To confirm, submit string and number variants and verify conversion or rejection follows an explicit contract. Other Answers A:Transport success confirms request handling, not semantic correctness of generated business fields. The required change instead is to apply schema and unit validation before arithmetic and reject values whose type or currency is ambiguous. B:Cross-component integrations depend on consistent executable contracts, not just a passing local unit test. The corrective action for this requirement is to apply schema and unit validation before arithmetic and reject values whose type or currency is ambiguous. C:Static types do not automatically validate unpredictable JSON received over the network. The required change instead is to apply schema and unit validation before arithmetic and reject values whose type or currency is ambiguous.
Question 386A service interprets a numeric money field as a string after JSON parsing and silently concatenates values rather than adding them. Which engineering principle most directly fits these observations? Static types do not automatically validate unpredictable JSON received over the network. Cross-component integrations depend on consistent executable contracts, not just a passing local unit test. Syntactically valid JSON does not ensure business types and units match consumer assumptions. Transport success confirms request handling, not semantic correctness of generated business fields. ExplanationCorrect Answer C:Syntactically valid JSON does not ensure business types and units match consumer assumptions. This is why the appropriate action is to apply schema and unit validation before arithmetic and reject values whose type or currency is ambiguous. The expected evidence is: Submit string and number variants and verify conversion or rejection follows an explicit contract. Other Answers A:Static types do not automatically validate unpredictable JSON received over the network. By contrast, syntactically valid JSON does not ensure business types and units match consumer assumptions. B:Cross-component integrations depend on consistent executable contracts, not just a passing local unit test. In the stated system, syntactically valid JSON does not ensure business types and units match consumer assumptions. D:Transport success confirms request handling, not semantic correctness of generated business fields. By contrast, syntactically valid JSON does not ensure business types and units match consumer assumptions.
Question 387A service interprets a numeric money field as a string after JSON parsing and silently concatenates values rather than adding them. Which evidence distinguishes success from an unverified claim? Run a mock tool call through the full adapter and verify both names and types match. Return a deliberately wrong field type and verify the application surfaces a controlled error. Submit string and number variants and verify conversion or rejection follows an explicit contract. Feed valid and deliberately inconsistent invoices and verify rejects include precise field-level errors. ExplanationCorrect Answer C:Submit string and number variants and verify conversion or rejection follows an explicit contract. This directly checks whether the proposed action occurred: Apply schema and unit validation before arithmetic and reject values whose type or currency is ambiguous. The relevant mechanism is: Syntactically valid JSON does not ensure business types and units match consumer assumptions. Other Answers A:Cross-component integrations depend on consistent executable contracts, not just a passing local unit test. A more meaningful verification is to submit string and number variants and verify conversion or rejection follows an explicit contract. B:Static types do not automatically validate unpredictable JSON received over the network. The failure is checked more directly by a test to submit string and number variants and verify conversion or rejection follows an explicit contract. D:Transport success confirms request handling, not semantic correctness of generated business fields. The failure is checked more directly by a test to submit string and number variants and verify conversion or rejection follows an explicit contract.
Question 388A service interprets a numeric money field as a string after JSON parsing and silently concatenates values rather than adding them. Which preventive measure best fits this case? Version external schemas and run contract tests whenever SDK and API versions change. Keep property and invariant tests in CI for every structured extraction contract. Gate merges on schema compatibility and track contract versions in source control. Use typed domain models with tests for units, range, and currency rounding. ExplanationCorrect Answer D:Use typed domain models with tests for units, range, and currency rounding. This maintains the fix beyond the immediate incident. The underlying issue is that syntactically valid JSON does not ensure business types and units match consumer assumptions. The immediate corrective action remains: Apply schema and unit validation before arithmetic and reject values whose type or currency is ambiguous. Other Answers A:Static types do not automatically validate unpredictable JSON received over the network. A more direct preventive measure is to use typed domain models with tests for units, range, and currency rounding. B:Transport success confirms request handling, not semantic correctness of generated business fields. A more direct preventive measure is to use typed domain models with tests for units, range, and currency rounding. C:Cross-component integrations depend on consistent executable contracts, not just a passing local unit test. The stronger recurring control is to use typed domain models with tests for units, range, and currency rounding.
Question 389A developer deploys a changed tool contract without testing backward compatibility for existing queued agent sessions. Which change should the team prioritize for this problem? Version tool schemas and support an explicit migration or draining strategy for in-flight sessions. Use version checks or a transaction-safe compare-and-swap update keyed to the request state. Run automated contract tests and code review that update client and server schema together. Pin dependency versions and build artifacts with a reproducible manifest and traceable release identifiers. ExplanationCorrect Answer A:Long-running sessions may call the old tool signature after a new release has already deployed. To confirm, replay a pre-upgrade session against the new service and verify safe completion or guided migration. Other Answers B:Concurrent writers need explicit ordering guarantees; last-write-wins can lose valid newer results. This failure calls for a decision to version tool schemas and support an explicit migration or draining strategy for in-flight sessions. C:Cross-component integrations depend on consistent executable contracts, not just a passing local unit test. This failure calls for a decision to version tool schemas and support an explicit migration or draining strategy for in-flight sessions. D:Reproducibility requires versioned dependencies, prompts, schemas, and model identities, not only application source. A more relevant action is to version tool schemas and support an explicit migration or draining strategy for in-flight sessions.
Question 390A developer deploys a changed tool contract without testing backward compatibility for existing queued agent sessions. Why is the recommended intervention appropriate here? Concurrent writers need explicit ordering guarantees; last-write-wins can lose valid newer results. Reproducibility requires versioned dependencies, prompts, schemas, and model identities, not only application source. Cross-component integrations depend on consistent executable contracts, not just a passing local unit test. Long-running sessions may call the old tool signature after a new release has already deployed. ExplanationCorrect Answer D:Long-running sessions may call the old tool signature after a new release has already deployed. This is why the appropriate action is to version tool schemas and support an explicit migration or draining strategy for in-flight sessions. The expected evidence is: Replay a pre-upgrade session against the new service and verify safe completion or guided migration. Other Answers A:Concurrent writers need explicit ordering guarantees; last-write-wins can lose valid newer results. In the stated system, long-running sessions may call the old tool signature after a new release has already deployed. B:Reproducibility requires versioned dependencies, prompts, schemas, and model identities, not only application source. By contrast, long-running sessions may call the old tool signature after a new release has already deployed. C:Cross-component integrations depend on consistent executable contracts, not just a passing local unit test. In the stated system, long-running sessions may call the old tool signature after a new release has already deployed.