nerdexam
Citrix

1Y0-351 · Question #236

Scenario: A NetScaler Engineer has discovered that the object home.php is NOT found in the cache on the system. Below is the relevant configuration: add cache contentGroup cache_content_group_1…

The correct answer is D. The content group has been configured with relExpiry 0. See the full explanation below for the reasoning.

Question

Scenario: A NetScaler Engineer has discovered that the object home.php is NOT found in the cache on the system. Below is the relevant configuration:

add cache contentGroup cache_content_group_1 -relExpiry 0 add cache policy cache_pol_1 -rule "http.REQ.URL.CONTAINS("home.php")" -action MAY_CACHE -storeInGroup cache_content_group_1 add cache policy cache_pol_2 -rule "http.REQ.METHOD.EQ("GET")" - action NOCACHE add cache policy cache_pol_3 -rule "HTTP.RES.HEADER("Set- Cookie").EXISTS" -action CACHE bind cache global cache_pol_1 -priority 90 -gotoPriorityExpression END -type REQ_OVERRIDE bind cache global cache_pol_2 -priority 100 -gotoPriorityExpression END -type REQ_OVERRIDE bind cache global cache_pol_3 -priority 100 -gotoPriorityExpression END -type RES_OVERRIDE The data from the client and the server are as following:

GET /home.php HTTP/1.1 User-Agent: Mozilla Firefox/3.0.3 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Date: Thu, 09 Oct 2014 18:25:00 GMT Cookie: sessionid=100xyz HTTP/1.1 200 OK Date: Thu, 09 Oct 2014 18:25:00 GMT Server: Apache/2.2.3 (Fedora) Last-Modified: Wed, 09 Jul 2014 21:55:36 GMT ETag: "27db3c-12ce-5e52a600" Accept-Ranges: bytes Cache-Control: private, max-age=0 Set-Cookie: sessionid=100xyz; expires=Thu, 09-Oct-2014 18:30:00 GMT; path=/ Content-Length: 119 Connection: close Content-Type: text/html; charset=UTF-8 Why does the object NOT persist in the cache?

Options

  • AThe request is a GET request.
  • BThe response has Set-Cookie.
  • CThe content group is missing a cache selector.
  • DThe content group has been configured with relExpiry 0.

How the community answered

(60 responses)
  • A
    10% (6)
  • B
    3% (2)
  • C
    2% (1)
  • D
    85% (51)

Community Discussion

No community discussion yet for this question.

Full 1Y0-351 Practice