Professional-Cloud-Security-Engineer Exam Questions & Answers
Professional Cloud Security Engineer • Google
100% money-back guarantee
Sample Professional-Cloud-Security-Engineer Questions
Practice with real exam-style questions, each with the verified correct answer and explanation.
Your organization deploys a large number of containerized applications on Google Kubernetes Engine (GKE). Node updates are currently applied manually. Audit findings show that a critical patch has not been installed due to a missed notification. You need to design a more reliable, cloud-first, and scalable process for node updates. What should you do?
To establish a reliable, cloud-native, and scalable process for updating nodes in your GKE clusters, configuring node auto-upgrades within designated maintenance windows is the most effective approach.
Option A: Migrating to a self-managed Kubernetes environment would increase operational overhead and complexity, as your team would be responsible for managing the entire infrastructure, including patching and updates. This contradicts the goal of adopting a cloud-first strategy and does not inherently provide a more reliable update process.
Option B: Developing custom scripts for patch management introduces potential risks and maintenance burdens. Ensuring the reliability, security, and scalability of such scripts can be challenging, and this approach may not align with best practices for managing GKE environments.
Option C: Scheduling daily reboots does not guarantee that nodes will apply the latest patches or updates. Without a mechanism to manage and apply updates, reboots alone are insufficient to maintain node security and compliance.
Option D: Configuring node auto-upgrades ensures that GKE automatically keeps your nodes up-to-date with the latest stable versions, reducing the risk of missed critical patches. By setting maintenance windows, you can control when these upgrades occur, minimizing disruptions to your workloads. This approach leverages GKE's managed services to maintain security and compliance efficiently.
Therefore, Option D is the optimal solution, as it aligns with a cloud-first strategy and leverages GKE's native capabilities to automate and schedule node updates effectively.
Auto-upgrading nodes | Google Kubernetes Engine (GKE)
Maintenance windows and exclusions | Google Kubernetes Engine
Your organization wants to be General Data Protection Regulation (GDPR) compliant You want to ensure that your DevOps teams can only create Google Cloud resources in the Europe regions.
What should you do?
Use the org policy constraint 'Google Cloud Platform - Resource Location Restriction' on your Google Cloud organization node: This organizational policy constraint allows you to restrict the locations where your resources can be created. By setting this constraint to allow only Europe regions, you can ensure compliance with GDPR and other regional regulations.
Implementation: To implement this, you need to configure the organization policy with the constraint constraints/gcp.resourceLocations. You can specify allowed regions such as europe-west1 and europe-west4 to ensure resources are only created in these locations.
Reference
Resource Location Restriction documentation
GDPR compliance on Google Cloud
Your organization is using GitHub Actions as a continuous integration and delivery (Cl/CD) platform. You must enable access to Google Cloud resources from the Cl/CD pipelines in the most secure way.
What should you do?
Challenge:
Ensuring secure access to Google Cloud resources from GitHub Actions CI/CD pipelines without directly managing service account keys.
Workload Identity Federation:
Allows for the delegation of access to Google Cloud resources based on federated identities, such as those from GitHub.
Benefits:
This approach eliminates the need to manage service account keys, reducing the risk of key leakage.
It leverages GitHub's identity provider capabilities to authenticate and authorize access.
Steps to Configure Workload Identity Federation:
Step 1: Create a workload identity pool in Google Cloud.
Step 2: Add GitHub as an identity provider within the pool.
Step 3: Configure the necessary permissions and bindings for the identity pool to allow GitHub Actions to access Google Cloud resources.
Step 4: Update the GitHub Actions workflow to use the identity federation for authentication.
Workload Identity Federation
Configuring Workload Identity Federation with GitHub
You are in charge of migrating a legacy application from your company datacenters to GCP before the current maintenance contract expires. You do not know what ports the application is using and no documentation is available for you to check. You want to complete the migration without putting your environment at risk.
What should you do?
To migrate a legacy application to GCP without knowing what ports it uses and ensuring the environment is secure, the best approach is to use a 'Lift & Shift' method in an isolated project and analyze the traffic using VPC Flow logs. Here's a step-by-step explanation:
Isolated Project:
Create a new, isolated project within your GCP environment to host the legacy application. This isolation ensures that any potential misconfigurations do not affect other projects.
Lift & Shift:
Migrate the application as-is (lift and shift) to the new isolated project. This involves moving the application without altering its architecture.
Enable Internal TCP Traffic:
Configure VPC Firewall rules to allow all internal TCP traffic within the VPC network. This step ensures that the application components can communicate internally without interruption.
Use VPC Flow Logs:
Enable VPC Flow logs to capture information about the traffic to and from your application. VPC Flow logs provide details about the source, destination, port, and protocol of the traffic.
Analyze Traffic:
Analyze the VPC Flow logs to identify the necessary ports and protocols used by the application.
Based on this analysis, create specific firewall rules to allow only the required traffic, thereby tightening security.
Implementation Steps:
Navigate to the VPC network section in the GCP Console.
Create a new VPC or use an existing one, and configure firewall rules to allow internal TCP traffic.
Enable VPC Flow logs from the VPC network settings.
Migrate your application to the new project.
Monitor and analyze the VPC Flow logs to refine your firewall rules.
By following these steps, you can safely migrate the application, understand its network requirements, and secure it appropriately in the new GCP environment.
Google Cloud VPC Documentation
VPC Flow Logs Documentation
A customer deployed an application on Compute Engine that takes advantage of the elastic nature of cloud computing.
How can you work with Infrastructure Operations Engineers to best ensure that Windows Compute Engine VMs are up to date with all the latest OS patches?
Compute Engine doesn't automatically update the OS or the software on your deployed instances. You will need to patch or update your deployed Compute Engine instances when necessary. However, in the cloud it is not recommended that you patch or update individual running instances. Instead it is best to patch the image that was used to launch the instance and then replace each affected instance with a new copy.
Get access to all 318 verified questions with detailed answers.
Unlock All Professional-Cloud-Security-Engineer Questions