AIF-C01 Domain 1: Fundamentals of AI and ML

Part 2 of the series

AWS Certified AI Practitioner (AIF-C01)

AWS Certified AI Practitioner Foundational badge

Part 2 of 6 in the AIF-C01 exam prep series for developers. Previous: The exam and what changed in v1.1.

Domain 1 is the vocabulary layer of the exam. Most of it is recognition: which term is which, which learning type fits a scenario, which AWS service matches a use case. It's also where developers lose easy points by skimming, because the definitions feel obvious until two of them appear side by side as answer options.

Domain at a glance#

Domain 1 is 20% of scored content, about 10 of the 50 scored questions.

TaskWhat it covers
1.1Explain basic AI concepts and terminology
1.2Identify practical use cases for AI
1.3Describe the AI/ML development lifecycle

Objective checklist#

#ObjectiveSection
1.1.1Define basic AI terms, including GenAI and agentic AIKey terms
1.1.2Differences between AI, ML, deep learning, GenAI, and agentic AIHow the terms nest
1.1.3Inference types: batch, real-time, asynchronous, serverlessInference types
1.1.4Data types: labeled/unlabeled, tabular, time-series, image, text, structured/unstructuredData types
1.1.5Learning types: supervised, unsupervised, reinforcement learningLearning types
1.2.1Where AI/ML adds valueWhen AI helps and when it doesn't
1.2.2When AI/ML is not appropriateWhen AI helps and when it doesn't
1.2.3Regression, classification, clusteringChoosing an ML technique
1.2.4Real-world AI applications, including knowledge bases and agentic AIReal-world applications
1.2.5Capabilities of AWS managed AI/ML servicesAWS managed AI services
1.2.6Traditional ML vs. foundation models for a use caseTraditional ML vs. foundation models
1.3.1Components of an AI/ML pipelineThe ML pipeline
1.3.2Sources of foundation modelsWhere models come from
1.3.3Using a model in production: managed API vs. self-hostedWhere models come from
1.3.4AWS services for each pipeline stageAWS services by pipeline stage
1.3.5MLOps fundamentalsMLOps
1.3.6Model performance metrics and business metricsMetrics

Basic concepts and terminology#

Key terms#

TermDefinition
Artificial intelligence (AI)Systems that perform tasks normally requiring human intelligence: perceiving, reasoning, deciding
Machine learning (ML)AI that learns patterns from data instead of following hand-written rules
Deep learningML using neural networks with many layers
Neural networkLayers of connected nodes whose weights are adjusted during training
Computer visionAI that interprets images and video
Natural language processing (NLP)AI that understands and generates human language
AlgorithmThe learning procedure (for example, linear regression or a decision tree)
ModelThe output of training an algorithm on data; the thing you run predictions with
TrainingAdjusting a model's parameters using data
InferenceUsing a trained model to make predictions on new data
BiasSystematic error. In fairness terms, unfair outcomes for certain groups; in model-fit terms, a model too simple to capture the pattern
FairnessOutcomes that don't discriminate against individuals or groups
FitHow well a model captures the pattern in data: underfit, good fit, overfit
Large language model (LLM)A very large transformer model trained on text to understand and generate language
Generative AI (GenAI)Models that create new content: text, images, audio, video, code
Agentic AISystems that use a model to plan, call tools, and take actions toward a goal across multiple steps

How the terms nest#

AI, ML, deep learning, and generative AI nest inside each other: each is a subset of the one before. Agentic AI is different. It's not a smaller circle inside GenAI; it's a system built on top of a generative model. It adds tools, memory, and an orchestration loop around the model.

Rendering diagram...

Figure: AI ⊃ ML ⊃ deep learning ⊃ GenAI. Agentic AI wraps a generative model with tools, memory, and a loop.

Inference types#

Objective 1.1.3 now names four inference types. The examples below use SageMaker AI, where all four exist as deployment options.

TypeHow it worksChoose it when
Real-timeA persistent endpoint returns a prediction in milliseconds to secondsUsers are waiting for the answer and traffic is steady
ServerlessEndpoint scales automatically, down to zero when idle; the first request after idle may hit a cold startTraffic is intermittent or unpredictable and occasional extra latency is acceptable
AsynchronousRequests go into a queue and results are written to S3 when ready; handles large payloads (up to about 1 GB) and long processing (up to about an hour)One request is big or slow, and nobody needs the answer instantly
BatchRuns over an entire dataset offline; no endpoint stays upYou need predictions for a whole dataset on a schedule
Rendering diagram...

Figure: A quick decision path for the four inference types.

Data types#

DistinctionMeaningExample
LabeledEach record has the correct answer attachedEmails tagged "spam" or "not spam"
UnlabeledRaw data with no answersA folder of customer reviews
StructuredOrganized in rows and columnsA customer table in a database
TabularStructured data in a tableLoan applications with income, age, amount
Time-seriesValues ordered by timeHourly sales, sensor readings, stock prices
UnstructuredNo predefined schemaText documents, images, audio, video
TextUnstructured language dataSupport tickets, contracts
ImagePixel dataProduct photos, X-rays

Labeling is expensive, which is why techniques that need little or no labeled data (unsupervised and self-supervised learning) matter so much for foundation models.

Learning types#

TypeLearns fromTypical tasksExample
SupervisedLabeled dataRegression, classificationPredict house prices; flag fraudulent transactions
UnsupervisedUnlabeled dataClustering, anomaly detection, association, dimensionality reductionSegment customers by behavior
Semi-supervisedA little labeled data plus a lot of unlabeled dataClassification when labels are scarceLabel 1% of documents, then learn from the rest
Self-supervisedUnlabeled data that generates its own labelsPre-training foundation modelsPredict the next word in a sentence
Reinforcement learning (RL)Rewards and penalties from an environmentSequential decision-makingRobotics, game playing, route optimization

Reinforcement learning has its own vocabulary: an agent takes actions in an environment, observes the new state, and receives a reward. Over many episodes it learns a policy that maximizes cumulative reward.

Reinforcement learning from human feedback (RLHF) applies this to language models: humans rank model outputs, a reward model learns those preferences, and the language model is tuned toward them. It comes up again in Post 4 as part of fine-tuning.

Practical use cases#

When AI helps and when it doesn't#

AI and ML add value when you need to:

  • Assist human decisions: triage, recommendations, risk scores.
  • Scale beyond human capacity: reviewing millions of transactions or documents.
  • Automate repetitive judgment: routing tickets, extracting fields from forms.
  • Find patterns humans miss: anomalies, subtle correlations.

AI and ML are not appropriate when:

  • A specific, deterministic outcome is required. Calculating tax, applying a fixed discount table, or enforcing a business rule should be code, not a prediction.
  • The cost outweighs the benefit. Data collection, training, hosting, and monitoring can exceed the value of the improvement.
  • There isn't enough quality data to learn the pattern.
  • Every decision must be fully explainable, and no interpretable approach meets the bar.
  • Errors are unacceptable and there's no room for human review.

Choosing an ML technique#

TechniqueOutputLearning typeExample
RegressionA continuous numberSupervisedForecast next month's revenue; predict delivery time
ClassificationA category (binary or multi-class)SupervisedSpam or not spam; which product category
ClusteringGroups of similar items, with no predefined labelsUnsupervisedCustomer segmentation

Real-world applications#

ApplicationWhat it doesAWS example
Computer visionDetects objects, faces, text, and unsafe content in images and videoAmazon Rekognition
NLPExtracts meaning, sentiment, and entities from textAmazon Comprehend
Speech recognitionConverts speech to textAmazon Transcribe
Recommendation systemsSuggests items based on behaviorAmazon Personalize
Fraud detectionFlags anomalous transactionsCustom models on SageMaker AI
ForecastingPredicts future values from time-series dataCustom models on SageMaker AI
Knowledge basesAnswer questions grounded in your documentsAmazon Bedrock Knowledge Bases
Agentic AIPlans and executes multi-step tasks with toolsAmazon Bedrock AgentCore

AWS managed AI services#

These are pre-trained, API-driven services. You don't train anything; you call an API. Expect at least one matching question built from this table.

ServiceInput → outputUse it for
Amazon ComprehendText → insightsSentiment, entities, key phrases, language detection, PII detection, topic modeling, custom classification
Amazon TranscribeSpeech → textCall transcripts, subtitles, meeting notes; supports custom vocabularies and PII redaction
Amazon TranslateText → text in another languageLocalizing content and support conversations; supports custom terminology
Amazon PollyText → speechVoice output for apps, reading content aloud; SSML controls pronunciation and pacing
Amazon LexVoice or text conversation → intent and slotsChatbots and voice bots; fulfills requests through AWS Lambda
Amazon RekognitionImages and video → labelsObject and face detection, content moderation, text in images, custom labels
Amazon TextractScanned documents → structured dataExtracting text, forms (key-value pairs), and tables from PDFs and images
Amazon PersonalizeUser behavior → recommendationsProduct recommendations, personalized rankings
Amazon SageMaker AIYour data → your own modelBuilding, training, and deploying custom ML models

Traditional ML vs. foundation models#

Objective 1.2.6 is new, and the exam frames it around constraints rather than capabilities.

Choose traditional ML when…Choose a foundation model when…
A regulator requires you to explain each decisionThe task involves understanding or generating language, images, or code
The data is tabular with a clear numeric or categorical targetYou have few or no labeled examples
You need deterministic, repeatable behaviorOne model must handle many varied tasks
Latency or cost per prediction must be very lowTime to market matters more than per-call cost
You have good labeled training dataThe inputs are open-ended and hard to enumerate

The AI/ML development lifecycle#

The ML pipeline#

Rendering diagram...

Figure: The ML pipeline, a likely ordering question. Monitoring feeds back into data collection and retraining.

StageWhat happens
Business goal and problem framingDefine success, then decide whether ML fits and which technique applies
Data collectionGather data from sources; label it if the task is supervised
Pre-processing and exploratory data analysis (EDA)Clean, fix missing values, remove duplicates; visualize distributions and correlations
Feature engineeringSelect, transform, and create the input variables the model learns from
TrainingFit the algorithm to the training data
Hyperparameter tuningAdjust settings you choose before training (learning rate, batch size, epochs, tree depth)
EvaluationMeasure performance on held-out data
DeploymentServe the model with one of the inference types above
MonitoringWatch for data drift and quality degradation; trigger retraining

Datasets are usually split into training (fit the model), validation (tune hyperparameters), and test (final, unbiased evaluation) sets.

Where models come from and how they run#

Sources of foundation models (1.3.2):

  • Pre-trained open-source models you download and host, for example from SageMaker JumpStart or Hugging Face.
  • Proprietary models accessed through an API, for example through Amazon Bedrock.
  • Custom models you train yourself. This is rarely justified for foundation models because of the data and compute required.

Using a model in production (1.3.3):

Managed API serviceSelf-hosted
AWS exampleAmazon BedrockSageMaker AI endpoints, or EC2/EKS
You managePrompts, data, configurationInstances, scaling, patching, the endpoint itself
PricingPer token or per requestPer instance-hour while the endpoint runs
Best forSpeed, simplicity, no infrastructureFull control, custom or open-source models, specific hardware

AWS services by pipeline stage#

StageServices
Data preparationSageMaker Data Wrangler, AWS Glue, AWS Glue DataBrew
Feature storageSageMaker Feature Store
Training and tuningSageMaker AI training jobs and automatic model tuning; SageMaker JumpStart for pre-trained models
Evaluation and bias checksSageMaker Clarify; Amazon Bedrock Model Evaluation
DeploymentSageMaker AI endpoints; Amazon Bedrock for foundation models
MonitoringSageMaker Model Monitor; Amazon CloudWatch
Orchestration and versioningSageMaker Pipelines; SageMaker Model Registry
GenAI applicationsAmazon Bedrock
Business users working with data and AIAmazon Quick
Developers building with AI assistanceKiro

MLOps#

MLOps applies DevOps discipline to ML. The guide names these concepts:

ConceptWhat it means in practice
ExperimentationTrack runs, parameters, and results so you can compare and reproduce them
Repeatable processesAutomated pipelines instead of notebooks run by hand
Scalable systemsInfrastructure that handles growing data and traffic
Managing technical debtAvoiding fragile glue code, undocumented features, and hidden dependencies
Production readinessTesting, versioning, security, and rollback before go-live
Model monitoringDetecting data drift, concept drift, and quality degradation
Model re-trainingRetraining automatically or on a schedule when monitoring flags a problem

Metrics#

Classification metrics start from the confusion matrix:

Predicted positivePredicted negative
Actually positiveTrue positive (TP)False negative (FN)
Actually negativeFalse positive (FP)True negative (TN)
Accuracy=TP+TNTP+TN+FP+FN\text{Accuracy} = \frac{TP + TN}{TP + TN + FP + FN}Precision=TPTP+FPRecall=TPTP+FN\text{Precision} = \frac{TP}{TP + FP} \qquad \text{Recall} = \frac{TP}{TP + FN}F1=2⋅Precision⋅RecallPrecision+RecallF_1 = 2 \cdot \frac{\text{Precision} \cdot \text{Recall}}{\text{Precision} + \text{Recall}}
MetricQuestion it answersOptimize it when
AccuracyWhat fraction of all predictions were right?Classes are balanced
PrecisionOf the items flagged positive, how many really were?False positives are costly (a spam filter deleting real email)
RecallOf the real positives, how many did we catch?False negatives are costly (missing a disease or a fraud case)
F1 scoreBalance of precision and recallClasses are imbalanced and you need one number

For regression, common metrics are mean absolute error (MAE), root mean squared error (RMSE), and R², which measures how much of the variance the model explains.

Business metrics answer a different question: is the model worth it? The guide lists cost per user, development costs, customer feedback, and return on investment (ROI).

Service cheat sheet#

ServiceOne line
Amazon SageMaker AIBuild, train, tune, deploy, and monitor your own ML models
SageMaker JumpStartHub of pre-trained models you deploy or fine-tune on SageMaker
SageMaker Data WranglerVisual data preparation for ML
SageMaker Feature StoreCentral store of ML features for training and inference
SageMaker ClarifyBias detection and feature-attribution explainability
SageMaker Model MonitorDetects data and quality drift in deployed models
Amazon BedrockServerless API access to foundation models
Amazon ComprehendNLP insights from text
Amazon TranscribeSpeech to text
Amazon TranslateLanguage translation
Amazon PollyText to speech
Amazon LexConversational chatbots and voice bots
Amazon RekognitionImage and video analysis
Amazon TextractText, forms, and tables from documents
Amazon PersonalizeRecommendations
Amazon QuickAgentic analytics and automation workspace for business users
KiroAgentic, spec-driven IDE for developers

Commonly confused#

If the scenario says…AnswerNot…Because
Extract fields and tables from scanned invoicesTextractComprehendComprehend analyzes text you already have; Textract gets it out of documents
Detect the sentiment of product reviewsComprehendRekognitionRekognition is for images and video
Turn call recordings into textTranscribePollyTranscribe is speech → text; Polly is text → speech
Read text found in a photo of a street signRekognitionTextractRekognition detects text in images and video scenes; Textract is for documents
Build a chatbot that books appointmentsLexComprehendLex manages conversations, intents, and slots
One 800 MB video file, result needed in minutesAsynchronous inferenceBatchOne large request, not a whole dataset
Score all of last night's transactionsBatch inferenceReal-timeWhole dataset, offline
Group customers with no predefined categoriesClusteringClassificationClassification needs labels
Missing a positive case is dangerousRecallPrecisionRecall measures missed positives
Must explain each loan decision to a regulatorTraditional MLFoundation modelExplainability and determinism

Practice questions#

Q1 (matching). Match each requirement to the AWS service that meets it.

Requirement
1. Identify the sentiment of social media posts
2. Extract table data from scanned PDF statements
3. Convert product descriptions into natural-sounding audio
4. Moderate user-uploaded images for unsafe content
5. Produce text transcripts of support calls

Services: Amazon Polly, Amazon Rekognition, Amazon Comprehend, Amazon Transcribe, Amazon Textract.

Show answer

1 → Comprehend, 2 → Textract, 3 → Polly, 4 → Rekognition, 5 → Transcribe.

  • Comprehend analyzes existing text; it can't read a PDF image.
  • Textract extracts text, forms, and tables from documents.
  • Polly converts text to speech; Transcribe does the reverse.
  • Rekognition handles image and video moderation.

Q2 (ordering). Put these ML pipeline stages in order.

  • A. Feature engineering
  • B. Model monitoring
  • C. Data collection
  • D. Model training
  • E. Evaluation
Show answer

C → A → D → E → B.

Collect data, engineer features from it, train, evaluate on held-out data, and then monitor after deployment. Pre-processing and hyperparameter tuning would fit between these steps if they were listed.

Q3. A media company needs to run an ML model on individual video files of up to 800 MB. Processing each file takes about 20 minutes, and results can be picked up later. Which SageMaker AI inference option fits best?

  • A. Real-time inference
  • B. Serverless inference
  • C. Asynchronous inference
  • D. Batch transform
Show answer

Answer: C. Asynchronous inference queues individual requests with large payloads and long processing times, and writes results to S3.

  • A and B are built for small payloads and responses within seconds.
  • D processes an entire dataset offline; here, files arrive one at a time.

Q4. A hospital is building a model to screen scans for a serious disease. Missing a real case is far worse than a false alarm, which a doctor will review. Which metric should the team prioritize?

  • A. Accuracy
  • B. Precision
  • C. Recall
  • D. Mean absolute error
Show answer

Answer: C. Recall measures how many actual positive cases the model catches, so maximizing it minimizes missed cases.

  • A is misleading when positives are rare.
  • B matters when false positives are costly; here, doctors review false positives.
  • D is a regression metric.

Q5. A bank must approve or deny loan applications from structured application data. Regulators require the bank to explain every individual decision. What is the most appropriate approach?

  • A. Prompt a large language model on Amazon Bedrock with each application
  • B. Train a traditional, interpretable ML model and use SageMaker Clarify for feature attribution
  • C. Fine-tune a foundation model on past loan decisions
  • D. Use Amazon Comprehend to classify applications
Show answer

Answer: B. Tabular data, a clear target, and a hard explainability requirement point to traditional ML. Clarify explains which features drove each prediction.

  • A and C use foundation models, which are harder to explain and less deterministic.
  • D analyzes free text, not structured application data.

Q6. A retailer wants to group customers by purchasing behavior. There are no existing customer categories. Which technique fits?

  • A. Classification
  • B. Regression
  • C. Clustering
  • D. Reinforcement learning
Show answer

Answer: C. Clustering finds natural groups in unlabeled data.

  • A needs predefined labels.
  • B predicts a number.
  • D learns actions from rewards.

Q7. A logistics company charges shipping fees from a fixed table based on weight and destination zone. A manager suggests using ML to calculate the fees. What should the team do?

  • A. Train a regression model on historical fees
  • B. Use a rules-based implementation, because the outcome is deterministic
  • C. Use a foundation model to read the fee table at runtime
  • D. Use clustering to group shipments by zone
Show answer

Answer: B. When a specific, known outcome is required, a rule is cheaper, exact, and explainable. ML predicts; it doesn't guarantee.

  • A, C, and D add cost and error to a problem that has an exact answer.

Q8 (multiple response). Which TWO are examples of unsupervised learning?

  • A. Detecting anomalous network traffic without labeled examples of attacks
  • B. Predicting house prices from past sales
  • C. Grouping news articles by topic without predefined topics
  • D. Classifying emails as spam using labeled examples
  • E. Training a robot arm with rewards
Show answer

Answer: A and C. Both learn structure from unlabeled data.

  • B and D are supervised: regression and classification with labels.
  • E is reinforcement learning.

Key takeaways#

  • AI ⊃ ML ⊃ deep learning ⊃ GenAI. Agentic AI is built on top of a generative model: GenAI creates, agents act.
  • Know the four inference types by trigger phrase. Steady low latency → real-time. Intermittent traffic → serverless. One big or slow request → asynchronous. Whole dataset → batch.
  • Supervised needs labels; unsupervised doesn't. Foundation models pre-train with self-supervised learning.
  • Regression predicts a number, classification a category, clustering groups without labels.
  • The managed AI services table is guaranteed matching-question material. Know it cold.
  • Regulated plus explainable plus tabular points to traditional ML. Deterministic rules mean no ML at all.
  • Pick the metric by the cost of errors. Recall when misses hurt, precision when false alarms hurt, F1 for imbalanced data. Business stakeholders get business metrics.

Next: Domain 2: Fundamentals of GenAI.

Sources#

Share:

Related Articles