Implement computer vision solutions 3.2 Design and implement multimodal understanding workflows

A retailer uses a vision-enabled chat model to generate alt text for product and site…

Study guide skill: Configure generation of alt-text and extended image descriptions aligned to accessibility guidelines

Question B2-020

A retailer uses a vision-enabled chat model to generate alt text for product and site images. Which two rules from Microsoft's alt text guidance should the prompt and post-processing enforce? (Choose two.)

Select 2 answers.

  • A Start every description with "Image of" so screen readers know it's an image
  • B Describe every visible detail so nothing is missed
  • C Keep alt text to 150 characters or fewer, and put a detailed description of complex images in the surrounding text or linked content ✓ Correct answer
  • D Use the image's file name when the model's confidence is low
  • E For purely decorative images in web content, use null alt text (alt="") instead of omitting the alt attribute ✓ Correct answer

Answer: C, E

The guidance says to convey an image's purpose accurately but concisely, limit alt text to 150 characters, and move a detailed description of complex images into surrounding or linked content. Decorative images get null alt text (alt="") rather than no alt attribute. Screen readers already announce images, so don't start with "Image", and file names or exhaustive detail don't convey the image's purpose.

Deep dive

How it works

A vision model can draft alt text, but the rules come from Microsoft's accessibility style guide, and your prompt and post-processing should enforce them. The guide's core idea: accurately but concisely convey the image's purpose. Good alt text isn't about describing every detail; it requires interpretation and judgment.

The two rules in the correct answers:

  1. Length. Limit alt text to 150 characters. If an image is complex, put a detailed description in the surrounding text or in linked content. A post-processing check on length is easy to automate.
  2. Decorative images. Images that are purely decorative don't need alt text. For decorative images in web content, use null alt text (alt="") instead of omitting the alt attribute. So the pipeline should be able to mark an image decorative and emit an empty attribute, not drop it.

Other rules worth putting in the prompt: begin with a capital letter, end with a period where practical, include text embedded in the image if the surrounding content doesn't already have it, and don't repeat the caption.

The other options, and when you'd use them

  • Start every description with "Image of": The guide says not to start alt text with a general word such as "Image," because screen readers already announce images as images. Start with what it is instead, such as a photograph, diagram or screenshot.
  • Describe every visible detail: Writing good alt text isn't about describing every detail. Exhaustive descriptions also blow past the 150-character limit.
  • Use the file name when confidence is low: The guide says not to use the file name of an image as alt text. A low-confidence result should go to human review, not fall back to a file name.

Exam tip

Alt text rules to remember: purpose over detail, 150 characters max, alt="" for decorative images, no "Image of", no file names.

References

Microsoft Learn references

Last reviewed:

Ready to test yourself? The quiz asks this and every other AI-103 question, with instant feedback. Practice this in a quiz →

All Computer vision questions · AI-103 study guide

Thanks for your feedback!