Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C03 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C03 exam

Exam AWS Certified Solutions Architect - Associate SAA-C03 topic 1 question 96 discussion

An Amazon EC2 administrator created the following policy associated with an IAM group containing several users:

What is the effect of this policy?

  • A. Users can terminate an EC2 instance in any AWS Region except us-east-1.
  • B. Users can terminate an EC2 instance with the IP address 10.100.100.1 in the us-east-1 Region.
  • C. Users can terminate an EC2 instance in the us-east-1 Region when the user's source IP is 10.100.100.254.
  • D. Users cannot terminate an EC2 instance in the us-east-1 Region when the user's source IP is 10.100.100.254.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Joxtat
Highly Voted 1 year, 9 months ago
What the policy means: 1. Allow termination of any instance if user’s source IP address is 100.100.254. 2. Deny termination of instances that are not in the us-east-1 Combining this two, you get: “Allow instance termination in the us-east-1 region if the user’s source IP address is 10.100.100.254. Deny termination operation on other regions.”
upvoted 64 times
KMohsoe
1 year, 5 months ago
Nice explanation. Thanks
upvoted 4 times
...
...
Subh_fidelity
Highly Voted 1 year, 10 months ago
C is correct. 0.0/24 , the following five IP addresses are reserved: 0.0: Network address. 0.1: Reserved by AWS for the VPC router. 0.2: Reserved by AWS. The IP address of the DNS server is the base of the VPC network range plus two. ... 0.3: Reserved by AWS for future use. 0.255: Network broadcast address.
upvoted 32 times
Bmarodi
1 year, 4 months ago
A good explanation!
upvoted 3 times
...
...
PaulGa
Most Recent 1 month ago
Selected Answer: C
Ans C - must be in us-east-1 region and CIDR address is in allowable range (/24)
upvoted 1 times
...
jaradat02
2 months, 3 weeks ago
Selected Answer: C
The first rule allows users with the specified IP CIDR to terminate instances, and the second rule specifies that the region must be us-east-1 for the termination process to be allowed, hence C is the correct answer.
upvoted 1 times
...
jatric
3 months, 2 weeks ago
Selected Answer: C
policy allow us-east-1 and with the specific IP address in the range
upvoted 2 times
...
ChymKuBoy
4 months ago
Selected Answer: C
C for sure
upvoted 1 times
...
jhoiti
6 months, 2 weeks ago
Selected Answer: D
D. Users cannot terminate an EC2 instance in the us-east-1 region when the user's source IP is 10.100.100.254. This option corresponds to the second statement in the policy, where all EC2 actions in the "us-east-1" region are denied permission when the user's source IP is "10.100.100.254".
upvoted 1 times
lofzee
4 months, 3 weeks ago
but it says "StringNotEquals" meaning everything is denied apart from us-east-1
upvoted 2 times
...
...
vip2
8 months ago
Selected Answer: C
Clearly the answer is C. D is 'Deny' 'String NOT equal' == only allow us-east-1
upvoted 4 times
...
awsgeek75
9 months ago
Selected Answer: C
Here is how I interpreted this first part: terminate instance is allowed for the given CIDR block second part: deny all ec2 actions when region is not us-east-1 so second part is like double negative which means allow for us-east-1 region You combine both (remember deny always take priority which is why this is written in double negative) and you get: [allow us-east-region1 to do any action on ec2] when [action is terminate instance and CIDR block is match] so C is the answer D is there to confuse you with the double negative
upvoted 2 times
...
pentium75
9 months, 3 weeks ago
Selected Answer: C
Deny takes precedence over Allow. Thus the flow is as follows: IF region of the EC2 instance is not "us-east-1" -> Deny ELSE if request is coming from 10.100.100.0/24 -> Allow ELSE: implicit deny (what is not allowed is denied)
upvoted 4 times
...
Cyberkayu
10 months, 2 weeks ago
if IP = 10.100.100.0/24 allow terminate EC2 Else Deny EC2 termination permission - with the condition "String NOT equal" to us-east-1 Answer C
upvoted 5 times
...
Bjfikky
11 months ago
Selected Answer: D
The first statement allows users to terminate EC2 instances (ec2:TerminateInstances) from any IP address within the range 10.100.100.0/24. The second statement denies users the ability to perform any EC2 actions (ec2:*) in any region other than us-east-1. So, the correct interpretation is: D. Users cannot terminate an EC2 instance in the us-east-1 Region when the user's source IP is 10.100.100.254
upvoted 1 times
pentium75
9 months, 3 weeks ago
D denies "the ability to perform any actions in any region OTHER than us-east-1". Thus the user CAN terminate instances IN us-east-1. Thus C.
upvoted 1 times
...
...
sweetheatmn
12 months ago
Selected Answer: C
C because the explicit deny blocks other regions than us-east-1
upvoted 1 times
...
tom_cruise
1 year ago
Selected Answer: C
The first statement is a subset of the second statement.
upvoted 1 times
...
prabhjot
1 year ago
ans D - This policy denies EC2 instance termination for users with the source IP address 10.100.100.254 in the us-east-1 Region.
upvoted 1 times
...
Subhrangsu
1 year ago
D is not because of Deny & NOT Equals
upvoted 1 times
...
Valder21
1 year, 1 month ago
I went for C for obvious reasons Wondering though; this policy also allows to terminate EC2 instances in US-east-1 even if your source IP is not the 10.100.100.254, right? The idea is that since I do not deny this for the other source IP addresses, the Allow action is a obsolete?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...