AWS Certified AI Practitioner (AIF-C01) — All Questions
30 questions
Which statement best captures the relationship between artificial intelligence, machine learning, and deep learning?
- a.Artificial intelligence is a narrow branch that sits entirely inside the field of machine learning
- b.Deep learning is the broad umbrella term that fully contains machine learning and artificial intelligence
- c.Machine learning and deep learning are unrelated fields that each compete against artificial intelligence
- d.Deep learning is a subset of machine learning, which is itself a subset of artificial intelligence✓
AI is the broad goal of machines performing tasks that seem intelligent. Machine learning is a subset of AI in which systems learn patterns from data. Deep learning is a further subset of ML that uses multi-layer neural networks.
A team labels thousands of emails as 'spam' or 'not spam' and trains a model to predict the label for new emails. Which learning paradigm is this?
- a.Reinforcement learning, because the model earns a reward signal for each email that it reads
- b.Supervised learning, because the model learns from examples that include the correct output labels✓
- c.Transfer learning, because the model simply reuses stored weights taken from a completely unrelated source task
- d.Unsupervised learning, because the model groups the incoming emails without guidance
Supervised learning trains on labeled examples (input plus the known correct output) so the model can predict labels for unseen inputs. Spam classification with labeled emails is a classic supervised task.
A retailer wants to segment customers into natural groups without any predefined categories. Which approach fits best?
- a.Supervised learning using a regression algorithm to predict one continuous target value
- b.Reinforcement learning using a reward function that scores each sequential action taken
- c.Unsupervised learning using a clustering algorithm to group similar customers together✓
- d.A rule-based expert system using fixed hand-written thresholds
Unsupervised learning finds structure in unlabeled data. Clustering groups similar records together without predefined labels, which matches customer segmentation where the groups are not known in advance.
In machine learning, what is the difference between a feature and a label?
- a.A feature is the model's final prediction; a label is the raw input data that is fed to the model
- b.A feature is an input variable used for prediction; a label is the target output being predicted✓
- c.A feature is used only in deep learning, while a label is used only in classical machine learning models
- d.A feature and a label are simply two interchangeable names for exactly the same input data column
Features are the input variables (columns) the model reads. The label is the target value the model learns to predict. In supervised training every example pairs features with a known label.
A model performs almost perfectly on its training data but poorly on new, unseen data. What is this called?
- a.Convergence, where the model has finished training and reached its stable optimal parameter state
- b.Underfitting, where the model stays far too simple to capture even the training data itself
- c.Overfitting, where the model memorizes training noise instead of learning the general pattern✓
- d.Regularization, where the model is penalized for excess complexity
Overfitting occurs when a model learns the training data too closely, including its noise, and fails to generalize. A large train-versus-test performance gap is the classic symptom. Underfitting is the opposite problem.
Which task is an example of a regression problem rather than a classification problem?
- a.Deciding whether an incoming card transaction is fraudulent or legitimate
- b.Sorting written product reviews into positive, neutral, or negative sentiment buckets
- c.Predicting the future selling price of a house as a continuous dollar amount✓
- d.Identifying which one of ten animal species is in a photo
Regression predicts a continuous numeric value, such as a house price. Classification assigns inputs to discrete categories. The other options each choose among fixed classes and are therefore classification tasks.
Why do practitioners split a dataset into separate training and test sets?
- a.To guarantee, with certainty, that the resulting model can never overfit the data at all
- b.To completely remove any need for cleaning, formatting, or otherwise preparing the raw data
- c.To measure how well the model generalizes to data it did not see while training✓
- d.To make each training run finish faster by using far fewer total records overall
Holding out a test set lets you estimate real-world performance on unseen data. Evaluating on data used for training would give an overly optimistic score and hide overfitting.
Which AWS service is a fully managed platform for building, training, and deploying custom machine learning models at scale?
- a.Amazon SageMaker AI, the managed platform for the end-to-end model lifecycle✓
- b.Amazon CloudWatch, a service for monitoring metrics, logs, and operational alarms
- c.Amazon Rekognition, a service for detecting objects and faces inside images
- d.Amazon Route 53, a scalable and highly available Domain Name System web service
Amazon SageMaker AI is the managed platform for the end-to-end ML lifecycle: data prep, training, tuning, and deployment. Rekognition is a pre-built vision service, while CloudWatch and Route 53 are not ML platforms.
An artificial neural network is loosely inspired by which biological structure?
- a.The twisted double-helix structure of the DNA molecules found inside every cell
- b.The slowly settling layered sediment that forms many common geological rock beds
- c.The spreading branch-and-root systems that large trees rely on to gather up their water
- d.Interconnected neurons in the brain that pass signals across weighted connections✓
Artificial neural networks are modeled on biological neurons: simple units connected by weighted links that pass and transform signals across layers. Depth (many layers) is what makes a network 'deep'.
When is a traditional rule-based system often a better choice than a machine learning model?
- a.When a very large labeled dataset exists but almost no domain expertise is available
- b.When the logic is well understood and can be written as clear deterministic rules✓
- c.When the problem is recognizing thousands of different objects across millions of images
- d.When the underlying patterns are complex and constantly changing
If a problem follows clear, stable rules that experts can write down, a deterministic rule-based system is simpler, cheaper, and more transparent than ML. ML shines when patterns are complex or hard to specify by hand.
What is the primary purpose of the inference phase in a machine learning workflow?
- a.Collecting and carefully labeling all of the raw data before any model yet exists
- b.Using an already-trained model to generate predictions on brand-new input data✓
- c.Adjusting the model's internal weights repeatedly in order to reduce the training error
- d.Splitting the full dataset into separate training, validation, and holdout test portions
Inference is when a trained model is put to work generating predictions on new inputs. Adjusting weights happens during training, not inference. Data collection and splitting are earlier preparation steps.
A robot learns to navigate a warehouse by trying actions and receiving rewards for reaching goals and penalties for collisions. Which learning paradigm is this?
- a.Supervised learning, because a fully labeled dataset of the correct navigation moves was provided in advance
- b.Transfer learning, because the robot simply reuses a model trained on a different problem
- c.Unsupervised learning, because the robot groups similar warehouse locations on its own
- d.Reinforcement learning, where an agent learns from rewards and penalties to maximize long-term reward✓
Reinforcement learning trains an agent through trial and error: it takes actions, receives rewards or penalties, and learns a policy that maximizes cumulative reward. No labeled dataset of correct moves is provided, which rules out supervised learning.
A model performs poorly on BOTH its training data and new test data. What does this most likely indicate?
- a.Overfitting, because the model simply memorized the training data far too closely
- b.Convergence, because the model has reached its optimal solution
- c.Data leakage between the training and test sets
- d.Underfitting, because the model is too simple to capture the underlying pattern✓
Underfitting means the model is too simple or undertrained to capture the data's patterns, so it performs poorly even on training data. Overfitting is the opposite: strong on training data but weak on unseen data.
Which statement best describes structured data?
- a.Data organized in a fixed schema of rows and columns, such as a relational database table✓
- b.Free-form text documents, images, and audio recordings that have no predefined fixed format
- c.Data that always requires a deep neural network in order to be processed
- d.Data that has already been split into separate training and test sets
Structured data fits a predefined schema of rows and columns (spreadsheets, SQL tables). Unstructured data such as text, images, and audio has no fixed format and often needs different techniques to process.
In supervised learning, what is 'labeled data'?
- a.Data that has been encrypted before it is used for training
- b.Data that has had all personally identifiable information removed from it
- c.Data in which each example includes the correct target answer the model should learn to predict✓
- d.Data that has no known outputs and consists only of raw inputs
Labeled data pairs each input with its known correct output (the label), which supervised models learn from. Data with only inputs and no known outputs is unlabeled and is used in unsupervised learning.
Which sequence best represents a typical machine learning workflow?
- a.Deployment, then training, then data collection, then evaluation
- b.Model training, then data cleaning, then problem definition
- c.Data collection and preparation, then model training, then evaluation, then deployment and monitoring✓
- d.Inference first, then labeling, then feature selection
A standard ML pipeline flows from collecting and preparing data, to training a model, to evaluating it, and finally deploying and monitoring it in production. The other orderings scramble these dependent stages.
What is a hyperparameter in machine learning?
- a.A value the model learns automatically from the data during training
- b.A configuration value, such as learning rate, that is set before training and is not learned by the model itself✓
- c.The final prediction the model outputs at inference time
- d.A single column of input data fed to the model
Hyperparameters (learning rate, number of layers, etc.) are set before training and control how learning happens. Parameters such as weights are what the model actually learns from data during training.
Which tool summarizes how many predictions a classifier got right and wrong for each class?
- a.A learning-rate schedule
- b.An embedding vector
- c.A loss function
- d.A confusion matrix✓
A confusion matrix lays out true positives, false positives, true negatives, and false negatives per class, making classification performance easy to inspect. A loss function guides training but does not summarize per-class results this way.
In classification, what does 'recall' measure?
- a.The fraction of the model's positive predictions that turned out to be correct
- b.Of all the actual positive cases, the fraction the model correctly identified✓
- c.The total time the model takes to make a single prediction
- d.The total number of parameters contained in the model
Recall (sensitivity) is true positives divided by all actual positives, i.e., how many real positives the model caught. The fraction of positive predictions that are correct describes precision, a different metric.
Predicting whether a tumor is 'malignant' or 'benign' is an example of what?
- a.Regression, predicting a continuous numeric value
- b.Binary classification, choosing between two discrete classes✓
- c.Clustering, grouping unlabeled data into natural sets
- d.Dimensionality reduction, compressing many features into fewer
Choosing between exactly two categories is binary classification. Regression predicts continuous numbers, and clustering groups unlabeled data without predefined categories.
Automatically spotting defective products on an assembly line from camera images is an example of which AI capability?
- a.Natural language processing
- b.Speech recognition
- c.Computer vision✓
- d.Time-series forecasting
Analyzing images or video to detect objects, defects, or scenes is computer vision. NLP handles text, speech recognition converts audio to text, and forecasting predicts future values from time-series data.
Which field of AI focuses on enabling machines to understand and generate human language?
- a.Computer vision
- b.Reinforcement learning
- c.Natural language processing (NLP)✓
- d.Robotic process automation software
Natural language processing (NLP) covers understanding and generating human language, for example translation, sentiment analysis, and chatbots. Computer vision instead deals with images and video.
What is the primary purpose of a validation set that is kept separate from the training and test sets?
- a.To tune hyperparameters and compare models during development without touching the final test set✓
- b.To serve production traffic after the model is deployed
- c.To store the model's encrypted backups
- d.To train the final model weights
The validation set guides model selection and hyperparameter tuning during development, keeping the test set untouched for an unbiased final estimate. Training happens on the training set, not the validation set.
A deployed model's accuracy slowly declines over months as customer behavior changes. What is the best response?
- a.Monitor for this drift and retrain the model on more recent, representative data✓
- b.Delete all logs so the decline is never recorded anywhere
- c.Increase the model's temperature parameter to compensate
- d.Assume the deployed model is fine and stop measuring its accuracy entirely from now on
Real-world data shifts over time (model or data drift), degrading performance. The responsible fix is ongoing monitoring plus retraining on fresh data. Ignoring it or hiding the evidence increases risk.
What is feature engineering?
- a.Encrypting the entire dataset before any training begins
- b.Deploying the finished trained model into production
- c.Transforming or creating input variables from raw data to improve model performance✓
- d.Choosing which AWS Region the training job runs in
Feature engineering shapes raw data into informative input variables (features), for example combining columns or extracting date parts, which can significantly improve model performance. It is a data-preparation activity, not deployment.
Which Amazon SageMaker capability lets business analysts build ML models through a no-code visual interface?
- a.Amazon SageMaker Clarify
- b.Amazon SageMaker Model Monitor
- c.Amazon SageMaker Ground Truth
- d.Amazon SageMaker Canvas✓
Amazon SageMaker Canvas provides a no-code, point-and-click interface so business users can build and use ML models without writing code. Clarify detects bias, Ground Truth labels data, and Model Monitor watches deployed models.
Which Amazon SageMaker capability offers pre-trained models and prebuilt solution templates to help you get started quickly?
- a.Amazon SageMaker Data Wrangler
- b.Amazon SageMaker Model Monitor
- c.Amazon SageMaker JumpStart✓
- d.Amazon SageMaker Clarify
Amazon SageMaker JumpStart provides pre-trained models, foundation models, and prebuilt solution templates for a fast start. Data Wrangler prepares data, Clarify checks bias, and Model Monitor tracks deployed models.
Why is the phrase 'garbage in, garbage out' emphasized in machine learning?
- a.A large enough model automatically makes the quality of its training data completely irrelevant
- b.Models automatically clean any bad data they are given
- c.Data quality only starts to matter after a model has been retired
- d.Poor-quality or biased training data produces unreliable, poor-quality model predictions✓
A model can only learn from the data it is given; flawed, biased, or noisy data leads to flawed predictions no matter how advanced the model. Data quality is foundational, not something the model fixes on its own.
Suggesting products a customer is likely to buy based on their past behavior is an example of which ML application?
- a.Anomaly detection
- b.Optical character recognition
- c.A recommendation system✓
- d.Speech synthesis
Predicting items a user will like from past behavior is a recommendation system. Anomaly detection flags unusual data points, OCR reads text from images, and speech synthesis generates audio.
A bank wants to flag transactions that deviate sharply from a customer's normal pattern, without any predefined fraud labels. Which technique fits best?
- a.Supervised regression on labeled fraud dollar amounts
- b.Image classification of the customer's photos
- c.Text summarization of the transaction descriptions
- d.Anomaly detection, an unsupervised approach that flags unusual data points✓
With no labeled fraud examples, anomaly detection (typically unsupervised) identifies data points that differ markedly from normal patterns. Supervised regression would require labeled target values that are unavailable here.