Your company is deploying a large number of containerized applications to GKE. The existing CI/CD pipeline uses Cloud Build to construct container images, transfers the images to Artifact Registry, and then deploys the images to GKE. You need to ensure that only images that have passed vulnerability scanning and meet specific corporate policies are allowed to be deployed. The process needs to be automated and integrated into the existing CI/CD pipeline. What should you do?
Correct Answer: C
The problem requires ensuring that only images that have passed vulnerability scanning and meet corporate policies are allowed to be deployed to GKE, with the process being automated and integrated into the existing CI/CD pipeline. Binary Authorization: This Google Cloud service is purpose-built to enforce deployment policies on images before they are run on Google Kubernetes Engine (GKE), Cloud Run, and other deployable platforms. It acts as a policy gate that prevents the deployment of non-compliant images. Extract Reference: "Binary Authorization is a deploy-time security control that ensures only trusted container images are deployed on Google Kubernetes Engine (GKE), Cloud Run, and Anthos clusters." and "With Binary Authorization, you can require images to be signed by trusted authorities and enforce validation policies during deployment." (Google Cloud Documentation: "Binary Authorization overview" - https://cloud. google.com/binary-authorization/docs/overview) Artifact Analysis (part of Container Analysis): Artifact Analysis (which includes Container Analysis) provides vulnerability scanning capabilities for container images stored in Artifact Registry. It generates findings and metadata about vulnerabilities. Extract Reference: "Container Analysis is a service that scans your images for known vulnerabilities and provides metadata about them." (Google Cloud Documentation: "Overview | Container Analysis" - https://cloud.google.com/container-analysis/docs/overview) Binary Authorization can be configured to integrate with Artifact Analysis (or other attestors) to check for vulnerability scan results as part of its deployment policy. Integration and Automation: Binary Authorization policies can require attestations before deployment. An attestation confirms that an image meets specific criteria (e.g., it has passed a vulnerability scan, it was signed by an approved CI/CD process, it adheres to corporate policies). Cloud Build can be configured to generate these attestations after a successful vulnerability scan (using Artifact Analysis). This fully automates the process and integrates directly into the CI/CD pipeline. Extract Reference: "With Binary Authorization, you create a policy that enforces your requirements. The policy defines rules that govern deployment. For example, a policy can require all images to be signed by a trusted authority before deployment." (Google Cloud Documentation: "Binary Authorization overview" - https://cloud.google.com/binary-authorization/docs/overview) Let's evaluate the other options: A). Custom script in Cloud Build... Fail the build: While scanning during the build is good practice (shift-left security), failing the build only prevents the image from being pushed. It doesn't prevent a developer or an automated process from manually deploying an old or non-compliant image that might already exist in Artifact Registry, or from bypassing the build system. The enforcement needs to happen at deployment time. B). Configure GKE to use only images from a specific... trusted Artifact Registry repository. Manually inspect all images: Manually inspecting images is not automated and does not scale for a "large number of containerized applications." It also doesn't programmatically enforce vulnerability scan results or corporate policies. D). Enable Artifact Analysis vulnerability scanning and regularly scan images... Remove any images that do not meet... before deployment: This describes scanning and remediation, which are important. However, it's a reactive approach ("remove any images") rather than a proactive enforcement ("only images that... are allowed to be deployed"). There's still a window where a non-compliant image could be deployed before it's removed. Binary Authorization is the enforcement gate. Therefore, configuring Binary Authorization with a policy that integrates with Artifact Analysis (or requires attestations based on its findings) is the most robust, automated, and Google-recommended solution for enforcing deployment policies based on vulnerability scanning and corporate compliance.
You are deploying regulated workloads on Google Cloud. The regulation has data residency and data access requirements. It also requires that support is provided from the same geographical location as where the data resides. What should you do?
Correct Answer: D
Assured Workloads for Google Cloud allows you to deploy regulated workloads with data residency, access, and support requirements. It helps you configure your environment in a manner that aligns with specific compliance frameworks and standards.
A company migrated their entire data/center to Google Cloud Platform. It is running thousands of instances across multiple projects managed by different departments. You want to have a historical record of what was running in Google Cloud Platform at any point in time. What should you do?
Correct Answer: B
To maintain a historical record of what was running in Google Cloud Platform at any point in time, you should use Forseti Security to automate inventory snapshots. Forseti Security is an open-source toolkit that helps to automate security and compliance in GCP by taking inventory snapshots of GCP resources. Step-by-Step: * Install Forseti Security: * Follow the installation guide to deploy Forseti Security on your GCP environment. * Configure Inventory: * Set up the inventory module in Forseti to capture and store snapshots of GCP resources. * Schedule Snapshots: * Use Forseti's configuration to schedule regular inventory snapshots. * Access Historical Data: * Review and access historical records through Forseti's dashboard or by querying the Forseti database. * Compliance and Monitoring: Use Forseti to ensure compliance and monitor changes over time. Forseti Security Overview Inventory Module
You need to create a VPC that enables your security team to control network resources such as firewall rules. How should you configure the network to allow for separation of duties for network resources?
Correct Answer: D
Setting up a Shared VPC allows you to create a centrally managed network that spans multiple projects. Here's how you can achieve this while ensuring separation of duties: * Create a Host Project: * Create a project that will act as the host project for your Shared VPC. * Configure Shared VPC: * In the host project, enable the Shared VPC feature. * Create Service Projects: * Create separate service projects for different teams, such as developers and other stakeholders. * Assign Roles: * Security Team: Grant the Compute Network Admin role. This allows the security team to manage network resources, such as firewall rules, subnets, and routes. * Developers: Share the host project's network with the service projects. Assign roles like Compute Instance Admin to developers in the service projects, enabling them to create and manage VM instances without altering network configurations. * Firewall Management: * The security team will define and manage firewall rules within the host project, ensuring consistent and secure network policies. * Benefits: * Separation of Duties: Security teams handle networking, and developers focus on application deployment and management. * Centralized Control: Network policies are centrally managed, ensuring compliance and security. * Scalability: Easy to add new projects and teams without compromising the overall network security. References * Google Cloud VPC Documentation * Managing Resources with Shared VPC
A business unit at a multinational corporation signs up for GCP and starts moving workloads into GCP. The business unit creates a Cloud Identity domain with an organizational resource that has hundreds of projects. Your team becomes aware of this and wants to take over managing permissions and auditing the domain resources. Which type of access should your team grant to meet this requirement?
Correct Answer: C
Here are the permissions available to organizationRoleAdmin iam.roles.create iam.roles.delete iam.roles.undelete iam.roles.get iam.roles.list iam.roles.update resourcemanager.projects.get resourcemanager.projects.getIamPolicy resourcemanager.projects.list resourcemanager.organizations.get resourcemanager.organizations.getIamPolicy There are sufficient as per least privilege policy. You can do user management as well as auditing. https://cloud.google.com/iam/docs/understanding-custom-roles