Microsoft Azure AI Engineer Associate AI-102 Practice Question
You are calling the chat completions endpoint of an Azure OpenAI deployment that uses the gpt-4o model so it can describe an uploaded photo. You want to include the image within the same user message that contains your text prompt. According to the Azure OpenAI multimodal request schema, how should the image be represented inside the content array?
By including an "attachments" array outside the content array that lists { "type": "image/png", "data": "" } objects.
As an object such as { "type": "image_url", "image_url": { "url": "https://..." } } placed in the content array with the text prompt.
By adding an "image" property at the root of the request that contains the raw binary bytes of the photo.
By sending a separate chat message whose role is "image" and whose content holds the base-64 encoded file.
Azure OpenAI expects multimodal input to be provided as a single chat message whose content property is an array that can mix text and image components. Each image must be supplied as an object whose type is set to "image_url" and whose image_url property contains a url field that points to the file (either a public HTTPS address or a data URI). The service does not accept binary image data at the top level, separate "image" message roles, or an "attachments" collection outside the content array, so those approaches will fail or be ignored.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does 'image_url' in the content array represent in Azure OpenAI multimodal requests?
Open an interactive chat with Bash
Why can't binary image data be used directly in Azure OpenAI requests?
Open an interactive chat with Bash
What is the purpose of a content array in Azure OpenAI multimodal requests?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Implement generative AI solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .