Topic 1 Question 221
An application needs to use the IP address of the client in its processing. The application has been moved into AWS and has been placed behind an Application Load Balancer (ALB). However, all the client IP addresses now appear to be the same. The application must maintain the ability to scale horizontally.
Based on this scenario, what is the MOST cost-effective solution to this problem?
Remove the application from the ALB. Delete the ALB and change Amazon Route 53 to direct traffic to the instance running the application.
Remove the application from the ALCreate a Classic Load Balancer in its place. Direct traffic to the application using the HTTP protocol.
Alter the application code to inspect the X-Forwarded-For header. Ensure that the code can work properly if a list of IP addresses is passed in the header.
Alter the application code to inspect a custom header. Alter the client code to pass the IP address in the custom header.
ユーザの投票
コメント(2)
- 正解だと思う選択肢: C
If you need to see external IP address and your app is behind ALB, always use x-forwarded-for https://docs.aws.amazon.com/elasticloadbalancing/latest/application/x-forwarded-headers.html
👍 3didorins2023/10/27 C. Alter the application code to inspect the X-Forwarded-For header. Ensure that the code can work properly if a list of IP addresses is passed in the header.
👍 1Claire_KMT2023/10/28
シャッフルモード