ExamGecko
Question list
Search
Search

List of questions

Search

Question 203 - PCCSE discussion

Report
Export

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?

A.
$ twistcli images scan --address --user --password --stdout-tabular --output-file scan-results.json nginx:latest
Answers
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
Answers
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
Answers
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
Answers
D.
$ twistcli images scan --address --u --p --details --output-file scan-results.json nginx:latest
Suggested answer: C

Explanation:

The correct command to output scan results to stdout in tabular format and write scan results to a JSON file while still sending the results to Console is:

$ twistcli images scan \

--address <console_address> \

--user <username> \

--password \

--output-file scan-results.json \

--publish \

nginx:latest

This command uses the --output-file option to write the scan results to a file and the --publish option to send the results to the Console. The --stdout-tabular option is not necessary as by default, twistcli writes scan results to stdout in a human-readable format. The placeholders <console_address>, <username>, and should be replaced with the actual address of the Console, and the user's credentials12.

Please replace the placeholders with your actual Prisma Cloud Console address and credentials to execute the command successfully. If you have any more questions or need further assistance, feel free to ask.

asked 23/09/2024
John Bascara
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first