Question 1,641 of 1,740
Security and CompliancemediumMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is to use an S3 bucket policy that denies requests when `aws:SecureTransport` is false. This configuration enforces HTTPS for S3 access by explicitly blocking any HTTP or non-TLS requests, ensuring all data in transit is encrypted. On the AWS Certified DevOps Engineer Professional DOP-C02 exam, this tests your understanding of S3 security controls and IAM policy conditions, often appearing as a scenario where a company must meet compliance requirements for encryption in transit. A common trap is confusing this with server-side encryption settings or bucket ACLs, which do not control transport-layer security. Remember the key condition: `aws:SecureTransport` evaluates to `true` for HTTPS and `false` for HTTP; by denying when false, you enforce HTTPS. A helpful memory tip is "Deny the false to force the secure path"—if SecureTransport is false, the request is denied, guaranteeing encrypted transit.

DOP-C02 Security and Compliance Practice Question

This DOP-C02 practice question tests your understanding of security and compliance. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. 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.

A company requires that all access to their S3 buckets be encrypted in transit. Which configuration achieves this?

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

Use a bucket policy that denies requests when aws:SecureTransport is false.

Option C is correct because using a bucket policy with a condition that denies requests when `aws:SecureTransport` is `false` explicitly enforces encryption in transit for all access to the S3 bucket. This policy ensures that any HTTP (non-TLS) request is denied, while HTTPS requests are allowed, meeting the requirement that all access be encrypted in transit.

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.

  • Use CloudFront with the bucket as origin and enforce HTTPS only between viewer and CloudFront.

    Why it's wrong here

    Does not enforce HTTPS between CloudFront and S3 unless Origin Protocol Policy is set to HTTPS-only.

  • Enable default encryption on the bucket.

    Why it's wrong here

    Default encryption ensures at-rest encryption, not in-transit.

  • Use a bucket policy that denies requests when aws:SecureTransport is false.

    Why this is correct

    Correctly enforces HTTPS by denying non-secure transport.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Set the bucket policy to require SSE-KMS.

    Why it's wrong here

    SSE-KMS enforces at-rest encryption, not in-transit.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is confusing encryption in transit with encryption at rest; candidates often pick options like default encryption or SSE-KMS, which only address data at rest, not the requirement for HTTPS enforcement.

Detailed technical explanation

How to think about this question

The `aws:SecureTransport` condition key evaluates the `True` or `False` value of the `SecureTransport` flag, which is set to `true` only when the request uses TLS/SSL (HTTPS). Under the hood, S3 bucket policies are evaluated before the request is processed, so a deny on `aws:SecureTransport=false` effectively blocks all non-HTTPS traffic at the policy evaluation layer. In real-world scenarios, this is critical for compliance with standards like PCI DSS or HIPAA, which require encryption of data in transit.

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.

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.

Related practice questions

Related DOP-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 DOP-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 DOP-C02 question test?

Security and Compliance — This question tests Security and Compliance — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use a bucket policy that denies requests when aws:SecureTransport is false. — Option C is correct because using a bucket policy with a condition that denies requests when `aws:SecureTransport` is `false` explicitly enforces encryption in transit for all access to the S3 bucket. This policy ensures that any HTTP (non-TLS) request is denied, while HTTPS requests are allowed, meeting the requirement that all access be encrypted in transit.

What should I do if I get this DOP-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 →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on DOP-C02

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. A company runs a critical application on EC2 instances that need to access an S3 bucket with sensitive data. The security team has enabled S3 bucket policies that require TLS for all requests (aws:SecureTransport). The application is failing to access the S3 bucket, and logs show errors like 'Access Denied'. The application uses the AWS SDK to make requests. What is the most likely cause of the failure?

medium
  • A.The S3 bucket is accessed through a VPC endpoint that does not support TLS.
  • B.The application's IAM role does not have s3:GetObject permission.
  • C.The bucket policy requires a specific TLS version that the application does not support.
  • D.The application is using HTTP instead of HTTPS to connect to S3.

Why D: The bucket policy requires TLS, meaning all requests must be made over HTTPS. If the application is using HTTP instead of HTTPS, the request will be denied. The AWS SDK by default uses HTTPS for S3 endpoints, but if the endpoint URL is explicitly set to HTTP or if the SDK configuration is changed, it could cause the issue. Option A is wrong because the bucket policy does not require specific cipher suites. Option B is wrong because IAM roles can access S3 if they have the right permissions. Option C is wrong because VPC endpoints do not affect the TLS requirement. Option D is correct: if the application is using HTTP, it violates the bucket policy condition.

Keep practising

More DOP-C02 practice questions

Last reviewed: Jun 24, 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 DOP-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 DOP-C02 exam.