201 · Question #88
Which statement is true concerning a functional iRule.
The correct answer is B. iRules must contain at least one event declaration. A functional iRule must always declare at least one event, as events dictate when the iRule's logic will be executed during traffic processing.
Question
Which statement is true concerning a functional iRule.
Options
- AiRules use a proprietary syntax language.
- BiRules must contain at least one event declaration.
- CiRules must contain at least one conditional statement.
- DiRules must contain at least one pool assignment statement.
How the community answered
(34 responses)- B91% (31)
- C6% (2)
- D3% (1)
Why each option
A functional iRule must always declare at least one event, as events dictate when the iRule's logic will be executed during traffic processing.
iRules are based on the Tcl (Tool Command Language) scripting language, which is an open-source language, not proprietary.
Every iRule must contain at least one event declaration (e.g., `when CLIENT_ACCEPTED`, `when HTTP_REQUEST`). These events define the specific points in the traffic flow lifecycle where the iRule's commands and logic are triggered and executed. Without an event, the iRule would never be invoked by the BIG-IP system.
An iRule does not necessarily require a conditional statement; it could perform actions unconditionally upon an event trigger, such as logging every connection.
An iRule can perform many functions, such as logging or header manipulation, without ever explicitly assigning a pool, as the virtual server itself might have a default pool or the iRule's purpose is not pool selection.
Concept tested: F5 BIG-IP iRule structure and events
Source: https://techdocs.f5.com/en-us/bigip-15-0-0/big-ip-reference-quick-start-guide/irules.html
Topics
Community Discussion
No community discussion yet for this question.