‹ All AI-103 questions

AI-103 Practice Question 7: Mask Based Image Editing

Microsoft Azure AI Apps and Agents Developer Associate (AI-103) · Test 1 · question 7 of 10

Implement computer vision solutionseasy

A furniture retailer has 4,000 existing studio photographs of sofas. Marketing wants to swap the plain grey backdrop in each photo for a styled living-room scene while leaving the sofa itself pixel-for-pixel untouched, since the product must remain a faithful representation of what ships.

Which approach in Microsoft Foundry meets that requirement?

Select one answer
Show answer and explanation

Answer:

  • C. Call the image edits endpoint with the source photo and a PNG mask whose fully transparent pixels cover only the backdrop

The Image Edit API modifies an existing image rather than producing a new one. You pass the source image plus a mask, which defines the area the model may edit: the mask must be a PNG of the same dimensions as the input image, with fully transparent pixels (alpha of zero) marking the region to change. Masking the backdrop and leaving the sofa opaque is exactly the inpainting workflow this scenario calls for.

- A is wrong because the generations endpoint synthesizes a brand-new image from text alone. However carefully the prompt describes the sofa, the result is a model's rendering of a sofa, not the photographed product. - B is wrong for the same reason, with an extra lossy step: a caption cannot carry stitch detail, fabric weave, or exact colour, so the regenerated sofa would not match what ships. - D is wrong because Content Understanding extracts structured metadata and fields from media. It is an analysis capability, not an image editor, and it produces no edited image.

Reference: How to use image generation models from OpenAI

Practice Test 1 ›

Study guides for AI-103

AI engineer roadmap 2026: skills, certs and the orderAI engineer roadmap for 2026: skills to learn in order, AI engineer vs ML engineer, which certifications fit each stage, and what to skip.
AI-200 exam guide: Azure AI Cloud Developer AssociateAI-200 replaced AZ-204: what the Azure AI Cloud Developer exam tests, how it differs from AI-103, price in USD and INR, format and how to prepare.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
AI-901 exam guide: Azure AI Fundamentals after AI-900AI-901 replaced AI-900: learn what changed, how much Python and Microsoft Foundry you need, exam costs in India, and how to prepare.
Best AI certifications 2026: AWS, Google, Microsoft, ClaudeThe best AI certifications in 2026 from AWS, Google, Microsoft, Claude and Databricks, by level, with price, status and which one to take first.
Microsoft AI certification path 2026: which exam firstMicrosoft AI certification path for 2026 - AI-901, AB-730, AI-103, AI-200, AI-300, AB-100, AI-500 and GH-300 by role, and which exam to take first.
AI-103 Certification Guide: What Changed From AI-102The AI-103 certification replaced AI-102 in 2026. Exam format, cost, the five skill domains, what changed and how to prepare, with free practice questions.
What Is RAG? How Retrieval-Augmented Generation WorksWhat RAG is and how it works: chunking, embeddings, vector search, hybrid search, reranking, GraphRAG and agentic RAG on AWS, Google and Azure.
Prompt engineering vs RAG vs fine-tuningWhen to use prompt engineering, retrieval-augmented generation, fine-tuning or continued pre-training, compared on cost, freshness, hallucination and privacy.