- A
Attach an IAM role to the Lambda function that calls Rekognition, with an IAM policy granting s3:GetObject on the bucket
The IAM role provides permissions to the Lambda function to read from S3.
- B
Create an IAM role for Rekognition to assume and attach it to the Rekognition service
Why wrong: Rekognition cannot assume a role; the calling service must assume the role.
- C
Configure the S3 bucket with a bucket ACL that grants read access to the Rekognition service
Why wrong: Bucket ACLs are not the recommended way; Rekognition uses IAM or bucket policies.
- D
Attach a resource-based policy to the Rekognition collection allowing S3 access
Why wrong: Rekognition collections do not have resource-based policies.
- E
Add a bucket policy that grants the Rekognition service principal (rekognition.amazonaws.com) permission to read objects
A bucket policy can grant cross-service access to Rekognition.
Quick Answer
The answer is to add a bucket policy that grants the Rekognition service principal (rekognition.amazonaws.com) permission to read objects, or to use an IAM role with an attached policy granting s3:GetObject access on the source bucket. These two methods work because Amazon Rekognition needs explicit read permissions to access images stored in S3; the bucket policy directly authorizes the service principal, while the IAM role approach is used when an intermediary service like Lambda calls Rekognition and must first retrieve the image itself. On the AWS Certified AI Practitioner AIF-C01 exam, this question tests your understanding of how AWS services interact across accounts and the difference between resource-based policies (bucket policies) and identity-based policies (IAM roles). A common trap is assuming Rekognition always accesses S3 directly—it often relies on a calling service’s IAM role instead. Memory tip: think “bucket policy for direct service access, IAM role for indirect calls via Lambda.”
AIF-C01 Practice Question: Security, Compliance and Governance for AI Solutions
This AIF-C01 practice question tests your understanding of security, compliance and governance for ai solutions. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company is using Amazon Rekognition to detect objects in images stored in an S3 bucket. The company needs to ensure that the Rekognition service has permission to read images from the S3 bucket. Which TWO methods can achieve this? (Choose TWO.)
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
Attach an IAM role to the Lambda function that calls Rekognition, with an IAM policy granting s3:GetObject on the bucket
Option A is correct because when a Lambda function calls Amazon Rekognition, the function needs an IAM role with a policy that grants s3:GetObject permission on the source bucket. This allows the Lambda function to read the images and pass them to Rekognition for analysis. Option E is correct because you can attach a bucket policy that explicitly grants the Rekognition service principal (rekognition.amazonaws.com) permission to read objects, enabling Rekognition to directly access the S3 bucket when invoked.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Attach an IAM role to the Lambda function that calls Rekognition, with an IAM policy granting s3:GetObject on the bucket
Why this is correct
The IAM role provides permissions to the Lambda function to read from S3.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Create an IAM role for Rekognition to assume and attach it to the Rekognition service
Why it's wrong here
Rekognition cannot assume a role; the calling service must assume the role.
- ✗
Configure the S3 bucket with a bucket ACL that grants read access to the Rekognition service
Why it's wrong here
Bucket ACLs are not the recommended way; Rekognition uses IAM or bucket policies.
- ✗
Attach a resource-based policy to the Rekognition collection allowing S3 access
Why it's wrong here
Rekognition collections do not have resource-based policies.
- ✓
Add a bucket policy that grants the Rekognition service principal (rekognition.amazonaws.com) permission to read objects
Why this is correct
A bucket policy can grant cross-service access to Rekognition.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse which AWS services can assume IAM roles (like Lambda or EC2) versus those that require resource-based policies (like Rekognition or S3), leading them to incorrectly select option B.
Detailed technical explanation
How to think about this question
Under the hood, when Rekognition reads from S3, it uses the caller's permissions (e.g., the Lambda execution role) or a bucket policy that grants access to the Rekognition service principal. The service principal rekognition.amazonaws.com is a unique identifier that allows Rekognition to act on behalf of the service, not a specific user. In real-world scenarios, using a bucket policy is simpler for cross-account access, while an IAM role is preferred for granular control within the same account.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Security, Compliance and Governance for AI Solutions — study guide chapter
Learn the concepts, then practise the questions
- →
Security, Compliance and Governance for AI Solutions practice questions
Targeted practice on this topic area only
- →
All AIF-C01 questions
500 questions across all exam domains
- →
AWS Certified AI Practitioner AIF-C01 study guide
Full concept coverage aligned to exam objectives
- →
AIF-C01 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AIF-C01 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Applications of Foundation Models practice questions
Practise AIF-C01 questions linked to Applications of Foundation Models.
Fundamentals of AI and ML practice questions
Practise AIF-C01 questions linked to Fundamentals of AI and ML.
Fundamentals of Generative AI practice questions
Practise AIF-C01 questions linked to Fundamentals of Generative AI.
Guidelines for Responsible AI practice questions
Practise AIF-C01 questions linked to Guidelines for Responsible AI.
Security, Compliance and Governance for AI Solutions practice questions
Practise AIF-C01 questions linked to Security, Compliance and Governance for AI Solutions.
AIF-C01 fundamentals practice questions
Practise AIF-C01 questions linked to AIF-C01 fundamentals.
AIF-C01 scenario practice questions
Practise AIF-C01 questions linked to AIF-C01 scenario.
AIF-C01 troubleshooting practice questions
Practise AIF-C01 questions linked to AIF-C01 troubleshooting.
Practice this exam
Start a free AIF-C01 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AIF-C01 question test?
Security, Compliance and Governance for AI Solutions — This question tests Security, Compliance and Governance for AI Solutions — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Attach an IAM role to the Lambda function that calls Rekognition, with an IAM policy granting s3:GetObject on the bucket — Option A is correct because when a Lambda function calls Amazon Rekognition, the function needs an IAM role with a policy that grants s3:GetObject permission on the source bucket. This allows the Lambda function to read the images and pass them to Rekognition for analysis. Option E is correct because you can attach a bucket policy that explicitly grants the Rekognition service principal (rekognition.amazonaws.com) permission to read objects, enabling Rekognition to directly access the S3 bucket when invoked.
What should I do if I get this AIF-C01 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 25, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.