exam questions

Exam ANS-C00 All Questions

View all questions & answers for the ANS-C00 exam

Exam ANS-C00 topic 1 question 7 discussion

Exam question from Amazon's ANS-C00
Question #: 7
Topic #: 1
[All ANS-C00 Questions]

You manage a web service that is used by client applications deployed in 300 offices worldwide. The web service architecture is an Elastic Load Balancer (ELB) distributing traffic across four application servers deployed in an Auto Scaling group across two Availability Zones.
The ELB is configured to use round robin, and sticky sessions are disabled. You have configured the NACLs and security groups to allow port 22 from your bastion host, and port 80 from 0.0.0.0/0. The client configuration is managed by each regional IT team.
Upon inspection you find that a large amount of requests from incorrectly configured sites are causing a single application server to degrade. The remainder of the requests are equally distributed across all servers with no negative effects.
What should you do to remedy the situation and prevent future occurrences?

  • A. Mark the affected instance as degraded in the ELB and raise it with the client application team.
  • B. Update the NACL to only allow port 80 to the application servers from the ELB servers.
  • C. Update the Security Groups to only allow port 80 to the application servers from the ELB.
  • D. Terminate the affected instance and allow Auto Scaling to create a new instance.
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
piotr
Highly Voted 3 years, 4 months ago
C - you cannot use NACL as ELB does not have fixed IP. Also there is no "ELB servers"
upvoted 12 times
...
lunt
Highly Voted 3 years, 3 months ago
Not sure why there are different responses to this. Answer is already given in the question itself. "incorrectly configured sites are causing a single application server to degrade", if a server is behind an ELB, yet this server is getting direct requests - which indicates the rogues website are sending traffic directly to degraded server = this server has a public IP. The cause is being able to communicate with the degraded server directly. Force the traffic via ELB. A - nope. B - secondary config, does not resolve issue. D - terminating still means the issue can reappear. If the ASG assigns a public IP to each instance, if I were to misconfigure websites for each of the 4 servers IPs, by-passing the ELB, I could get 4 degraded servers. D is wrong. Answer is C. Forcing traffic via SG config means even if the EC2 instances has public IPs, the SG would drop the traffic as HTTP 80 is only allowed via ELB.
upvoted 12 times
...
Vudew
Most Recent 5 days, 7 hours ago
Selected Answer: C
This is what the udemy exam says
upvoted 1 times
...
PavanKushwah123
2 years, 1 month ago
Correct Answer D
upvoted 1 times
...
clooudy
2 years, 8 months ago
Selected Answer: C
Answer:C Can't use NACL since its stateless and require a outbound rule also
upvoted 1 times
...
AshishBravo
3 years, 3 months ago
C, "incorrectly configured sites are causing a single application server to degrade" this is a self explanatory statement that the Server should only allow the Web Traffic from ELB only. As per the AWS Best practice Answer is C. D is not 100% secure answer.
upvoted 2 times
...
azeemk7860
3 years, 3 months ago
It seems the ASG is assigning public IP address to the instance which has been somehow gotten hold of and being accesses directly. If you terminate and let auto scaling create a new instance it will get a new public IP and the client has no way of knowing it. Hence stick with D.
upvoted 2 times
...
ChauPhan
3 years, 3 months ago
Agree with C. In this situation, IT guy might route the clients app from one or some offices directly to web service instead of ELB IP address. So C. Configure the application servers SG only accept the connection with port 80 from ELB is correct. It will block all other traffic from another source IP, in this case from client applications. Then avoid such issue.
upvoted 3 times
...
ravirajani
3 years, 3 months ago
I will go with B A - It doesn't prevent future occurrence as new client sites again follow wrong settings and cause another machine to go down. B - Once NACL is applied on subnet level, no need to update it for new instances. Hence, best solution in this case. C - Somewhat correct. But autoscaling is configured and hence, we will get new instances if required, in that case, SG has to be updated manually on new instances. SG - Tied to an instance D - It doesn't prevent future occurrences as A
upvoted 2 times
pamplemousse
3 years, 3 months ago
Since NACLs work at a subnet level, you might prevent other EC2s from functioning on that subnet. A security group would affect just the application.
upvoted 4 times
sapien45
2 years, 10 months ago
Best answer on why C (SG) and not B(NACL)
upvoted 1 times
...
...
ChinkSantana
3 years, 3 months ago
C is Correct. You can create a Security group to be used by all Webservers so its not just for the instance.
upvoted 1 times
...
...
enk
3 years, 3 months ago
and prevent future occurrences is the key phrase. D would allow for the issue to occur again C would prevent future issues from occurring Answer C
upvoted 4 times
...
sensor
3 years, 3 months ago
f its an internet facing ALB and sits in public subnet (bastion host existence implies this) then the SG with source 0.0.0.0/0 (default) seems to be correct. ref: https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-groups.html#recommended-sg-rules Therefore I go for D.
upvoted 2 times
...
2aldous
3 years, 3 months ago
Consider that the question is not say if the Instances are in a public o private subnet. A. No B. If you close 22 port, you lost access to ec2 instances and probably the problem persist (maybe attack 80 port) C. Correct. Because is a good practice, is more secure. Delete risk attack. D. Problem could be repeat.
upvoted 2 times
...
exmjame
3 years, 3 months ago
Answe is C; SG allow port 80 with source security group ELB.
upvoted 2 times
...
pingda
3 years, 3 months ago
Since the question is giving remedy the situation and prevent future occurrences. D. Will give temporary solution by removing the instance but chances of problem again. A. Should be correct solution So answer A
upvoted 2 times
Ishu_awsguy
3 years, 3 months ago
C is the right answer. The issue is only with one server and most probably because of some malicious activity. If you terminate this server and ASg launches new, you are still not increasing you security footprint and the malicious activity can happen again
upvoted 1 times
...
...
kvirk
3 years, 4 months ago
C is Correct answer
upvoted 2 times
...
Jatin77
3 years, 4 months ago
Looks D . terminate server and let traffic is load balance across rest of servers.
upvoted 5 times
...
CloudTrail
3 years, 4 months ago
When ELB is set to round robin and no sticky sessions how can all connections from incorrectly configured sites land on a single server? So it has to be an individual server issue.
upvoted 4 times
Solo_Jordan
3 years, 4 months ago
They make a point to say that the client apps are managed by regional IT team (you don't manage them). So the issue seems to be that some sites are pointing clients directly at app server instead of ELB. You have to stop those crazy IT guys.
upvoted 4 times
...
Neil101
3 years, 4 months ago
Agreed. States the servers are 'locally managed' and it appears one server has an issue (all the other servers are fine) so surely you'd remove the offending server from the load balancing pool of servers and tell the local team in question to sort the application out.
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