nerdexam
F5

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.

Section 2: F5 Solutions and Technology

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)
  • B
    91% (21)
  • C
    4% (1)
  • D
    4% (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.

AiRules use a proprietary syntax language.

iRules are written in Tcl (Tool Command Language) with F5-specific extensions, not a proprietary language invented solely by F5.

BiRules must contain at least one event declaration.Correct

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.

CiRules must contain at least one conditional statement.

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.

DiRules must contain at least one pool assignment statement.

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

#iRules#event declarations#TCL#BIG-IP scripting

Community Discussion

No community discussion yet for this question.

Full 101 Practice