Courseiva
Management and OperationshardMultiple ChoiceObjective-mapped

DBS-C01 Management and Operations Practice Question

Exhibit

Refer to the exhibit.

-- IAM Policy attached to a role used by an EC2 instance:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::data-lake-prod/*"
    },
    {
      "Effect": "Allow",
      "Action": "s3:PutObject",
      "Resource": "arn:aws:s3:::data-lake-prod/*"
    },
    {
      "Effect": "Deny",
      "Action": "s3:*",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "aws:SourceIp": "10.0.0.0/8"
        }
      }
    }
  ]
}

Refer to the exhibit. An application on an EC2 instance is trying to read an object from the S3 bucket 'data-lake-prod'. The instance is in a VPC with an IP address of 10.0.1.5. The application receives an Access Denied error. What is the cause?

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

A Deny statement with a source IP condition is blocking access.

The Deny statement applies to the source IP 10.0.1.5 (within 10.0.0.0/8), overriding the Allow. Option A is wrong because the IAM role does allow s3:GetObject on the bucket. Option C is wrong because there is no explicit condition on the Allow statement. Option D is wrong because the policy is attached to the role, not an SCP.

Answer analysis

Option-by-option breakdown

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

  • An SCP is denying S3 access to the account.

    Why it's wrong here

    No SCP is shown.

  • A Deny statement with a source IP condition is blocking access.

    Why this is correct

    The Deny with condition matches the IP and overrides the Allow.

  • The S3 bucket policy requires a specific VPC endpoint.

    Why it's wrong here

    Not mentioned in the policy.

  • The IAM role does not have permission to read from the bucket.

    Why it's wrong here

    The Allow statement grants s3:GetObject.

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 writes every DBS-C01 question from scratch — 1,663 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DBS-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 DBS-C01 exam.