Courseiva
← Back to AWS Certified AI Practitioner AIF-C01 questions

Scenario-based practice

Refer to the Exhibit Practice Questions

Practise AWS Certified AI Practitioner AIF-C01 practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

15
scenario questions
AIF-C01
exam code
Amazon Web Services
vendor

Scenario guide

How to approach refer to the exhibit practice questions

Practise exhibit-style questions that ask you to read a topology, table, command output or diagram before choosing the best answer.

Quick answer

Exhibit-style questions test whether you can read a topology, command output, diagram or table before choosing the best answer.

How to extract the relevant detail from an exhibit.

How topology, command output or routing information affects the answer.

How to avoid answering from memory before reading the evidence.

How to map the exhibit back to the exam objective.

Related practice questions

Related AIF-C01 topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1hardmultiple choice
Full question →

Refer to the exhibit. A developer receives an error when trying to invoke the Claude Instant model from an application. The application uses the IAM role 'MyAppRole'. Which IAM policy statement should be added to the role to resolve the error?

Exhibit

Error log from Amazon Bedrock:
{
  "error": "AccessDeniedException",
  "message": "User: arn:aws:iam::123456789012:role/MyAppRole is not authorized to perform: bedrock:InvokeModel on resource: arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-instant-v1"
}
Question 2hardmultiple choice
Full question →

Refer to the exhibit. A developer runs the CLI command to summarize text using Claude v2 in Bedrock. The output is shorter than expected. Which change should the developer make to allow a longer response?

Exhibit

aws bedrock-runtime invoke-model \
  --model-id anthropic.claude-v2 \
  --body '{"prompt":"\n\nHuman: Summarize the following text: ...\n\nAssistant:","max_tokens_to_sample":200}' \
  --cli-binary-format raw-in-base64-out \
  --region us-east-1 \
  output.json

The output.json file contains:
{"completion": " The summary is...", "stop_reason": "stop_sequence"}
Question 3hardmultiple choice
Full question →

Refer to the exhibit. An IAM policy is attached to a user. Which models can the user invoke?

Exhibit

Refer to the exhibit.
```
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "bedrock:InvokeModel",
      "Resource": "arn:aws:bedrock:us-east-1:123456789012:model/anthropic.claude-v2"
    },
    {
      "Effect": "Deny",
      "Action": "bedrock:InvokeModel",
      "NotResource": "arn:aws:bedrock:us-east-1:123456789012:model/anthropic.claude-v2"
    }
  ]
}
```
Question 4easymultiple choice
Full question →

Refer to the exhibit. A data scientist ran a training job on Amazon SageMaker. The job failed with the error shown. What is the most likely cause?

Exhibit

{
  "TrainingJobName": "my-training-job-1",
  "TrainingJobStatus": "Failed",
  "FailureReason": "AlgorithmError: OutOfMemoryError: CUDA out of memory. Tried to allocate 4.00 GiB (GPU 0; 8.00 GiB total capacity; 3.95 GiB already allocated; 2.50 GiB free; 4.00 GiB reserved in total by PyTorch)"
}
Question 5hardmultiple choice
Full question →

A data scientist runs the SageMaker Clarify job shown in the exhibit for a credit risk model. After reviewing the results, they find a high bias metric for the gender facet. Which action is most consistent with responsible AI?

Exhibit

Refer to the exhibit.
```
{
  "ModelName": "credit-risk-v1",
  "InputName": "features",
  "JobName": "bias-report-20240101",
  "ProcessingJob": {
    "ProcessingResources": {
      "ClusterConfig": {
        "InstanceCount": 1,
        "InstanceType": "ml.m5.large"
      }
    }
  },
  "AppSpecification": {
    "ImageUri": "683313688378.dkr.ecr.us-west-2.amazonaws.com/sagemaker-clarify-processing:1.0"
  },
  "Config": {
    "BiasConfig": {
      "Label": "approved",
      "Facet": ["gender"],
      "GroupVariable": ["age_group"]
    }
  },
  "OutputConfig": {
    "S3OutputPath": "s3://my-bucket/bias-reports/"
  }
}
Question 6easymultiple choice
Full question →

Refer to the exhibit. This is an Amazon Bedrock invocation request for Claude. What is the purpose of the "stop_sequences" parameter?

Exhibit

Refer to the exhibit.

{
  "modelId": "anthropic.claude-v2",
  "contentType": "application/json",
  "accept": "application/json",
  "body": {
    "prompt": "Human: Summarize the following text in 50 words. Text: AWS is a cloud platform. Response:",
    "max_tokens_to_sample": 200,
    "temperature": 1.0,
    "stop_sequences": ["\n\nHuman:"]
  }
}
Question 7hardmultiple choice
Full question →

Refer to the exhibit. An IAM policy is attached to a role used by an Amazon SageMaker notebook instance. The notebook instance attempts to upload a model artifact to the S3 bucket 'my-bucket' without specifying server-side encryption. What will happen?

Exhibit

Refer to the exhibit.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:PutObject"
      ],
      "Resource": "arn:aws:s3:::my-bucket/*",
      "Condition": {
        "StringEquals": {
          "s3:x-amz-server-side-encryption": "AES256"
        }
      }
    }
  ]
}
Question 8mediummultiple choice
Full question →

Refer to the exhibit. A company sets up a knowledge base for a customer support chatbot using Amazon Bedrock. Users report that the chatbot misses relevant details from long documents. Which change to the data source configuration would most likely improve retrieval?

Exhibit

AWS CloudFormation template snippet:
Resources:
  BedrockKnowledgeBase:
    Type: AWS::Bedrock::KnowledgeBase
    Properties:
      Name: support-kb
      RoleArn: arn:aws:iam::123456789012:role/BedrockKnowledgeBaseRole
      KnowledgeBaseConfiguration:
        Type: VECTOR
        VectorKnowledgeBaseConfiguration:
          EmbeddingModelArn: arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v1
      StorageConfiguration:
        Type: OPENSEARCH_SERVERLESS
        OpensearchServerlessConfiguration:
          CollectionArn: arn:aws:aoss:us-east-1:123456789012:collection/abc123
          FieldMapping:
            MetadataField: metadata
            TextField: text
  DataSource:
    Type: AWS::Bedrock::DataSource
    Properties:
      KnowledgeBaseId: !Ref BedrockKnowledgeBase
      Name: s3-source
      DataSourceConfiguration:
        Type: S3
        S3Configuration:
          BucketArn: arn:aws:s3:::my-docs-bucket
      VectorIngestionConfiguration:
        ChunkingConfiguration:
          ChunkingStrategy: FIXED_SIZE
Question 9hardmultiple choice
Full question →

Refer to the exhibit. A developer is optimizing latency for a generative AI model deployed on SageMaker. Based on the exhibit, which change would most likely reduce per-token latency?

Exhibit

A SageMaker notebook cell output:
"Model size: 7B parameters\nInference time on ml.g5.2xlarge: 250ms per token\nBatch size: 1\nMemory utilization: 90%"
Question 10mediummultiple choice
Full question →

Refer to the exhibit. An AWS CloudTrail log shows the creation of an IAM policy for a SageMaker execution role. Which responsible AI concern does this configuration raise?

Exhibit

{
  "eventName": "PutRolePolicy",
  "requestParameters": {
    "roleName": "SageMakerExecutionRole",
    "policyDocument": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": "sagemaker:InvokeEndpoint",
          "Resource": "*"
        }
      ]
    }
  }
}
Question 11easymultiple choice
Full question →

Refer to the exhibit. A developer wants to choose a model that can generate text (not just embeddings) and has the lowest cost. Based on the exhibit, which model should they select?

Network Topology
Command: aws bedrock list-foundation-modelsregion us-east-1query "modelSummaries[?provider=='Amazon'].{modelId:modelIdoutput table|AWS CLI command and output:Output:| modelId | name |
Question 12mediummultiple choice
Full question →

An AI team uses the IAM policy shown in the exhibit to control endpoint creation. Why does this policy support responsible AI?

Exhibit

Refer to the exhibit.
```
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "sagemaker:CreateEndpointConfig",
        "sagemaker:UpdateEndpoint"
      ],
      "Resource": "*",
      "Condition": {
        "Bool": {
          "sagemaker:EnableDataCapture": "true"
        }
      }
    }
  ]
}
```
Question 13mediummultiple choice
Full question →

Refer to the exhibit. A data scientist created this endpoint config for a foundation model in Amazon SageMaker. However, the endpoint fails to scale under load. What is the most likely reason?

Exhibit

{
  "EndpointConfigName": "my-fm-endpoint-config",
  "ProductionVariants": [
    {
      "VariantName": "variant1",
      "ModelName": "my-fm-model",
      "InitialInstanceCount": 1,
      "InstanceType": "ml.g5.xlarge",
      "InitialVariantWeight": 1.0
    }
  ]
}
Question 14mediummulti select
Full question →

A financial institution is developing a model to detect fraudulent transactions. They want to ensure the model is robust and does not exhibit bias. Which TWO actions should they take?

Question 15easymultiple choice
Full question →

Refer to the exhibit. A developer is reviewing CloudWatch Logs for a deployed model and notices the same input appears multiple times with slightly different probabilities. What responsible AI concern does this pattern suggest?

Exhibit

Refer to the exhibit.
```
2023-09-15T14:23:10Z Model endpoint my-model received input: {"features": [0.5, 0.8, 0.2]}, prediction: 1, probability: 0.92
2023-09-15T14:23:11Z Model endpoint my-model received input: {"features": [0.5, 0.8, 0.2]}, prediction: 1, probability: 0.93
2023-09-15T14:23:12Z Model endpoint my-model received input: {"features": [0.5, 0.8, 0.2]}, prediction: 1, probability: 0.91
```

These AIF-C01 practice questions are part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style AIF-C01 questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.