PCCSE · Question #257
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?
The correct answer is A. $ twistcli images scan. The twistcli images scan command supports flags to simultaneously output results to stdout in table format, write a JSON file locally, and send results to the Prisma Cloud Console.
Question
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?
Options
- A$ twistcli images scan
- B$ twistcli images scan
- C$ twistcli images scan
- D$ twistcli images scan
How the community answered
(43 responses)- A91% (39)
- B2% (1)
- C5% (2)
- D2% (1)
Why each option
The twistcli images scan command supports flags to simultaneously output results to stdout in table format, write a JSON file locally, and send results to the Prisma Cloud Console.
The correct invocation combines the '--output-file' flag (to write JSON results to a local file) with '--containerized' or the default table output mode, while still connecting to Console via '--address' and credentials. Option A uses the correct combination of flags that satisfies all three output requirements - tabular stdout, JSON file output, and Console reporting - simultaneously, which distinguishes it from the other options that omit or misuse one of these flags.
This option uses an incorrect or incomplete set of flags that fails to satisfy one of the three required output targets (stdout table, JSON file, or Console).
This option is missing a required flag or uses an incompatible flag combination that prevents one of the three output modes from functioning correctly.
This option does not correctly specify all necessary parameters to achieve tabular stdout output, JSON file writing, and Console result submission simultaneously.
Concept tested: twistcli images scan multi-output flag configuration
Source: https://docs.prismacloud.io/en/compute-edition/22-06/admin-guide/tools/twistcli-scan-images
Topics
Community Discussion
No community discussion yet for this question.