Microsoft Azure AI Engineer Associate AI-102 Practice Question
Your team is adding an Azure OpenAI GPT-4o model to a web app that lets users upload a JPEG and ask the model to describe the picture. You must deliver both the user's instruction and the image to the model in a single call. Which approach should you use?
Invoke the Create Image endpoint with the DALL-E model, placing the user prompt in the prompt field and the JPEG in an images parameter.
Call the Chat Completions endpoint and format the user message so its content is an array that includes a text block and an image_url block pointing to the JPEG.
Send the JPEG to the Azure AI Vision Read REST API first, then pass the extracted text to GPT-4o in a second Chat Completions call.
Use the Audio Transcriptions endpoint with multipart/form-data, attaching the JPEG file and the user prompt as separate form parts.
Large multimodal models such as GPT-4o are invoked through the Chat Completions endpoint. When you want the model to reason over an image, the user message's content property must be an array that mixes text and image blocks-for example, a text block that contains the prompt and an image_url block that contains either a public URL or a SAS-signed URL for the JPEG. Other endpoints (DALL-E image generation, audio transcription, or Azure AI Vision OCR) do not pass an image directly to the GPT-4o model in the same request, and separate calls break the requirement to use a single call.
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 is the Chat Completions endpoint in Azure OpenAI?
Open an interactive chat with Bash
What are SAS-signed URLs, and why are they used in this scenario?
Open an interactive chat with Bash
Why can't other endpoints like DALL-E or Azure AI Vision be used for the task?
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 .