PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #229
Your organization is transitioning to Google Cloud. You want to ensure that only trusted container images are deployed on Google Kubernetes Engine (GKE) clusters in a project. The containers must be…
The correct answer is B. Configure the trusted image organization policy constraint for the project. E. Configure the Binary Authorization policy with respective attestations for the project. To ensure only trusted and signed container images are deployed on GKE clusters from a centrally managed Container Registry, you should configure the trusted image organization policy constraint and set up a Binary Authorization policy with attestations for the project.
Question
Options
- AEnable Container Threat Detection in the Security Command Center (SCC) for the project.
- BConfigure the trusted image organization policy constraint for the project.
- CCreate a custom organization policy constraint to enforce Binary Authorization for Google
- DEnable PodSecurity standards, and set them to Restricted.
- EConfigure the Binary Authorization policy with respective attestations for the project.
How the community answered
(32 responses)- A6% (2)
- B78% (25)
- C13% (4)
- D3% (1)
Why each option
To ensure only trusted and signed container images are deployed on GKE clusters from a centrally managed Container Registry, you should configure the trusted image organization policy constraint and set up a Binary Authorization policy with attestations for the project.
Container Threat Detection helps identify vulnerabilities and threats in containers at runtime, but it does not enforce a policy to prevent untrusted images from being deployed in the first place.
The trusted image organization policy constraint (specifically `constraints/container.allowedImages`) allows you to define a list of trusted Container Registry paths from which images can be deployed. This ensures that only images from your centrally managed registry are permitted, preventing deployments from untrusted sources.
While you *could* create a custom organization policy, `constraints/container.allowedImages` is a pre-defined and more direct constraint for controlling image sources, and Binary Authorization itself is a specific service, not typically enforced via a *custom* org policy constraint for its core functionality.
PodSecurity standards define baseline and restricted security profiles for pods, addressing various security concerns (e.g., privilege escalation, hostPath mounts) but do not directly enforce that images must come from a trusted registry or be cryptographically signed.
Binary Authorization enforces deployment-time security by requiring images to be signed by trusted authorities (attestors) before they can be deployed to GKE. You configure a Binary Authorization policy for the project, which specifies the attestors and their attestations that must be present for an image to be considered deployable, thereby verifying the image's integrity and source.
Concept tested: Binary Authorization and trusted image policies for GKE
Source: https://cloud.google.com/binary-authorization/docs/overview
Topics
Community Discussion
No community discussion yet for this question.