Prisma Certified Cloud Security Engineer (PCCSE) — Question 227
Which command correctly outputs scan results to stdout in tabular format and writes scan results to a JSON file while still sending the results to Console?
Answer options
- A. $ twistcli images scan --address --user --password --stdout-tabular --output-file scan-results.json nginx:latest
- B. $ twistcli images scan --address --username --password --details --json-output scan-results.json nginx:latest
- C. $ twistcli images scan --address --user --password --details --file-output scan-results.json nginx:latest
- D. $ twistcli images scan --address --u --p --details --output-file scan-results.json nginx:latest
Correct answer: D
Explanation
Option D is correct because it includes the necessary flags to send output to stdout while also specifying an output file for scan results. The other options either lack the correct stdout format or do not specify the output file correctly for JSON format.