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
- A. Allows clients with credentials to access the old_application_pool and logs the access of clients without credentials to the new_application_pool.
- B. Allows clients without credentials to access the old_application_pool and logs the access of clients with credentials to the new_application_pool.
- C. Allows clients with credentials to access the old_application_pool and logs the attempted access of clients with credentials to the new_application_pool.
- D. Allows clients without credentials to access the old_application_pool and logs the attempted access of clients without credentials to the new_application_pool.
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.