201 · Question #348
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 contain at least one event declaration to specify when its associated logic should be triggered.
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
(32 responses)- A3% (1)
- B94% (30)
- C3% (1)
Why each option
A functional iRule must contain at least one event declaration to specify when its associated logic should be triggered.
iRules are based on Tool Command Language (Tcl), an open-source scripting language, not a proprietary syntax language.
iRules are event-driven scripts that execute specific Tcl code in response to network events like `CLIENT_ACCEPTED` or `HTTP_REQUEST`. An event declaration is fundamental as it defines when the iRule's logic is applied to the traffic flow, without which the iRule would never be triggered.
While many iRules use conditional statements for logic, it's not a mandatory requirement for functionality; a simple iRule might perform an action unconditionally.
Not all iRules assign a pool; an iRule can perform various actions like logging, HTTP header modification, or redirection without ever directly selecting a pool.
Concept tested: iRule event-driven architecture
Source: https://clouddocs.f5.com/api/irules/
Topics
Community Discussion
No community discussion yet for this question.