exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 347 discussion

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?

  • A. Add a Host header to the HTTP server log configuration file.
  • B. Install the Amazon CloudWatch Logs agent on each EC2 instance. Configure the agent to write to the log file.
  • C. Install the AWS X-Ray daemon on each EC2 instance. Configure the daemon to write to the log file.
  • D. Add an X-Forwarded-For header to the HTTP server log configuration file.
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
608064a
Highly Voted 11 months, 2 weeks ago
Selected Answer: D
D. Add an X-Forwarded-For header to the HTTP server log configuration file. The `X-Forwarded-For` header is used to capture the original client IP address when requests are routed through a load balancer like the ALB.
upvoted 5 times
...
cachac
Most Recent 10 months ago
Selected Answer: D
X-Forwarded-For: This header helps you accurately determine the public IP address of the client
upvoted 1 times
...
65703c1
11 months, 1 week ago
Selected Answer: D
D is the correct answer.
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