Free Google Professional Cloud Security Engineer practice questions

10 free Google Professional Cloud Security Engineer practice questions with the correct answer and a full explanation for each, taken from the CertStash pack of 361 questions. Work through them, then open each answer to check your reasoning.

Question 1

A customer needs an alternative to storing their plain text secrets in their source-code management (SCM) system.

How should the customer achieve this using Google Cloud Platform?

  1. Use Cloud Source Repositories, and store secrets in Cloud SQL.
  2. Encrypt the secrets with a Customer-Managed Encryption Key (CMEK), and store them in Cloud Storage.
  3. Run the Cloud Data Loss Prevention API to scan the secrets, and store them in Cloud SQL.
  4. Deploy the SCM to a Compute Engine VM with local SSDs, and enable preemptible VMs.
Show answer and explanation

Correct answer: B. Encrypt the secrets with a Customer-Managed Encryption Key (CMEK), and store them in Cloud Storage.

Encryption Key (CMEK), and store them in Cloud Storage. The best practice for storing secrets outside of source code is to encrypt them with a Customer-Managed Encryption Key (CMEK) and store them in Cloud Storage. This approach keeps secrets out of the SCM system while providing encryption at rest and access control. Cloud Source Repositories doesn't solve the secret storage problem. The Data Loss Prevention API scans for secrets but doesn't manage their storage. Deploying SCM to a Compute Engine VM replicates the on-premises problem and doesn't address secure secret management.

Why the other options are wrong

  • A. Cloud Source Repositories is a version control system and doesn't provide secure secret storage; storing secrets in Cloud SQL alongside code doesn't solve the SCM problem.
  • C. The Data Loss Prevention API detects secrets but doesn't provide a secure storage solution.
  • D. Running SCM on Compute Engine with local SSDs doesn't provide encryption or centralized secret management and replicates the original problem.

Question 2

Your team wants to centrally manage GCP IAM permissions from their on-premises Active Directory Service. Your team wants to manage permissions by AD group membership.

What should your team do to meet these requirements?

  1. Set up Cloud Directory Sync to sync groups, and set IAM permissions on the groups.
  2. Set up SAML 2.0 Single Sign-On (SSO), and assign IAM permissions to the groups.
  3. Use the Cloud Identity and Access Management API to create groups and IAM permissions from Active Directory.
  4. Use the Admin SDK to create groups and assign IAM permissions from Active Directory.
Show answer and explanation

Correct answer: A. Set up Cloud Directory Sync to sync groups, and set IAM permissions on the groups.

IAM permissions on the groups. Cloud Directory Sync synchronizes Active Directory groups to Google Cloud Identity, allowing teams to manage GCP IAM permissions based on AD group membership. This provides centralized management of both identity and access control. SAML 2.0 SSO handles authentication but not group-based permission management in the way required. The Cloud Identity and Access Management API and Admin SDK require programmatic integration and don't provide the automatic synchronization that Cloud Directory Sync offers for group-based management.

Why the other options are wrong

  • B. SAML 2.0 SSO enables single sign-on but doesn't centrally manage group-based IAM permissions from Active Directory.
  • C. The IAM API requires manual integration and doesn't automatically sync AD groups for permission management.
  • D. The Admin SDK also requires manual integration and doesn't provide automatic synchronization of AD groups.

Question 3

A customer needs to launch a 3-tier internal web application on Google Cloud Platform (GCP). The customer's internal compliance requirements dictate that end-user access may only be allowed if the traffic seems to originate from a specific known good CIDR. The customer accepts the risk that their application will only have SYN flood DDoS protection. They want to use GCP's native SYN flood protection.

Which product should be used to meet these requirements?

  1. Cloud Armor
  2. VPC Firewall Rules
  3. Cloud Identity and Access Management
  4. Cloud CDN ✅Correct Answer: B, VPC Firewall Rules Google Cloud's infrastructure provides SYN flood protection natively for traffic reaching VM instances, with no additional product required. Because the customer accepts that SYN flood mitigation is the only DDoS defense, the remaining requirement is simply to allow end-user traffic only from one known good CIDR. VPC firewall rules do exactly that: an ingress allow rule scoped to the specific source range, applied to the tiers of the internal application, blocks everything else by default. This meets the compliance requirement while relying on GCP's built-in SYN flood protection.
Show answer and explanation

Answer and explanation for question 3

Question 4

A customer implements Cloud Identity-Aware Proxy for their ERP system hosted on Compute Engine. Their security team wants to add a security layer so that the ERP systems only accept traffic from Cloud Identity-Aware Proxy.

What should the customer do to meet these requirements?

  1. Make sure that the ERP system can validate the JWT assertion in the HTTP requests.
  2. Make sure that the ERP system can validate the identity headers in the HTTP requests.
  3. Make sure that the ERP system can validate the x-forwarded-for headers in the HTTP requests.
  4. Make sure that the ERP system can validate the user's unique identifier headers in the HTTP requests.
Show answer and explanation

Correct answer: A. Make sure that the ERP system can validate the JWT assertion in the HTTP requests.

Cloud Identity-Aware Proxy adds a JWT (JSON Web Token) assertion to HTTP requests that the backend application can validate to ensure traffic originates from IAP. The ERP system should validate the JWT assertion in the X-Goog-IAP-JWT-Assertion header to confirm the request passed through IAP authentication. Identity headers and x-forwarde-or headers are not the standard IAP validation mechanism. While IAP can provide user identifier information, JWT validation is the primary security mechanism for ensuring traffic originated from IAP.

Why the other options are wrong

  • B. Identity headers are not the standard IAP validation method; JWT assertion validation is required.
  • C. X-forwarded-for headers indicate proxy forwarding but don't provide authentication or proof that traffic passed through IAP.
  • D. While user identifiers may be available, JWT assertion validation is the required security mechanism to verify IAP authorization.

Question 5

A company has been running their application on Compute Engine. A bug in the application allowed a malicious user to repeatedly execute a script that results in the Compute Engine instance crashing. Although the bug has been fixed, you want to get notified in case this hack re-occurs.

What should you do?

  1. Create an Alerting Policy in Stackdriver using a Process Health condition, checking that the number of executions of the script remains below the desired threshold. Enable notifications.
  2. Create an Alerting Policy in Stackdriver using the CPU usage metric. Set the threshold to 80% to be notified when the CPU usage goes above this 80%.
  3. Log every execution of the script to Stackdriver Logging. Create a User-defined metric in Stackdriver Logging on the logs, and create a Stackdriver Dashboard displaying the metric.
  4. Log every execution of the script to Stackdriver Logging. Configure BigQuery as a log sink, and create a BigQuery scheduled query to count the number of executions in a specific timeframe.
Show answer and explanation

Correct answer: A. Create an Alerting Policy in Stackdriver using a Process Health condition, checking that the number of executions of the script remains below the desired threshold. Enable notifications.

Process Health condition, checking that the number of executions of the script remains below the desired threshold. Enable notifications. When a malicious script execution causes crashes, you need to detect abnormal process behavior. A Process Health condition in Stackdriver Alerting directly monitors process execution counts and can trigger notifications when the number of script executions exceeds a threshold. This provides real-time alerts on the specific suspicious behavior. Option B uses CPU as a proxy metric which is too indirect and generic. Options C and D focus on logging and analysis rather than real-time alerting for immediate notification.

Why the other options are wrong

  • B. CPU usage at 80% is a generic threshold unrelated to the specific script execution attack pattern.
  • C. Creating a user-defined metric and dashboard provides visibility but not automated alerting for immediate notification.
  • D. BigQuery scheduled queries provide periodic analysis but lack real-time alerting for immediate response to the attack.

Question 6

Your team needs to obtain a unified log view of all development cloud projects in your SIEM. The development projects are under the NONPROD organization folder with the test and pre-production projects. The development projects share the ABC-BILLING billing account with the rest of the organization.

Which logging export strategy should you use to meet the requirements?

  1. 1. Export logs to a Cloud Pub/Sub topic with folders/NONPROD parent and includeChildren property set to True in a dedicated SIEM project. 2. Subscribe SIEM to the topic.
  2. 1. Create a Cloud Storage sink with billingAccounts/ABC-BILLING parent and includeChildren property set to False in a dedicated SIEM project. 2. Process Cloud Storage objects in SIEM.
  3. 1. Export logs in each dev project to a Cloud Pub/Sub topic in a dedicated SIEM project. 2. Subscribe SIEM to the topic.
  4. 1. Create a Cloud Storage sink with a publicly shared Cloud Storage bucket in each project. 2. Process Cloud Storage objects in SIEM.
Show answer and explanation

Correct answer: A. 1. Export logs to a Cloud Pub/Sub topic with folders/NONPROD parent and includeChildren property set to True in a dedicated SIEM project. 2. Subscribe SIEM to the topic.

To obtain unified logs from all development projects under the NONPROD folder with minimal configuration, you should create a single log sink at the folder level with includeChildren enabled. This automatically captures logs from all projects within that folder without needing individual sink configurations per project. Cloud Pub/Sub is appropriate for real-time streaming to a SIEM system. A folder-level sink with includeChildren=True is the most efficient approach for unified log collection across multiple related projects.

Why the other options are wrong

  • B. Using billingAccounts/ABC-BILLING parent includes all projects under that billing account (including test and pre-production), which is broader than just the NONPROD folder's development projects.
  • C. Exporting from each development project individually requires multiple sink configurations and lacks the unified approach offered by folder-level exports.
  • D. Publicly shared Cloud Storage buckets violate security principles and requiring pe-roject configuration is operationally inefficient.

Question 7

A customer needs to prevent attackers from hijacking their domain/IP and redirecting users to a malicious site through a man-in-the-middle attack.

Which solution should this customer use?

  1. VPC Flow Logs
  2. Cloud Armor
  3. DNS Security Extensions
  4. Cloud Identity-Aware Proxy
Show answer and explanation

Correct answer: C. DNS Security Extensions

DNS Security Extensions (DNSSEC) cryptographically sign DNS records to prevent DNS hijacking and man-in-the-middle attacks where attackers redirect domain/IP traffic to malicious sites. DNSSEC ensures that DNS responses are authentic and have not been tampered with. VPC Flow Logs only monitor network traffic, Cloud Armor protects against DDoS and application attacks, and Cloud Identity-Aware Proxy controls access authentication, none address DNS hijacking.

Why the other options are wrong

  • A. VPC Flow Logs monitor network traffic flow but do not prevent DNS hijacking or domain redirection attacks.
  • B. Cloud Armor protects against DDoS and web application attacks but does not address DNS hijacking or domain/IP redirection.
  • D. Cloud Identity-Aware Proxy controls user authentication and access to applications but does not prevent DNS hijacking.

Question 8

A customer deploys an application to App Engine and needs to check for Open Web Application Security Project (OWASP) vulnerabilities.

Which service should be used to accomplish this?

  1. Cloud Armor
  2. Google Cloud Audit Logs
  3. Web Security Scanner
  4. Anomaly Detection ✅Correct Answer: C, Web Security Scanner Google Cloud Web Security Scanner is the service built to find web application vulnerabilities in App Engine, Compute Engine, and GKE apps. It crawls the application, follows links, and exercises inputs to surface common OWASP issues such as cross-site scripting, mixed content, clear-text passwords, Flash injection, and outdated or insecure JavaScript libraries. Cloud Armor handles DDoS and WAF filtering, Audit Logs track access and changes but don't test for vulnerabilities, and Anomaly Detection identifies unusual patterns rather than application flaws.
Show answer and explanation

Answer and explanation for question 8

Question 9

A customer's data science group wants to use Google Cloud Platform (GCP) for their analytics workloads. Company policy dictates that all data must be company-owned and all user authentications must go through their own Security Assertion Markup Language (SAML) 2.0 Identity Provider (IdP). The Infrastructure Operations Systems Engineer was trying to set up Cloud Identity for the customer and realized that their domain was already being used by G Suite.

How should you best advise the Systems Engineer to proceed with the least disruption?

  1. Contact Google Support and initiate the Domain Contestation Process to use the domain name in your new Cloud Identity domain.
  2. Register a new domain name, and use that for the new Cloud Identity domain.
  3. Ask Google to provision the data science manager's account as a Super Administrator in the existing domain.
  4. Ask customer's management to discover any other uses of Google managed services, and work with the existing Super Administrator.
Show answer and explanation

Correct answer: D. Ask customer's management to discover any other uses of Google managed services, and work with the existing Super Administrator.

When a domain is already being used by G Suite, the best practice is to conduct a thorough discovery process with the existing Super Administrator to understand all current Google service usage before attempting any changes. This minimizes disruption to existing services and ensures coordination across the organization. The Systems Engineer should work with the existing G Suite administrators to plan the transition or determine if Cloud Identity can be integrated with the existing G Suite setup, rather than attempting domain contestation or creating entirely separate domains.

Why the other options are wrong

  • A. Domain Contestation is a complex and disruptive process that should only be considered after exhausting coordination options.
  • B. Registering a new domain avoids the coordination challenge but creates separate identity silos and additional operational overhead.
  • C. Adding the data science manager as a Super Administrator in the existing domain does not address the broader need to manage the entire organization's Cloud Identity.

Question 10

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?

  1. Organization Administrator
  2. Security Reviewer
  3. Organization Role Administrator
  4. Organization Policy Administrator ✅Correct Answer: A, Organization Administrator Organization Administrator (roles/resourcemanager.organizationAdmin) is the role that lets your team set IAM policies on the organization, its folders, and its projects, and view the entire resource hierarchy. That is exactly what is needed to take over permission management and auditing of a domain another business unit created, since the team can then grant itself or others any further access required across the hundreds of projects. Security Reviewer is read-only, Organization Role Administrator only manages custom roles, and Organization Policy Administrator only manages organization policy constraints.
Show answer and explanation

Answer and explanation for question 10

That was 10 of 361.

The full Google Professional Cloud Security Engineer pack has all 361 questions, each with the answer, the explanation and why the other options are wrong, plus a questions-only copy for timed runs. US$39, paid once, with free monthly updates and a pass-or-your-money-back guarantee.

Get the full pack