Question 830 of 1,616
Development with AWS ServicesmediumMultiple ChoiceObjective-mapped

Granting Read-Only S3 Access with SAM's S3ReadPolicy Template

This DVA-C02 practice question tests your understanding of development with aws services. 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. A key principle to apply: sAM Policy Templates. 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 developer is building a serverless application using AWS SAM. The application includes a Lambda function that needs read-only access to an S3 bucket. The developer wants to use SAM's built-in policy templates to grant this permission. Which policy template should be used in the SAM template?

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

S3ReadPolicy

The S3ReadPolicy template is the correct choice because it grants read-only access to an S3 bucket, which aligns with the requirement for the Lambda function. AWS SAM provides this built-in IAM policy template to simplify attaching least-privilege permissions, specifically allowing s3:GetObject, s3:ListBucket, and similar read operations.

Key principle: SAM Policy Templates

Answer analysis

Option-by-option breakdown

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

  • S3ReadPolicy

    Why this is correct

    This template grants read-only permissions (s3:GetObject, s3:ListBucket) to the specified bucket.

    Related concept

    SAM Policy Templates

  • S3CrudPolicy

    Why it's wrong here

    This template grants create, read, update, delete permissions, which is more than read-only.

  • S3FullAccessPolicy

    Why it's wrong here

    This template grants full access, which is excessive for read-only requirements.

  • S3StreamPolicy

    Why it's wrong here

    This template is for reading from an S3 bucket using Lambda event source mappings with a stream-like interface, not for general read-only access.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may confuse S3CrudPolicy with read-only access, but CRUD implies full data manipulation (create, read, update, delete), which is more permissive than the required read-only scope.

Detailed technical explanation

How to think about this question

Under the hood, SAM policy templates are shorthand for IAM policy documents that are expanded during deployment. The S3ReadPolicy template generates a policy with actions like s3:GetObject, s3:ListBucket, and s3:GetObjectVersion, scoped to the specified bucket ARN. This is critical for serverless applications where over-permissioning can lead to security vulnerabilities, and SAM enforces this by mapping the template name to a predefined policy document in the SAM specification.

KKey Concepts to Remember

  • SAM Policy Templates
  • S3ReadPolicy
  • Least Privilege Principle
  • Policies Property

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

SAM Policy Templates

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.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

What to study next

Got this wrong? Here's your next step.

Review sAM Policy Templates, then practise related DVA-C02 questions on the same topic to reinforce the concept.

Related practice questions

Related DVA-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DVA-C02 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 DVA-C02 question test?

Development with AWS Services — This question tests Development with AWS Services — SAM Policy Templates.

What is the correct answer to this question?

The correct answer is: S3ReadPolicy — The S3ReadPolicy template is the correct choice because it grants read-only access to an S3 bucket, which aligns with the requirement for the Lambda function. AWS SAM provides this built-in IAM policy template to simplify attaching least-privilege permissions, specifically allowing s3:GetObject, s3:ListBucket, and similar read operations.

What should I do if I get this DVA-C02 question wrong?

Review sAM Policy Templates, then practise related DVA-C02 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

SAM Policy Templates

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 →

How Courseiva writes practice questions · Editorial policy

Keep practising

More DVA-C02 practice questions

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

This DVA-C02 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 DVA-C02 exam.