Course menuAIF-C01

Exams / AIF-C01 / Sample questions

AIF-C01 sample questions from the practice sets

10 questions taken from across the 5 paid practice sets, covering every domain of the exam guide. None of them are in the free exam. Try each one, then open the answer to see why every option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

  1. Question 1 Fundamentals of AI and ML From Practice set 1

    A grocery chain's pricing app uses a model that was built last year from several years of sales records.

    Each morning the app sends the model that day's store, weather and promotion details, and the model returns a demand forecast for each product.

    Which term describes this daily use of the finished model?

    Choose one answer.

    1. A. Training, the stage in which the model learns from past data
    2. B. Inference, using a trained model to predict on new inputs
    3. C. Feature engineering, turning raw data into model inputs
    4. D. Hyperparameter tuning, adjusting the training settings
    Show the answer and explanation

    Answer: B

    • A. Wrong: Training is the earlier stage, when an algorithm learns patterns from historical records. The model in this scenario is already built, and the app only asks it for forecasts.
    • B. Right: Correct. Inference means running a trained model on new inputs to get predictions. Each morning's forecast request is an inference. Learn more: What is machine learning? (opens in a new tab)
    • C. Wrong: Feature engineering prepares input variables before training, such as turning dates into day-of-week values. It is not the act of receiving forecasts from a finished model.
    • D. Wrong: Tuning changes the settings that control how a model is trained, to improve its accuracy. It happens during development, not each morning when the app asks for forecasts.

    Explanation

    Machine learning has two main phases. During training, an algorithm learns patterns from historical data and produces a model. During inference, the trained model receives new inputs and returns predictions, which here are the daily forecasts.

    Study

  2. Question 2 Fundamentals of AI and ML From Practice set 1

    A regional bakery chain wants a model that forecasts tomorrow's sales of each product in each shop.

    Which TWO data sources matter MOST for training that model? (Choose two.)

    Choose two answers.

    1. A. Two years of daily sales for each product in each shop, with dates
    2. B. Daily weather and public holiday calendars for each shop's area
    3. C. Photos of shop fronts taken for the company's marketing website
    4. D. Staff contact details and rota schedules kept in the HR system
    5. E. A list of the company's suppliers and their delivery email addresses
    Show the answer and explanation

    Answers: A, B

    • A. Right: Correct. Past sales with dates are the labeled outcomes the model learns from, showing what sold on each day in each shop.
    • B. Right: Correct. Weather and holidays change how many customers visit and what they buy, so they are useful input features for a sales forecast.
    • C. Wrong: Shop-front photos show the building, not how much sells on a given day. They add little to a sales forecast.
    • D. Wrong: Staff details do not describe customer demand. They are needed for rostering, not for forecasting product sales.
    • E. Wrong: Supplier contacts describe where ingredients come from, not what customers buy. They do not help predict tomorrow's sales.

    Explanation

    A supervised forecast needs past outcomes, here daily sales for each product and shop, to learn from. Inputs that influence demand, such as weather and public holidays, help the model explain why sales rise and fall. Administrative records such as staff rotas and supplier contacts do not describe demand.

    Study

  3. Question 3 Fundamentals of Generative AI From Practice set 2

    A sales director notices that a model's context window, usage limits and price are all counted in tokens.

    She asks the engineers what one token is, so she can estimate costs for a pilot.

    Choose one answer.

    1. A. A fixed block of 1,000 characters of the prompt or response
    2. B. A security credential that authorizes each call to the model made by an app
    3. C. A numeric vector that captures the meaning of a whole document or passage
    4. D. A small unit of text, such as a word or part of a word
    Show the answer and explanation

    Answer: D

    • A. Wrong: Tokens vary in length and are not a fixed size. A word may be one token or several, so a set character count is not a token.
    • B. Wrong: Credentials are IAM or API keys that control access. Tokens are units of text, which is why they count against limits and price.
    • C. Wrong: That describes an embedding, which is a vector representation of meaning. Embeddings are not what the context window and pricing count.
    • D. Right: Correct. A token is a piece of text, often a word or part of a word, and models read and bill by token. Context windows and usage limits are measured in tokens. Learn more: Context window overflow: breaking the barrier (opens in a new tab)

    Explanation

    A token is the unit of text a model reads and generates. Context windows, usage limits and prices are all counted in tokens, so the team can estimate cost from text length. Embeddings and credentials are different concepts. This question tests the basic unit that drives model cost.

    Study

  4. Question 4 Fundamentals of Generative AI From Practice set 2

    Users of a company's chat assistant on Amazon Bedrock say it feels slow, because the screen stays blank until the whole answer has been generated.

    The team wants to keep answers at their full length.

    Which change BEST improves how responsive the assistant feels?

    Choose one answer.

    1. A. Move the requests to batch inference, which returns bulk results later at a lower cost
    2. B. Stream the response with the ConverseStream operation, showing text as it is generated
    3. C. Lower the maximum output length so each answer is shorter and quicker to finish
    4. D. Raise the temperature of every request so answers are generated faster overall
    Show the answer and explanation

    Answer: B

    • A. Wrong: Batch inference handles large jobs offline, with results returned later rather than streamed. It lowers cost for bulk work but does nothing for how fast a live chat fills. Learn more: Process multiple prompts with batch inference (opens in a new tab)
    • B. Right: Correct. ConverseStream returns the reply in chunks as the model generates it, so users see text right away instead of waiting for the full answer. Learn more: Inference using the Converse API (opens in a new tab)
    • C. Wrong: Shorter output would reduce the wait, but it cuts the answer length the team wants to keep. The screen would still stay blank until the reply finished.
    • D. Wrong: Temperature controls randomness in word choice, not generation speed. Raising it can make answers less consistent and does not make them arrive faster.

    Explanation

    Perceived responsiveness depends on when the user first sees text, not only on when the reply finishes. Streaming delivers the reply as it is generated, which keeps the full answer length while removing the blank wait. Batch, shorter output and temperature do not address the streaming problem.

    Study

  5. Question 5 Applications of Foundation Models From Practice set 3

    A public housing office runs an assistant on Amazon Bedrock that sends a long policy handbook with every question.

    Traffic is busy from 9 to 5 but almost idle overnight. The first query each morning is slower and costs more than the rest.

    What is the MOST likely cause?

    Choose one answer.

    1. A. The cache expired overnight after its time to live ran out.
    2. B. Prompt caching works only at weekends, when traffic is lower.
    3. C. The model is retrained each night, which clears any cached content.
    4. D. Caching applies only to output tokens, which are longer in the morning.
    Show the answer and explanation

    Answer: A

    • A. Right: Correct. The default cache time to live is 5 minutes for many models and resets with each hit. With no hits overnight, the cache expires and the first morning request must write it again. Learn more: Prompt caching (opens in a new tab)
    • B. Wrong: There is no such restriction. The morning behavior is explained by the cache's time to live.
    • C. Wrong: Base models are not retrained for your account each night, and caching does not depend on retraining.
    • D. Wrong: Prompt caching applies to repeated input prompts, not to the output the model generates. Output length is not the reason the first request is slower.

    Explanation

    Prompt caching stores a repeated prompt prefix so later requests can reuse it. The cache has a time to live that resets with each successful hit. If nothing hits the cache within that window, it expires, and the next request must process and write the prefix again.

    Study

  6. Question 6 Applications of Foundation Models From Practice set 3

    A research team compares two language models on how well each predicts unseen text.

    It wants one number for each model, where a lower value means the model finds the text less surprising.

    Which metric fits this need?

    Choose one answer.

    1. A. AUC, which summarizes how well a binary classifier ranks positives above negatives.
    2. B. F1 score, which balances precision and recall for a classifier.
    3. C. Perplexity, which measures how well a language model predicts text.
    4. D. RMSE, which measures the average size of errors in numeric predictions.
    Show the answer and explanation

    Answer: C

    • A. Wrong: AUC measures a classifier's ranking across thresholds. It does not score how well a language model predicts text.
    • B. Wrong: F1 scores a classifier's predictions against true labels. It is not a measure of how well a language model predicts text.
    • C. Right: Correct. Perplexity measures how surprised a language model is by held-out text. Lower values mean the model predicts the text better. Learn more: Evaluate Amazon Bedrock resources (opens in a new tab)
    • D. Wrong: RMSE scores numeric predictions such as prices or demand. It does not measure how well a language model predicts text.

    Explanation

    Perplexity is a standard measure for language models: it reflects how well the model predicts a sample of text, and lower is better. AUC, F1 and RMSE are useful for classification and numeric prediction, but they do not measure how well a language model predicts text.

    Study

  7. Question 7 Applications of Foundation Models From Practice set 3

    A claims team asks one long prompt to read a claim, check it against policy rules, calculate the payout and draft a letter.

    Answers often go wrong at the calculation step. Reviewers must check each intermediate result, and the team has no budget to train a model.

    Which approach fits BEST?

    Choose one answer.

    1. A. Fine-tune a model on past claim letters so it learns the calculations
    2. B. Add more rules to the same long prompt, so the model sees everything at once
    3. C. Prompt chaining, with one prompt per subtask and a review step between them
    4. D. Raise the temperature so the model calculates more creatively
    Show the answer and explanation

    Answer: C

    • A. Wrong: Fine-tuning teaches style and patterns from examples. It is costly, and it gives reviewers no checkable result at each step.
    • B. Wrong: The team's single prompt already fails at the calculation. Adding more to it makes each intermediate result harder to review.
    • C. Right: Correct. Prompt chaining splits the task into subtasks that run in a set order, with each output feeding the next. Reviewers can check each step, and no training is needed. Learn more: Prompt chaining workflows (opens in a new tab)
    • D. Wrong: Temperature changes how random the output is. Higher values make results less consistent and do not improve arithmetic.

    Explanation

    Prompt chaining breaks a complex task into smaller prompts that run in a defined order, so each step is focused and can be checked. It needs no training and no extra model, which suits a team with no budget for fine-tuning. Fine-tuning, a bigger single prompt and higher temperature each miss at least one of these needs.

    Study

  8. Question 8 Guidelines for Responsible AI From Practice set 4

    A bank's chatbot on Amazon Bedrock uses sensitive information filters. Compliance wants account numbers and email addresses handled differently in prompts and responses.

    Which TWO statements about these filters are correct? (Choose two.)

    Choose two answers.

    1. A. ANONYMIZE replaces a detected email with a placeholder such as {EMAIL} and keeps the rest of the message.
    2. B. BLOCK replaces the whole prompt or response with the configured blocked message.
    3. C. Custom regex patterns support lookaround matching, so they can match text only when it sits next to other words.
    4. D. The filters check model responses only, so customers' prompts are never checked for personal data.
    5. E. Setting the action to NONE blocks detected content and writes no detection information to the trace.
    Show the answer and explanation

    Answers: A, B

    Explanation

    ANONYMIZE masks detected PII with its entity type and BLOCK rejects the whole request or response, so both statements are correct. Custom regex filters do not support lookaround matching, sensitive filters apply to prompts as well as responses, and NONE returns detection information rather than hiding it.

    Study

  9. Question 9 Guidelines for Responsible AI From Practice set 2

    A bank records each model in an Amazon SageMaker AI model card.

    Its model risk team uses the card's status field to track governance.

    Put the statuses in the order a model card normally moves through them, first status first.

    Put these 4 steps in order.

    1. A. Approved: the card has been reviewed and approved within the organization
    2. B. Pending review: the card has been submitted and is waiting for a reviewer
    3. C. Archived: no more updates are made, but the card can still be exported
    4. D. Draft: the card is a work in progress that the team is still writing
    Show the answer and explanation

    Correct order: D, B, A, C

    1. D. Draft: the card is a work in progress that the team is still writing First: a new model card starts as a draft while the team writes and edits its content.
    2. B. Pending review: the card has been submitted and is waiting for a reviewer Second: when the author finishes, the card is submitted and waits for a reviewer's decision. Its content should not change while it waits for review.
    3. A. Approved: the card has been reviewed and approved within the organization Third: once a reviewer has checked the card, its status is set to approved. The approved card becomes the record that the organization relies on for the model.
    4. C. Archived: no more updates are made, but the card can still be exported Fourth: archived is the final status, used once the card should no longer be maintained. No more updates should be made, though the card can still be exported.

    Explanation

    A model card starts as a draft while it is written, moves to pending review once submitted, becomes approved after review, and is archived when it should no longer change. Archived cards can still be exported for audits. The question tests the normal status flow of a SageMaker AI model card.

    Study

  10. Question 10 Security, Compliance, and Governance for AI Solutions From Practice set 5

    A team calls Claude through a geographic cross-Region inference profile in Amazon Bedrock.

    Its role policy allows bedrock:InvokeModel on the inference profile ARN only. Calls fail with an access error when traffic routes to a destination Region.

    Which change fixes this while keeping access limited to that profile?

    Choose one answer.

    1. A. Allow bedrock:InvokeModel on the foundation model ARNs in each destination Region, conditioned on the inference profile ARN.
    2. B. Grant bedrock:* on all resources in the account, so every Region and profile is covered.
    3. C. Attach a read-only Bedrock policy, which includes permission to invoke models in every Region.
    4. D. Create a Bedrock interface VPC endpoint in each destination Region, so calls reach the service privately.
    Show the answer and explanation

    Answer: A

    • A. Right: Correct. The policy must also cover the foundation model in each Region the profile routes to. A condition on the inference profile ARN keeps those model permissions tied to calls made through that profile. Learn more: Prerequisites for inference profiles (opens in a new tab)
    • B. Wrong: This works, but it grants far more than needed. It breaks the requirement to keep access limited to the one profile.
    • C. Wrong: A read-only policy does not allow invoking any model, so calls would still fail with the same access error in the destination Region.
    • D. Wrong: A VPC endpoint controls the network path, not authorization. The IAM error would still occur.

    Explanation

    A cross-Region inference profile needs permissions on the profile and on the foundation model in every Region it can route to. Adding those model permissions, with a condition that matches the profile's ARN, fixes the error and keeps access scoped to that profile. Broad wildcard grants, read-only policies and VPC endpoints do not provide the correct authorization.

    Study

Like these? There are 325 more.

The AIF-C01 practice sets: 5 sets, 325 questions in the same style, none of them in the free exam. One payment of$14.99, no subscription, with access for at least 12 months.

Questions about a question or your purchase? Email support@exampark.app and we'll sort it out.

Every exam starts with free questions. No account needed.