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

Exam 1Y0-340 All Questions

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

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
patpatty
3 years, 10 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 ...