nerdexam
AmazonAmazon

DVA-C02 · Question #361

DVA-C02 Question #361: Real Exam Question with Answer & Explanation

Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #361. The question stem and answer options stay visible for context.

Submitted by packet_pusher· Mar 5, 2026Development with AWS Services

Question

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?

Options

  • AAdd a Host header to the HTTP server log configuration file.
  • BInstall the Amazon CloudWatch Logs agent on each EC2 instance. Configure the agent to write to
  • CInstall the AWS X-Ray daemon on each EC2 instance. Configure the daemon to write to the log
  • DAdd an X-Forwarded-For header to the HTTP server log configuration file.

Unlock DVA-C02 to see the answer

You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full DVA-C02 PracticeBrowse All DVA-C02 Questions