F5 BIG-IP LTM Specialist: Maintain and Troubleshoot — Question 97

Given the iRule:
when HTTP_REQUEST {
if {([HTTP::username] ne "") and ([HTTP::password] ne "") } { log local0. "client ip [IP::remote_addr] credentials provided [HTTP::username] [HTTP::password]"} else { pool old_application_pool
}
}
The associated virtual server has a default pool named new_application_pool.
Which functionality does the iRule provide?

Answer options

Correct answer: B

Explanation

The correct answer is B because the iRule checks for the presence of credentials and directs clients without them to the old_application_pool while logging those with credentials. The other options incorrectly describe the behavior of the iRule regarding access and logging.