Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 1Y0-340 topic 1 question 37 discussion

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

A Citrix Engineer needs to configure an application firewall profile to ensure that the images uploaded on the website are NOT malicious. The engineer needs to create a policy to filter the upload requests and ensure that they are in JPEG format.
Which expression can the engineer use to fulfill this requirement?

  • A. http.req.url.endswith (".jpeg) & & http.req.method.eq (POST)
  • B. http.req.url.contains (".jpeg) & & http.req.method.eq (GET)
  • C. http.req.url.endswith (".jpeg) || http.req.method.eq (GET)
  • D. http.req.header ("Content-Type").contains ("image/jpeg") || http.req.method.eq(POST)
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
patpatty
3 years, 2 months ago
Not sure about this. A uses the AND condition, which I think is necessary because we want to filter out uploads that are also JPEGs--not one or the other. But checking the content-type field of the packet header seems smarter to me than the end of the url, so that's an argument for D.
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 ...