- A
"Condition": {"IpAddress": {"aws:SourceIp": "203.0.113.0/24"}}
Why wrong: This would allow only that IP range, but the requirement is to deny outside IPs; using IpAddress in an Allow statement would work, but the question asks for conditions to include in a Deny context.
- B
"Condition": {"StringLike": {"aws:Referer": "https://corporate.internal/*"}}
Why wrong: This checks the HTTP referrer, which is not reliable for network-based access control.
- C
"Condition": {"Bool": {"aws:SecureTransport": "true"}}
Enforces HTTPS by requiring SecureTransport to be true.
- D
"Effect": "Deny", "Condition": {"NotIpAddress": {"aws:SourceIp": "203.0.113.0/24"}}
This Deny statement with NotIpAddress will deny any request not originating from the allowed IP range.
- E
"Condition": {"NotIpAddress": {"aws:SourceIp": "203.0.113.0/24"}}
Denies requests that do not come from the corporate IP range.
Quick Answer
The correct answer is to include three conditions: aws:SecureTransport set to true, a Deny effect with NotIpAddress on aws:SourceIp for 203.0.113.0/24, and a Deny effect with IpAddress on aws:SourceIp for all other IPs. This works because aws:SecureTransport enforces HTTPS by checking that the request uses TLS, while the NotIpAddress operator in a Deny statement blocks any IP that is not within the corporate range, effectively restricting access to only 203.0.113.0/24. On the AWS Certified Security Specialty SCS-C02 exam, this question tests your ability to combine network and encryption controls in a single S3 bucket policy, a common scenario for securing sensitive data. A frequent trap is confusing IpAddress with NotIpAddress—using IpAddress in a Deny would block the corporate IPs, which is the opposite of what’s needed. Memory tip: think “Deny Not = block outsiders, Deny Ip = block insiders,” and always pair SecureTransport with a Deny to force HTTPS.
SCS-C02 Identity and Access Management Practice Question
This SCS-C02 practice question tests your understanding of identity and access management. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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 has an S3 bucket that contains sensitive data. The security team wants to enforce that all access to the bucket must use HTTPS and that requests originating from outside the corporate network (as defined by a specific IP range 203.0.113.0/24) must be denied. Which THREE conditions should be included in the S3 bucket policy? (Choose THREE.)
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
"Condition": {"Bool": {"aws:SecureTransport": "true"}}
Options A, B, and D are correct. To enforce HTTPS, use the condition aws:SecureTransport. To deny non-corporate IPs, use a Deny statement with aws:SourceIp condition and the NotIpAddress operator for the corporate range. Option C is wrong because aws:Referer is for referrer header, not network location. Option E is wrong because using IpAddress with a Deny effect would deny the corporate IPs, which is opposite of the requirement.
Key principle: NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
"Condition": {"IpAddress": {"aws:SourceIp": "203.0.113.0/24"}}
Why it's wrong here
This would allow only that IP range, but the requirement is to deny outside IPs; using IpAddress in an Allow statement would work, but the question asks for conditions to include in a Deny context.
- ✗
"Condition": {"StringLike": {"aws:Referer": "https://corporate.internal/*"}}
Why it's wrong here
This checks the HTTP referrer, which is not reliable for network-based access control.
- ✓
"Condition": {"Bool": {"aws:SecureTransport": "true"}}
- ✓
"Effect": "Deny", "Condition": {"NotIpAddress": {"aws:SourceIp": "203.0.113.0/24"}}
Why this is correct
This Deny statement with NotIpAddress will deny any request not originating from the allowed IP range.
Related concept
Static NAT maps one inside address to one outside address.
- ✓
"Condition": {"NotIpAddress": {"aws:SourceIp": "203.0.113.0/24"}}
Why this is correct
Denies requests that do not come from the corporate IP range.
Related concept
Static NAT maps one inside address to one outside address.
Common exam traps
Common exam trap: NAT rules depend on direction and matching traffic
NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.
Detailed technical explanation
How to think about this question
NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.
KKey Concepts to Remember
- Static NAT maps one inside address to one outside address.
- PAT allows many inside hosts to share one public address using ports.
- Inside local and inside global describe the private and translated addresses.
- NAT ACLs identify traffic for translation, not always security filtering.
TExam Day Tips
- Identify inside and outside interfaces first.
- Check whether the scenario needs static NAT, dynamic NAT or PAT.
- Do not confuse NAT matching ACLs with normal packet-filtering intent.
Key takeaway
NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.
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.
Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related SCS-C02 NAT questions on configuration and troubleshooting.
- →
Identity and Access Management — study guide chapter
Learn the concepts, then practise the questions
- →
Identity and Access Management practice questions
Targeted practice on this topic area only
- →
All SCS-C02 questions
1,738 questions across all exam domains
- →
AWS Certified Security Specialty SCS-C02 study guide
Full concept coverage aligned to exam objectives
- →
SCS-C02 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SCS-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Threat Detection and Incident Response practice questions
Practise SCS-C02 questions linked to Threat Detection and Incident Response.
Security Logging and Monitoring practice questions
Practise SCS-C02 questions linked to Security Logging and Monitoring.
Identity and Access Management practice questions
Practise SCS-C02 questions linked to Identity and Access Management.
Management and Security Governance practice questions
Practise SCS-C02 questions linked to Management and Security Governance.
Infrastructure Security practice questions
Practise SCS-C02 questions linked to Infrastructure Security.
Data Protection practice questions
Practise SCS-C02 questions linked to Data Protection.
SCS-C02 fundamentals practice questions
Practise SCS-C02 questions linked to SCS-C02 fundamentals.
SCS-C02 scenario practice questions
Practise SCS-C02 questions linked to SCS-C02 scenario.
SCS-C02 troubleshooting practice questions
Practise SCS-C02 questions linked to SCS-C02 troubleshooting.
Practice this exam
Start a free SCS-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 SCS-C02 question test?
Identity and Access Management — This question tests Identity and Access Management — Static NAT maps one inside address to one outside address..
What is the correct answer to this question?
The correct answer is: "Condition": {"Bool": {"aws:SecureTransport": "true"}} — Options A, B, and D are correct. To enforce HTTPS, use the condition aws:SecureTransport. To deny non-corporate IPs, use a Deny statement with aws:SourceIp condition and the NotIpAddress operator for the corporate range. Option C is wrong because aws:Referer is for referrer header, not network location. Option E is wrong because using IpAddress with a Deny effect would deny the corporate IPs, which is opposite of the requirement.
What should I do if I get this SCS-C02 question wrong?
Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related SCS-C02 NAT questions on configuration and troubleshooting.
What is the key concept behind this question?
Static NAT maps one inside address to one outside address.
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 →
Same concept, more angles
1 more ways this is tested on SCS-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 has an S3 bucket that contains sensitive data. The security team wants to ensure that all access to the bucket is encrypted in transit. What is the most effective way to enforce this?
medium- A.Enable default encryption on the S3 bucket using SSE-S3.
- B.Enable AWS CloudTrail to log all S3 access and alert on non-HTTPS requests.
- ✓ C.Add a bucket policy that denies access if the request does not use HTTPS (aws:SecureTransport condition).
- D.Create an IAM policy that denies S3 actions without the condition aws:SecureTransport.
Why C: Option B is correct because a bucket policy with a condition aws:SecureTransport ensures only HTTPS requests are allowed. Option A is wrong because enabling default encryption only encrypts at rest, not in transit. Option C is wrong because CloudTrail logs do not enforce encryption. Option D is wrong because IAM policy can deny non-HTTPS but it's better to enforce at the bucket level.
Last reviewed: Jun 20, 2026
This SCS-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 SCS-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.