[Aug-2026] Google Cloud Certified Professional-Cloud-Security-Engineer Exam Practice Test Questions Dumps Bundle! [Q24-Q49]

Share

[Aug-2026] Google Cloud Certified Professional-Cloud-Security-Engineer Exam Practice Test Questions Dumps Bundle!

2026 Updated Professional-Cloud-Security-Engineer PDF for the Professional-Cloud-Security-Engineer Tests Free Updated Today!


Google Professional-Cloud-Security-Engineer certification exam is designed for professionals who want to demonstrate their expertise in securing Google Cloud Platform (GCP) services and infrastructure. Professional-Cloud-Security-Engineer exam covers a range of security topics, including network security, identity and access management, data protection, and compliance. It is intended for security professionals who have experience working with GCP and want to demonstrate their skills to employers and clients.

 

NEW QUESTION # 24
You have stored company approved compute images in a single Google Cloud project that is used as an image repository. This project is protected with VPC Service Controls and exists in the perimeter along with other projects in your organization. This lets other projects deploy images from the image repository project. A team requires deploying a third-party disk image that is stored in an external Google Cloud organization. You need to grant read access to the disk image so that it can be deployed into the perimeter.
What should you do?

  • A. * 1 Update the perimeter
    * 2 Configure the egressTo field to set identity Type to any_identity.
    * 3 Configure the egressFrom field to include the external Google Cloud project number as an allowed resource and the serviceName to compute. googleapis. com.
  • B. * 1 Update the perimeter
    * 2 Configure the egressTo field to include the external Google Cloud project number as an allowed resource and the serviceName to compute. googleapis. com.
    * 3 Configure the egressFrom field to set identity Type to any_idestity.
  • C. * 1 Update the perimeter
    * 2 Configure the ingressFrcm field to set identityType to an-y_identity.
    * 3 Configure the ingressTo field to include the external Google Cloud project number as an allowed resource and the serviceName to compute.googleapis -com.
  • D. * Allow the external project by using the organizational policy
    constraints/compute.trustedlmageProjects.

Answer: A


NEW QUESTION # 25
Your organization develops software involved in many open source projects and is concerned about software supply chain threats. You need to deliver provenance for the build to demonstrate the software is untampered.
What should you do?

  • A. 1. Publish the software code on GitHub as open source.
    2. Establish a bug bounty program, and encourage the open source community to review, report, and fix the vulnerabilities.
  • B. 1. Generate Supply Chain Levels for Software Artifacts (SLSA) level 3 assurance by using Cloud Build.
    2. View the build provenance in the Security insights side panel within the Google Cloud console.
  • C. 1. Review the software process.
    2. Generate private and public key pairs and use Pretty Good Privacy (PGP) protocols to sign the output software artifacts together with a file containing the address of your enterprise and point of contact.
    3. Publish the PGP signed attestation to your public web page.
  • D. 1. Hire an external auditor to review and provide provenance.
    2. Define the scope and conditions.
    3. Get support from the Security department or representative.
    4. Publish the attestation to your public web page.

Answer: B

Explanation:
https://cloud.google.com/build/docs/securing-builds/view-build-provenance


NEW QUESTION # 26
You are setting up a CI/CD pipeline to deploy containerized applications to your production clusters on Google Kubernetes Engine (GKE). You need to prevent containers with known vulnerabilities from being deployed. You have the following requirements for your solution:
- Must be cloud-native
- Must be cost-efficient
- Minimize operational overhead
How should you accomplish this? (Choose two.)

  • A. In your CI/CD pipeline, add an attestation on your container image when no vulnerabilities have been found. Use a Binary Authorization policy to block deployments of containers with no attestation in your cluster.
  • B. Create a Cloud Build pipeline that will monitor changes to your container templates in a Cloud Source Repositories repository. Add a step to analyze Container Analysis results before allowing the build to continue.
  • C. Deploy Jenkins on GKE and configure a CI/CD pipeline to deploy your containers to Container Registry. Add a step to validate your container images before deploying your container to the cluster.
  • D. Use a Cloud Function triggered by log events in Google Cloud's operations suite to automatically scan your container images in Container Registry.
  • E. Use a cron job on a Compute Engine instance to scan your existing repositories for known vulnerabilities and raise an alert if a non-compliant container image is found.

Answer: A,B

Explanation:
On-demand container analysis can be integrated into a Cloud Build Pipeline:
https://cloud.google.com/container-analysis/docs/ods-cloudbuild
Also binary attestation is a complementary mechanism "cloud-native".


NEW QUESTION # 27
Your security team wants to reduce the risk of user-managed keys being mismanaged and compromised. To achieve this, you need to prevent developers from creating user-managed service account keys for projects in their organization. How should you enforce this?

  • A. Enable an organization policy to prevent service account keys from being created.
  • B. Remove the iam.serviceAccounts.getAccessToken permission from users.
  • C. Configure Secret Manager to manage service account keys.
  • D. Enable an organization policy to disable service accounts from being created.

Answer: A

Explanation:
Explanation
https://cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys
"To prevent unnecessary usage of service account keys, use organization policy constraints: At the root of your organization's resource hierarchy, apply the Disable service account key creation and Disable service account key upload constraints to establish a default where service account keys are disallowed. When needed, override one of the constraints for selected projects to re-enable service account key creation or upload."


NEW QUESTION # 28
Your security team uses encryption keys to ensure confidentiality of user data. You want to establish a process to reduce the impact of a potentially compromised symmetric encryption key in Cloud Key Management Service (Cloud KMS).
Which steps should your team take before an incident occurs? (Choose two.)

  • A. Disable and revoke access to compromised keys.
  • B. Enable automatic key version rotation on a regular schedule.
  • C. Limit the number of messages encrypted with each key version.
  • D. Disable the Cloud KMS API.
  • E. Manually rotate key versions on an ad hoc schedule.

Answer: B,C

Explanation:
Explanation
As per document "Limiting the number of messages encrypted with the same key version helps prevent attacks enabled by cryptanalysis." https://cloud.google.com/kms/docs/key-rotation


NEW QUESTION # 29
Your company is moving to Google Cloud. You plan to sync your users first by using Google Cloud Directory Sync (GCDS). Some employees have already created Google Cloud accounts by using their company email addresses that were created outside of GCDS. You must create your users on Cloud Identity.
What should you do?

  • A. Configure GCDS and use GCDS search rules lo sync these users.
  • B. Use the transfer tool to migrate unmanaged users.
  • C. Write a custom script to identify existing Google Cloud users and call the Admin SDK Directory API to transfer their account.
  • D. Configure GCDS and use GCDS exclusion rules to ensure users are not suspended.

Answer: B

Explanation:
Understanding Unmanaged Users:
Unmanaged users are those who have created Google Cloud accounts using their company email addresses outside of the organization's management (e.g., through GCDS).
Challenge:
The goal is to bring these unmanaged accounts under your company's control without disrupting their existing accounts and access.
Using the Transfer Tool:
Google provides a transfer tool specifically designed to migrate unmanaged users to a managed state.
This tool allows administrators to invite unmanaged users to join the organization's Google Cloud Identity or Google Workspace account.
Steps to Use the Transfer Tool:
Step 1: Access the transfer tool from the Google Admin console.
Step 2: Identify the unmanaged users using their email addresses.
Step 3: Send invitations to these users to transfer their accounts.
Step 4: Users accept the invitations, allowing their accounts to be managed under the organization's domain.
Benefits:
This method ensures a smooth transition for users without losing access to their existing data and services.
It aligns with best practices for managing user accounts in a corporate environment.
Reference:
Migrate unmanaged users
Google Cloud Directory Sync


NEW QUESTION # 30
Your organization is moving virtual machines (VMs) to Google Cloud. You must ensure that operating system images that are used across your projects are trusted and meet your security requirements.
What should you do?

  • A. Automate a security scanner that verifies that no common vulnerabilities and exposures (CVEs) are present in your trusted image repository.
  • B. Implement an organization policy to enforce that boot disks can only be created from images that come from the trusted image project.
  • C. Create a Cloud Function that is automatically triggered when a new virtual machine is created from the trusted image repository Verify that the image is not deprecated.
  • D. Implement an organization policy constraint that enables the Shielded VM service on all projects to enforce the trusted image repository usage.

Answer: B

Explanation:
* Define Trusted Image Projects:
* Identify the project or projects where your trusted operating system images are stored.
* Ensure these images meet your organization's security requirements and are regularly updated to mitigate vulnerabilities.
* Create an Organization Policy:
* Navigate to the Organization Policies page in the Google Cloud Console.
* Create a policy constraint that restricts the creation of boot disks to only those images stored in your trusted image project(s).
* The policy constraint to use is constraints/compute.trustedImageProjects.
* Apply the Policy:
* Apply this organization policy at the appropriate level (organization, folder, or project) to enforce that all new VM instances use images from the trusted repository.
* This ensures consistency in the security posture across all projects within the organization.
* Monitor Compliance:
* Regularly monitor the compliance with this policy using audit logs and other monitoring tools.
* Update the trusted images as necessary to ensure they remain secure and compliant with your security standards.
References:
* Organization Policy Service
* Trusted Image Projects Constraint


NEW QUESTION # 31
Your organization recently deployed a new application on Google Kubernetes Engine. You need to deploy a solution to protect the application. The solution has the following requirements:
Scans must run at least once per week
Must be able to detect cross-site scripting vulnerabilities
Must be able to authenticate using Google accounts
Which solution should you use?

  • A. Security Health Analytics
  • B. Google Cloud Armor
  • C. Container Threat Detection
  • D. Web Security Scanner

Answer: D

Explanation:
Reference:
Web Security Scanner identifies security vulnerabilities in your App Engine, Google Kubernetes Engine (GKE), and Compute Engine web applications. https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview


NEW QUESTION # 32
You discovered that sensitive personally identifiable information (PII) is being ingested to your Google Cloud environment in the daily ETL process from an on-premises environment to your BigQuery datasets. You need to redact this data to obfuscate the PII, but need to re-identify it for data analytics purposes. Which components should you use in your solution? (Choose two.)

  • A. Cloud Data Loss Prevention with automatic text redaction
  • B. Cloud Data Loss Prevention with deterministic encryption using AES-SIV
  • C. Cloud Key Management Service
  • D. Cloud Data Loss Prevention with cryptographic hashing
  • E. Secret Manager

Answer: B,D

Explanation:
To handle PII data ingestion and ensure both redaction and re-identification for analytics purposes, you can use Cloud Data Loss Prevention (DLP) with appropriate techniques for masking and encryption.
Cloud Data Loss Prevention (DLP) with Cryptographic Hashing (C):
Use Cloud DLP to apply cryptographic hashing to PII data. Hashing transforms the data into a fixed-length string that is not directly readable, providing a layer of obfuscation. This helps in masking the PII while retaining the ability to verify data integrity.
Cloud Data Loss Prevention (DLP) with Deterministic Encryption using AES-SIV (E):
Apply deterministic encryption using AES-SIV through Cloud DLP. Deterministic encryption ensures that the same input will always produce the same encrypted output, allowing you to re-identify the PII when necessary. This method enables secure encryption while allowing data re-identification for analytics.
By combining these two approaches, you can effectively mask PII for privacy protection and later re-identify it when required for analysis.
Reference:
Cloud Data Loss Prevention Documentation
Data Redaction and Masking Techniques


NEW QUESTION # 33
You are the security admin of your company. You have 3,000 objects in your Cloud Storage bucket. You do not want to manage access to each object individually. You also do not want the uploader of an object to always have full control of the object. However, you want to use Cloud Audit Logs to manage access to your bucket.
What should you do?

  • A. Set up an ACL with READER permission to a scope of allUsers.
  • B. Set up a default bucket ACL and manage access for users using IAM.
  • C. Set up Uniform bucket-level access on the Cloud Storage bucket and manage access for users using IAM.
  • D. Set up an ACL with OWNER permission to a scope of allUsers.

Answer: D


NEW QUESTION # 34
A company is backing up application logs to a Cloud Storage bucket shared with both analysts and the administrator. Analysts should only have access to logs that do not contain any personally identifiable information (PII). Log files containing PII should be stored in another bucket that is only accessible by the administrator.
What should you do?

  • A. On the bucket shared with both the analysts and the administrator, configure a Cloud Storage Trigger that is only triggered when PII data is uploaded. Use Cloud Functions to capture the trigger and delete such files.
  • B. Use Cloud Pub/Sub and Cloud Functions to trigger a Data Loss Prevention scan every time a file is uploaded to the shared bucket. If the scan detects PII, have the function move into a Cloud Storage bucket only accessible by the administrator.
  • C. On the bucket shared with both the analysts and the administrator, configure Object Lifecycle Management to delete objects that contain any PII.
  • D. Upload the logs to both the shared bucket and the bucket only accessible by the administrator. Create a job trigger using the Cloud Data Loss Prevention API. Configure the trigger to delete any files from the shared bucket that contain PII.

Answer: B

Explanation:
Explanation
https://codelabs.developers.google.com/codelabs/cloud-storage-dlp-functions#0https://www.youtube.com/watch


NEW QUESTION # 35
Your team needs to make sure that a Compute Engine instance does not have access to the internet or to any Google APIs or services.
Which two settings must remain disabled to meet these requirements? (Choose two.)

  • A. Static routes
  • B. Private Google Access
  • C. IP Forwarding
  • D. IAM Network User Role
  • E. Public IP

Answer: B,E


NEW QUESTION # 36
You need to enable VPC Service Controls and allow changes to perimeters in existing environments without preventing access to resources. Which VPC Service Controls mode should you use?

  • A. Native
  • B. Enforced
  • C. Dry run
  • D. Cloud Run

Answer: C

Explanation:
Reference:
In dry run mode, requests that violate the perimeter policy are not denied, only logged. Dry run mode is used to test perimeter configuration and to monitor usage of services without preventing access to resources. https://cloud.google.com/vpc-service-controls/docs/dry-run-mode


NEW QUESTION # 37
You are creating a new infrastructure CI/CD pipeline to deploy hundreds of ephemeral projects in your Google Cloud organization to enable your users to interact with Google Cloud. You want to restrict theuse of the default networks in your organization while following Google-recommended best practices. What should you do?

  • A. Create a cron job to trigger a daily Cloud Function to automatically delete all default networks for each project.
  • B. Grant your users the 1AM Owner role at the organization level. Create a VPC Service Controls perimeter around the project that restricts thecompute.googleapis.comAPI.
  • C. Enable theconstraints/compute.skipDefaultNetworkCreationorganization policy constraint at the organization level.
  • D. Only allow your users to use your CI/CD pipeline with a predefined set of infrastructure templates they can deploy to skip the creation of the default networks.

Answer: C

Explanation:
Explanation
Enable the constraints/compute.skipDefaultNetworkCreation organization policy constraint at the organization level.
https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints - constraints/compute.skipDefaultNetworkCreation This boolean constraint skips the creation of the default network and related resources during Google Cloud Platform Project resource creation where this constraint is set to True. By default, a default network and supporting resources are automatically created when creating a Project resource.


NEW QUESTION # 38
Your organization wants to protect all workloads that run on Compute Engine VM to ensure that the instances weren't compromised by boot-level or kernel-level malware. Also, you need to ensure that data in use on the VM cannot be read by the underlying host system by using a hardware-based solution.
What should you do?

  • A. *1 Use Google Shielded VM including secure boot Virtual Trusted Platform Module (vTPM) and integrity monitoring
    *2 Create a Cloud Run function to check for the VM settings generate metrics and run the function regularly
  • B. *1 Use secure hardened images from the Google Cloud Marketplace
    *2 When deploying the images activate the Confidential Computing option
    *3 Enforce the use of the correct images and Confidential Computing by using organization policies
  • C. *1 Activate Virtual Machine Threat Detection in Security Command Center (SCO Premium
    *2 Monitor the findings in SCC
  • D. * 1 Use Google Shielded VM including secure boot Virtual Trusted Platform Module (vTPM) and integrity monitoring
    *2 Activate Confidential Computing
    *3 Enforce these actions by using organization policies

Answer: D


NEW QUESTION # 39
You are on your company's development team. You noticed that your web application hosted in staging on GKE dynamically includes user data in web pages without first properly validating the inputted data. This could allow an attacker to execute gibberish commands and display arbitrary content in a victim user's browser in a production environment.
How should you prevent and fix this vulnerability?

  • A. Set up an HTTPS load balancer, and then use Cloud Armor for the production environment to prevent the potential XSS attack.
  • B. Use Web Security Scanner to validate the usage of an outdated library in the code, and then use a secured version of the included library.
  • C. Use Cloud IAP based on IP address or end-user device attributes to prevent and fix the vulnerability.
  • D. Use Web Security Scanner in staging to simulate an XSS injection attack, and then use a templating system that supports contextual auto-escaping.

Answer: D

Explanation:
https://cloud.google.com/security-scanner/docs/remediate-findings


NEW QUESTION # 40
Your company has multiple teams needing access to specific datasets across various Google Cloud data services for different projects. You need to ensure that team members can only access the data relevant to their projects and prevent unauthorized access to sensitive information within BigQuery, Cloud Storage, and Cloud SQL. What should you do?

  • A. Enable project-level data access logs for BigQuery. Cloud Storage, and Cloud SQL. Configure log sinks to export these logs to Security Command Center to identify unauthorized access attempts.
  • B. Grant project-level group permissions by using specific Cloud IAM roles. Use BigQuery authorized views. Cloud Storage uniform bucket-level access, and Cloud SQL database roles.
  • C. Use VPC Service Controls to create security perimeters around the projects for BigQuery. Cloud Storage, and Cloud SQL services. restricting access based on the network origin of the requests.
  • D. Configure an access level to control access to the Google Cloud console for users managing these data services. Require multi-factor authentication for all access attempts.

Answer: B

Explanation:
This question requires implementing fine-grained data access control across multiple services based on the Principle of Least Privilege.
Project/Service Access (IAM): Granting project-level group permissions with specific Cloud IAM roles (e.g., BigQuery Data Viewer) is the primary way to control who has access to which project's resources.
Data Isolation (Service-Specific): To ensure only relevant data is accessed and to protect sensitive information within the datasets, you must use the most granular control mechanism available for each service:
BigQuery: Authorized Views allow access to specific query results (subsets of data) without granting access to the underlying table.
Cloud Storage: Uniform bucket-level access simplifies and tightens security by forcing all access to be controlled by IAM, preventing accidental object-level exposure.
Cloud SQL: Database Roles are the native, most granular way to control access within the database itself (e.
g., read-only access to specific tables).
Extracts (Conceptual Basis):
"The principle of least privilege dictates that users should only have the permissions necessary to perform their jobs. Granular access is enforced using a combination of IAM roles and service-native access controls." (Source 5.1)
"For BigQuery, using authorized views is the standard way to limit data exposure to users who should only see a subset of data." (Source 5.2)


NEW QUESTION # 41
An application running on a Compute Engine instance needs to read data from a Cloud Storage bucket. Your team does not allow Cloud Storage buckets to be globally readable and wants to ensure the principle of least privilege.
Which option meets the requirement of your team?

  • A. Create a Cloud Storage ACL that allows read-only access from the Compute Engine instance's IP address and allows the application to read from the bucket without credentials.
  • B. Use a service account with read-only access to the Cloud Storage bucket to retrieve the credentials from the instance metadata.
  • C. Use a service account with read-only access to the Cloud Storage bucket, and store the credentials to the service account in the config of the application on the Compute Engine instance.
  • D. Encrypt the data in the Cloud Storage bucket using Cloud KMS, and allow the application to decrypt the data with the KMS key.

Answer: B

Explanation:
Explanation
If the environment variable GOOGLE_APPLICATION_CREDENTIALS is set, ADC uses the service account key or configuration file that the variable points to. If the environment variable GOOGLE_APPLICATION_CREDENTIALS isn't set, ADC uses the service account that is attached to the resource that is running your code.https://cloud.google.com/docs/authentication/production#passing_the_path_to_the_service_account_key_in


NEW QUESTION # 42
A customer wants to run a batch processing system on VMs and store the output files in a Cloud Storage bucket. The networking and security teams have decided that no VMs may reach the public internet.
How should this be accomplished?

  • A. Mount a Cloud Storage bucket as a local filesystem on every VM.
  • B. Enable Private Google Access on the VPC.
  • C. Create a firewall rule to block internet traffic from the VM.
  • D. Provision a NAT Gateway to access the Cloud Storage API endpoint.

Answer: B

Explanation:
Objective: Ensure VMs can access Cloud Storage without reaching the public internet.
Solution: Enable Private Google Access on the VPC network, allowing VMs with only internal IP addresses to access Google APIs and services privately.
Steps:
Step 1: Open the Google Cloud Console.
Step 2: Go to the VPC Network section.
Step 3: Select the relevant VPC network and subnet.
Step 4: Enable Private Google Access for the subnet.
Private Google Access ensures that instances can access Google APIs and services (such as Cloud Storage) over a private network connection, without requiring a public IP address.
Reference:
Configuring Private Google Access
Best Practices for Secure Access


NEW QUESTION # 43
Your organization has 3 TB of information in BigQuery and Cloud SQL. You need to develop a cost- effective, scalable, and secure strategy to anonymize the personally identifiable information (PII) that exists today. What should you do?

  • A. Scan your BigQuery and Cloud SQL data using the Cloud DLP data profiling feature. Use the data profiling results to create a de-identification strategy with either Cloud Sensitive Data Protection's de- identification templates or custom configurations.
  • B. Create a new BigQuery dataset and Cloud SQL instance. Copy a small subset of the data to these new locations. Use Cloud Data Loss Prevention API to scan this subset for PII. Based on the results, create a custom anonymization script and apply the script to the entire 3 TB dataset in the original locations.
  • C. Export all 3TB of data from BigQuery and Cloud SQL to Cloud Storage. Use Cloud Sensitive Data Protection to anonymize the exported data. Re-import the anonymized data back into BigQuery and Cloud SQL.
  • D. Inspect a representative sample of the data in BigQuery and Cloud SQL to identify PII. Based on this analysis, develop a custom script to anonymize the identified PII.

Answer: A

Explanation:
The problem requires a cost-effective, scalable, and secure strategy to anonymize 3 TB of PII in BigQuery and Cloud SQL.
Cloud Sensitive Data Protection (Cloud DLP): Cloud DLP is Google Cloud's fully managed service designed for discovering, classifying, and de-identifying sensitive data, including PII, across various Google Cloud services and on-premises environments. It is specifically built for scale and security.
Extract Reference: "Sensitive Data Protection helps you discover, classify, and de-identify sensitive data." and
"Sensitive Data Protection includes advanced de-identification techniques, such as tokenization, masking, and format-preserving encryption, to help you protect your sensitive data while preserving its utility for analysis." (Google Cloud Documentation: "Sensitive Data Protection overview" - https://cloud.google.com/sensitive- data-protection/docs/overview) Data Profiling: Cloud DLP's data profiling feature automatically scans your data (e.g., BigQuery tables, Cloud SQL databases) to identify where sensitive data resides and to understand its characteristics. This is crucial for developing an effective de-identification strategy.
Extract Reference: "Data profiles provide metrics and insights about your sensitive and high-risk data, helping you make informed decisions about data protection, access, and storage." and "When you configure Sensitive Data Protection to profile data in BigQuery, Cloud Storage, and Datastore, it automatically scans your data for sensitive information." (Google Cloud Documentation: "About data profiles" - https://cloud.google.com
/sensitive-data-protection/docs/concepts-data-profiles)
De-identification Templates and Custom Configurations: After profiling identifies the PII, Cloud DLP offers various de-identification methods, which can be applied using pre-built templates or custom configurations.
This allows for flexible and targeted anonymization. For BigQuery specifically, DLP can integrate with remote functions for de-identification at query time, minimizing data movement.
Extract Reference: "De-identification techniques, like encryption, obfuscate raw sensitive identifiers in your data. These techniques let you preserve the utility of your data for joining or analytics, while reducing the risk of handling the data." and "You can use this tutorial to replace that pipeline with a SQL query for only re- identification or both de-identification and re-identification." (Google Cloud Documentation: "De-identify BigQuery data at query time | Sensitive Data Protection Documentation" - https://cloud.google.com/sensitive- data-protection/docs/deidentify-bq-tutorial) Let's evaluate the other options:
B). Copy small subset... create a custom anonymization script... apply the script to the entire 3 TB dataset:
Relying on a "custom anonymization script" for 3 TB of data is generally not scalable, cost-effective, or secure compared to a managed service like Cloud DLP. Custom scripts require significant development, testing, maintenance, and robust error handling for large datasets, and might introduce security vulnerabilities.
C). Export all 3TB of data... to Cloud Storage... anonymize... Re-import: While feasible, exporting and re- importing 3 TB of data is a very time-consuming and potentially costly process due to data transfer and storage operations. Cloud DLP can often process data in-place or integrate more efficiently, especially with BigQuery. This option might not be the most cost-effective or efficient.
D). Inspect a representative sample... develop a custom script: Similar to option B, this relies on a custom script, which is less ideal for scalability, cost-effectiveness, and security than a managed service like Cloud DLP for 3 TB of sensitive data. Sample inspection is a good initial step, but the subsequent custom script for anonymization is the weak point.
Therefore, using Cloud DLP's data profiling to inform a de-identification strategy with its managed templates and configurations is the most appropriate, scalable, secure, and cost-effective approach for anonymizing PII in BigQuery and Cloud SQL.


NEW QUESTION # 44
You have stored company approved compute images in a single Google Cloud project that is used as an image repository. This project is protected with VPC Service Controls and exists in the perimeter along with other projects in your organization. This lets other projects deploy images from the image repository project. A team requires deploying a third-party disk image that is stored in an external Google Cloud organization. You need to grant read access to the disk image so that it can be deployed into the perimeter.
What should you do?

  • A. Allow the external project by using the organizational policy,
    constraints/compute.trustedImageProjects.
  • B. 1. Update the perimeter.
    2. Configure the egressTo field to include the external Google Cloud project number as an allowed resource and the serviceName to compute.googleapis.com.
    3. Configure the egressFrom field to set identityType to ANY_IDENTITY.
  • C. 1. Update the perimeter.
    2. Configure the ingressFrom field to set identityType to ANY_IDENTITY.
    3. Configure the ingressTo field to include the external Google Cloud project number as an allowed resource and the serviceName to compute.googleapis.com.
  • D. 1. Update the perimeter.
    2. Configure the egressTo field to set identityType to ANY_IDENTITY.
    3. Configure the egressFrom field to include the external Google Cloud project number as an allowed resource and the serviceName to compute.googleapis.com.

Answer: B

Explanation:
A Compute Engine client within a service perimeter calling a Compute Engine create operation where the image resource is outside the perimeter.
https://cloud.google.com/vpc-service-controls/docs/ingress-egress-
rules#:~:text=Egress%20Refers%20to%20any%20access,resource%20is%20outside%20the%20 perimeter.


NEW QUESTION # 45
You are implementing communications restrictions for specific services in your Google Cloud organization. Your data analytics team works in a dedicated folder. You need to ensure that access to BigQuery is controlled for that folder and its projects. The data analytics team must be able to control the restrictions only at the folder level. What should you do?

  • A. Enforce the Restrict Resource Service Usage organization policy constraint on the folder to restrict BigQuery access. Assign the data analytics team the Organization Policy Administrator role to allow the team to manage exclusions within the folder.
  • B. Define a hierarchical firewall policy on the folder to deny BigQuery access. Assign the data analytics team the Compute Organization Firewall Policy Admin role to allow the team to configure rules for the firewall policy.
  • C. Create an organization-level access policy with a service perimeter to restrict BigQuery access.
    Assign the data analytics team the Access Context Manager Editor role on the access policy to allow the team to configure the access policy.
  • D. Create a scoped policy on the folder with a service perimeter to restrict BigQuery access. Assign the data analytics team the Access Context Manager Editor role on the scoped policy to allow the team to configure the scoped policy.

Answer: D

Explanation:
Scoped Policy: A scoped policy allows you to apply restrictions specifically to a folder and its projects Service Perimeter: By using a service perimeter, you can define which services (like BigQuery) can be accessed from within the specified folder.


NEW QUESTION # 46
You are managing a set of Google Cloud projects that are contained in a folder named Data Warehouse A new data analysis team has been approved to perform data analysis for all BigQuery data in the projects within the Data Warehouse folder. They should only be able to read the data and not have permissions to modify or delete the data. You want to reduce the operational overhead of provisioning access while adhering to the principle of least privilege. What should you do?

  • A. Grant the BigQuery Data Viewer role at the dataset level for each BigQuery dataset within each project in the Data Warehouse folder
  • B. Grant the BigQuery Data Viewer role at the Data Warehouse folder.
  • C. Grant the BigQuery Data Viewer role at the project level for each project within the Data Warehouse folder.
  • D. Grant the BigQuery Metadata Viewer role at the Data Warehouse folder

Answer: B

Explanation:
The requirements are met by granting access at the highest point in the resource hierarchy that encompasses all the necessary resources, using the least privileged role required.
Least Privilege Role: The team needs to read data and not modify or delete it. The roles/bigquery.dataViewer role is the correct least privileged role for read-only access to data.
Minimize Operational Overhead: Granting the role at the Folder level ensures that the access is automatically inherited by all current and future projects within that folder, drastically reducing the operational overhead compared to granting the role per project (C) or per dataset (A).
Scope: The Folder scope (Data Warehouse folder) is the container for all BigQuery data in the projects within the folder, making it the ideal single point of granting access.
Extracts:
"IAM roles are inherited down the resource hierarchy... Granting a role at the folder level will grant the principal that role across all projects within that folder, including any projects created in the future." (Source
10.1)
"The BigQuery Data Viewer (roles/bigquery.dataViewer) role grants permission to read data in BigQuery tables and views... It does not grant permissions to modify or delete the data, adhering to the principle of least privilege for read-only tasks." (Source 10.2)


NEW QUESTION # 47
You manage one of your organization's Google Cloud projects (Project A). AVPC Service Control (SC) perimeter is blocking API access requests to this project including Pub/Sub. A resource running under a service account in another project (Project B) needs to collect messages from a Pub/Sub topic in your project Project B is not included in a VPC SC perimeter. You need to provide access from Project B to the Pub/Sub topic in Project A using the principle of least Privilege.
What should you do?

  • A. Remove the Pub/Sub API from the list of restricted services in the perimeter configuration for Project A.
  • B. Create an access level that allows a developer in Project B to subscribe to the Pub/Sub topic that is located in Project A.
  • C. Create a perimeter bridge between Project A and Project B to allow the required communication between both projects.
  • D. Configure an ingress policy for the perimeter in Project A and allow access for the service account in Project B to collect messages.

Answer: D

Explanation:
When dealing with VPC Service Controls (VPC SC), it's important to ensure that only authorized resources can access sensitive data and services. To allow a resource in Project B to access Pub/Sub in Project A without compromising security, you should configure an ingress policy for the service perimeter in Project A.
* Identify the Service Account: Determine the service account in Project B that requires access to the Pub/Sub topic in Project A.
* Configure Ingress Policy:
* Go to the Google Cloud Console.
* Navigate to Security > VPC Service Controls.
* Select the service perimeter for Project A.
* Add an ingress rule specifying the service account from Project B and allowing it access to the necessary Pub/Sub resources.
* Define Conditions: Ensure that the ingress policy adheres to the principle of least privilege, granting only the necessary permissions to collect messages from the Pub/Sub topic.
* Save and Apply: Save the policy and apply the changes to enforce the new access controls.
This approach maintains the security boundaries set by VPC SC while enabling the required access from Project B to Project A.
References:
* VPC Service Controls Documentation
* Configuring Ingress Policies


NEW QUESTION # 48
After completing a security vulnerability assessment, you learned that cloud administrators leave Google Cloud CLI sessions open for days. You need to reduce the risk of attackers who might exploit these open sessions by setting these sessions to the minimum duration.
What should you do?

  • A. Set the organization policy constraint constraints/iam. serviceAccountKeyExpiryHours to one hour and inheritFromParent to false.
  • B. Set the session duration for the Google session control to one hour.
  • C. Set the reauthentication frequency (or the Google Cloud Session Control to one hour.
  • D. Set the organization policy constraint
    constraints/iam.allowServiceAccountCredentialLifetimeExtension to one hour.

Answer: C

Explanation:
To mitigate the risk posed by long-running Google Cloud CLI sessions, it is essential to enforce a reauthentication frequency. This ensures that users must periodically reauthenticate, reducing the window of opportunity for an attacker to exploit an open session. Setting the reauthentication frequency to one hour forces users to reauthenticate after this period, thereby limiting the duration an attacker can use a compromised session.
Access Google Cloud Console: Log in to your Google Cloud Console using your admin credentials.
Navigate to Security Settings: Go to the "Security" section of the Cloud Console.
Set Session Control: Under the session management settings, locate the "Reauthentication frequency" setting. This controls how often users must reauthenticate.
Configure Reauthentication Frequency: Set the reauthentication frequency to "1 hour". This configuration will force users to reauthenticate every hour, thus limiting the duration of each session.
Save Changes: Confirm and save your changes. This setting will now apply to all users, ensuring that open sessions are minimized to a duration of one hour.
Reference:
Google Cloud IAM Documentation
Google Cloud Security Best Practices


NEW QUESTION # 49
......

Fully Updated Dumps PDF - Latest Professional-Cloud-Security-Engineer Exam Questions and Answers: https://killexams.practicevce.com/Google/Professional-Cloud-Security-Engineer-practice-exam-dumps.html