exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 253 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 253
Topic #: 1
[All Professional Cloud Developer Questions]

You are reviewing and updating your Cloud Build steps to adhere to best practices. Currently, your build steps include:

1. Pull the source code from a source repository.
2. Build a container image
3. Upload the built image to Artifact Registry.

You need to add a step to perform a vulnerability scan of the built container image, and you want the results of the scan to be available to your deployment pipeline running in Google Cloud. You want to minimize changes that could disrupt other teams’ processes. What should you do?

  • A. Enable Binary Authorization, and configure it to attest that no vulnerabilities exist in a container image.
  • B. Upload the built container images to your Docker Hub instance, and scan them for vulnerabilities.
  • C. Enable the Container Scanning API in Artifact Registry, and scan the built container images for vulnerabilities.
  • D. Add Artifact Registry to your Aqua Security instance, and scan the built container images for vulnerabilities.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
wanrltw
1 year ago
Selected Answer: A
I'm not so sure about C because the task is to add a STEP to our Cloud Build pipeline to perform the vulnerability scan, whereas C implies more doing the job via Cloud Console. Why would we enable the Container Scanning API in Artifact Registry every time we run the pipeline? This scenario is similar to what we have in question #252. I'd go with A: https://cloud.google.com/binary-authorization/docs/creating-attestations-kritis
upvoted 1 times
...
__rajan__
1 year, 2 months ago
Selected Answer: C
C is correct.
upvoted 1 times
...
purushi
1 year, 4 months ago
Selected Answer: C
C is right. Requirement is to perform a vulnerability scan of the built container image. C states Enable the Container Scanning API in Artifact Registry, and scan the built container images for vulnerabilities. Further steps for better security would be to follow option A.
upvoted 1 times
...
Pime13
1 year, 9 months ago
Selected Answer: C
i choose C
upvoted 2 times
...
mrvergara
1 year, 10 months ago
Selected Answer: C
Enabling the Container Scanning API in Artifact Registry and scanning the built container images is a best practice because it allows you to perform security scans within the same environment where the built images are stored. This helps minimize the changes that could disrupt other teams' processes, as the images are already in Artifact Registry, and the scanning results can be easily accessed by the deployment pipeline in Google Cloud. Additionally, the Container Scanning API integrates with Google Cloud security and governance tools, allowing you to enforce security policies and manage vulnerabilities in a centralized and automated way.
upvoted 2 times
...
TNT87
1 year, 10 months ago
Selected Answer: C
https://cloud.google.com/container-analysis/docs/automated-scanning-howto#view_the_image_vulnerabilities
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...