101 · Question #221
Which statement is true concerning a functional iRule.
The correct answer is B. iRules must contain at least one event declaration.. A functional F5 iRule requires at least one event declaration to define when the iRule logic should execute on the BIG-IP system.
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
(23 responses)- B91% (21)
- C4% (1)
- D4% (1)
Why each option
A functional F5 iRule requires at least one event declaration to define when the iRule logic should execute on the BIG-IP system.
iRules are written in Tcl (Tool Command Language) with F5-specific extensions, not a proprietary language invented solely by F5.
iRules are event-driven scripts, and every functional iRule must include at least one event declaration such as 'when CLIENT_ACCEPTED' or 'when HTTP_REQUEST' to specify the trigger point for execution. Without an event declaration, the BIG-IP has no context for when to invoke the iRule commands, making it non-functional.
Conditional statements are optional; a simple iRule can perform an unconditional action such as logging or a static pool assignment inside an event block without any if/else logic.
Pool assignment statements are not required; an iRule may perform other actions such as HTTP header insertion, redirects, or logging without ever assigning traffic to a pool.
Concept tested: F5 iRule event declaration as functional requirement
Source: https://techdocs.f5.com/en-us/bigip-16-1-0/irules-reference/irules-concepts.html
Topics
Community Discussion
No community discussion yet for this question.