exam questions

Exam AWS Certified Security - Specialty SCS-C02 All Questions

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

Exam AWS Certified Security - Specialty SCS-C02 topic 1 question 46 discussion

A company's security engineer is designing an isolation procedure for Amazon EC2 instances as part of an incident response plan. The security engineer needs to isolate a target instance to block any traffic to and from the target instance, except for traffic from the company's forensics team. Each of the company's EC2 instances has its own dedicated security group. The EC2 instances are deployed in subnets of a VPC. A subnet can contain multiple instances.
The security engineer is testing the procedure for EC2 isolation and opens an SSH session to the target instance. The procedure starts to simulate access to the target instance by an attacker. The security engineer removes the existing security group rules and adds security group rules to give the forensics team access to the target instance on port 22.
After these changes, the security engineer notices that the SSH connection is still active and usable. When the security engineer runs a ping command to the public IP address of the target instance, the ping command is blocked.
What should the security engineer do to isolate the target instance?

  • A. Add an inbound rule to the security group to allow traffic from 0.0.0.0/0 for all ports. Add an outbound rule to the security group to allow traffic to 0.0.0.0/0 for all ports. Then immediately delete these rules.
  • B. Remove the port 22 security group rule. Attach an instance role policy that allows AWS Systems Manager Session Manager connections so that the forensics team can access the target instance.
  • C. Create a network ACL that is associated with the target instance's subnet. Add a rule at the top of the inbound rule set to deny all traffic from 0.0.0.0/0. Add a rule at the top of the outbound rule set to deny all traffic to 0.0.0.0/0.
  • D. Create an AWS Systems Manager document that adds a host-level firewall rule to block all inbound traffic and outbound traffic. Run the document on the target instance.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
AgboolaKun
Highly Voted 1 year, 1 month ago
Selected Answer: B
There is no need for SSH port 22 since Systems Manager Session Manager can give the necessary access that the security team needs to the EC2 instances.
upvoted 6 times
...
IPLogic
Most Recent 1 day, 23 hours ago
Selected Answer: C
Simply put Option B. does not block s other traffic and isolate the Instance completely.
upvoted 1 times
...
IPLogic
5 days, 14 hours ago
Selected Answer: C
C. Create a network ACL that is associated with the target instance’s subnet. Add a rule at the top of the inbound rule set to deny all traffic from 0.0.0.0/0. Add a rule at the top of the outbound rule set to deny all traffic to 0.0.0.0/0. https://docs.aws.amazon.com/whitepapers/latest/aws-security-incident-response-guide/destination-containment.html
upvoted 1 times
...
mzeynalli
3 weeks, 5 days ago
Selected Answer: C
Guys, keep it simple. The task is "What should the security engineer do to isolate the target instance?" Adding deny rules for both inbound and outbound traffic ensures that all communications to and from the instance are blocked, effectively isolating the instance. After the completion of the REQUIRED task, the engineer will allow the forensic team to add either AWS Systems Manager Session Manager or NACL to accomplish the SECOND part of the task.
upvoted 3 times
...
jakie22332
4 weeks, 1 day ago
Selected Answer: C
C is correct
upvoted 2 times
...
Johnyw
1 month, 3 weeks ago
Answer is C. The question is definitely trying to test the difference between an SG and a NACL, the System Manager Session Manager is just a distraction. The engineer just need to implement a NACL to drop the sessions. the sessions are allowed because SG's are stateful.
upvoted 2 times
...
Just_Ninja
2 months, 3 weeks ago
Selected Answer: B
B is correct, but if you still have an active session on port 22, the connection will remain open. You can easily test this. Security Groups (SGs) are stateful, which means an existing session remains active even if the rule is removed. Launch an EC2 instance with SSH access restricted to your IP. Connect to the instance via SSH. Remove the SSH rule from the Security Group. Your active session will continue without interruption! 😊 Also, from my point of view, AWS Systems Manager (SSM) is one of the coolest tools. You can easily log session data to an S3 bucket for reviews and analytics, making it a powerful tool for auditing and security operations.
upvoted 1 times
...
jamesf
3 months ago
Selected Answer: B
keywords: "The security engineer removes the existing security group rules and adds security group rules to give the forensics team access to the target instance on port 22." So just remove the Security Group SSH Port 22 and use AWS Systems Manager Session Manager
upvoted 1 times
...
FunkyFresco
3 months, 2 weeks ago
Selected Answer: B
Option b.
upvoted 1 times
...
komik_101
3 months, 2 weeks ago
C is correct for me. why? saying.. "After these changes, the security engineer notices that the SSH connection is still active and usable" if any TCP session opens, it doesn't matter you can add a new security group or remove it. you should kill 22 TCP sessions, otherwise, commination will continue. B: I will not select this option on exam. why? It seems an easy way, but no more details, if you want to give "manager session connection" you should many things, also I said, that when you remove security group , still 22 tcp port still open.
upvoted 2 times
...
Zek
6 months, 4 weeks ago
C https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#untracked-connections On the other hand, if you have a narrower inbound rule that initially allows an SSH connection (meaning that the connection was tracked), but change that rule to no longer allow new connections from the address of the current SSH client, the existing SSH connection is not interrupted because it is tracked. Hence, a NACL would block the connection immediately
upvoted 3 times
...
icecool36
7 months ago
A - On the other hand, if you have a narrower inbound rule that initially allows an SSH connection (meaning that the connection was tracked), but change that rule to no longer allow new connections from the address of the current SSH client, the existing SSH connection is not interrupted because it is tracked.
upvoted 2 times
...
icecool36
7 months ago
Selected Answer: A
See explanation earlier
upvoted 1 times
...
icecool36
7 months ago
A - It is about connection tracking. Not B since: It states: "The security engineer removes the existing security group rules." This means also the outbound rule, therefore no 443 outbound is possible to SSM. SO no session connection is possible: The managed nodes you connect to, must allow HTTPS (port 443) outbound traffic to the following endpoints: ec2messages.region.amazonaws.com ssm.region.amazonaws.com ssmmessages.region.amazonaws.com Not C: This will block also the forensic team and all other instances in the subnet. Not D: Not related at all
upvoted 1 times
...
xflare
8 months, 2 weeks ago
Selected Answer: C
"To ensure that traffic is immediately interrupted, or that all traffic is subject to firewall rules regardless of the tracking state, you can use a network ACL for your subnet. Network ACLs are stateless and therefore do not automatically allow response traffic. Adding a network ACL that blocks traffic in either direction breaks existing connections. " https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#untracked-connections
upvoted 4 times
...
arvehisa
9 months ago
Selected Answer: C
The correct answer is C https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#untracked-connections When you change a security group rule, its tracked connections are not immediately interrupted. The security group continues to allow packets until existing connections time out. To ensure that traffic is immediately interrupted, or that all traffic is subject to firewall rules regardless of the tracking state, you can use a network ACL for your subnet.
upvoted 4 times
...
bkbaws
9 months, 1 week ago
Selected Answer: A
Adding a in and out SG rule with SSH 0.0.0.0/0 and removing it causes the established connections to be dropped https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#untracked-connections
upvoted 1 times
Raphaello
9 months ago
"An untracked flow of traffic is immediately interrupted if the rule that enables the flow is removed or modified." (same reference) So..by removing port 22 SG rule, the flow is immediately interrupted. No?! If so, then B is correct!
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 ...