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

DVA-C02 Development with AWS Services Practice Question

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 simplify IAM role creation for Lambda functions.. 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?

Question 1mediummultiple choice
Full question →

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 simplify IAM role creation for Lambda functions.

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 simplify IAM role creation for Lambda functions.

  • 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 simplify IAM role creation for Lambda functions.
  • `S3ReadPolicy` grants `s3:GetObject` and `s3:ListBucket` permissions to an S3 bucket.
  • It adheres to the principle of least privilege for S3 read access.
  • Policy templates are defined under the `Policies` property of a `AWS::Serverless::Function` resource.

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 simplify IAM role creation for Lambda functions.

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.

Review sAM policy templates simplify IAM role creation for Lambda functions., 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 simplify IAM role creation for Lambda functions..

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 simplify IAM role creation for Lambda functions., 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 simplify IAM role creation for Lambda functions.

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

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.