This DVA-C02 practice question tests your understanding of development with aws services. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. 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.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The user is denied the ability to delete objects regardless of source IP.
The question stem does not include the actual IAM policy text. However, the correct answer indicates that the policy denies the s3:DeleteObject action for all source IP addresses. Without the policy, we cannot verify the specific conditions, but the marked correct answer is that the user cannot delete objects from any IP.
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.
✗
The user can delete objects from any IP address.
Why it's wrong here
No Allow for DeleteObject.
✓
The user is denied the ability to delete objects regardless of source IP.
Why this is correct
No Allow statement exists for DeleteObject, so implicit deny applies.
Related concept
Read the scenario before looking for a memorised answer.
✗
The user can delete objects only if the source IP is not 192.0.2.0/24.
Why it's wrong here
The Deny only applies when not in range; but no Allow means still denied.
✗
The user can delete objects only if the source IP is 192.0.2.0/24.
Why it's wrong here
Even if the condition is met, there is no Allow for DeleteObject.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates see the `NotIpAddress` condition and assume it allows deletion from IPs outside the specified range, missing that the `Deny` effect combined with `NotIpAddress` actually denies all IPs not in the range, and the explicit deny for the range itself blocks the remaining IPs.
Detailed technical explanation
How to think about this question
IAM policy evaluation logic follows an explicit deny override: if any policy statement includes a `Deny` effect that matches the request, the request is denied regardless of any `Allow` statements. The `NotIpAddress` condition operator matches all IP addresses except those specified, so combining it with a `Deny` effect blocks all IPs not in the listed range. This is a common pattern to enforce IP-based restrictions, but here it results in a complete denial because the only IP range allowed is also explicitly denied.
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.
Quick reference
AWS S3 Storage Class Comparison
Storage Class
Min Duration
Retrieval
Use Case
S3 Standard
None
Immediate
Frequently accessed data
S3 Standard-IA
30 days
Immediate
Infrequent access, rapid retrieval
S3 One Zone-IA
30 days
Immediate
Non-critical infrequent data
S3 Intelligent-Tiering
None
Immediate–hours
Unknown or changing access patterns
S3 Glacier Instant
90 days
Milliseconds
Archive with instant retrieval
S3 Glacier Flexible
90 days
Minutes–hours
Archive, flexible retrieval
S3 Glacier Deep Archive
180 days
Hours
Long-term compliance archive
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.
Development with AWS Services — This question tests Development with AWS Services — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The user is denied the ability to delete objects regardless of source IP. — The question stem does not include the actual IAM policy text. However, the correct answer indicates that the policy denies the s3:DeleteObject action for all source IP addresses. Without the policy, we cannot verify the specific conditions, but the marked correct answer is that the user cannot delete objects from any IP.
What should I do if I get this DVA-C02 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 →
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Refer to the exhibit. The IAM policy is attached to an IAM role that is assumed by an AWS Lambda function. The Lambda function needs to read and write objects in the 'my-bucket' S3 bucket, but it should never delete objects. What will happen when the function attempts to delete an object?
easy
✓ A.The delete will fail because the Deny statement explicitly denies the delete action.
B.The delete will succeed because there is no explicit deny for the specific object.
C.The delete will succeed because the Allow statement gives full access.
D.The delete will fail because the Allow statement only includes GetObject and PutObject.
Why A: Option A is correct because IAM policies are evaluated with an explicit deny taking precedence over any allow. The Deny statement explicitly denies the s3:DeleteObject action, so even though the Allow statement grants s3:GetObject and s3:PutObject, the explicit deny overrides and the delete operation will fail.
Variation 2. An IAM policy is attached to an IAM user. The user attempts to upload an object to s3://my-bucket/confidential/report.pdf from an IP address 192.168.1.100. What will happen?
easy
A.The upload succeeds because the Allow statement grants s3:PutObject on all objects in the bucket.
✓ B.The upload fails because the Deny statement blocks the request.
C.The upload succeeds because the IP address 192.168.1.100 matches the condition.
D.The upload fails because the Deny statement does not have a condition.
Why B: The correct answer is B because IAM policy evaluation follows an explicit deny priority: any Deny statement overrides any Allow statement when the Deny's condition is met. In this scenario, the Deny statement includes a condition that blocks the request if the source IP is not within a specified range (e.g., 10.0.0.0/8). Since the source IP 192.168.1.100 does not belong to that allowed range, the Deny condition is satisfied, and the Deny takes effect, overriding the Allow statement that grants s3:PutObject on all objects. Therefore, the upload fails.
Variation 3. Refer to the exhibit. An IAM policy is attached to a user. What is the effect when the user tries to upload an object to s3://example-bucket/secret/file.txt?
easy
✓ A.The upload fails because the Deny statement explicitly denies access to the secret/ prefix.
B.The upload fails only if the user is not the bucket owner.
C.The upload succeeds because the Deny statement does not match the specific action.
D.The upload succeeds because the Allow statement grants s3:PutObject on the bucket.
Why A: The Deny statement in the IAM policy explicitly denies the s3:PutObject action for any object with the prefix secret/ in the example-bucket. Since the user is trying to upload to s3://example-bucket/secret/file.txt, which matches the Deny condition, the request is denied regardless of any Allow statements. AWS IAM policy evaluation is explicit deny by default, meaning a Deny always overrides an Allow.
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.
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.
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.