Microsoft

AI-103 Free Practice Questions — Page 2

Question 11

HOTSPOT - You have a Microsoft Foundry project that contains an agent. The agent accepts user-uploaded screenshots and uses a multimodal chat model. Some screenshots contain potentially malicious embedded text. You need to prevent a prompt injection attack and ensure that third-party content is treated as lower trust. How should you configure prompt shields for document attacks? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AI-103 question 11
Show Answer
Correct Answer: Prompt shields action: Set action to block. Additional mitigation: Enable Spotlighting.
Explanation:
Blocking prevents prompt injection attacks from malicious embedded document content. Spotlighting marks third-party content as lower trust so the model distinguishes untrusted content from trusted instructions.

Question 12

You have a Microsoft Foundry project that contains an agent and an image generation model deployment. The agent generates original images from user-supplied product photos. You need to ensure that the generated images maintain the product identity and visual characteristics of the provided photo. What should you do?

A. Set the input_fidelity parameter to high.
B. Apply a groundedness detection filter.
C. Include a prompt and input image in the request.
D. Decrease the value of the temperature parameter.
Show Answer
Correct Answer: A
Explanation:
The image generation/editing capability uses the input_fidelity parameter to control how closely the generated image preserves the identity and visual characteristics of the provided input image. Setting input_fidelity to high maximizes preservation of the original product while allowing the requested edits. Groundedness detection is unrelated, providing an image and prompt alone does not enforce strong identity preservation, and temperature affects randomness rather than fidelity.

Question 13

You have a Microsoft Foundry project that contains an agent. The agent ingests scanned PDF vendor invoices that contain tables and embedded QR codes. The agent must preserve the PDF layout in the extracted output to ensure that downstream processing can reference sections and tables. You plan to call Azure Content Understanding in Foundry Tools. You need to extract content and layout elements and detect QR codes without requiring a language model deployment. Which built-in analyzer should you use?

A. prebuilt-documentFieldSchema
B. prebuilt-read
C. prebuilt-documentSearch
D. prebuilt-layout
Show Answer
Correct Answer: D
Explanation:
The built-in prebuilt-layout analyzer extracts text along with document structure and layout elements such as tables, paragraphs, and sections, while also supporting barcode/QR code detection. It does not require deploying a language model. The other options are intended for different purposes and do not provide the required combination of layout preservation and QR code detection.

Question 14

You have a Microsoft Foundry project that generates product marketing images from text prompts. After publishing several images, the legal team at your company identifies a competitor’s logo on a sign in the background of an image. You need to remove only the logo, while preserving the rest of the image. What should you do?

A. Apply a mask-based inpainting edit to the part of the image that contains the logo.
B. Increase the prompt guidance strength.
C. Modify the original prompt to exclude brand names.
D. Rerun the prompt by using a different random seed.
Show Answer
Correct Answer: A
Explanation:
Mask-based inpainting is designed to edit a specific region of an existing image while preserving the rest. By masking only the area containing the competitor's logo and applying inpainting, the logo can be removed without regenerating the entire image. Increasing guidance strength, changing the prompt, or using a different random seed would generate a different image rather than surgically editing the existing one.

Question 15

You are creating an image-editing workflow in a Microsoft Foundry project. The workflow must meet the following requirements: Ensure that background objects can be removed by applying a mask-based inpainting edit. Preserve the original lighting and style of the edited images. Use the built-in image editing controls, NOT a custom model. You need to ensure that image edits apply exclusively inside the masked area. How should you configure the workflow?

A. Set generation mode to image_variation and provide the original image as a reference.
B. Enable text_to_image mode and a prompt describing the desired background removal.
C. Enable image_to_image mode and a high-strength value to regenerate the full image based on the prompt.
D. Enable mask_inpainting and supply both the input image and a mask indicating which part of the image to modify.
Show Answer
Correct Answer: D
Explanation:
Mask-based inpainting is the built-in image editing mode designed to modify only the regions specified by a mask while preserving the rest of the image, including its lighting and style. It requires both the original input image and a mask identifying the area to edit. The other modes either generate new images or broadly transform the image rather than restricting edits to the masked region.

Question 16

Note: This section contains one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem. You must determine whether the solution meets the stated goals. More than one solution in the set might solve the problem. It is also possible that none of the solutions in the set solve the problem. After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen. You have a Microsoft Foundry project that contains an agent. The agent generates summaries from retrieved policy documents. Users report that some responses omit required regulatory clauses, even when the clauses are present in the retrieved content. You need to improve response completeness. Solution: You increase the value of the temperature parameter. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
Increasing the temperature makes the model's output more random and creative, not more complete or faithful to retrieved content. To improve inclusion of required regulatory clauses, you would typically lower temperature and/or improve prompting, grounding, or retrieval rather than increase temperature.

Question 17

HOTSPOT - You have a Microsoft Foundry project that contains an agent. You use a GitHub Actions workflow for CI/CD. You need to configure the workflow to automatically evaluate the agent when a pull request (PR) is created and prevent branches from merging if the evaluation results do NOT meet the defined thresholds. How should you configure the workflow? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AI-103 question 17
Show Answer
Correct Answer: Authentication method: An Azure Login action that uses OpenID Connect (OIDC) If the evaluation results are NOT met, configure the workflow to: Fail
Explanation:
GitHub Actions should authenticate to Azure using Azure Login with OIDC federation rather than PATs. To prevent PR merges based on evaluation thresholds, the workflow must fail so the required status check blocks the merge.

Question 18

You have a customer support agent built by using the Microsoft Foundry Agent Service. The agent calls an Azure OpenAI model deployment. During load testing, calls intermittently fail and return an HTTP 429 rate limit exceeded error. You need to handle throttling to reduce call failures and improve reliability under load. The solution must remain within the service and model limits. What should you do?

A. Create a new thread and retry the calls immediately.
B. Reduce the number of registered tools.
C. Implement a retry policy that uses exponential backoff and jitter.
D. Spit uploaded content into smaller files.
Show Answer
Correct Answer: C
Explanation:
HTTP 429 indicates throttling due to rate limits. The recommended approach is to implement retries with exponential backoff and jitter so retry attempts are spread out, reducing contention while staying within service limits. Creating new threads and retrying immediately can worsen throttling, and reducing registered tools or splitting uploaded files does not address request rate limiting.

Question 19

You have a Microsoft Foundry project that contains an agent. The agent generates summaries from retrieved policy documents. You need to improve response completeness. The solution must be implemented in the logic of the application code before responses are returned. What should you do?

A. Add a retry evaluation before the responses are returned.
B. Decrease the value of the max_tokens parameter.
C. Switch to Retrieval Augmented Generation (RAG).
D. Replace the model with a smaller deployment.
Show Answer
Correct Answer: A
Explanation:
A retry evaluation implemented in the application logic can assess whether the generated summary is complete and, if necessary, regenerate the response before returning it. Decreasing max_tokens is likely to truncate outputs, switching to RAG addresses retrieval rather than post-generation completeness in application logic, and using a smaller model generally does not improve completeness.

Question 20

Note: This section contains one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem. You must determine whether the solution meets the stated goals. More than one solution in the set might solve the problem. It is also possible that none of the solutions in the set solve the problem. After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen. You have a Microsoft Foundry project that contains an agent. The agent generates summaries from retrieved policy documents. Users report that some responses omit required regulatory clauses, even when the clauses are present in the retrieved content. You need to improve response completeness. Solution: You add a reflection pass that regenerates the response if the required clauses are missing. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: A
Explanation:
Yes. A reflection pass that checks whether required regulatory clauses are present in the generated summary and regenerates the response if they are missing is a standard technique to improve completeness and reduce omissions, assuming the clauses exist in the retrieved content.

$19

Get all 57 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.