
Answer-first summary for fast verification
Answer: Create an Amazon Bedrock custom service role for each team that has access to only the team's customer data.
## Detailed Analysis of the Question The question presents a scenario where a company is developing an LLM application using Amazon Bedrock with customer data stored in Amazon S3. The key requirement is that each team must only access data belonging to their own customers, as per the company's security policy. ## Evaluation of Each Option ### **Option A: Create an Amazon Bedrock custom service role for each team that has access to only the team's customer data.** **Why this is the correct answer:** - **Principle of Least Privilege:** This approach directly implements the principle of least privilege by creating separate service roles for each team with permissions scoped exclusively to their specific customer data in S3. This ensures teams cannot access data from other teams. - **Granular Access Control:** Amazon Bedrock uses service roles to access data sources like Amazon S3. By creating custom service roles with fine-grained permissions (e.g., restricted to specific S3 prefixes or buckets for each team's customers), you enforce the security policy at the Bedrock service level. - **Security Compliance:** This method aligns with AWS security best practices by minimizing the attack surface. Each role has only the necessary permissions, reducing the risk of unauthorized data access. - **Auditability:** Having distinct roles per team simplifies monitoring and auditing access patterns, as each role's activity can be tracked separately. ### **Option B: Create a custom service role that has Amazon S3 access. Ask teams to specify the customer name on each Amazon Bedrock request.** **Why this is incorrect:** - **Lack of Enforcement:** This approach relies on teams to self-report customer names without any technical enforcement mechanism. It does not prevent a team from specifying another team's customer name to access unauthorized data. - **Security Policy Violation:** The company's security policy requires guaranteed access restrictions, which this manual process cannot ensure. ### **Option C: Redact personal data in Amazon S3. Update the S3 bucket policy to allow team access to customer data.** **Why this is incorrect:** - **Access Control Issue:** Redacting personal data addresses privacy concerns but does not solve the access control problem. Updating S3 bucket policies to allow team access would typically grant access to all data in the bucket, violating the requirement that teams only access their own customer data. - **Insufficient Granularity:** S3 bucket policies alone may not provide the fine-grained, team-specific access control needed without additional IAM role configurations. ### **Option 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.** **Why this is incorrect:** - **Security Risk:** Granting the Amazon Bedrock service role full S3 access violates the principle of least privilege and creates a significant security vulnerability. If compromised, this role could access all customer data, regardless of team restrictions. - **Ineffective Control:** While IAM roles for teams might restrict direct S3 access, Amazon Bedrock itself would use its service role with full permissions to retrieve data. The LLM could potentially process and expose data from all customers, undermining the security policy. - **Architectural Misalignment:** This approach separates access controls (team IAM roles) from the data access mechanism (Bedrock's service role), creating a gap where Bedrock can still access all data. ## Conclusion Option A is the optimal solution because it directly addresses the security requirement by creating dedicated Amazon Bedrock custom service roles for each team with precisely scoped permissions. This ensures that when Bedrock accesses S3 data on behalf of a team, it can only retrieve that team's customer data, fully complying with the company's security policy while adhering to AWS best practices for secure access management.
Ultimate access to all questions.
No comments yet.
Author: LeetQuiz Editorial Team
A company is building a large language model (LLM) application using Amazon Bedrock. The application will use customer data stored in Amazon S3. The company's security policy mandates that each team can only access data belonging to that team's own customers. What solution meets these requirements?
A
Create an Amazon Bedrock custom service role for each team that has access to only the team's customer data.
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.