SCS-C02 · Question #23
SCS-C02 Question #23: Real Exam Question with Answer & Explanation
The correct answer is B: Configure CloudFront to add a custom HTTP header to requests that CloudFront sends to the. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/example-function-add- true-client-ip-header.html https://aws.amazon.com/blogs/security/three-most-important-aws-waf-rate-based-rules/
Question
A company's public Application Load Balancer (ALB) recently experienced a DDoS attack. To mitigate this issue, the company deployed Amazon CloudFront in front of the ALB so that users would not directly access the Amazon EC2 instances behind the ALB. The company discovers that some traffic is still coming directly into the ALB and is still being handled by the EC2 instances. Which combination of steps should the company take to ensure that the EC2 instances will receive traffic only from CloudFront? (Choose two.)
Options
- AConfigure CloudFront to add a cache key policy to allow a custom HTTP header that CloudFront
- BConfigure CloudFront to add a custom HTTP header to requests that CloudFront sends to the
- CConfigure the ALB to forward only requests that contain the custom HTTP header.
- DConfigure the ALB and CloudFront to use the X-Forwarded-For header to check client IP
- EConfigure the ALB and CloudFront to use the same X.509 certificate that is generated by AWS
Explanation
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/example-function-add- true-client-ip-header.html https://aws.amazon.com/blogs/security/three-most-important-aws-waf-rate-based-rules/
Community Discussion
No community discussion yet for this question.