nerdexam
Amazon

AIF-C01 · Question #115

A company is using Retrieval Augmented Generation (RAG) with Amazon Bedrock and Stable Diffusion to generate product images based on text descriptions. The results are often random and lack specific…

The correct answer is C. Increase the classifier-free guidance (CFG) scale. To increase the specificity and adherence of generated images to the prompt when using Stable Diffusion, increasing the classifier-free guidance (CFG) scale is the appropriate solution.

Submitted by javi_es· Mar 30, 2026

Question

A company is using Retrieval Augmented Generation (RAG) with Amazon Bedrock and Stable Diffusion to generate product images based on text descriptions. The results are often random and lack specific details. The company wants to increase the specificity of the generated images. Which solution meets these requirements?

Options

  • AIncrease the number of generation steps.
  • BUse the MASK_IMAGE_BLACK mask source option.
  • CIncrease the classifier-free guidance (CFG) scale.
  • DIncrease the prompt strength.

How the community answered

(58 responses)
  • A
    3% (2)
  • B
    5% (3)
  • C
    81% (47)
  • D
    10% (6)

Why each option

To increase the specificity and adherence of generated images to the prompt when using Stable Diffusion, increasing the classifier-free guidance (CFG) scale is the appropriate solution.

AIncrease the number of generation steps.

Increasing the number of generation steps generally improves image quality or detail by allowing more iterations of the diffusion process, but it doesn't directly increase the *adherence* to the prompt's specificity if the CFG scale is low.

BUse the MASK_IMAGE_BLACK mask source option.

Using the MASK_IMAGE_BLACK mask source option is related to inpainting or outpainting, where parts of an image are masked for modification, and is not relevant to increasing prompt specificity for initial image generation.

CIncrease the classifier-free guidance (CFG) scale.Correct

The classifier-free guidance (CFG) scale parameter controls how much the image generation process adheres to the input prompt versus allowing the model more creative freedom. Increasing the CFG scale will make the generated images more closely follow the text description, thereby increasing their specificity and reducing randomness.

DIncrease the prompt strength.

Increasing the prompt strength (often implicitly tied to CFG or a separate parameter in some models) without specifying it as CFG scale is less precise. In Stable Diffusion, CFG scale is the direct parameter for prompt adherence.

Concept tested: Image generation, Stable Diffusion parameters, CFG scale

Source: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-stable-diffusion.html

Topics

#Stable Diffusion CFG#Generative AI image specificity#Amazon Bedrock image generation

Community Discussion

No community discussion yet for this question.

Full AIF-C01 Practice