mcAfee Secure Website
exam =5
exam =6

Exam Code: AI-103

Exam Name: Developing AI Apps and Agents on Azure

Certification Provider: Microsoft

Corresponding Certification: Microsoft Certified: Azure AI Apps and Agents Developer Associate

Microsoft AI-103 Questions & Answers

Reliable & Actual Study Materials for AI-103 Exam Success

187 Questions & Answers with Testing Engine

"AI-103: Developing AI Apps and Agents on Azure" Testing Engine covers all the knowledge points of the real Microsoft AI-103 exam.

The latest actual AI-103 Questions & Answers from Pass4sure. Everything you need to prepare and get best score at AI-103 exam easily and quickly.

exam =7
Guarantee

Satisfaction Guaranteed

Pass4sure has a remarkable Microsoft Candidate Success record. We're confident of our products and provide no hassle product exchange. That's how confident we are!

99.3% Pass Rate
Was: $137.49
Now: $124.99

Microsoft AI-103 Practice Test 15

Question 140

An invoice agent reads an existing draft invoice and its current ETag, validates the quoted unit prices, then prepares an authorized PUT that finalizes the draft. Another service may change those prices after the read. The invoice API supports conditional writes. Which implementation prevents finalization with a stale price snapshot?

  1. Submit the state-changing PUT with `If-Match` set to the validated draft ETag; if the server returns 412, reread and revalidate rather than overwriting newer prices.
  2. Verify the draft ETag in the agent’s local state immediately before issuing an ordinary unconditional PUT.
  3. Set `If-None-Match` on the preceding invoice read and retain the invoice ID for the final update.
  4. Re-read the invoice just before the PUT and compare price fields in memory, then submit an unconditional update.

Explanation

Correct Answer

A:

Microsoft Azure REST guidance uses a strong `If-Match` precondition on state-changing updates and returns HTTP 412 on a version mismatch; an atomic server-side check rejects stale writes until the agent fetches and revalidates current prices.

Incorrect Answers

B:

A local check cannot prevent another writer changing the record between check and PUT; conditional enforcement must happen at the API server.

C:

Read-time cache validation is not the conditional `If-Match` precondition needed to guard a later state-changing PUT against stale writes.

D:

A time-of-check-to-time-of-use race remains possible until the server validates the ETag with the final mutation.

Question 141

A Microsoft Foundry Responses API agent returns two approved function_call items with different call_id values. The application executes both functions successfully, but the next response incorrectly associates the returned results with the wrong calls. Both functions are registered and their argument schemas are valid. What must the application correct?

  1. Replay both function invocations using the same operation names and capture the fresh results in a new response request.
  2. Submit the two returned JSON results as ordinary assistant text messages before asking the model to continue.
  3. Use each function’s operation name as the identifier for its output item in the continuation request.
  4. Submit a distinct function_call_output for each result using the exact call_id from its corresponding function_call, then continue in the supported response or conversation context.

Explanation

Correct Answer

D:

The Foundry Responses tool protocol supplies a model-issued call_id for each requested function. Returning an output item with its matching call_id lets the next response incorporate the correct result without confusing separate calls.

Incorrect Answers

A:

Repeating actions does not attach prior results to their original invocation IDs and risks duplicating side effects.

B:

The Responses function-call protocol expects typed function_call_output items tied to their exact call_id values.

C:

A function may be called multiple times; the model-issued call_id uniquely identifies a specific invocation, not its operation name.

Question 142

A weather tool returns stale metadata but the model treats it as current. What is the most appropriate next action?

  1. Use the model's response timestamp as proof the weather observation is fresh
  2. Ignore the age metadata if the tool call returned HTTP 200
  3. Include timestamps and freshness validation before synthesizing the response.
  4. Raise sampling temperature so the forecast sounds less stale

Explanation

Correct Answer

C:

Tool evidence needs a validated observation timestamp and freshness threshold before being described as current conditions.

Incorrect Answers

A:

Generation time is not the data's observation time.

B:

An HTTP 200 status shows transport success, not that weather observations are current; compare their timestamps against the user's freshness requirement.

D:

Sampling does not update the source observation.

Question 143

A downstream API has a temporary outage during a tool-driven workflow. Which decision directly addresses the observed issue?

  1. Retry the original mutating request every second until the downstream API returns success.
  2. Retry safely with bounded policy and provide explicit failure if unavailable.
  3. Return the model’s predicted successful response while the unavailable API call remains in the retry queue.
  4. Disable all external agent tools for the session after the first transient HTTP failure.

Explanation

Correct Answer

B:

Use bounded retry/backoff for transient tool faults and report an explicit failure when the downstream API remains unavailable.

Incorrect Answers

A:

Unbounded retries without idempotency or a limit can duplicate side effects and worsen a temporary outage.

C:

A predicted response cannot be presented as actual execution success when the downstream tool has not completed.

D:

Permanently disabling unrelated functions is disproportionate to a transient outage and does not implement bounded recovery or a clear failure state.

Question 144

A Foundry agent already treats text returned by external APIs as untrusted and enforces tool permissions. Security now requires automatic detection and filtering signals when a tool response contains hidden prompt-injection instructions. Which guardrail specifically addresses these indirect attacks?

  1. Enable Prompt Shields document-attack protection for external tool responses, inspect detected/filtered annotations, and retain the existing tool authorization controls.
  2. Enable input-prompt attack inspection on messages submitted directly by users and retain current tool permission policies.
  3. Enable semantic Search reranking for retrieved tool-response text and alert on low relevance scores.
  4. Cache trusted tool-response schemas and require the external API to return valid JSON before model consumption.

Explanation

Correct Answer

A:

Microsoft Foundry Prompt Shields covers document or indirect attacks in retrieved third-party content, including the tool-response intervention point. Its detection/filter annotations give the security layer a signal; separate authorization controls must still restrict tool actions.

Incorrect Answers

B:

User-prompt inspection is useful but does not scan prompt-injection instructions embedded in the external tool response itself.

C:

Semantic relevance scores do not classify instructions that attempt to override the agent’s authority or trigger prohibited tool calls.

D:

Schema validation protects format but does not identify malicious instructions inside otherwise valid fields returned by a low-trust source.

Question 145

A downstream CRM requires a JSON object with required id and status fields. Which change should the Azure AI engineer make first?

  1. Define and validate a supported structured output schema before accepting the model result.
  2. Use JSON mode and parse the generated object as a CRM record after checking that it is valid JSON.
  3. Render the result as a Markdown table and convert each cell into an object field in the CRM adapter.
  4. Accept the generated object if its recognized id and status fields are parseable, then pass through any other fields.

Explanation

Correct Answer

A:

A schema-constrained output with required id/status fields and runtime validation makes the CRM integration robust to malformed generations.

Incorrect Answers

B:

Valid JSON syntax does not establish that mandatory id and status properties are present or conform to the CRM contract.

C:

Markdown table extraction is more fragile than an enforced structured schema and does not guarantee the required field types and presence.

D:

Schema validation must also restrict unapproved fields and reject contract errors; partial checks cannot safely accept arbitrary model output.

Question 146

A Foundry application receives parseable JSON from a generative model, but the returned object lacks a field that the business contract declares required. The client must not persist incomplete records. What should the integration enforce?

  1. Set the model response to JSON mode and assume parseable JSON proves that all business-required fields have been supplied.
  2. Validate the types of fields that happen to exist, but treat a completely missing mandatory field as acceptable.
  3. Populate missing required values with generic zero or null placeholders even when the business schema does not allow that substitution.
  4. Validate the parsed object against the complete application schema and reject or explicitly repair records that omit mandatory fields.

Explanation

Correct Answer

D:

Schema validation checks required properties and types after parsing. Invalid records must fail validation or follow a governed repair path before persistence.

Incorrect Answers

A:

JSON mode guarantees syntactic JSON, not presence, valid types, or business completeness. Schema validation is still required.

B:

Type checks do not detect omitted required properties. The downstream record contract explicitly disallows such omissions.

C:

Placeholder values may satisfy parsing while violating business meaning and required-field validation. The record should fail or use an authorized repair path.

Question 147

A compliance system requires output choices only from four approved categories. What is the most appropriate next action?

  1. Prompt the model with the four allowed labels and use its natural-language category phrase as the routing value.
  2. Return a JSON string property named category and rely on JSON parsing to validate it.
  3. Use an enumerated schema or classifier and enforce category constraints.
  4. Supply the four category names as few-shot examples and pass the generated label to the downstream system.

Explanation

Correct Answer

C:

An enumeration constraint or validated classifier limits the output to one of the four approved compliance categories.

Incorrect Answers

A:

Prompt hints do not enforce that output equals one of the four approved enum values.

B:

Correct JSON syntax alone does not restrict category to the approved four-value vocabulary.

D:

Examples can encourage a format but do not replace enum/schema validation at the receiving application boundary.

Question 148

A model produces markdown fences around JSON expected by a parser. Which decision directly addresses the observed issue?

  1. Strip backticks with a fragile string replacement but ignore structural validity
  2. Configure structured response mode when supported and parse without relying on prose formatting.
  3. Use more examples of markdown-fenced JSON and assume the parser adapts
  4. Request an unstructured text response and parse the first brace pair

Explanation

Correct Answer

B:

Structured output support constrains the result schema, whereas prompt-only markdown formatting does not guarantee bare parseable JSON.

Incorrect Answers

A:

Removing fences does not ensure fields, types or syntax are correct.

C:

More markdown-fenced examples can reinforce the wrapper that breaks parsing; use a supported structured response format and validate it at the parser.

D:

Ad hoc extraction can select incomplete or fabricated JSON.

Question 149

A product pipeline must extract a decimal amount and ISO date. How should the engineer implement this requirement?

  1. Validate field types and formats rather than accepting fluent but incompatible strings.
  2. Check that the model output is parseable JSON, then persist its amount and date strings as received.
  3. Apply sentiment or topic classification to the extracted text before mapping it to amount and date fields.
  4. Ask for free-form summaries of each amount and date and let the downstream system interpret them.

Explanation

Correct Answer

A:

Use typed schema fields and validate numeric/ISO-date forms before data enters a production product pipeline.

Incorrect Answers

B:

Parseable JSON does not ensure that amount is a decimal and the date uses the required ISO format.

C:

Classification does not establish numeric and ISO date type compatibility for the required output contract.

D:

Fluent descriptions are not substitutes for validated typed values and formats at the application boundary.

Question 150

An LLM predicts a customer sentiment with no evidence support. Which change should the Azure AI engineer make first?

  1. Record the returned sentiment label and the model deployment identifier as the explanation for its prediction.
  2. Use account history and customer value to infer a likely positive or negative sentiment label.
  3. Include the model confidence score beside the sentiment label and accept values above the configured threshold.
  4. Include original text span and evaluation checks instead of an unsupported label alone.

Explanation

Correct Answer

D:

A sentiment output should be grounded in observable input text and tested against labeled examples, with evidence spans where appropriate.

Incorrect Answers

A:

A model identifier traces inference but does not support the sentiment classification from the customer’s actual language.

B:

Commercial account metadata is not evidence of the sentiment expressed in the specific message.

C:

A confidence estimate without cited input spans or evaluation can be confidently wrong; check the underlying customer text.

Developing AI Apps and Agents on Azure (AI-103) Practice Tests