exam questions

Exam AWS Certified Security - Specialty All Questions

View all questions & answers for the AWS Certified Security - Specialty exam

Exam AWS Certified Security - Specialty topic 1 question 253 discussion

Exam question from Amazon's AWS Certified Security - Specialty
Question #: 253
Topic #: 1
[All AWS Certified Security - Specialty Questions]

A company deployed an Amazon EC2 instance to a VPC on AWS. A recent alert indicates that the EC2 instance is receiving a suspicious number of requests over an open TCP port from an external source. The TCP port remains open for long periods of time.
The company's security team needs to stop all activity to this port from the external source to ensure that the EC2 instance is not being compromised. The application must remain available to other users.
Which solution will meet these requirements?

  • A. Update the network ACL that is attached to the subnet that is associated with the EC2 instance. Add a Deny statement for the port and the source IP addresses.
  • B. Update the elastic network interface security group that is attached to the EC2 instance to remove the port from the inbound rule list.
  • C. Update the elastic network interface security group that is attached to the EC2 instance by adding a Deny entry in the inbound list for the port and the source IP addresses.
  • D. Create a new network ACL for the subnet. Deny all traffic from the EC2 instance to prevent data from being removed.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kiev
Highly Voted 3 years, 8 months ago
I would go with A. anything that has o do with deny external source IP needs NACLS and not SG to block it.
upvoted 24 times
...
Raphaello
Most Recent 1 year, 4 months ago
Selected Answer: B
The question is intentionally vague. What is the purpose of the phrase " TCP port remains open for long periods of time"?! And using "needs to stop all activity to this port from the external source" in the request, does that mean this specific source or "external source" in the general meaning? I would go with option B. By removing any inbound rule toward that specific port in the instance SG, that would fulfill the ask.
upvoted 1 times
...
redelephant802
1 year, 7 months ago
Selected Answer: A
Security Group can't deny a source IP, allowing source IP though, like white list. NACL can deny source IP list black list.
upvoted 1 times
...
Howard1987
1 year, 7 months ago
Selected Answer: B
NACL is for VPC and subnet, SG is for EC2. Since the question is asking to deny to inbound to EC2, the B is the best answer
upvoted 2 times
...
pupsik
1 year, 8 months ago
Selected Answer: B
"... remove the port from the inbound rule list" in Security Group is the way to go, otherwise entire subnet will be affected.
upvoted 1 times
...
Noexperience
1 year, 10 months ago
Selected Answer: C
Security groups act as virtual firewalls for your instances. You can add inbound and outbound rules to control the traffic to and from instances. Adding a Deny entry in the inbound rule list for the specific port and the source IP addresses that are causing the issue will prevent traffic from that source to the specified port on the EC2 instance, while still allowing other traffic to the instance. This solution is targeted and efficient.
upvoted 1 times
howchan
1 year, 7 months ago
security group doesn't have deny rule
upvoted 2 times
...
...
ITGURU51
2 years, 2 months ago
A is the only option that makes sense. An elastic network interface (ENI) is a logical networking component in an Amazon VPC that represents a virtual network card. However it has nothing to do with finding a resolution to the problem. Furthermore, the network ACL blocks unwanted traffic at the subnet level. Answer D is also a bad choice because creating a new network ACL is not necessary to resolve the problem. A
upvoted 1 times
...
Kezuko
2 years, 2 months ago
A. Security group rules are implicit deny, which means all traffic is denied unless an inbound or outbound rule explicitly allows it, which eliminates B and C. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-rules.html D is definitely a big nono, due to denying all traffic will affect the application being unavailable to other users.
upvoted 1 times
...
Nan001
2 years, 4 months ago
Selected Answer: A
"top all activity to this port from the external source " - this statement made me pick option A.
upvoted 3 times
...
Jimmy123
2 years, 5 months ago
Selected Answer: C
The best option for the given situation is to update the elastic network interface security group that is attached to the EC2 instance by adding a Deny entry in the inbound list for the port and the source IP addresses. This will allow the application to remain available to other users while blocking any traffic from the external source to the open TCP port. Option A, which is to update the network ACL that is attached to the subnet that is associated with the EC2 instance, would not meet the requirements because the ACL is for the entire subnet and not just the EC2 instance.
upvoted 2 times
Smartphone
2 years, 5 months ago
How can you create a deny rule in Security Group?
upvoted 3 times
...
...
boooliyooo
2 years, 5 months ago
Selected Answer: B
Not sure why comments keeping mentioning that B states 'deny entry' when it doesn't? Option A, Updating the network ACL that is attached to the subnet that is associated with the EC2 instance by adding a Deny statement for the port and the source IP addresses, would not be an effective method as network ACLs operate at the subnet level, not the instance level, and would block all traffic to the entire subnet, not just the specific port.
upvoted 1 times
...
CallMeHerb
2 years, 6 months ago
A: Deny traffic to the instance from the source IP is correct (will only block traffic from that IP) B: You cannot explicitly deny anything in an SG. Only allow statements C: bogus D: that answer will basically make the instance unusable. Deny all traffic from the instance??? Eh no.
upvoted 1 times
...
must_be_rohit
2 years, 6 months ago
Selected Answer: B
Question says PORT and not any specific IP thus it has to be B and not A as A can impact working of other applications
upvoted 1 times
luis12345
2 years, 5 months ago
There is no deny on Security Groups
upvoted 1 times
...
...
maddyr
2 years, 7 months ago
Selected Answer: B
B is correct. The question specifically asks to block the port for the instance. A will impact other applications within the subnet.
upvoted 2 times
...
dcasabona
2 years, 11 months ago
Selected Answer: A
I would go for A as well.
upvoted 1 times
...
xaocho
2 years, 11 months ago
Selected Answer: A
A is right
upvoted 1 times
...
sapien45
2 years, 11 months ago
Selected Answer: A
Block External Source IP = NACL is the man for the job
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 ...