AWS AI Practitioner AIF-C01 · Fundamentals of Generative AI · hard

Compare the two foundational neural network architectures powering modern Generative AI: Transformer models (such as Claude and Llama) versus Diffusion models (such as Stable Diffusion and Amazon Titan Image Generator). Which two statements accurately distinguish their core mechanisms and primary use cases? (Select two.)

Published · Last updated · checked before publication — how we verify questions

Options

  • ATransformers use self-attention to predict tokens in text and codeCorrect answer
  • BDiffusion models are used exclusively for sorting relational SQL tables
  • CTransformers cannot process more than two words of input context at a time
  • DDiffusion models generate images by iteratively denoising a latent stateCorrect answer

Answers: A. Transformers use self-attention to predict tokens in text and code; D. Diffusion models generate images by iteratively denoising a latent state

Transformer models use self-attention mechanisms to model long-range token dependencies and predict tokens auto-regressively for text, code, and multimodal reasoning (A), whereas Diffusion models learn to iteratively remove Gaussian noise from a random latent tensor conditioned on a text prompt to synthesize high-resolution images (D).

Why the other options are wrong

  • B. Diffusion models are used exclusively for sorting relational SQL tables — Diffusion models generate images/media by iterative denoising and are not relational database sorting algorithms.
  • C. Transformers cannot process more than two words of input context at a time — Modern Transformer LLMs process context windows ranging from thousands to ratusan of thousands of tokens simultaneously via self-attention.

All Fundamentals of Generative AI questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.