Amazon AWS Certified AI Practitioner AIF-C01 Practice Test Questions and Exam Dumps Part5 Q81-100

View Full Amazon AWS Certified AI Practitioner AIF-C01 Exam Dumps and Practice Test Dumps.

 

Question 81

Which machine learning approach is primarily used when a model learns patterns from data that does not contain labeled outcomes?

  1. Unsupervised learning
  2. Supervised learning
  3. Reinforcement learning
  4. Transfer learning

Correct Answer: 1

Explanation

Unsupervised learning works with datasets that do not have predefined target labels. Instead of learning to predict a known outcome, the algorithm attempts to identify patterns, structures, or relationships within the available data. Clustering is a common example because it groups similar observations without requiring predefined categories. This approach can help organizations discover customer segments, identify unusual patterns, or explore previously unknown structures. Unsupervised learning differs from supervised learning, where labeled examples are provided during training. The appropriate approach depends on whether the desired outcome is already known and represented in the training data.

Question 82

A financial organization wants to predict the numerical value of a customer’s future spending based on historical information. Which machine learning task best matches this requirement?

  1. Classification
  2. Regression
  3. Clustering
  4. Association analysis

Correct Answer: 2

Explanation

Regression is a machine learning task used to predict continuous numerical values. In this scenario, future customer spending is represented as a numerical quantity, making regression appropriate. A regression model can learn relationships between historical input variables and the target numerical outcome. Classification, by contrast, predicts categories such as high or low risk. Clustering groups similar records without predefined labels. The choice of regression algorithm and evaluation metric depends on the characteristics of the data and business requirement. Common regression evaluation measures include mean absolute error and mean squared error.

Question 83

A binary classification model has an F1 score of 0.92. What does the F1 score primarily combine?

  1. Accuracy and specificity
  2. Recall and specificity
  3. Precision and recall
  4. Latency and throughput

Correct Answer: 3

Explanation

The F1 score combines precision and recall into a single metric using their harmonic mean. It is particularly useful when both types of classification errors matter and the dataset may have uneven class distributions. Precision measures how many predicted positive cases are actually positive, while recall measures how many actual positive cases the model successfully identifies. A high F1 score generally indicates a useful balance between these two measures. However, the F1 score should not automatically be treated as sufficient for every application. Organizations should select evaluation metrics based on the consequences of model errors.

Question 84

What does a confusion matrix help an AI practitioner examine in a classification model?

  1. The number of tokens used by a language model
  2. The relationship between predicted and actual classes
  3. The amount of storage used by training data
  4. The number of model parameters

Correct Answer: 2

Explanation

A confusion matrix summarizes classification results by comparing predicted classes with actual classes. It commonly shows true positives, true negatives, false positives, and false negatives. These values provide the foundation for calculating metrics such as precision, recall, accuracy, and F1 score. Examining a confusion matrix can reveal whether a model frequently produces a particular type of error. This is especially important when false positives and false negatives have different business consequences. Instead of considering only an overall accuracy value, practitioners can use the confusion matrix to understand the specific behavior of a classifier.

Question 85

Which situation is an example of data leakage during machine learning model development?

  1. Removing duplicate records before training
  2. Using information from the future target period as a training feature
  3. Splitting data into training and testing sets
  4. Normalizing numerical features

Correct Answer: 2

Explanation

Data leakage occurs when information that should not be available to the model during prediction is accidentally included during training. A common example is using information from the future target period as a feature. This can cause the model to appear highly accurate during evaluation because it has indirectly received information about the answer. However, that information would not be available when the model is actually used. Preventing leakage requires careful feature selection, appropriate dataset splitting, and attention to the timing and origin of every variable used during model development.

Question 86

Why can class imbalance create a problem when evaluating a classification model?

  1. The model cannot process numerical features
  2. A majority class can dominate overall accuracy
  3. The model must always use reinforcement learning
  4. The dataset becomes automatically encrypted

Correct Answer: 2

Explanation

Class imbalance occurs when one class contains substantially more examples than another. In such cases, a model can achieve high overall accuracy by primarily predicting the majority class while performing poorly on the minority class. For example, if only a small percentage of transactions are fraudulent, predicting every transaction as legitimate could still produce high accuracy. Metrics such as precision, recall, and F1 score can provide additional insight into minority-class performance. Practitioners may also consider sampling strategies, class weighting, or other techniques to address imbalance during model development.

Question 87

Which machine learning concept refers to adjusting values such as learning rate or batch size to improve model performance?

  1. Hyperparameter tuning
  2. Data encryption
  3. Text tokenization
  4. Feature labeling

Correct Answer: 1

Explanation

Hyperparameter tuning involves selecting values for settings that control how a machine learning algorithm learns. Examples can include learning rate, batch size, number of training epochs, and regularization strength, depending on the algorithm. These values are generally configured before or during training rather than learned directly as model parameters from individual examples. Systematic experimentation can help identify combinations that provide better performance on validation data. Hyperparameter tuning should be conducted carefully to avoid overfitting decisions to a particular validation set. Final performance should be confirmed using an appropriately separated test dataset.

Question 88

During model training, what does an epoch represent?

  1. A single prediction made after deployment
  2. One complete pass through the training dataset
  3. One security authorization request
  4. One generated token

Correct Answer: 2

Explanation

An epoch represents one complete pass through the training dataset during model training. A training process may use multiple epochs so that the model can repeatedly adjust its parameters based on the available examples. The number of epochs is a training hyperparameter and must be selected carefully. Too few epochs can result in undertraining, while too many may contribute to overfitting, depending on the model and dataset. An epoch is different from a batch, which is a smaller group of training examples processed together during an individual training step.

Question 89

What is a key benefit of transfer learning?

  1. It can leverage knowledge learned from an existing model for a related task
  2. It requires every model to start with randomly selected business rules
  3. It eliminates the need for any training data in every scenario
  4. It prevents models from being adapted to new domains

Correct Answer: 1

Explanation

Transfer learning allows knowledge learned by an existing model to be reused when developing a model for a related task or domain. Instead of starting entirely from scratch, a practitioner can adapt a pretrained model using additional data relevant to the new requirement. This can reduce training requirements and may be especially useful when the new task has limited labeled data. The effectiveness of transfer learning depends on how related the original and target tasks are. It does not eliminate the need to evaluate the resulting model or validate whether its behavior meets the new application’s requirements.

Question 90

A generative AI model can accept only a limited amount of text and other information in a single request. What model characteristic describes this limitation?

  1. Context window
  2. Accuracy
  3. Recall
  4. Availability zone

Correct Answer: 1

Explanation

A model’s context window defines the amount of information it can consider within a particular interaction, typically measured using tokens. The context can include instructions, conversation history, retrieved information, and other input provided to the model. If an application exceeds the available context window, it may need to shorten, summarize, retrieve selectively, or otherwise manage the information before invoking the model. Context-window capacity varies among models. Developers should therefore design prompts and retrieval workflows around the selected model’s supported limits rather than assuming that unlimited information can be supplied in a single request.

Question 91

A user asks a foundation model to summarize a document without providing any examples of the desired summary format. What prompting technique is being used?

  1. Zero-shot prompting
  2. Few-shot prompting
  3. Model distillation
  4. Reinforcement learning

Correct Answer: 1

Explanation

Zero-shot prompting means asking a model to perform a task without providing example inputs and outputs demonstrating the desired behavior. The model relies on its pretrained capabilities and the instructions contained in the prompt. For example, requesting a summary without showing sample summaries is a zero-shot approach. Few-shot prompting, in contrast, includes several examples to guide the model’s response pattern. Zero-shot prompting can be useful when the task is straightforward or when examples are unavailable. Clear instructions, relevant context, and explicit output requirements can improve the usefulness of zero-shot responses.

Question 92

Which prompt component is generally intended to establish high-level instructions that guide how a generative AI application should behave?

  1. System prompt
  2. Database index
  3. Validation dataset
  4. Network packet

Correct Answer: 1

Explanation

A system prompt is used to provide high-level instructions or behavioral guidance for a generative AI application. It can define the assistant’s role, expected response style, constraints, or other instructions that should guide interactions. However, system prompts should not be treated as a substitute for application-level security controls. Sensitive permissions and access decisions should be enforced outside the model. Developers should also test how the model responds to conflicting or malicious user inputs. Effective prompt design combines clear instructions with appropriate application architecture, validation, monitoring, and security boundaries.

Question 93

What is the primary effect of increasing the top-p value in a generative AI model’s sampling configuration?

  1. It restricts generation to only the single most probable token
  2. It changes the model’s training dataset
  3. It allows a larger probability mass of candidate tokens to be considered
  4. It disables all variation in generated responses

Correct Answer: 3

Explanation

Top-p, also called nucleus sampling, controls the set of candidate tokens considered during probabilistic generation by selecting the smallest group whose cumulative probability reaches the configured threshold. Increasing the top-p value generally permits a broader range of candidate tokens to participate in sampling, potentially increasing output diversity. Lower values restrict the candidate pool more strongly. Top-p is an inference-time generation parameter and does not retrain the model or change its learned knowledge. Developers should test generation settings with representative prompts because different applications may require different balances between consistency and creativity.

Question 94

A company creates a reusable prompt containing placeholders for customer-specific information. What is this approach commonly called?

  1. Prompt template
  2. Model checkpoint
  3. Data warehouse
  4. Confusion matrix

Correct Answer: 1

Explanation

A prompt template is a reusable prompt structure containing fixed instructions together with placeholders or variables that can be populated with information at runtime. Templates can improve consistency across repeated application requests and make prompt management easier. For example, an application could use the same instruction structure while inserting a customer’s question, product details, or retrieved context into designated fields. Templates should still be tested because changes in input data can affect model behavior. Proper validation and escaping of user-controlled content are also important when applications construct prompts dynamically.

Question 95

An AI application uses an agent that can call approved external tools to complete tasks. What capability does this architecture provide?

  1. Tool-based action execution
  2. Automatic database replication
  3. Hardware virtualization
  4. Network address translation

Correct Answer: 1

Explanation

AI agents can use approved tools or external services to perform actions beyond generating text. Depending on the architecture, an agent may determine that a particular tool is needed, provide the required inputs, and use the returned information to continue the task. Examples can include querying an approved database, retrieving information, or initiating a permitted business operation. Tool access should be tightly controlled because model-generated actions can introduce security risks. Applications should validate tool parameters, enforce authorization, restrict available operations, and consider human approval for sensitive or irreversible actions.

Question 96

Which practice provides an additional safeguard when an AI system is used to make decisions with significant consequences for people?

  1. Human review
  2. Unlimited model permissions
  3. Removing all audit records
  4. Disabling model evaluation

Correct Answer: 1

Explanation

Human review can provide an additional safeguard when AI outputs may have significant consequences. A human reviewer can examine relevant information, identify inappropriate recommendations, and make or approve the final decision where required. The level of human involvement should depend on the potential impact and risk of the application. Human oversight does not automatically make an AI system safe; reviewers need appropriate information, authority, and procedures. Organizations should also maintain monitoring, documentation, security controls, and evaluation processes so that human review operates as part of a broader responsible AI framework.

Question 97

Which AWS service can help encrypt and manage cryptographic keys used to protect sensitive data?

  1. AWS Key Management Service (AWS KMS)
  2. Amazon CloudFront
  3. Amazon Route 53
  4. Amazon EventBridge

Correct Answer: 1

Explanation

AWS Key Management Service, commonly called AWS KMS, helps customers create and manage cryptographic keys used with supported AWS services and applications. Encryption is an important component of protecting sensitive AI-related data, including datasets, application information, and stored artifacts. Access to cryptographic keys should be carefully controlled using appropriate permissions and key policies. AWS KMS does not itself determine whether data should be considered sensitive or whether an AI model is safe. Instead, it provides cryptographic key-management capabilities that can support broader data protection and security requirements.

Question 98

Which metric is particularly useful for measuring the average magnitude of errors in a regression model without giving larger errors disproportionately greater mathematical weight?

  1. Mean absolute error
  2. Accuracy
  3. Recall
  4. F1 score

Correct Answer: 1

Explanation

Mean absolute error, or MAE, calculates the average absolute difference between predicted values and actual values. Because the errors are not squared, larger errors do not receive the additional mathematical weighting that occurs with mean squared error. MAE is therefore useful when practitioners want an easily interpretable measure of the typical prediction error. It is commonly used for regression problems involving continuous numerical outputs. Metric selection should reflect the application’s requirements because different error measures emphasize different characteristics of model performance and may lead to different conclusions about model quality.

Question 99

A training process uses groups of examples rather than processing the entire dataset at once. What are these groups called?

  1. Batches
  2. Epochs
  3. Features
  4. Labels

Correct Answer:1

Explanation

A batch is a group of training examples processed together during a training step. Instead of sending the entire training dataset through the model at once, machine learning systems commonly divide the data into batches. Batch size can affect memory usage, training speed, and optimization behavior. An epoch represents a complete pass through the training dataset, while multiple batches may be required to complete one epoch. Selecting an appropriate batch size depends on available computational resources, dataset characteristics, and the behavior of the training algorithm being used.

Question 100

Which action can help prevent sensitive information from being unnecessarily exposed to a generative AI model?

  1. Provide every available database record to every prompt
  2. Apply data minimization and send only information required for the task
  3. Disable all access controls before inference
  4. Store confidential information directly in unrestricted prompts

Correct Answer: 2

Explanation

Data minimization means limiting the information provided to an AI system to what is necessary for the intended task. This can reduce unnecessary exposure of sensitive or confidential information and can also reduce processing costs. Applications should identify what data is actually required, restrict access appropriately, and avoid sending unrelated records to a model. Additional safeguards can include encryption, access controls, logging, retention policies, and appropriate data-handling procedures. Data minimization is particularly important when AI applications process personal, financial, proprietary, or otherwise sensitive information.