AI-103 · Domain 3: Implement computer vision solutions · 13% of the exam
Task 3.1: Design and implement image- and video-generation solutions
Generating images and videos from prompts and reference media, inpainting and mask-based edits, editing generated video, and the generation controls each model offers.
Study it
Image generation and editing: prompts, reference images and masks
Lesson coming
Video generation and editing
Lesson coming
Sample questions
Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.
Question 1 · choose 1
A travel site edits stock photos with a GPT-image model: only the sky should be replaced with a sunset, and every other pixel must stay as it is. You send the photo, a prompt and a mask to the image edit API. How must the mask be prepared?
AA PNG at half resolution, fully transparent over the sky
BA JPEG the same size as the photo, painted white over the sky
CA PNG the same size as the photo, transparent everywhere except the sky
DA PNG the same size as the photo, fully transparent over the sky
Show the answer and why
AA PNG at half resolution, fully transparent over the sky
Incorrect
The mask must have the same dimensions as the input image.
BA JPEG the same size as the photo, painted white over the sky
Incorrect
Masks are PNG files, and the editable area is defined by transparency, not by a white fill.
CA PNG the same size as the photo, transparent everywhere except the sky
Incorrect
That inverts the mask: transparent areas are the ones the model edits, so it would repaint everything but the sky.
DA PNG the same size as the photo, fully transparent over the sky
Correct
The mask marks the area to edit with fully transparent pixels (alpha of zero), must be a PNG and must match the input image's dimensions.
For inpainting, the mask tells the model where it may change pixels: fully transparent areas are edited, opaque areas are kept. Use a PNG with the exact dimensions of the source image.
A retailer wants short landscape clips in which its own product photo comes to life, starting exactly from that photo. The team uses Sora 2 in Microsoft Foundry. How should they make each request?
APass the photo as input_reference, sized to match the 1280x720 output
BDescribe the product in a text-only prompt at the highest resolution
CGenerate ten frames with an image model and stitch them into a clip
DSet seconds to 12 so that the photo stays on screen for longer
Show the answer and why
APass the photo as input_reference, sized to match the 1280x720 output
Correct
input_reference is a single image used as the anchor for the first frame, and it must match the output size exactly.
BDescribe the product in a text-only prompt at the highest resolution
Incorrect
A text-only prompt creates a new scene; it can't start from the exact photo.
CGenerate ten frames with an image model and stitch them into a clip
Incorrect
Separately generated stills don't give the motion and temporal consistency that video generation provides.
DSet seconds to 12 so that the photo stays on screen for longer
Incorrect
Clip duration doesn't make the video start from the product photo.
Sora 2 can start from a text prompt alone or from a reference image. To animate a still, send it as the input reference at the output's exact resolution together with a prompt that describes the motion.
Users of a design tool wait for an image to appear and often click Generate again because nothing happens for many seconds. The product team wants users to see the image take shape while it's being generated. Which control should you use?
AThe n parameter set to 4 so that several images return together
BA larger size value for every generation request
CThe quality parameter set to high for every generation request
DStreaming, with partial_images set to return intermediate images
Show the answer and why
AThe n parameter set to 4 so that several images return together
Incorrect
n sets how many final images come back; users still see nothing until generation completes.
BA larger size value for every generation request
Incorrect
A larger image takes longer and still shows nothing until generation completes.
CThe quality parameter set to high for every generation request
Incorrect
Quality changes the fidelity of the final image; users still see nothing until it is done.
DStreaming, with partial_images set to return intermediate images
Correct
With stream enabled, partial_images (1 to 3) returns intermediate images before the final one, which improves perceived latency.
Streaming with partial_images is the control for progress users can see; the other parameters change the final image, not when users first see it.
A packaging designer wants four different takes on the same product illustration from one prompt, returned together so the team can pick one. How should the image generation request be set?
ASet quality to high so more options appear
BSet size to 1536x1024 in the request
CSend four requests with identical settings in a row
DSet n to 4 in a single generation request
Show the answer and why
ASet quality to high so more options appear
Incorrect
Quality changes fidelity, not the number of images.
BSet size to 1536x1024 in the request
Incorrect
Size sets the dimensions of each image, not how many come back.
CSend four requests with identical settings in a row
Incorrect
That works but takes four calls instead of one.
DSet n to 4 in a single generation request
Correct
The n parameter returns between one and ten images in one call.
Use n when you want several variants of the same prompt back from one call.
A web team wants gpt-image-2 banners at a custom size instead of the preset ones. Which requested size satisfies the documented constraints?
A4096x1024 pixels
B2400x800 pixels
C2401x800 pixels
D3200x800 pixels
Show the answer and why
A4096x1024 pixels
Incorrect
The long edge exceeds 3,840 pixels.
B2400x800 pixels
Correct
Both edges are multiples of 16, the long edge is under 3,840 pixels, the ratio is 3:1 and the pixel count is in range.
C2401x800 pixels
Incorrect
2401 isn't a multiple of 16.
D3200x800 pixels
Incorrect
The aspect ratio is 4:1, above the 3:1 maximum.
gpt-image-2 supports arbitrary resolutions within limits: edges in multiples of 16, a long edge up to 3,840 pixels, an aspect ratio up to 3:1 and a bounded total pixel count.