201 · Question #85
A virtual server is listening at 10.10.1.100:80 and has the following iRule associated with it: when HTTP_REQUEST { if { [HTTP::header UserAgent] contains "MSIE" } { pool MSIE_pool } else specify a…
The correct answer is B. Mozilla_pool. The iRule explicitly directs traffic with 'MSIE' in the User-Agent header to MSIE_pool; otherwise, the question implies an alternative pool assignment. Given the correct answer, the request is directed to Mozilla_pool when the 'MSIE' condition is not met.
Question
A virtual server is listening at 10.10.1.100:80 and has the following iRule associated with it: when HTTP_REQUEST { if { [HTTP::header UserAgent] contains "MSIE" } { pool MSIE_pool } else specify a UserAgent, which pool will receive the request.
Options
- AMSIE_pool
- BMozilla_pool
- CNone. The request will be dropped.
- DUnknown. The pool cannot be determined from the information provided.
How the community answered
(60 responses)- A10% (6)
- B83% (50)
- C2% (1)
- D5% (3)
Why each option
The iRule explicitly directs traffic with 'MSIE' in the User-Agent header to `MSIE_pool`; otherwise, the question implies an alternative pool assignment. Given the correct answer, the request is directed to `Mozilla_pool` when the 'MSIE' condition is not met.
`MSIE_pool` would only be used if the `User-Agent` header *contained* 'MSIE', which is not the case for this request as implied by the 'else' scenario.
Although the iRule snippet explicitly defines a pool for 'MSIE' User-Agent, the question implies an `else` condition where, if the User-Agent does not contain 'MSIE', a different pool is assigned. Given that 'Mozilla_pool' is the correct answer, it must be the intended fallback pool for requests not originating from an 'MSIE' browser.
The request would not necessarily be dropped; typically, if no iRule pool assignment occurs, the virtual server's default pool is used if configured.
While the iRule as written is incomplete, the correct answer 'Mozilla_pool' implies an unstated but intended logical path for requests not matching the 'MSIE' condition.
Concept tested: iRule conditional pool selection based on HTTP headers
Source: https://clouddocs.f5.com/api/irules/HTTP__header.html
Topics
Community Discussion
No community discussion yet for this question.