Courseiva

AIF-C01 Fundamentals of Generative AI Practice Question

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"
}

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?

⚠ Common exam trap

Candidates often confuse the 'InvokeModel' action with 'GetFoundationModel' or choose a wildcard resource ARN, thinking it is sufficient, but AWS specifically tests the need for a precise model ARN to enforce least-privilege access in Bedrock IAM policies.

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

✓

{"Effect":"Allow","Action":"bedrock:InvokeModel","Resource":"arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-instant-v1"}

The error occurs when the application tries to invoke the Claude Instant model via the Bedrock InvokeModel API, and the IAM role 'MyAppRole' lacks the necessary permission. The required action is 'bedrock:InvokeModel', and the resource must be scoped to the specific foundation model ARN, which for Claude Instant in us-east-1 is 'arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-instant-v1'. This grants least-privilege access to invoke exactly that model.

Answer analysis

Option-by-option breakdown

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

  • ✗

    {"Effect":"Allow","Action":"bedrock:GetFoundationModel","Resource":"*"}

    Why it's wrong here

    GetFoundationModel only retrieves model metadata; invoking Claude Instant requires the InvokeModel action on the model's ARN. It is tempting because discovering which foundation models exist is a genuine prerequisite task, and this statement would be correct for a role that only lists available models.

  • ✗

    {"Effect":"Allow","Action":"bedrock:InvokeModel","Resource":"arn:aws:bedrock:us-east-1::foundation-model/*"}

    Why it's wrong here

    The resource ARN omits the region-specific inference profile or model identifier required for Claude Instant invocation, so the call still fails authorisation. It is tempting because InvokeModel is the right action, and this statement would work for models addressable directly by foundation-model ARN.

  • ✓

    {"Effect":"Allow","Action":"bedrock:InvokeModel","Resource":"arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-instant-v1"}

    Why this is correct

    Bedrock authorises model invocation through the bedrock:InvokeModel action scoped to the specific foundation-model ARN. The role currently lacks this permission, so granting it on the Claude Instant ARN resolves the AccessDenied error without over-permissioning unrelated models or regions.

  • ✗

    {"Effect":"Allow","Action":"bedrock:*","Resource":"*"}

    Why it's wrong here

    Granting bedrock:* on * violates least privilege and still may not match the inference-profile ARN the invocation targets. It is tempting because wildcards resolve many permission errors quickly, and this would be acceptable for a temporary administrative role rather than a scoped application role.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

One of 862 original AIF-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.