301B practice question 27 of 30
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…
Full set: 210 questionsThe iRule's switch command performs a case-sensitive string comparison by default. The log file shows that requests with different capitalization (e.g., /WS1/ws.jsp vs. /ws1/ws.jsp) are being processed differently, with some falling into the default block incorrectly. To resolve this, the HTTP::uri value must be converted to a consistent case before the comparison. Using the string tolower command achieves this by converting the incoming URI to all lowercase, ensuring that it will match the lowercase string "/ws1/ws.jsp" in the switch statement regardless of the original capitalization.
A. The -lc flag is not a valid option for the switch command in TCL/iRules, making the syntax invalid.
C. A "Case Sensitivity" option does not exist for pool members; they are defined by IP address and port, which are not case-sensitive.
D. A "Process Case-Insensitivity" option is not a feature available on a standard LTM virtual server object.
- F5 Networks (2021). F5 iRules Home. F5 DevCentral. Retrieved from https://clouddocs.f5.com/api/irules/. See documentation for switch and string tolower commands. The switch command documentation specifies its default behavior is exact, case-sensitive matching.
- F5 Networks (2021). iRules 101 - #02 - Variables and #03 - If and Switch. F5 DevCentral. This article explains the basic operation of the switch command, which follows standard TCL behavior (case-sensitive).
Keep practicing
Take the free 301B practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 301B practice questions
- Question 3An LTM Specialist connects to an LTM device via the serial console cable and receives unr…
- Question 5An LTM Specialist realizes that a datacenter engineer has changed the console baud rate. …
- Question 7An LTM device pair is configured for failover and connection mirroring. The LTM devices a…
- Question 13An LTM Specialist has just manually failed the active LTM device over to the standby LTM …
- Question 17-- Exhibit – -- Exhibit -- Refer to the exhibit. An LTM Specialist has created a virtual …
- Question 19Which command should an LTM Specialist use on the command line interface to show the heal…
