Topic 1 Question 347
A developer is writing an application to analyze the traffic to a fleet of Amazon EC2 instances. The EC2 instances run behind a public Application Load Balancer (ALB). An HTTP server runs on each of the EC2 instances, logging all requests to a log file.
The developer wants to capture the client public IP addresses. The developer analyzes the log files and notices only the IP address of the ALB.
What must the developer do to capture the client public IP addresses in the log file?
Add a Host header to the HTTP server log configuration file.
Install the Amazon CloudWatch Logs agent on each EC2 instance. Configure the agent to write to the log file.
Install the AWS X-Ray daemon on each EC2 instance. Configure the daemon to write to the log file.
Add an X-Forwarded-For header to the HTTP server log configuration file.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: D
D. Add an X-Forwarded-For header to the HTTP server log configuration file.
The
X-Forwarded-Forheader is used to capture the original client IP address when requests are routed through a load balancer like the ALB.👍 5608064a2024/05/19 - 正解だと思う選択肢: D
D is the correct answer.
👍 165703c12024/05/24 - 正解だと思う選択肢: D
X-Forwarded-For: This header helps you accurately determine the public IP address of the client
👍 1cachac2024/06/30
シャッフルモード