312-97 practice question 12 of 35
(Judi Dench has recently joined an IT company as a DevSecOps engineer. Her organization develops software products and web applications related to…
Full set: 100 questionsThe Anchore Grype tool is used to scan container images and filesystems for vulnerabilities. The command grype initiates a scan. To perform a more comprehensive scan that includes all layers of a container image, not just the squashed final layer, the --scope all-layers flag should be used. This ensures vulnerabilities from base images and intermediate layers are also detected. While the provided option has a syntax error (a trailing period and a missing target), it correctly identifies the essential --scope all-layers flag for a thorough scan as requested. The correct full command syntax would be grype --scope all-layers.
B. grype packages is not a valid command for initiating a vulnerability scan; it is used for listing packages, and the syntax is incorrect.
C. grype packages . is an invalid command. The packages subcommand is for listing packages from a previously generated scan result, not for scanning.
D. grype . is a valid command to scan the current directory's filesystem, but it uses the default 'squashed' scope, which is less comprehensive than 'all-layers' for images.
- Anchore Grype Documentation. (n.d.). README.md. GitHub. Retrieved from https://github.com/anchore/grype. In the "Usage" section, the basic command is shown as grype , and the --scope flag is detailed under the "Configuration" or command-line options section, specifying its use for all-layers scanning.
- Anchore, Inc. (2023). Scanning Container Images. Anchore Documentation. "To scan an image and see vulnerabilities from all layers, not just the final squashed layer, use the --scope all-layers argument: grype --scope all-layers".
Keep practicing
Take the free 312-97 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 312-97 practice questions
- Question 1(Sandra Oliver joined SinClare Soft Pvt. Ltd. as a DevSecOps engineer in January of 2010.…
- Question 2(Robert Wheeler has been working as a DevSecOps engineer in an IT company for the past 5 …
- Question 3(Debra Aniston is a DevSecOps engineer in an IT company that develops software products a…
- Question 4(Craig Kelly has been working as a software development team leader in an IT company over…
- Question 5(Walter O’Brien recently joined as a junior DevSecOps engineer in an IT company located i…
- Question 6(SinCaire is a software development company that develops web applications for various cl…
