Your organization is worried about recent news headlines regarding application…
- User
Your organization is worried about recent news headlines regarding application vulnerabilities in production applications that have led to security breaches. You want to automatically scan your deployment pipeline for vulnerabilities and ensure only scanned and verified containers can run in the environment. What should you do?
A. Use Kubernetes role-based access control (RBAC) as the source of truth for cluster access by granting “container.clusters.get” to limited users. Restrict deployment access by allowing these users to generate a kubeconfig file containing the configuration access to the GKE cluster. B. Use gcloud artifacts docker images describe LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY/IMAGE_ID@sha256:HASH --show-package-vulnerability in your CI/CD pipeline, and trigger a pipeline failure for critical vulnerabilities. C. Enforce the use of Cloud Code for development so users receive real-time security feedback on vulnerable libraries and dependencies before they check in their code. D. Enable Binary Authorization and create attestations of scans.
- Assistant
The best approach to automatically scan your deployment pipeline for vulnerabilities and ensure that only scanned and verified containers can run in your environment is to enable Binary Authorization and create attestations of scans.
Explanation:
Option D: Enable Binary Authorization and create attestations of scans
Binary Authorization is a security feature in Google Kubernetes Engine (GKE) that provides a pipeline to enforce that only trusted container images are deployed. By enabling Binary Authorization, you can set up policies that require container images to be signed and vetted before they are allowed to run in your production environment. Creating attestations of scans ensures that each container image has been scanned for vulnerabilities, and only images that pass these security checks are permitted to be deployed.