PCCSE · Question #217
Given the following information, which twistcli command should be run if an administrator were to exec into a running container and scan it from within using an access token for authentication?…
The correct answer is C. twistcli images scan --address https://prisma-console.mydomain.local --token TOKEN_VALUE --. The correct twistcli syntax uses '--address' (not '--console-address') to specify the Console URL, and '--token' (not '--auth-token') to pass the authentication token. Answer C uses both correct flags: 'twistcli images scan --address https://prisma-console.mydomain.local…
Question
Given the following information, which twistcli command should be run if an administrator were to exec into a running container and scan it from within using an access token for authentication?
- Console is located at https://prisma-console.mydomain.local
- Token is: TOKEN_VALUE
- Report ID is: REPORT_ID
- Container image running is: myimage:latest
Options
- Atwistcli images scan --address https://prisma-console.mydomain.local --token TOKEN_VALUE --
- Btwistcli images scan --console-address https://prisma-console.mydomain.local --auth-token
- Ctwistcli images scan --address https://prisma-console.mydomain.local --token TOKEN_VALUE --
- Dtwistcli images scan --console-address https://prisma-console.mydomain.local --auth-token
How the community answered
(36 responses)- A11% (4)
- B3% (1)
- C78% (28)
- D8% (3)
Explanation
The correct twistcli syntax uses '--address' (not '--console-address') to specify the Console URL, and '--token' (not '--auth-token') to pass the authentication token. Answer C uses both correct flags: 'twistcli images scan --address https://prisma-console.mydomain.local --token TOKEN_VALUE'. When executing from inside a running container, the scan is performed against the container's own filesystem. Options A and C both use '--address' and '--token', but C correctly includes all required parameters in the right order. Options B and D use the wrong flag names ('--console-address' and '--auth-token'), which are not valid twistcli flags and would cause the command to fail.
Topics
Community Discussion
No community discussion yet for this question.