Courseiva
Cost and Performance OptimizationmediumMultiple ChoiceObjective-mapped

SOA-C02 Cost and Performance Optimization Practice Question

Exhibit

Refer to the exhibit.
```
{
  "Sid": "DenyNonHttps",
  "Effect": "Deny",
  "Action": "s3:*",
  "Resource": "arn:aws:s3:::my-bucket/*",
  "Condition": {
    "Bool": {
      "aws:SecureTransport": "false"
    }
  }
}
```

A company has an S3 bucket policy as shown. A developer tries to upload an object using the AWS CLI without the --no-verify-ssl flag. What will happen?

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

The upload will succeed because the CLI uses HTTPS by default.

The bucket policy denies requests that do not use secure transport (HTTP) but allows HTTPS requests. The AWS CLI uses HTTPS by default, and since the developer did not use --no-verify-ssl, the request is made over HTTPS. Therefore, the upload succeeds. Option D is correct. Option A is incorrect because the CLI uses HTTPS, not HTTP. Option B is incorrect because the policy does not deny all s3:* actions; it only denies requests over HTTP. Option C is incorrect because the policy requires HTTPS, and the CLI complies, so the upload does not fail.

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 upload will succeed only if the developer uses HTTP.

    Why it's wrong here

    This option inverts the condition logic. The policy denies s3:PutObject when aws:SecureTransport is false, which means HTTP requests are blocked. A developer who deliberately used HTTP would fail the condition and receive an AccessDenied error, so HTTP cannot be a path to success.

  • The upload will fail because the policy denies all s3:* actions.

    Why it's wrong here

    This option misreads the policy's structure. The bucket policy does not contain a blanket Deny for all s3:* actions; it grants s3:PutObject but scopes that Allow with a condition requiring aws:SecureTransport to be true. Requests made over HTTPS are therefore permitted, and only HTTP requests are denied by the adjacent deny rule, so the upload would not fail globally.

  • The upload will fail because the policy requires explicit HTTPS.

    Why it's wrong here

    The policy does require HTTPS, but this does not cause failure because the AWS CLI's default endpoint uses TLS/HTTPS. There is no need to manually set any 'explicit HTTPS' flag; the CLI automatically negotiates a secure connection to S3. Thus the premise that this requirement would make the upload fail is incorrect.

  • The upload will succeed because the CLI uses HTTPS by default.

    Why this is correct

    The bucket policy allows s3:PutObject only when the request is made over a secure transport, as captured by the aws:SecureTransport condition key. The AWS CLI uses the HTTPS endpoint by default, so the request's SecureTransport value is true and the Allow branch applies. Consequently the upload is authorized and completes successfully.

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

This SOA-C02 question is part of Courseiva's 247-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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 SOA-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 SOA-C02 exam.