100% Latest & Updated Microsoft AI-901 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 230
A Python app needs a lightweight terminal conversation with a deployed model and no tool use. What is the minimum functional loop?
- Use role-typed messages to separate system instructions and user content.
- Include appropriate conversation history or use an explicitly managed conversation state.
- Supply the project's documented endpoint and appropriate credential.
- Send the user message, read the model reply and maintain required chat state.
Explanation
Correct Answer
D:A basic chat client only needs authenticated inference calls and correctly managed messages.
Incorrect Answers
A:Typed chat roles preserve instruction boundaries during inference. A basic chat client only needs authenticated inference calls and correctly managed messages.
B:The model has no guaranteed memory of prior stateless requests without supplied state, but a basic chat client only needs authenticated inference calls and correctly managed messages.
C:The SDK requires a service/project location and authentication, not merely an advertised model label. A basic chat client only needs authenticated inference calls and correctly managed messages.
Question 231
A tool call's response has no value for a required field. What should the client do before a model uses it?
- Refresh credentials through the supported identity provider or fail securely.
- Validate tool result fields and handle missing values explicitly.
- Create an agent with instructions and explicitly authorized tool connections.
- Parse the response and validate data types and required fields before processing.
Explanation
Correct Answer
B:Tool outputs are untrusted input and missing data should not be silently invented.
Incorrect Answers
A:Authentication tokens have lifetimes; using expired credentials must not bypass access control, but tool outputs are untrusted input and missing data should not be silently invented.
C:An agent needs defined goals and permitted tool interfaces before meaningful test runs; tool outputs are untrusted input and missing data should not be silently invented.
D:Model outputs can be syntactically plausible yet violate the application's contract, whereas tool outputs are untrusted input and missing data should not be silently invented.
Question 232
A client needs to stop sending prompts after user authentication expires. What should it do?
- Validate tool result fields and handle missing values explicitly.
- Use separate scoped identities and configuration for each environment.
- Refresh credentials through the supported identity provider or fail securely.
- Validate that required response content is present before showing success.
Explanation
Correct Answer
C:Authentication tokens have lifetimes; using expired credentials must not bypass access control.
Incorrect Answers
A:Tool outputs are untrusted input and missing data should not be silently invented. Authentication tokens have lifetimes; using expired credentials must not bypass access control.
B:Environment isolation reduces accidental cross-environment effects and secret exposure; authentication tokens have lifetimes; using expired credentials must not bypass access control.
D:Transport-level success does not guarantee application-level output completeness. Authentication tokens have lifetimes; using expired credentials must not bypass access control.
Question 233
An app has one deployment for routine prompts and one for complex reasoning. What should decide which one is called?
- Route based on validated task complexity, quality and policy constraints.
- Use separate scoped identities and configuration for each environment.
- Validate that required response content is present before showing success.
- Fetch the authorized row and include its relevant fields as grounding context.
Explanation
Correct Answer
A:Application routing should use explicit workload criteria and approved model capabilities.
Incorrect Answers
B:Environment isolation reduces accidental cross-environment effects and secret exposure, whereas application routing should use explicit workload criteria and approved model capabilities.
C:Transport-level success does not guarantee application-level output completeness. Application routing should use explicit workload criteria and approved model capabilities.
D:A deployed model cannot reliably access private application state that was never supplied, but application routing should use explicit workload criteria and approved model capabilities.
Question 234
A developer needs to compare the model's structured output against an expected JSON schema. What should be enforced after the response?
- Validate that required response content is present before showing success.
- Validate tool result fields and handle missing values explicitly.
- Fetch the authorized row and include its relevant fields as grounding context.
- Parse the response and validate data types and required fields before processing.
Explanation
Correct Answer
D:Model outputs can be syntactically plausible yet violate the application's contract.
Incorrect Answers
A:Transport-level success does not guarantee application-level output completeness. This addresses foundry client semantic response presence, but it does not directly deliver foundry client post response validation for the scenario.
B:Tool outputs are untrusted input and missing data should not be silently invented. This addresses foundry SDK tool output validation, but it does not directly deliver foundry client post response validation for the scenario.
C:A deployed model cannot reliably access private application state that was never supplied. This addresses foundry client database grounding, but it does not directly deliver foundry client post response validation for the scenario.
Question 235
A development environment and production environment share one administrator key for model calls. What should change?
- Use separate scoped identities and configuration for each environment.
- Fetch the authorized row and include its relevant fields as grounding context.
- Parse the response and validate data types and required fields before processing.
- Validate that required response content is present before showing success.
Explanation
Correct Answer
A:Environment isolation reduces accidental cross-environment effects and secret exposure.
Incorrect Answers
B:A deployed model cannot reliably access private application state that was never supplied, but environment isolation reduces accidental cross-environment effects and secret exposure.
C:Model outputs can be syntactically plausible yet violate the application's contract. Environment isolation reduces accidental cross-environment effects and secret exposure.
D:Transport-level success does not guarantee application-level output completeness; environment isolation reduces accidental cross-environment effects and secret exposure.
Question 236
An inference client displays a full stack trace and request secret to end users after timeout. What error-handling change helps?
- Validate that required response content is present before showing success.
- Return a sanitized retryable error message while logging only safe diagnostics.
- Fetch the authorized row and include its relevant fields as grounding context.
- Use separate scoped identities and configuration for each environment.
Explanation
Correct Answer
B:User-visible error handling should not expose credentials or internal sensitive context.
Incorrect Answers
A:Transport-level success does not guarantee application-level output completeness, but user-visible error handling should not expose credentials or internal sensitive context.
C:A deployed model cannot reliably access private application state that was never supplied; user-visible error handling should not expose credentials or internal sensitive context.
D:Environment isolation reduces accidental cross-environment effects and secret exposure, whereas user-visible error handling should not expose credentials or internal sensitive context.
Question 237
A team wants to minimize latency when multiple independent retrieval calls are required. What execution tactic is valid?
- Run independent read-only retrieval operations concurrently within rate limits.
- Validate that required response content is present before showing success.
- Use separate scoped identities and configuration for each environment.
- Fetch the authorized row and include its relevant fields as grounding context.
Explanation
Correct Answer
A:Parallel nondependent calls can reduce wall-clock time without changing authorization boundaries.
Incorrect Answers
B:Transport-level success does not guarantee application-level output completeness; parallel nondependent calls can reduce wall-clock time without changing authorization boundaries.
C:Environment isolation reduces accidental cross-environment effects and secret exposure, whereas parallel nondependent calls can reduce wall-clock time without changing authorization boundaries.
D:A deployed model cannot reliably access private application state that was never supplied. Parallel nondependent calls can reduce wall-clock time without changing authorization boundaries.
Question 238
A user asks for a chat reply based on a particular database row but the SDK call includes no row data or tool. What should the app supply?
- Parse the response and validate data types and required fields before processing.
- Create an agent with instructions and explicitly authorized tool connections.
- Fetch the authorized row and include its relevant fields as grounding context.
- Validate tool result fields and handle missing values explicitly.
Explanation
Correct Answer
C:A deployed model cannot reliably access private application state that was never supplied.
Incorrect Answers
A:Model outputs can be syntactically plausible yet violate the application's contract; a deployed model cannot reliably access private application state that was never supplied.
B:An agent needs defined goals and permitted tool interfaces before meaningful test runs, whereas a deployed model cannot reliably access private application state that was never supplied.
D:Tool outputs are untrusted input and missing data should not be silently invented, but a deployed model cannot reliably access private application state that was never supplied.
Question 239
A model call reports successful HTTP status but no usable answer content. What robustness check is missing?
- Validate tool result fields and handle missing values explicitly.
- Validate that required response content is present before showing success.
- Use separate scoped identities and configuration for each environment.
- Parse the response and validate data types and required fields before processing.
Explanation
Correct Answer
B:Transport-level success does not guarantee application-level output completeness.
Incorrect Answers
A:Tool outputs are untrusted input and missing data should not be silently invented, whereas transport-level success does not guarantee application-level output completeness.
C:Environment isolation reduces accidental cross-environment effects and secret exposure, but transport-level success does not guarantee application-level output completeness.
D:Model outputs can be syntactically plausible yet violate the application's contract. Transport-level success does not guarantee application-level output completeness.
Question 240
A company wants a single-agent solution that reads approved knowledge and selects from two tools. What should be configured first?
- Validate tool result fields and handle missing values explicitly.
- Fetch the authorized row and include its relevant fields as grounding context.
- Use separate scoped identities and configuration for each environment.
- Create an agent with instructions and explicitly authorized tool connections.
Explanation
Correct Answer
D:An agent needs defined goals and permitted tool interfaces before meaningful test runs.
Incorrect Answers
A:Tool outputs are untrusted input and missing data should not be silently invented. An agent needs defined goals and permitted tool interfaces before meaningful test runs.
B:A deployed model cannot reliably access private application state that was never supplied, but an agent needs defined goals and permitted tool interfaces before meaningful test runs.
C:Environment isolation reduces accidental cross-environment effects and secret exposure. An agent needs defined goals and permitted tool interfaces before meaningful test runs.
Microsoft Azure AI Fundamentals (AI-901) Practice Tests