An image generator keeps producing cluttered scenes when asked for a product photo. Which prompt change is most likely to help?
- Exam domain
- Software Development15% of the exam
- Difficulty
- Medium
- In this mock
- 6 questions on this domainPractise this domain
Why the exam asks this
Software Development (15% of the exam)
Objective in the exam guide: Use prompt engineering to better influence the output of generative AI models.
Prompt engineering applies to image models as well as text.
Why B is the answer
Describe subject, background, lighting and style, and add a negative prompt for clutter
Specific prompts that state subject, setting, lighting and style, plus a negative prompt listing unwanted elements, steer diffusion models toward the result you want.
Remember: Specific prompts and negative prompts steer image output.
How it works
Prompt engineering for generative models adds subject, style and constraints, and uses negative prompts and guidance settings.
In detail
- Be specific about subject and style.
- Negative prompts remove unwanted content.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Shorten the prompt to one wordWrongMost tempting
One word leaves too much to chance.
Why it tempts: Short prompts seem cleaner.
B. Describe subject, background, lighting and style, and add a negative prompt for clutterRight
Specific prompts and negative prompts steer image output.
C. Repeat the same prompt many timesWrong
Repetition alone does not change the guidance.
D. Add random unrelated words to the prompt to increase variety and hope one of the images comes out cleanWrong
Random words add noise.
Use case
An illustrative scenario, not a real incident.
Illustrative: adding "plain background" and a negative prompt "clutter, text" yields clean product shots.
See it in different ways
mindmap
root(("Image prompt"))
n1["Subject"]
n2["A white mug"]
n3["Setting"]
n4["Plain grey background"]
n5["Look"]
n6["Soft studio light"]
n7["Photo style"]
n8["Negative"]
n9["Clutter"]
n10["Text"]How to read this chart
- The centre is "Image prompt".
- "Subject" covers "A white mug".
- "Setting" covers "Plain grey background".
- "Look" covers "Soft studio light", "Photo style".
- "Negative" covers "Clutter", "Text".
flowchart LR S0["Generate"] --> S1["Review output"] --> S2["Add detail"] --> S3["Add negatives"] --> S4["Regenerate"]
How to read this chart
- Read it in order: Generate, then Review output, then Add detail, then Add negatives, then Regenerate.
Related questions
Learn more
- Our lesson: Generating images: U-Net, diffusion and CLIP
- Practise Software Development questions in the mock exam
- Source: NVIDIA certification page
- U-Net: Convolutional Networks for Biomedical Image Segmentation (arXiv)
- Denoising Diffusion Probabilistic Models (arXiv)
- Learning Transferable Visual Models From Natural Language Supervision, CLIP (arXiv)
- Git documentation