Exam 301b All QuestionsBrowse all questions from this exam
Question 76

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?

    Correct Answer: B

    The iRule checks if both [HTTP::username] and [HTTP::password] are provided. If both credentials are present, it logs the client's IP address and credentials. If either credential is missing, the request is directed to the 'old_application_pool'. This means clients without credentials are directed to the old_application_pool, and clients with credentials are simply logged and use the default pool, which is 'new_application_pool'.

Discussion
GVKDOption: B

B - Correct