Palo Alto Networks Certified Security Automation Engineer (PCSAE) — Question 25
What is the correct expression to use when filtering only PDF files?
Answer options
- A. Use File.Extension that does not equal (string comparison) PDF
- B. Use File.Name contains PDF
- C. Use File.Extension contains (general) PDF
- D. Use File.Extension equals (string comparison) PDF
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.