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.
Get all 361 questions (US$39) · Download these 10 as a PDF
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?
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?
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?
Show answer and explanation

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?
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?
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?
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?
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?
Show answer and explanation

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?
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?
Show answer and explanation

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.
