F5 BIG-IP LTM Specialist: Maintain and Troubleshoot — Question 96
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?
Answer options
- A. Pool1
- B. Pool2
- C. Pool3
- D. Pool4
Correct answer: D
Explanation
The request does not contain a slash before 'URI1', so the string match for '/URI1/' fails, and no other conditions are met for '/URI2/' or '/URI3/'. Therefore, the request defaults to 'pool Pool4', which is the correct response. Options A, B, and C are incorrect because the conditions for those pools are not satisfied.