AI-901 practice question: Vision and image generation apps (2 of 4)
Implement AI solutions by using Microsoft Foundry A free question from our original AI-901 practice exam. Try it, then open the answer to see why each option is right or wrong.
A dental clinic's marketing team wants a poster image for its waiting room, generated from a text prompt. The developer's code below requests the image, which comes back as base64 text, and decodes it into bytes.
C. Wrong: bytes is not a field of the response. The response carries base64 text, which must be decoded into bytes, so the attribute named here does not exist.
D. Wrong: revised_prompt holds the wording the service rewrote from the original prompt. It does not contain the encoded image.
Explanation
Image generation returns a list in data, and each item carries the image as base64 text in b64_json. The code decodes that text into bytes. The other fields do not hold the encoded image.
Want more on Vision and image generation apps? The 5 full-length practice sets have 20 more Vision and image generation apps questions, 225 in all, none of them in the free exam. One payment of $9.99 $6.99, no subscription. Get the practice sets →
✓ Every exam starts with free questions. No account needed.
Can we use Google Analytics cookies to see which pages help people? No ads, and we never sell data. Privacy