Courseiva

AIF-C01 Fundamentals of Generative AI Practice Question

Network Topology
body '{"prompt": "Human: Summarize the following: ..."}'aws bedrock-runtime invoke-modelmodel-id "anthropic.claude-v2"content-type "application/json" region us-west-2Refer to the exhibit.```

A developer runs this AWS CLI command to invoke a model in us-west-2 but receives an error: 'An error occurred (ModelNotFoundException) when calling the InvokeModel operation: Model not found'. What is the most likely cause?

⚠ Common exam trap

Candidates often confuse the ModelNotFoundException with permission errors (AccessDeniedException). In AWS Bedrock, this error indicates the model is not available in the specified region, not a lack of IAM permissions. Always check regional model availability before assuming a permissions issue.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The model is not available in the us-west-2 region

The error 'ModelNotFoundException' specifically indicates that the model ID or ARN is not recognized in the specified region. AWS Bedrock models are region-specific; not all foundation models are available in every AWS region. The developer invoked the model in us-west-2, but the requested model may only be available in regions like us-east-1 or us-west-1, causing the service to return a ModelNotFoundException rather than a permissions or formatting error.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    The request body is not properly formatted

    Why it's wrong here

    A malformed request body produces a ValidationException or deserialisation error, not ModelNotFoundException, which specifically indicates the model identifier is unrecognised in that region. Body formatting is tempting because payload errors are common with InvokeModel, but they surface as different exception types entirely.

  • ✗

    The --region parameter is missing from the command

    Why it's wrong here

    The stem states the command targets us-west-2, so the region is supplied; a missing region would default to the CLI profile's region and yield a different endpoint, not this error naming the model. Omitting --region is tempting because region mismatches do cause model-not-found errors, but here the region is explicitly set.

  • ✓

    The model is not available in the us-west-2 region

    Why this is correct

    Model availability is region-specific in Amazon Bedrock; model IDs valid in one region return ModelNotFoundException elsewhere. Since the command targets us-west-2, the requested model simply is not offered there, so invoking it fails regardless of credentials or permissions.

  • ✗

    The user's IAM role lacks permissions to invoke the model

    Why it's wrong here

    Missing IAM permissions produce AccessDeniedException, not ModelNotFoundException, because authorisation is evaluated after the model identifier is resolved. It is tempting since permission problems are frequent with Bedrock, but the error names the model itself, indicating the identifier or region is wrong rather than the caller's policy.

About these practice questions

This AIF-C01 question is part of Courseiva's 862-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AIF-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AIF-C01 exam.