Palo Alto Networks Certified Security Automation Engineer (PCSAE) — Question 25

What is the correct expression to use when filtering only PDF files?

Answer options

Correct answer: D

Explanation

The correct answer is D, as it accurately specifies that the file extension must exactly equal 'PDF', ensuring only PDF files are selected. Options A and B are incorrect because they either exclude PDF files or check the file name instead of the extension. Option C is also wrong, as it uses 'contains' which does not ensure the file is exclusively a PDF.