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 1easymultiple 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 2mediummultiple choice
Full question →

Refer to the exhibit. A SageMaker training job fails with an 'AccessDenied' error when trying to read files from the S3 bucket 'my-training-data'. The IAM role used by the training job has the policy shown. What is the most likely reason for the failure?

Exhibit

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::my-training-data/*"
    }
  ]
}
Question 3easymultiple choice
Full question →

Refer to the exhibit. A security analyst is reviewing CloudTrail logs and notices a training job creation from an IP address (203.0.113.5) that is not associated with the company's network. What is the most likely cause?

Exhibit

[CloudTrail Log Entry]
{
    "eventSource": "sagemaker.amazonaws.com",
    "eventName": "CreateTrainingJob",
    "userIdentity": {
        "arn": "arn:aws:iam::123456789012:user/john.doe"
    },
    "requestParameters": {
        "trainingJobName": "my-training-job",
        "hyperParameters": {
            "batch_size": "32",
            "epochs": "10"
        },
        "inputDataConfig": [
            {
                "channelName": "training",
                "dataSource": {
                    "s3DataSource": {
                        "s3Uri": "s3://my-bucket/train/data.csv"
                    }
                }
            }
        ]
    },
    "responseElements": null,
    "sourceIPAddress": "203.0.113.5",
    "userAgent": "console.amazonaws.com"
}
Question 4mediummultiple 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 5easymultiple choice
Full question →

Refer to the exhibit. A developer runs this command but gets an error: 'An error occurred (AccessDeniedException) when calling the ListFoundationModels operation'. What is the most likely cause?

Network Topology
aws bedrock list-foundation-modelsregion us-west-2"modelSummaries": ["modelArn": "arn:aws:bedrock:us-west-2::foundation-model/amazon.titan-text-lite-v1","modelId": "amazon.titan-text-lite-v1","providerName": "Amazon",...
Question 6hardmultiple choice
Full question →

Refer to the exhibit. A developer deploys this CloudFormation stack but the agent fails to query the knowledge base. What is a likely cause?

Exhibit

Resources:
  BedrockAgent:
    Type: AWS::Bedrock::Agent
    Properties:
      AgentName: MyAgent
      FoundationModel: anthropic.claude-v2
      Instruction: "You are a helpful assistant."
      KnowledgeBases:
        - KnowledgeBaseId: !Ref MyKnowledgeBase
      PromptOverrideConfiguration: null
  MyKnowledgeBase:
    Type: AWS::Bedrock::KnowledgeBase
    Properties:
      Name: MyKB
      RoleArn: !GetAtt KBRole.Arn
      KnowledgeBaseConfiguration:
        Type: VECTOR
        VectorKnowledgeBaseConfiguration:
          EmbeddingModelArn: !Sub arn:aws:bedrock:${AWS::Region}::foundation-model/amazon.titan-embed-text-v1
      StorageConfiguration:
        Type: OPENSEARCH_SERVERLESS
        OpensearchServerlessConfiguration:
          CollectionArn: !GetAtt MyCollection.Arn
          VectorIndexName: my-index
  MyCollection:
    Type: AWS::OpenSearchServerless::Collection
    Properties:
      Name: my-collection
      Type: VECTORSEARCH
Question 7mediummultiple choice
Full question →

Refer to the exhibit. You receive this response from Amazon Bedrock. What is the most likely cause of the incomplete information?

Exhibit

Refer to the exhibit.
{
  "completion": "The capital of France is Paris. The capital of Germany is Berlin. The capital of",
  "stop_reason": "max_tokens",
  "usage": {
    "input_tokens": 10,
    "output_tokens": 30
  }
}
Question 8hardmultiple choice
Full question →

Refer to the exhibit. You are trying to invoke a foundation model via Amazon Bedrock but receive this error. What should you do to resolve it?

Exhibit

Refer to the exhibit.
{
  "message": "You do not have access to the requested model. Please request access via the AWS Management Console."
}
Question 9easymultiple choice
Full question →

Refer to the exhibit. A developer wants to ensure the notebook instance can access the internet to download packages. Which property configuration ensures this?

Exhibit

Refer to the exhibit.

```yaml
Resources:
  MyNotebookInstance:
    Type: AWS::SageMaker::NotebookInstance
    Properties:
      InstanceType: ml.t2.medium
      VolumeSizeInGB: 5
      DirectInternetAccess: Enabled
```

Excerpt from an AWS CloudFormation template.
Question 10hardmultiple choice
Full question →

Refer to the exhibit. A data scientist ran a training job on Amazon SageMaker and it failed. Which action should the data scientist take FIRST to resolve the issue?

Exhibit

Refer to the exhibit.

```json
{
  "TrainingJobStatus": "Failed",
  "FailureReason": "ClientError: ValidationException: The instance type ml.p3.2xlarge is not supported in the requested region (us-east-1)."
}
```

This is the output of `aws sagemaker describe-training-job --training-job-name my-training-job`.
Question 11mediummultiple choice
Full question →

Refer to the exhibit. A security officer has attached this IAM policy to a user to allow invocation of a SageMaker endpoint. However, the user is unable to invoke the endpoint from an EC2 instance in the same VPC. What is the most likely cause?

Exhibit

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "sagemaker:InvokeEndpoint",
      "Resource": "arn:aws:sagemaker:us-east-1:123456789012:endpoint/my-model-endpoint",
      "Condition": {
        "StringEquals": {
          "aws:SourceVpce": "vpce-12345678"
        }
      }
    }
  ]
}
Question 12mediummultiple choice
Full question →

Refer to the exhibit. The training job is failing with an error 'CUDA out of memory'. Which hyperparameter change is MOST likely to resolve the issue?

Exhibit

Refer to the exhibit.

SageMaker Training Job Configuration:
{
  "AlgorithmSpecification": {
    "TrainingImage": "763104351884.dkr.ecr.us-west-2.amazonaws.com/huggingface-pytorch-training:1.13.1-transformers4.26.0-gpu-py39-cu117-ubuntu20.04",
    "TrainingInputMode": "File"
  },
  "HyperParameters": {
    "epochs": "3",
    "per_device_train_batch_size": "8",
    "learning_rate": "2e-5",
    "max_seq_length": "512"
  },
  "InputDataConfig": [
    {
      "ChannelName": "train",
      "DataSource": {
        "S3DataSource": {
          "S3DataType": "S3Prefix",
          "S3Uri": "s3://my-bucket/train/"
        }
      },
      "ContentType": "text/csv"
    }
  ],
  "OutputDataConfig": {
    "S3OutputPath": "s3://my-bucket/output/"
  },
  "ResourceConfig": {
    "InstanceType": "ml.p3.2xlarge",
    "InstanceCount": 1,
    "VolumeSizeInGB": 50
  },
  "RoleArn": "arn:aws:iam::123456789012:role/SageMakerRole",
  "StoppingCondition": {
    "MaxRuntimeInSeconds": 86400
  }
}
Question 13hardmultiple choice
Full question →

Refer to the exhibit. A developer sees this error when calling Amazon Bedrock for inference. What is the MOST likely cause and recommended solution?

Exhibit

Refer to the exhibit.

CloudWatch Log message:
{
  "timestamp": "2025-02-12T10:15:30.000Z",
  "message": "ThrottlingException: Rate exceeded for modelId anthropic.claude-v2. RequestId: abc123",
  "logGroup": "/aws/bedrock/modelinvocations",
  "logStream": "modelinvocations/us-west-2/123456789012"
}
Question 14easymultiple 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 15mediummultiple 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

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.