AIF-C01 practice question 16 of 25

A company wants to develop a large language model (LLM) application by using Amazon Bedrock and customer data that is uploaded to Amazon S3. The company's security policy states that each team can access data for only the team's own customers. Which solution will meet these requirements?

Full set: 397 questions

Domain Describe the data for AI/ML

Answer options
A: Create an Amazon Bedrock custom service role for each team that has access to only the team's customer data. Correct answer
B: Create a custom service role that has Amazon S3 access. Ask teams to specify the customer name on each Amazon Bedrock request.
C: Redact personal data in Amazon S3. Update the S3 bucket policy to allow team access to customer data.
D: Create one Amazon Bedrock role that has full Amazon S3 access. Create IAM roles for each team that have access to only each team's customer folders.
Correct Answer:
A. Create an Amazon Bedrock custom service role for each team that has access to only the team's customer data.
Explanation

The most secure and appropriate method to enforce team-specific data access for Amazon Bedrock is by using distinct AWS Identity and Access Management (IAM) roles. By creating a unique Amazon Bedrock custom service role for each team, you can attach an IAM policy to each role that explicitly grants access only to the specific Amazon S3 prefixes (folders) containing that team's customer data. When a team initiates a Bedrock job (like model fine-tuning), they use their designated role. Bedrock then assumes this role, inheriting its narrowly-scoped permissions, thus ensuring it can only read data from the authorized S3 location. This approach adheres to the principle of least privilege.

Why Incorrect

B. A single, broadly permissive service role violates the principle of least privilege. Relying on application-level parameters for security is unreliable and not an IAM-enforced control.
C. Data redaction is a data privacy technique, but it does not solve the access control requirement of isolating one team's data from another.
D. If the single Amazon Bedrock role has full S3 access, it becomes a security vulnerability. The permissions of the service role that Bedrock assumes are what matter for accessing S3, not the team's user/role permissions for invoking Bedrock.

References

1. Amazon Bedrock User Guide: In the section on model customization

the guide explains the necessity of a service role for Bedrock to access data in S3. It states

"To allow Amazon Bedrock to access your training and validation data in Amazon S3...you must create a service role that has the required permissions." The example policies demonstrate scoping permissions to specific S3 bucket resources ("Resource": "arn:aws:s3:::/")

which can be tailored to specific prefixes for each team.

Source: Amazon Bedrock User Guide

Section: "Model customization" -> "Create a fine-tuning job" -> "Required permissions".

2. AWS IAM User Guide: This guide establishes the best practice of granting least privilege. It advises creating fine-grained policies that grant only the permissions required to perform a task. Creating a separate role for each team with a policy scoped to that team's data is a direct implementation of this principle.

Source: AWS Identity and Access Management User Guide

Section: "Security best practices in IAM" -> "Grant least privilege".

3. AWS Well-Architected Framework

Security Pillar: This framework emphasizes implementing a strong identity foundation and applying security at all layers. Using fine-grained IAM roles for services like Bedrock to access data sources is a core tenet of this principle

ensuring that permissions are strictly controlled and auditable.

Source: AWS Well-Architected Framework

Security Pillar

Design Principle: "SEC 3: Implement a strong identity foundation".

Scroll to Top