F5
101 · Question #67
101 Question #67: Real Exam Question with Answer & Explanation
The correct answer is A: The iRule event declaration determines the context.. In F5 BIG-IP iRules, the event declaration such as 'when HTTP_REQUEST' implicitly sets the context, which determines which commands and variables are accessible within that iRule block.
Question
Which statement is true concerning iRule context?
Options
- AThe iRule event declaration determines the context.
- Bthe context must be explicitly declared.
- CThe rule command determines the context.
- DThe results of the iRule's conditional statement determines the context.
Explanation
In F5 BIG-IP iRules, the event declaration such as 'when HTTP_REQUEST' implicitly sets the context, which determines which commands and variables are accessible within that iRule block.
Common mistakes.
- B. Context does not require explicit declaration; it is automatically and implicitly established the moment the specified event fires and the corresponding iRule block begins executing.
- C. The 'rule' keyword defines the iRule object itself but does not establish context; only the specific 'when <EVENT>' declaration within the rule determines the available command context.
- D. Conditional statements inside an iRule control the execution path but cannot change or override the context that was already established by the surrounding event declaration.
Concept tested. F5 iRule event context and command availability
Community Discussion
No community discussion yet for this question.