Courseiva
Applications of Foundation ModelsmediumMultiple ChoiceObjective-mapped

AIF-C01 Applications of Foundation Models Practice Question

Exhibit

Refer to the exhibit.
```
2024-03-15T10:00:00Z [ERROR] Model invocation failed: AccessDeniedException: User: arn:aws:iam::123456789012:role/BedrockRole is not authorized to perform: bedrock:InvokeModel on resource: arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-v2
```

A developer encounters the error shown above when using Amazon Bedrock. What is the most likely cause?

⚠ Common exam trap

AWS often tests the distinction between service availability errors and authorization errors, so the trap here is that candidates may confuse a permissions failure with a model unavailability or throttling issue, especially when the error message is generic.

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 IAM role lacks the required permission

The error indicates an access denied or authorization failure when invoking the Amazon Bedrock model. The most likely cause is that the IAM role used by the developer does not have the required permission, such as `bedrock:InvokeModel`, attached to its policy. Without this permission, the API call to Bedrock is rejected regardless of model availability or service status.

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 model is not available in the region

    Why it's wrong here

    The error does not mention model unavailability; it's an access issue.

  • The IAM role lacks the required permission

    Why this is correct

    The error explicitly states the role is not authorized for the action.

  • The request is throttled

    Why it's wrong here

    Throttling would show a ThrottlingException, not AccessDenied.

  • The model is out of service

    Why it's wrong here

    Out of service would produce a different error, like ModelNotReadyException.

About these practice questions

This AIF-C01 question is part of Courseiva's 619-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.