exam questions

Exam 1Y0-340 All Questions

View all questions & answers for the 1Y0-340 exam

Exam 1Y0-340 topic 1 question 38 discussion

Actual exam question from Citrix's 1Y0-340
Question #: 38
Topic #: 1
[All 1Y0-340 Questions]

Scenario: A Citrix Engineer needs to configure an Application Firewall policy for an online shopping website called "mycompany.com". As a security measure, the shopping cart application is hosted on a separate directory "/mycart" on the backend server. The engineer configured a profile to secure the connections to this shopping cart and now needs to ensure that this profile is allied to all incoming connections to the shopping cart.
Which policy expression will accomplish this requirement?

  • A. http.req.url. contains("/mycart") & http:req.url.hostname.eq("mycompany.com")
  • B. http.req.url. contains("/mycart") || http:req.url.hostname.eq("mycompany.com")
  • C. http.req.header ("url").contains ("/mycart") || http.req.url.contains ("mycompany.com")
  • D. http.req.header ("url").contains ("/mycart") && http:req.url.contains ("mycompy.com")
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
pferd
4 years, 7 months ago
Either there is a typo or A wouldn't be allowed as valid syntax
upvoted 2 times
patpatty
4 years, 1 month ago
I believe it's a typo, if we assume it meant "&&" rather than "&" it seems like the best answer
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago