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.

  • 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.

  • As an object such as { "type": "image_url", "image_url": { "url": "https://..." } } placed in the content array with the text prompt.

Microsoft Azure AI Engineer Associate AI-102
Implement generative AI solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot