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

A virtual server for a set of web services is constructed on an LTM device. The LTM Specialist has created an iRule and applied this iRule to the virtual server: when HTTP_REQUEST { switch [HTTP::uri] {

"/ws1/ws.jsp" {

log local0. "[HTTP::uri]-Redirected to JSP Pool"

pool JSP

}

default { log local0. "[HTTP::uri]-Redirected to Non-JSP Pool" pool NonJSP

}

}

}

However, the iRule is NOT behaving as expected. Below is a snapshot of the log:

/WS1/ws.jsp-Redirected to JSP Pool

/WS1/ws.jsp-Redirected to JSP Pool

/WS1/ws.jsp-Redirected to JSP Pool

/WS1/WS.jsp-Redirected to Non-JSP Pool

/ws1/WS.jsp-Redirected to Non-JSP Pool

/WS1/ws.jsp-Redirected to JSP Pool

/ws1/ws.jsp-Redirected to Non-JSP Pool

What should the LTM Specialist do to resolve this?

    Correct Answer: B

    The issue described is due to case sensitivity in the URI matching. The snapshot of the log indicates that URIs with different cases are being matched differently, leading to inconsistent pool redirection. Using the switch command with the 'string tolower' function ensures all URIs are converted to lowercase before evaluation, eliminating case sensitivity issues and providing consistent behavior regardless of the case of the incoming request URI.

Discussion
GVKDOption: B

B - Correct