exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 600 discussion

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

During a security investigation, it is determined that there is a coordinated attack on the web applications deployed on Amazon EC2. The attack is performed through malformed HTTP headers.
What AWS service of feature would prevent this traffic from reaching the EC2 instances?

  • A. Amazon Inspector
  • B. Amazon Security Groups
  • C. AWS WAF
  • D. Application Load Balancer (ALB)
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
https://aws.amazon.com/waf/

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
dkp
Highly Voted 2 years, 7 months ago
seems like ans is :D The following HTTP errors are generated by the load balancer HTTP 400: Bad Request Possible causes: The client sent a malformed request that does not meet the HTTP specification. The request header exceeded 16K per request line, 16K per single header, or 64K for the entire head https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-troubleshooting.html#http-400-issues When a load balancer receives an HTTP request, it checks for malformed requests and for the length of the method. The total method length in an HTTP request to a load balancer must not exceed 127 characters. If the HTTP request passes both checks, the load balancer sends the request to the EC2 instance. If the method field in the request is malformed, the load balancer responds with an HTTP 400: BAD_REQUEST error. https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/ts-elb-error-message.html
upvoted 17 times
Huy
2 years, 5 months ago
Malformed request is different from malformed header. I don't think ALB will check the each header values in details except if you use routing rules.
upvoted 1 times
...
karmaah
2 years, 7 months ago
Good hints DKP.
upvoted 1 times
...
...
Jimmy5
Highly Voted 2 years, 6 months ago
Answer is C. WAF is used to prevent malformed HTTP headers where as an ALB will generate an error when it seems a malformed HTTP header.
upvoted 13 times
...
albert_kuo
Most Recent 9 months, 4 weeks ago
Selected Answer: C
AWS WAF is a web application firewall that helps protect web applications from common web exploits and attacks, including those that involve malformed HTTP headers. It allows you to define custom security rules and conditions to filter and block malicious traffic before it reaches your EC2 instances. By configuring AWS WAF with appropriate rules and conditions, you can detect and block requests with malformed HTTP headers, preventing them from reaching your EC2 instances and potentially compromising your web applications.
upvoted 1 times
...
[Removed]
1 year, 11 months ago
Selected Answer: D
C) ALB An application load balancer will block malformed requests that do not meet the HTTP specification with a HTTP 400: Bad request error. An ALB can be placed in front of the EC2 web applications and this will prevent the attack from reaching the instances. The ALB attribute “Drop Invalid Header Fields” setting can be used to control if invalid header fields are removed by the load balancer. WAF :AWS WAF cannot be used to protect EC2 instances 'directly'. It can be used in front of CloudFront distributions, ALBs and API Gateways.
upvoted 1 times
[Removed]
1 year, 11 months ago
D) ALB*
upvoted 1 times
...
...
Sam0_2000
2 years, 5 months ago
Both C and D can do the job. D is no extra cost - there is an option to throw away the malformed http headers C WAF is a paid service but helps many other different types of attacks. In real-life the company would already have a WAF so it is like better bang for the $. For exam purpose I would answer D but practically I would use C.
upvoted 1 times
...
TroyMcLure
2 years, 5 months ago
Correct Answer: C "security", "coordinated attack", "web applications" => WAF It's a firewall task, not a load balance task. The web application firewall would be placed in front of the ALB.
upvoted 2 times
...
RicardoD
2 years, 5 months ago
C is the answer
upvoted 2 times
...
sasquatchshrimp
2 years, 5 months ago
Since both an ALB and WAF will do it, I assume since the applications are on one EC2 instance, then it would be WAF, not a load balancer. Plus, its more secure and you dont have more than 1 ec2 instance.
upvoted 1 times
...
Umangwalia09
2 years, 5 months ago
Explanation An application load balancer will block malformed requests that do not meet the HTTP specification with a HTTP 400: Bad request error. An ALB can be placed in front of the EC2 web applications and this will prevent the attack from reaching the instances. The ALB attribute “Drop Invalid Header Fields” setting can be used to control if invalid header fields are removed by the load balancer. CORRECT: "Application Load Balancer (ALB)" is the correct answer.
upvoted 1 times
...
Umangwalia09
2 years, 5 months ago
CORRECT: "Application Load Balancer (ALB)" is the correct answer. INCORRECT: "AWS Web Application Firewall (WAF)" is incorrect. AWS WAF cannot be used to protect EC2 instances directly. It can be used in front of CloudFront distributions, ALBs and API Gateways.
upvoted 2 times
...
hdbs
2 years, 5 months ago
Answer is D.
upvoted 1 times
...
Anderson01
2 years, 5 months ago
C is correct: You can research the keyword: "HTTP header" at this page: https://aws.amazon.com/waf/
upvoted 1 times
srle
2 years, 5 months ago
can't be... you can't add WAF in front of the EC2, you can configure it with cloudfront, alb, api gw and appsync. so the answer is D.
upvoted 1 times
...
...
PKss
2 years, 6 months ago
C. https://aws.amazon.com/premiumsupport/knowledge-center/waf-block-common-attacks/
upvoted 1 times
...
HVarada
2 years, 6 months ago
Answer "C". WAF is born for that, lol..
upvoted 3 times
...
dozymars
2 years, 6 months ago
Answer is C https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html
upvoted 1 times
sapien45
2 years, 5 months ago
accoring to your link : vAWS WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to an Amazon CloudFront distribution, an Amazon API Gateway REST API, an Application Load Balancer, or an AWS AppSync GraphQL API
upvoted 1 times
...
...
abhishek_m_86
2 years, 6 months ago
C. AWS WAF Seem correct
upvoted 2 times
...
mikey20
2 years, 6 months ago
lets toss a coin who is right - half of you say c and exactly other half d
upvoted 3 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