Exam 301b All QuestionsBrowse all questions from this exam
Question 31

A web application requires knowledge of the client's true IP address for logging and analysis purposes. Instances of the application that can decode X-

Forwarded-For HTTP headers reside in pool_a, while pool_b instances assume the source IP is the true address of the client.

Which iRule provides the proper functionality?

    Correct Answer: C

    The iRule needs to check for the presence of the X-Forwarded-For header at the time of an HTTP request to determine which pool to direct traffic to. The 'when HTTP_REQUEST' event is triggered when an HTTP request is received, making it the appropriate event to check for this header. If the header exists, the request should be directed to pool_a; if it does not, to pool_b. The other options are incorrect because they either use inappropriate events (HTTP_DATA, HTTP_RESPONSE, or HTTP_OPEN) which do not align with the correct timing for checking headers in an incoming request.

Discussion
GVKDOption: C

C - Correct