While troubleshooting, a solutions architect finds that the pings fail when trying to perform connectivity tests on an Amazon EC2 instance in a subnet on an Amazon VPC. It is detected that only inbound but not outbound communication is being allowed for the ICMP protocol.
Which security feature on an Amazon VPC will generate this behavior?
a. Security Group Outbound Rules
b. Network Access Control List (NACL) Outbound Rules
c. Network Access Control List (NACL) Inbound Rules
d. Security Group Inbound Rules
Related discussions:
Trying to learn this stuff myself. My thinking is the traffic comes in so doesnt that rule out inbound rules as a cause ?
and the traffic cant be denied going out by a SG
https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html
So isnt it B ? That being said isnt there the issue with everything being allowed out from a SG by default ? … I feel maybe an ambiguous question ?
d. Security Group Inbound Rules
chatgpt said d, im so confused. I thought of stateful, what can come in can go out. or if its not going out for new pings then a.
nacls are open by default?
The answer is b. Can’t be c or d because it’s outbound traffic that’s being blocked. Can’t be a because security groups are stateful; if inbound traffic is allowed past the SG (which we know from the question it is), then the outbound replies are automatically allowed through, even if there’s an outbound rule that would prevent it. NACLs are stateless and will block the traffic regardless of it being a reply to allowed inbound traffic.
Why not a, as a new ping out
I just tested this.
If I allow ping in with the security group. I can see a pings come back to my client.
If I then add a deny rule to the NACL and do a tcpdump to watch the traffic I see the aws instance getting the pings but I dont see them on the client. Hence my response still stands at B.
It could be, if the question said that the EC2 instance couldn’t ping some other computer. But I think from the question they’re talking about being able to ping the EC2 instance, rather than being able to ping from it.
If you’re initiating a ping from the EC2 you’d need an Outbound rule in the Security Group as well.
If the ping is coming in from outside of the subnet the instance is hosted in, you’ll need Inbound and Outbound on the NACL and just an Inbound on the receiving EC2 Security Group.
I got this question and the way I got to the answer is if I had to pick ONE SINGLE PROBLEM, which answer would it be? Meaning only one thing can be wrong. It can’t be multiple things. Or they would have given you a multiple option answer. So you can solve this problem by fixing one single thing.
So begin process of elimination:
Start with the NACLs - they are stateless. You have to create the inbound rule and the outbound rule. Because even if traffic is allowed in, without an outbound rule, you’re not functional. So it can’t be a NACL as the ONLY singular problem in this situation.
Ok this eliminates B & C. Good. Move to security groups.
A: Security Group outbound rules. Well it can’t really be this one because security groups are stateful. So if something is allowed in, it is allowed out. So if the inbound security rule was good, then you would have no issues with outbound.
Which means, the answer is
D: Security Group Inbound Rules. So this means that nothing can really get in (and if it could, because security groups are stateful, it would also be able to get out)
That’s how I got to the answer. Idk if it makes sense to you. This is (I believe) trying to test your understanding of stateless vs stateful.
chat gpt said d, now it says a
Security Group Outbound Rules.
Security groups control both inbound and outbound traffic at the instance level, and it is possible to have different rules for inbound and outbound traffic. The solutions architect has identified that only inbound communication for the ICMP protocol is allowed, and this would typically be caused by a restriction in the security group’s outbound rules.
If ChatGPT is passing the Bar and MBA and Medical exams, is it worth considering that these AWS questions aren’t always well written?
In the limited time they provide, it is wild how long it takes to filter our unnecessary info, filter for misleading info, drill into two possible answers, eliminate one, etc etc. I’ve never taken this long to test before.
Maybe I’m just going insane preparing for this thing.
amazon skill builder site
Do you need a subscription for this ? When I click the link I get unauthorized.
its free, https://pages.awscloud.com/GLOBAL-ln-GC-TrainCert-Professional-Certification-Challenge-Registration-2023.html
somewhere here i selected SAA and it was free… i skipped to the bottom to find the “Solutions Architect Learning Plan Badge Assessment”
I dont see anything for the associate level exam, seems to be just professional now ?
I failed it again despite having Google, chatgpt, my own studies. I got 73% but needed 80