All exams← All AWS Certified AI Practitioner (AIF-C01) notes

Generative AI concepts & use cases: AWS Certified AI Practitioner (AIF-C01) revision notes

Revision notes

What generative AI actually is

Generative AI is a subset of deep learning that creates new content - text, images, audio, video, or code - rather than just predicting a label or a number.

It learns patterns from huge training datasets and uses that learned distribution to produce novel, often unique, outputs each time you ask.

Most modern generative AI for text and code runs on transformer-based large language models (LLMs), which use a self-attention mechanism to weigh the relevance of each word against every other word in the input.

Foundation models (FMs)

A foundation model is a very large model pre-trained on broad, unlabelled data that can be adapted to many downstream tasks without retraining from scratch.

Key traits examiners test: FMs are multi-purpose (not built for one narrow job), they need adaptation (prompting, fine-tuning, or RAG) to shine at a specific task, and they get better with more data and compute (scale).

Amazon Bedrock is AWS's managed service for accessing FMs from multiple providers (Anthropic, Meta, Mistral, Cohere, Stability AI, Amazon Titan/Nova) through one API - no infrastructure to manage.

Core generative AI concepts

  • Tokens: the chunks (words or word-pieces) a model reads and generates; pricing and context limits are measured in tokens, not words.
  • Embeddings: numerical vector representations of meaning, used for search, clustering, and RAG retrieval.
  • Prompt: the input instruction; prompt engineering is refining wording to get better outputs without changing the model.
  • Context window: the maximum amount of text (in tokens) a model can consider at once - too long and older content gets truncated or ignored.
  • Hallucination: when a model generates plausible-sounding but false or unsupported content - a known limitation, not a bug you can fully eliminate.
  • Temperature: a setting controlling randomness/creativity of output - low temperature = more deterministic, high = more varied.

Common exam trap

Generative AI is NOT the same as traditional/discriminative ML. Discriminative models classify or predict from existing data (is this email spam?); generative models create brand-new content that did not exist before. Know which use case fits which.

Business use cases (exam favourites)

  • Content creation: marketing copy, images, video scripts, summarisation.
  • Chatbots and virtual assistants (e.g. Amazon Q).
  • Code generation and review (e.g. Amazon Q Developer).
  • Search and personalisation, using embeddings/RAG.
  • Summarising long documents and translating text.

Limitations to remember

High compute cost, interpretability challenges (it's hard to explain exactly why an output was produced), potential for bias inherited from training data, and hallucination risk - always mentioned as trade-offs against generative AI's flexibility.

Key facts

Flashcards

What is generative AI?
A subset of deep learning that creates new content (text, image, audio, video, code) by learning patterns from training data.
tap to reveal
How does generative AI differ from discriminative/traditional ML?
Generative AI creates new content; discriminative ML classifies or predicts labels/values from existing data.
tap to reveal
What is a foundation model (FM)?
A large model pre-trained on broad, unlabelled data that can be adapted to many downstream tasks without training from scratch.
tap to reveal
What is Amazon Bedrock?
A fully managed AWS service giving API access to foundation models from multiple providers (Anthropic, Meta, Mistral, Cohere, Stability AI, Amazon Titan/Nova) with no infrastructure to manage.
tap to reveal
What architecture underpins most modern generative AI for text?
The transformer architecture, using a self-attention mechanism to weigh relevance between all words in the input.
tap to reveal
What is a token in generative AI?
A chunk of text (word or word-piece) that a model reads or generates; the unit used for pricing and context limits.
tap to reveal
What is the context window?
The maximum number of tokens a model can consider at once in a single input/output interaction.
tap to reveal
What are embeddings used for?
Numerical vector representations of meaning, used for semantic search, clustering, and retrieval (e.g. in RAG).
tap to reveal
What is hallucination in generative AI?
When a model produces plausible-sounding but false or unsupported content - an inherent limitation of generative models.
tap to reveal
What does the temperature setting control?
The randomness of generated output - low temperature gives deterministic/focused results, high temperature gives more varied/creative results.
tap to reveal
What is prompt engineering?
The practice of refining the wording and structure of a prompt to get better model outputs without changing or retraining the model.
tap to reveal
What is Amazon Q Developer used for?
AWS's generative AI assistant focused on code generation, code review, and developer productivity.
tap to reveal
Name three business use cases for generative AI.
Content creation, chatbots/virtual assistants, and code generation (also valid: summarisation, translation, personalised search).
tap to reveal
What limitation does scaling (more data/compute) address in FMs?
Generally improves FM performance and capability, but increases compute cost and does not remove hallucination risk.
tap to reveal
Why is interpretability listed as a generative AI limitation?
Because it's difficult to explain exactly why a model produced a specific output, making outputs hard to fully audit or trust blindly.
tap to reveal
Practice questions

Generative AI concepts & use cases: 5 practice questions

Q1. Which statement best defines generative AI?
  • A.  A monitoring tool that detects anomalies in network traffic
  • B.  A type of AI that creates new content such as text, images, audio, or code by learning patterns from training data
  • C.  A rules-based system that only classifies data into predefined categories
  • D.  A database technology optimized for storing structured records
Show answer & explanation
✓ Answer: B. A type of AI that creates new content such as text, images, audio, or code by learning patterns from training data
Generative AI models learn statistical patterns from large datasets and use them to produce new, original content rather than simply labelling or retrieving existing data. Classification systems (option B) are discriminative, not generative, because they assign inputs to categories instead of creating new outputs.
Q2. What is a foundation model in the context of generative AI?
  • A.  A dataset used only for testing model accuracy
  • B.  A small model trained on a single narrow task with no reuse potential
  • C.  A large model pretrained on broad, diverse data that can be adapted to many downstream tasks
  • D.  A hardware chip designed exclusively for training neural networks
Show answer & explanation
✓ Answer: C. A large model pretrained on broad, diverse data that can be adapted to many downstream tasks
Foundation models are trained on massive, diverse datasets so they capture broad general knowledge and can then be adapted, via prompting or fine-tuning, to many different downstream tasks. This contrasts with narrow models built for one specific task from scratch.
Q3. In a large language model (LLM), what is a 'token'?
  • A.  A hyperparameter that controls the learning rate during training
  • B.  A security credential used to authenticate API calls
  • C.  A physical GPU core allocated to a training job
  • D.  A unit of text, such as a word or part of a word, that the model processes as input or output
Show answer & explanation
✓ Answer: D. A unit of text, such as a word or part of a word, that the model processes as input or output
LLMs break text into tokens, which can be whole words, subwords, or characters, and process language as sequences of these tokens. Confusing this with an API security token (option A) is a common mix-up because the same word is used differently in software engineering.
Q4. What is the primary architectural innovation that underlies most modern large language models?
  • A.  K-means clustering layers
  • B.  Decision tree ensembles
  • C.  The transformer architecture with self-attention mechanisms
  • D.  Convolutional layers with max pooling
Show answer & explanation
✓ Answer: C. The transformer architecture with self-attention mechanisms
The transformer architecture, introduced in 2017, uses self-attention to weigh the relevance of different tokens in a sequence to one another, enabling it to model long-range context far better than earlier recurrent approaches. Convolutional and clustering methods are used in other machine learning domains, not as the core of modern LLMs.
Q5. What does self-attention allow a transformer model to do?
  • A.  Automatically correct spelling errors in the training dataset
  • B.  Encrypt model weights during inference
  • C.  Compress images without losing quality
  • D.  Weigh the importance of different tokens in a sequence relative to each other when producing an output
Show answer & explanation
✓ Answer: D. Weigh the importance of different tokens in a sequence relative to each other when producing an output
Self-attention computes relevance scores between all tokens in an input sequence, letting the model focus on the most contextually important words when generating each part of the output. This is what allows transformers to capture long-range dependencies in text.
Test yourself
See the AWS Certified AI Practitioner (AIF-C01) page

More AWS Certified AI Practitioner (AIF-C01) topics