Courseiva
Question 775 of 724
SecurityhardMultiple ChoiceObjective-mapped

DVA-C02 Security Practice Question

A company requires that all API calls to create an Amazon S3 bucket must include a specific tag (e.g., 'CostCenter'). Which IAM policy condition key should a developer use to enforce this requirement?

⚠ Common exam trap

Test-takers frequently confuse `aws:RequestTag` (tags in the request) with `aws:ResourceTag` (tags on an existing resource), leading them to choose the wrong condition key for enforcing tagging at resource creation.

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

aws:RequestTag

The `aws:RequestTag` condition key evaluates the tags that are included in the API request itself. When a developer attempts to create an S3 bucket, the IAM policy can use `aws:RequestTag` to require that a specific tag key (e.g., 'CostCenter') is present in the `CreateBucket` request. This ensures that the tag is applied at creation time, enforcing the company's tagging requirement.

Answer analysis

Option-by-option breakdown

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

  • aws:RequestTag

    Why this is correct

    This condition key checks tags that are included in the API request. You can require a specific tag key and value to be present on the CreateBucket request, ensuring that all buckets are tagged at creation.

  • aws:ResourceTag

    Why it's wrong here

    The `aws:ResourceTag` condition key is designed to evaluate tags that are already associated with an *existing* AWS resource. When a `CreateBucket` API call is made, the S3 bucket resource does not yet exist, meaning there are no resource tags to evaluate at that specific moment. Therefore, this condition key cannot be used to enforce the presence of a tag during the initial creation of a new S3 bucket, as it only applies to resources that have already been created and tagged.

  • s3:ExistingObjectTag

    Why it's wrong here

    The `s3:ExistingObjectTag` condition key is specifically designed to control access based on tags that are already applied to *S3 objects*, not S3 buckets. Its purpose is to evaluate tags on objects that currently exist within a bucket, typically for actions like `s3:GetObject` or `s3:PutObject`. Since the requirement is to enforce tagging during the creation of an S3 *bucket*, and not an object, this condition key is entirely irrelevant to the `CreateBucket` API action.

  • aws:TagKeys

    Why it's wrong here

    The `aws:TagKeys` condition key restricts which tag keys can be used in a request, but it does not enforce that a tag must be present on the API call itself. This fails the requirement because a user could omit the 'CostCenter' tag entirely and the policy would still allow the `CreateBucket` action. It is tempting because `aws:TagKeys` is commonly used to control tag key names on resources, and it would be the correct choice if the goal were to limit which tag keys are allowed (e.g., only 'CostCenter' and 'Environment') rather than to mandate that a specific tag be included in the request.

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

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.