AI-901 practice question 1 of 10
You have a Microsoft Foundry project that contains a vision-enabled model deployment. You are developing an application that sends images to the model. You need to ensure that the model can analyze the images. In which two formats can you provide the images? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
Full set: 50 questionsA vision-enabled endpoint can receive an image either (1) as a public URL that the service can download itself, or (2) as the raw picture data embedded in the request. For online endpoints that accept JSON payloads, the raw picture is normally supplied as a base-64-encoded string; for REST calls that accept an octet-stream body, the client sends the same bytes but they are often first converted to base-64 before being placed in the request payload. Therefore the two supported request formats are a publicly reachable URL (C) and a base-64-encoded image string (D).
A. A JSON document that merely “describes” the content supplies no actual image bytes; the model cannot analyze non-image descriptive text.
B. UTF-8 text captions are metadata, not pixel data; vision models require the image itself, not a textual description.
1. Microsoft, “Quickstart: Deploy and score a vision model with Azure Machine Learning online endpoints”, section ‘Prepare the request – encode the image as base64’, docs.microsoft.com (2023-10-31).
2. Microsoft Cognitive Services, “Analyze Image (Computer Vision REST API v3.2) – Request parameters”, notes ‘Image URL’ OR ‘binary image data’, docs.microsoft.com (2023-09-14).
3. MIT Professional Education & Azure, “AI on Azure: Vision-enabled services”, lecture slides 5-6, showing URL or base64 payload options (Spring 2023).
Question breakdown
Key idea: Vision-enabled models need the actual image, supplied either as a URL the service can fetch or as base64-encoded bytes embedded in the request.
How to reach the answer
- The model must 'analyze the images', so it needs real pixel data, not a summary of the image.
- List the ways a chat or responses request can carry an image: by reference or inline.
- By reference means a URL the service can reach and download.
- Inline means the bytes are base64-encoded, usually as a data URL, inside the JSON payload.
- Text or JSON that only describes the image contains no pixels, so rule out A and B.
Each option
Common trap: Because the request body is JSON, it is tempting to think a JSON or text description of the image is acceptable, but the model needs the pixels.
In practice: Apps typically pass blob or CDN URLs for images that are already hosted. They base64-encode local files, user uploads, and private images that the service cannot reach over the internet.
Remember: Give vision models images as a reachable URL or as base64-encoded data, never as a text description.
Official documentation: Use vision-enabled chat models
Drafted with AI assistance and checked against the answer key.
Keep practicing
Take the free AI-901 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AI-901 practice questions
- Question 2You need to create an AI agent in Microsoft Foundry that follows a specific role and beha…
- Question 3You need to compare the costs of large language models (LLMs) for a generative AI solutio…
- Question 4You have a Microsoft Foundry project that contains a vision-enabled model deployment. You…
