Complete the code to trigger vulnerability scanning on a Google Cloud container image.
gcloud container images scan [1]The command scans the image by its digest to ensure the exact image is scanned for vulnerabilities.
Complete the command to list vulnerability scans for a container image in Google Cloud.
gcloud container images [1] gcr.io/my-project/my-image@sha256:abc123 --format=jsonThe 'list-vulnerabilities' command shows vulnerability scan results for the specified image.
Complete the command to trigger vulnerability scanning on a container image.
gcloud container images [1] gcr.io/my-project/my-image:latestThe correct subcommand to trigger scanning is 'scan'. Other options are invalid commands.
Fill in the blank to create a filter that lists only HIGH severity vulnerabilities for a container image.
gcloud container images list-vulnerabilities gcr.io/my-project/my-image@sha256:abc123 --filter='severity[1]HIGH'
The filter uses 'severity==HIGH' to specify exact match on HIGH severity.
Fill all three blanks to create a command that lists vulnerability scan results in JSON format.
gcloud container images [1] gcr.io/my-project/my-image@sha256:abc123 --[2] json --[3]
The command lists vulnerabilities, formats output as JSON, and uses quiet mode to suppress prompts.