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 173 discussion

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

Authorized Administrators are unable to connect to an Amazon EC2 Linux bastion host using SSH over the Internet. The connection either fails to respond or generates the following error message:
Network error: Connection timed out.
What could be responsible for the connection failure? (Choose three.)

  • A. The NAT gateway in the subnet where the EC2 instance is deployed has been misconfigured.
  • B. The internet gateway of the VPC has been misconfigured.
  • C. The security group denies outbound traffic on ephemeral ports.
  • D. The route table is missing a route to the internet gateway.
  • E. The NACL denies outbound traffic on ephemeral ports.
  • F. The host-based firewall is denying SSH traffic.
Show Suggested Answer Hide Answer
Suggested Answer: DEF 🗳️

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
PeppaPig
Highly Voted 3 years, 7 months ago
DEF. A wrong. NAT is not related here B wrong. You cannot configure the IGW C wrong. SG cannot DENY traffic
upvoted 44 times
freddyman
3 years, 7 months ago
Agree DEF, agree with reasoning
upvoted 7 times
...
...
JackLee1
Highly Voted 3 years, 7 months ago
D,E,F are valid
upvoted 10 times
...
Raphaello
Most Recent 1 year, 2 months ago
Selected Answer: DEF
DEFinitely the correct answers in this case.
upvoted 1 times
...
Passexam4sure_com
1 year, 7 months ago
Selected Answer: DEF
Agree DEF, agree with reasoning
upvoted 1 times
...
PrabhuGr
1 year, 7 months ago
A. The NAT gateway in the subnet where the EC2 instance is deployed has been misconfigured. - Bastion Host setup doesn't require NAT Gateway - Incorrect Option. B. The internet gateway of the VPC has been misconfigured. - Correct - If IGW never attached to VPC, you get connection timeout. C. The security group denies outbound traffic on ephemeral ports. - Incorrect - SG is stateful, and as per the scenario, it is inbound connection happens from public internet towards bastion hosts. D. The route table is missing a route to the internet gateway. - Correct. E. The NACL denies outbound traffic on ephemeral ports. - Correct. F. The host-based firewall is denying SSH traffic. - If this is the case, we get connection refused error not connection timeout, so this is incorrect. Answer is BDE.
upvoted 2 times
...
addy_prepare
1 year, 8 months ago
Selected Answer: DEF
DEF - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html
upvoted 1 times
...
addy_prepare
1 year, 9 months ago
Selected Answer: DEF
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html
upvoted 1 times
...
addy_prepare
1 year, 9 months ago
Selected Answer: BDE
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html
upvoted 1 times
...
Balki
2 years, 5 months ago
Selected Answer: DEF
Not sure why no one gave the exact link https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#TroubleshootingInstancesCommonCauses
upvoted 2 times
...
hubekpeter
2 years, 5 months ago
Selected Answer: DEF
A - It's many:1 NAT, that's what NAT GW is doing, it's used for outboudn connectivity - No B - You can only attach IGW, there's nothing that can be misconfigured - No C - SGs are statefull, you don't need to open traffic in opposite direction - No D - Correct answer, you need to have a default route 0.0.0.0/0 towards IGW - Yes E - NACLS are stateless you need to allow TCP/22 Inbound and TCP 1024-65535 outbound, those are socalled higher or ephemeral ports - Yes F - Correct, you can implement firewall on os level - Yes
upvoted 5 times
ecpcloud
1 year, 10 months ago
to your explanation about C, SGs being stateful isn't the actual reason, but that SGs can only ever Allow traffic, whereas in the question the option states "Deny". So it's wrong because SGs couldn't deny any kind of traffic
upvoted 1 times
...
...
Isaias
2 years, 7 months ago
DEF. A. NAT is for private subnet and cannot be accessed from internet B. IGW is configured to public subnet not for vpc C. SG is state-full so you don't need the ephemeral ports
upvoted 1 times
...
watoz1851
2 years, 8 months ago
Selected Answer: DEF
It must to add ephemeral ports for ACL
upvoted 2 times
...
Rja148393
2 years, 9 months ago
The reference given is correct https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html Answer would be DEF.
upvoted 1 times
...
dcasabona
2 years, 9 months ago
Selected Answer: ADF
The question says: Either the connection does not reply or the following error message is generated: Connection ran out due to a network problem. Options A, D and F A. The NAT gateway in the subnet where the EC2 instance is deployed has been misconfigured. ===> NAT gateway is used for private subnets to connect to external world, so it could be the problem of not replying the connection... B. The internet gateway of the VPC has been misconfigured. ===> It could be, but you can't configure a internet gateway. C. The security group denies outbound traffic on ephemeral ports. ===> ephemeral ports is just for web servers when the browser picks any port to communicate, which is not the case of ssh. D. The route table is missing a route to the internet gateway. ===> could be a route problem... E. The NACL denies outbound traffic on ephemeral ports.===> the same as C... F. The host-based firewall is denying SSH traffic. ===> it could be...
upvoted 1 times
TerrenceC
2 years, 4 months ago
The reason why #A is ruled out is because this host is able to be connected over the Internet, which means this host resides in the public subnet where the Internet Gateway functions.
upvoted 1 times
...
...
TigerInTheCloud
3 years, 1 month ago
Selected Answer: DEF
Agree with PeppaPig's reasoning I have never seen an error message like 'Connection ran out due to a network problem' :-)
upvoted 1 times
...
AliS2020
3 years, 3 months ago
Short description Error message: "ssh: connect to host ec2-X-X-X-X.compute-1.amazonaws.com port 22: Connection timed out". This error message comes from the SSH client. The error indicates that the server didn't respond to the client and the client program gave up (timed out). The following are common causes for this error: The security group or network ACL doesn't allow access. There is a firewall on the instance's operating system. There is a firewall between the client and the server. The host doesn't exist. https://aws.amazon.com/premiumsupport/knowledge-center/ec2-linux-resolve-ssh-connection-errors/ As per this article it should be C,E,F. Let me know your thoughts ? Happy to hear
upvoted 3 times
...
NSF2
3 years, 3 months ago
Has anyone seen or heard error message “connection ran out”? This is infact making question little misleading, however DEF are the only ones that make sense.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago