301b Exam QuestionsBrowse all questions from this exam

301b Exam - Question 75


An LTM Specialist configures the following iRule on an LTM device: when HTTP_REQUEST { if {[string tolower [HTTP::uri]] contains "/URI1/" } { pool Pool1

}

elseif {[string tolower [HTTP::uri]] contains "/URI2/" } {

pool Pool2

}

elseif {[string tolower [HTTP::uri]] contains "/URI3/" } {

pool Pool3

}

else { pool Pool4}

}

Given the following request: http://www.example.comURI1/index.html?fu=bar&pass=1234

Which pool will be selected by the iRule?

Show Answer
Correct Answer: AD

The iRule checks the URI of the request and converts it to lowercase to ensure case-insensitivity. It then checks if the lowercase URI contains '/uri1/'. Given the request URL http://www.example.comURI1/index.html?fu=bar&pass=1234, the URI part is 'URI1/index.html?fu=bar&pass=1234'. When converted to lowercase, it becomes 'uri1/index.html?fu=bar&pass=1234', which contains '/uri1/'. Therefore, the iRule will select Pool1.

Discussion

1 comment
Sign in to comment
GVKDOption: D
Feb 9, 2024

D - Correct