PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice question 12 of 25
You use Artifact Registry to store container images built with Cloud Build. You need to ensure that all existing and new images are continuously scanned for vulnerabilities. You also want to track who pushed each image to the registry. What should you do?
Full set: 205 questionsArtifact Registry provides built-in vulnerability scanning that can be enabled per-repository. This service automatically scans newly pushed images and continuously re-scans existing images for new vulnerabilities. To track who pushed an image, Cloud Audit Logs for Artifact Registry should be used. Specifically, the Data Access audit logs for the google.devtools.artifactregistry.v1.ArtifactRegistry service will record Write events, which include the principal (user or service account) that performed the image upload, providing a clear audit trail.
A. This is incomplete. Artifact Registry's scanning feature also re-scans existing images, not just new ones, which is a key requirement for continuous security.
C. This misses the critical requirement to scan new images upon upload. Relying only on a daily re-scan leaves a window of vulnerability.
D. While possible to build a custom notification system, it is not the native or recommended way to enable scanning or track user activity within Google Cloud.
1. Google Cloud Documentation, "Container scanning overview". "On-demand scanning is a feature of Artifact Analysis. When enabled, it automatically scans for vulnerabilities when you push a new image to Artifact Registry... Artifact Analysis also continuously monitors the metadata for your scanned images for new vulnerabilities."
2. Google Cloud Documentation, "Artifact Registry audit logging". "Google Cloud services write audit logs to help you answer the questions, 'Who did what, where, and when?'... Data Access audit logs contain API calls that read the configuration or metadata of resources, as well as user-driven API calls that create, modify, or read user-provided resource data." The Write operation log entry will contain the authenticationInfo.principalEmail.
Keep practicing
Take the free PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice questions
- Question 1[Building and implementing CI/CD pipelines for a service] You need to enforce several con…
- Question 2You deployed an application into a large Standard Google Kubernetes Engine (GKE) cluster.…
- Question 3You are responding to a high-priority incident where a critical, user-facing payment serv…
- Question 4[Applying Site Reliability Engineering (SRE) principles to a service] You support a user-…
- Question 5You are deploying an application that needs to access sensitive information. You need to …
- Question 6[Building and implementing CI/CD pipelines for a service] You are building an application…
