exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 655 discussion

Exam question from Amazon's AWS-SysOps
Question #: 655
Topic #: 1
[All AWS-SysOps Questions]

An Amazon EC2 instance is unable to connect an SMTP server in a different subnet. Other instances are successfully communicating with the SMTP server, however VPC Flow Logs have been enabled on the SMTP server's network interface and show the following information:
2 223342798652 eni-abe77dab 10.1.1.200 10.100.1.10 1123 25 17 70 48252 1515534437 1515535037 REJECT OK
What can be done to correct this problem?

  • A. Add the instance to the security group for the SMTP server and ensure that is permitted to communicate over TCP port 25.
  • B. Disable the iptables service on the SMTP server so that the instance can properly communicate over the network.
  • C. Install an email client on the instance to ensure that it communicates correctly on TCP port 25 to the SMTP server.
  • D. Add a rule to the security group for the instance to explicitly permit TCP port 25 outbound to any address.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
chris82
Highly Voted 2 years, 7 months ago
The FlowLogs has been activated on SMTP vpc, not on ec2-instance one. That`s why the REJECT is happening on SMTP side. I would choose A
upvoted 24 times
PlayerDN
2 years, 6 months ago
According to https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html REJECT means - "The recorded traffic was not permitted by the security groups or network ACLs." So the answer is A.
upvoted 3 times
...
...
elies_jebri
Highly Voted 2 years, 6 months ago
A you can use security groups to allow certain traffic between instances of the same SG Now D is incorrect because outbound traffic is already authorized because other instances can connect and SG statefull
upvoted 11 times
...
albert_kuo
Most Recent 10 months ago
Selected Answer: A
Based on the provided VPC Flow Logs information, the connection between the EC2 instance (source IP 10.1.1.200) and the SMTP server (destination IP 10.100.1.10) is being rejected. This rejection indicates that the security group associated with the EC2 instance is blocking outbound communication on TCP port 25. To resolve the issue, you should update the security group associated with the EC2 instance to allow outbound communication on TCP port 25. This can be done by adding a rule to the security group that permits outbound traffic on port 25 to the IP range or specific IP address of the SMTP server.
upvoted 1 times
...
gulu73
1 year, 2 months ago
Selected Answer: A
Id choose A
upvoted 1 times
...
asfsdfsdf
2 years, 2 months ago
I would go with A since the log is for the SMTP server and other instances can communicate correctly. however the protocol is wrong its not TCP its UDP (17)
upvoted 1 times
...
Cyril_the_Squirl
2 years, 5 months ago
A is correct. The logs on smtp server side show rejected traffic from instance, therefore traffic does reach smtp server subnet but gets rejected, answer is A.
upvoted 1 times
...
RicardoD
2 years, 5 months ago
A is the answer Traffic is being rejected so SG inbound should allow traffic to pass through
upvoted 1 times
...
Kimle
2 years, 5 months ago
The fact that traffic is detected "but refused" in VPC flow logs mean that ec2 instance have SMTP client installed and that client SG allow outbound traffic over port 25. so C,D excluded .. - adding ec2 "smtp client" to same SG as server doesn't enable it to communicate with the server , a rule must be defined in SG to accept traffic from same SG over port 25 .. choice A taxonomy is very weird as it say " and ensure that is permitted to communicate over TCP port 25." does this mean adding inbound rule or outbound rule or what !!
upvoted 2 times
...
abhishek_m_86
2 years, 5 months ago
A. Add the instance to the security group for the SMTP server and ensure that is permitted to communicate over TCP port 25.
upvoted 1 times
...
Manny20
2 years, 5 months ago
AWS blocks outbound traffic on port 25 (SMTP) of all EC2 instances and Lambda functions by default. If you want to send outbound traffic on port 25, you can request for this restriction to be removed. Ans is D as the EC2 instance SG should explicitly have outbound rules to connect to port 25 (SMTP) https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/
upvoted 1 times
...
jackdryan
2 years, 6 months ago
I'll go with A
upvoted 2 times
...
tegucgringo
2 years, 6 months ago
C - the flow shown is using UDP, not TCP The flow shows it is using protocol #17, which is UDP (https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). SMTP traditionally uses TCP (protocol #6)
upvoted 4 times
...
MFDOOM
2 years, 6 months ago
A. Add the instance to the security group for the SMTP server and ensure that is permitted to communicate over TCP port 25.
upvoted 3 times
...
waterzhong
2 years, 6 months ago
IT IS A
upvoted 1 times
...
shammous
2 years, 6 months ago
SG is stateful and allows outbound traffic of allowed inbound ports. This eliminates answer D and The only provable answer is A then.
upvoted 2 times
MegatonN
2 years, 6 months ago
@shammous, your explanation regarding SG statefull is "wrong" .Statefull means that if you allow a packet to reach your server/service you can reply (no need to create a rule for) But if you want to initiation a new "communication" from the server (port 25) then you will need a rule allowing port 25 (your server is in fact playing the role of a client)
upvoted 1 times
...
...
not_so_free
2 years, 6 months ago
The fact we see captured packet on SMTP_Server_ENI means that on the instance site port 25 (outbound direction) is permitted and packet has been successfully sent from the source but rejected (drop) from SMTP-Server. For me its ans A.
upvoted 2 times
...
inf
2 years, 6 months ago
Answer: A (given the other options are wrong, not saying A is a perfect answer. think its worded badly) B: huh? C: huh? D: wrong - the EC2 instance has outbound TCP/25 already given the traffic reaches the network interface of the SMTP server, which then rejects it.
upvoted 8 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