nerdexam
(ISC)2

301B · Question #54

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]…

The correct answer is B. Allows clients without credentials to access the old_application_pool and logs the access of clients with credentials to the new_application_pool. See the full explanation below for the reasoning.

Question

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?

Options

  • AAllows clients with credentials to access the old_application_pool and logs the access of clients without credentials to the new_application_pool.
  • BAllows clients without credentials to access the old_application_pool and logs the access of clients with credentials to the new_application_pool.
  • CAllows clients with credentials to access the old_application_pool and logs the attempted access of clients with credentials to the new_application_pool.
  • DAllows clients without credentials to access the old_application_pool and logs the attempted access of clients without credentials to the new_application_pool.

How the community answered

(46 responses)
  • A
    4% (2)
  • B
    85% (39)
  • C
    9% (4)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 301B Practice