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 questionsDomain Describe the data for AI/ML
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.
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.
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".
Keep practicing
Take the free AIF-C01 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AIF-C01 practice questions
- Question 1A company makes forecasts each quarter to decide how to optimize operations to meet expec…
- Question 2An AI practitioner has a database of animal photos. The AI practitioner wants to automati…
- Question 3A loan company is building a generative AI-based solution to offer new applicants discoun…
- Question 4What are tokens in the context of generative AI models?
- Question 5A company has installed a security camer a. The company uses an ML model to evaluate the …
- Question 6A company wants to use a large language model (LLM) on Amazon Bedrock for sentiment analy…
