Google Professional Cloud Security Engineer Practice Questions with Explanations

Free Google Professional Cloud Security Engineer practice questions. 50 of them, each with the correct answer, a full explanation, and the reason every other option is wrong. These are real questions from the Google Professional Cloud Security Engineer exam, not paraphrases, and every explanation is written out rather than just marking the right letter.

They are drawn from the same bank as the full Google Professional Cloud Security Engineer pack, which has 361 questions in total.

Get the full Google Professional Cloud Security Engineer question bank (361 questions) →

Google Professional Cloud Security Engineer practice questions

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?

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

Correct answer: B

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?

  • A. Set up Cloud Directory Sync to sync groups, and set IAM permissions on the groups.
  • B. Set up SAML 2.0 Single Sign-On (SSO), and assign IAM permissions to the groups.
  • C. Use the Cloud Identity and Access Management API to create groups and IAM permissions from Active Directory.
  • D. Use the Admin SDK to create groups and assign IAM permissions from Active Directory.
Show answer and explanation ▾

Correct answer: A

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?

  • A. Cloud Armor
  • B. VPC Firewall Rules
  • C. Cloud Identity and Access Management
  • D. Cloud CDN
Show answer and explanation ▾

Correct answer: A

Cloud Armor is Google Cloud's WAF and DDoS protection service that allows you to define security policies based on source IP ranges (CIDR blocks) and provides native SYN flood protection. It can restrict access to only traffic from known good CIDRs while providing the SYN flood DDoS protection the customer requires. VPC Firewall Rules operate at the network layer but don't provide DDoS protection; they would require complex rules and don't include SYN flood mitigation. Cloud Identity and Access Management controls who can access GCP resources, not application traffic. Cloud CDN is for content delivery, not access control or DDoS protection.

Why the other options are wrong:

  • B. VPC Firewall Rules control network traffic but don't provide DDoS protection or native SYN flood protection.
  • C. Cloud IAM manages user access to GCP resources, not incoming application traffic filtering.
  • D. Cloud CDN is for content delivery optimization, not for DDoS protection or CIDR- based access control.

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?

  • A. Make sure that the ERP system can validate the JWT assertion in the HTTP requests.
  • B. Make sure that the ERP system can validate the identity headers in the HTTP requests.
  • C. Make sure that the ERP system can validate the x-forwarded-for headers in the HTTP requests.
  • D. 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

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-forwarded- for 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?

  • 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.
  • B. 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%.
  • C. 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.
  • D. 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

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?

  • 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.
  • B. 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.
  • C. 1. Export logs in each dev project to a Cloud Pub/Sub topic in a dedicated SIEM project. 2. Subscribe SIEM to the topic.
  • D. 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

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 per- project 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?

  • A. VPC Flow Logs
  • B. Cloud Armor
  • C. DNS Security Extensions
  • D. Cloud Identity-Aware Proxy
Show answer and explanation ▾

Correct answer: C

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?

  • A. Cloud Armor
  • B. Google Cloud Audit Logs
  • C. Web Security Scanner
  • D. Anomaly Detection
Show answer and explanation ▾

Correct answer: C

Google Cloud Web Security Scanner is the service specifically designed to identify OWASP Top 10 vulnerabilities and other web application security issues. It automatically scans App Engine applications and other web applications for vulnerabilities including XSS, CSRF, authentication flaws, and other common web application weaknesses. Cloud Armor handles DDoS protection, Audit Logs track access and changes but don't test for vulnerabilities, and Anomaly Detection identifies unusual patterns rather than security flaws.

Why the other options are wrong:

  • A. Cloud Armor is designed for DDoS protection and bot management, not vulnerability scanning.
  • B. Audit Logs track who accessed what resources but do not perform security vulnerability assessments.
  • D. Anomaly Detection identifies unusual behavior patterns but does not scan for known OWASP vulnerabilities.

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?

  • A. Contact Google Support and initiate the Domain Contestation Process to use the domain name in your new Cloud Identity domain.
  • B. Register a new domain name, and use that for the new Cloud Identity domain.
  • C. Ask Google to provision the data science manager's account as a Super Administrator in the existing domain.
  • D. 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

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?

  • A. Organization Administrator
  • B. Security Reviewer
  • C. Organization Role Administrator
  • D. Organization Policy Administrator
Show answer and explanation ▾

Correct answer: A

Organization Administrator is the role required to manage permissions and audit all resources across the entire organizational hierarchy. This role grants full control over the organization, folders, projects, and all resources within them, as well as the ability to manage policies and permissions. It is the appropriate role for taking over management of an organization that was previously set up independently. Security Reviewer is read-only, Organization Role Administrator manages custom roles, and Organization Policy Administrator manages organization policies-none provide the full management control needed.

Why the other options are wrong:

  • B. Security Reviewer provides read-only access for auditing purposes but does not allow managing permissions.
  • C. Organization Role Administrator manages custom role definitions but does not manage resource permissions or organizational access.
  • D. Organization Policy Administrator manages organization policies and constraints but does not manage resource-level permissions and full organizational control.

Question 11

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, and store the credentials to the service account in the config of the application on the Compute Engine instance.
  • C. Use a service account with read-only access to the Cloud Storage bucket to retrieve the credentials from the instance metadata.
  • D. Encrypt the data in the Cloud Storage bucket using Cloud KMS, and allow the application to decrypt the data with the KMS key.
Show answer and explanation ▾

Correct answer: C

Using a service account with read-only access to the Cloud Storage bucket and retrieving credentials from the instance metadata is the principle of least privilege approach. The Compute Engine instance can retrieve temporary credentials from its metadata server without storing credentials in configuration files, and the service account has minimal permissions. This avoids hardcoding secrets, allows credential rotation, and the service account is scoped to only read access. Option A uses IP-based ACLs which are unreliable for cloud resources. Option B stores credentials in application config which is a security risk. Option D adds unnecessary encryption complexity.

Why the other options are wrong:

  • A. IP-based ACLs are unreliable in cloud environments where IPs can change, and allowing global readability violates the stated requirement.
  • B. Storing service account credentials in application configuration files is a security anti- pattern that risks credential exposure.
  • D. Cloud KMS encryption protects data at rest but does not address the authentication and credential management requirement of least privilege access.

Question 12

An organization's typical network and security review consists of analyzing application transit routes, request handling, and firewall rules. They want to enable their developer teams to deploy new applications without the overhead of this full review. How should you advise this organization?

  • A. Use Forseti with Firewall filters to catch any unwanted configurations in production.
  • B. Mandate use of infrastructure as code and provide static analysis in the CI/CD pipelines to enforce policies.
  • C. Route all VPC traffic through customer-managed routers to detect malicious patterns in production.
  • D. All production applications will run on-premises. Allow developers free rein in GCP as their dev and QA platforms.
Show answer and explanation ▾

Correct answer: B

Mandating infrastructure as code with static analysis in CI/CD pipelines enables developers to deploy applications safely without blocking on manual review processes. Policy enforcement happens automatically during the build pipeline, catching network, firewall, and security misconfigurations before they reach production. This shifts compliance left and accelerates deployment while maintaining security standards. Forseti is post-deployment detection, custom routers add operational complexity, and allowing unbounded dev environments defeats the purpose of governance.

Why the other options are wrong:

  • A. Forseti detects issues in production after deployment rather than preventing them proactively in the pipeline.
  • C. Customer-managed routers for all traffic inspection adds significant operational overhead without automating policy compliance.
  • D. Allowing free rein in GCP dev environments defeats security governance and creates a false divide between dev and production security practices.

Question 13

An employer wants to track how bonus compensations have changed over time to identify employee outliers and correct earning disparities. This task must be performed without exposing the sensitive compensation data for any individual and must be reversible to identify the outlier. Which Cloud Data Loss Prevention API technique should you use to accomplish this?

  • A. Generalization
  • B. Redaction
  • C. CryptoHashConfig
  • D. CryptoReplaceFfxFpeConfig
Show answer and explanation ▾

Correct answer: C

CryptoHashConfig uses cryptographic hashing to transform sensitive data into deterministic tokens. This approach allows tracking compensation changes and identifying outliers by comparing hashed values across time periods without exposing actual compensation amounts. The deterministic nature of hashing ensures the same compensation value always produces the same hash, enabling reversibility to identify which employees are outliers. Generalization and redaction destroy data utility for trend analysis. CryptoReplaceFfxFpeConfig performs format-preserving encryption but doesn't provide the same reversible identification capability as hashing.

Why the other options are wrong:

  • A. Generalization reduces precision too much for identifying specific outliers in compensation data.
  • B. Redaction permanently removes data, making it impossible to identify which specific employees are outliers.
  • D. CryptoReplaceFfxFpeConfig encrypts but doesn't provide the deterministic reversibility needed to consistently identify the same outlier across multiple comparisons.

Question 14

An organization adopts Google Cloud Platform (GCP) for application hosting services and needs guidance on setting up password requirements for their Cloud Identity account. The organization has a password policy requirement that corporate employee passwords must have a minimum number of characters. Which Cloud Identity password guidelines can the organization use to inform their new requirements?

  • A. Set the minimum length for passwords to be 8 characters.
  • B. Set the minimum length for passwords to be 10 characters.
  • C. Set the minimum length for passwords to be 12 characters.
  • D. Set the minimum length for passwords to be 6 characters.
Show answer and explanation ▾

Correct answer: A

Google Cloud Identity's password guidelines recommend a minimum of 8 characters as the standard requirement for corporate passwords. This aligns with Google-recommended practices for Cloud Identity account security while being practical for enterprise deployment. The 8-character minimum provides adequate security without being overly restrictive.

Why the other options are wrong:

  • B. 10 characters exceeds Google Cloud Identity's standard password minimum length recommendation.
  • C. 12 characters exceeds Google Cloud Identity's standard password minimum length recommendation.
  • D. 6 characters is below Google Cloud Identity's recommended minimum length for corporate password security.

Question 15

You need to follow Google-recommended practices to leverage envelope encryption and encrypt data at the application layer. What should you do?

  • A. Generate a data encryption key (DEK) locally to encrypt the data, and generate a new key encryption key (KEK) in Cloud KMS to encrypt the DEK. Store both the encrypted data and the encrypted DEK.
  • B. Generate a data encryption key (DEK) locally to encrypt the data, and generate a new key encryption key (KEK) in Cloud KMS to encrypt the DEK. Store both the encrypted data and the KEK.
  • C. Generate a new data encryption key (DEK) in Cloud KMS to encrypt the data, and generate a key encryption key (KEK) locally to encrypt the key. Store both the encrypted data and the encrypted DEK.
  • D. Generate a new data encryption key (DEK) in Cloud KMS to encrypt the data, and generate a key encryption key (KEK) locally to encrypt the key. Store both the encrypted data and the KEK.
Show answer and explanation ▾

Correct answer: A

Google-recommended envelope encryption practices require generating the Data Encryption Key (DEK) locally to encrypt application data, then wrapping that DEK with a Key Encryption Key (KEK) created in Cloud KMS. Both the encrypted data and the encrypted DEK are stored together, allowing the application to request decryption of the DEK from Cloud KMS when needed. This separation of concerns protects the actual encryption keys while maintaining cryptographic security.

Why the other options are wrong:

  • B. Storing the unencrypted KEK defeats the purpose of envelope encryption by leaving the key encryption key exposed.
  • C. Generating the DEK in Cloud KMS contradicts the application-layer encryption pattern, and having a locally-managed KEK eliminates the security benefits of Cloud KMS.
  • D. Generating the DEK in Cloud KMS is not the recommended pattern for application- layer encryption, and storing an unencrypted KEK locally is insecure.

Question 16

How should a customer reliably deliver Stackdriver logs from GCP to their on-premises SIEM system?

  • A. Send all logs to the SIEM system via an existing protocol such as syslog.
  • B. Configure every project to export all their logs to a common BigQuery DataSet, which will be queried by the SIEM system.
  • C. Configure Organizational Log Sinks to export logs to a Cloud Pub/Sub Topic, which will be sent to the SIEM via Dataflow.
  • D. Build a connector for the SIEM to query for all logs in real time from the GCP RESTful JSON APIs.
Show answer and explanation ▾

Correct answer: C

Organizational Log Sinks provide centralized log routing at the organization level. By exporting logs to a Cloud Pub/Sub Topic, organizations can reliably deliver logs to on- premises SIEM systems through Dataflow, which acts as a reliable bridge. This approach handles log buffering, retry logic, and delivery guarantees that are essential for enterprise SIEM integration without requiring individual project configuration.

Why the other options are wrong:

  • A. Direct syslog delivery lacks the reliability, buffering, and scalability guarantees needed for production SIEM integration.
  • B. Exporting all logs to BigQuery and having the SIEM query in real time creates latency and puts query load on the SIEM system.
  • D. Real-time RESTful API queries from the SIEM create excessive load on GCP APIs and lack the buffering and reliability guarantees of a message-based approach.

Question 17

A website design company recently migrated all customer sites to App Engine. Some sites are still in progress and should only be visible to customers and company employees from any location. Which solution will restrict access to the in-progress sites?

  • A. Upload an .htaccess file containing the customer and employee user accounts to App Engine.
  • B. Create an App Engine firewall rule that allows access from the customer and employee networks and denies all other traffic.
  • C. Enable Cloud Identity-Aware Proxy (IAP), and allow access to a Google Group that contains the customer and employee user accounts.
  • D. Use Cloud VPN to create a VPN connection between the relevant on-premises networks and the company's GCP Virtual Private Cloud (VPC) network.
Show answer and explanation ▾

Correct answer: C

Cloud Identity-Aware Proxy (IAP) provides application-level access control that authenticates users and enforces authorization based on Google identities. By enabling IAP and restricting access to a Google Group containing customer and employee accounts, the company can control access to in-progress sites from any location without requiring network-level restrictions or VPN connections. This solution integrates seamlessly with Cloud Identity and App Engine.

Why the other options are wrong:

  • A. .htaccess files are web server configuration files that don't work with App Engine's application runtime and provide no actual authentication mechanism.
  • B. App Engine firewall rules operate at the network level and cannot authenticate individual users or validate user accounts; they only filter by IP address.
  • D. Cloud VPN restricts access to specific networks but doesn't provide user-level authentication and isn't necessary for controlling access from "any location" as required.

Question 18

When working with agents in the support center via online chat, your organization's customers often share pictures of their documents with personally identifiable information (PII). Your leadership team is concerned that this PII is being stored as part of the regular chat logs, which are reviewed by internal or external analysts for customer service trends. You want to resolve this concern while still maintaining data utility. What should you do?

  • A. Use Cloud Key Management Service to encrypt PII shared by customers before storing it for analysis.
  • B. Use Object Lifecycle Management to make sure that all chat records containing PII are discarded and not saved for analysis.
  • C. Use the image inspection and redaction actions of the DLP API to redact PII from the images before storing them for analysis.
  • D. Use the generalization and bucketing actions of the DLP API solution to redact PII from the texts before storing them for analysis.
Show answer and explanation ▾

Correct answer: C

The Cloud DLP API's image inspection and redaction actions are specifically designed to detect and redact PII within images before storage. This approach maintains data utility for customer service trend analysis while removing sensitive information from the pictures of documents that customers share. The DLP API automatically identifies PII patterns in images and redacts them, solving the compliance concern without destroying the data's analytical value.

Why the other options are wrong:

  • A. Cloud KMS encryption protects data but doesn't remove PII from the images, leaving the sensitive information accessible to anyone with decryption keys.
  • B. Deleting chat records entirely eliminates the data needed for customer service trend analysis, defeating the business purpose.
  • D. Generalization and bucketing work with structured text data, not images, and are not designed for redacting PII from document pictures.

Question 19

A company's application is deployed with a user-managed Service Account key. You want to use Google-recommended practices to rotate the key. What should you do?

  • A. Open Cloud Shell and run gcloud iam service-accounts enable-auto-rotate --iam- account=IAM_ACCOUNT.
  • B. Open Cloud Shell and run gcloud iam service-accounts keys rotate --iam- account=IAM_ACCOUNT --key=NEW_KEY.
  • C. Create a new key, and use the new key in the application. Delete the old key from the Service Account.
  • D. Create a new key, and use the new key in the application. Store the old key on the system as a backup key.
Show answer and explanation ▾

Correct answer: C

Google-recommended practices for rotating user-managed Service Account keys require creating a new key and updating the application to use it before deleting the old key. This ensures zero-downtime rotation and allows time to verify the new key works correctly. The old key should be deleted only after confirming the new key is functioning properly in the application, not retained as a backup.

Why the other options are wrong:

  • A. The gcloud command shown is not a valid Cloud IAM command for key rotation.
  • B. The gcloud command shown does not exist and is not the correct way to rotate Service Account keys.
  • D. Storing the old key as a backup increases the attack surface and violates the principle of minimizing active credentials in production systems.

Question 20

Your team needs to configure their Google Cloud Platform (GCP) environment so they can centralize the control over networking resources like firewall rules, subnets, and routes. They also have an on-premises environment where resources need access back to the GCP resources through a private VPN connection. The networking resources will need to be controlled by the network security team. Which type of networking design should your team use to meet these requirements?

  • A. Shared VPC Network with a host project and service projects
  • B. Grant Compute Admin role to the networking team for each engineering project
  • C. VPC peering between all engineering projects using a hub and spoke model
  • D. Cloud VPN Gateway between all engineering projects using a hub and spoke model
Show answer and explanation ▾

Correct answer: A

Shared VPC Network with a host project and service projects is the correct architecture for centralizing control of networking resources while allowing multiple teams to use shared infrastructure. The host project contains the VPC network, subnets, firewall rules, and VPN gateway, while service projects attach to this shared network. This allows the network security team to control all networking resources from the host project while engineering teams manage their own compute resources in service projects.

Why the other options are wrong:

  • B. Granting Compute Admin role to the networking team doesn't centralize network control across projects or provide the required VPN connectivity architecture.
  • C. VPC peering doesn't provide centralized control and creates complex hub-and-spoke routing; it's not the recommended approach for this scenario.
  • D. Cloud VPN Gateways in a hub-and-spoke model don't provide the centralized control of firewall rules and subnets that Shared VPC offers.

Question 21

An organization is migrating from their current on-premises productivity software systems to G Suite. Some network security controls were in place that were mandated by a regulatory body in their region for their previous on-premises system. The organization's risk team wants to ensure that network security controls are maintained and effective in G Suite. A security architect supporting this migration has been asked to ensure that network security controls are in place as part of the new shared responsibility model between the organization and Google Cloud. What solution would help meet the requirements?

  • A. Ensure that firewall rules are in place to meet the required controls.
  • B. Set up Cloud Armor to ensure that network security controls can be managed for G Suite.
  • C. Network security is a built-in solution and Google's Cloud responsibility for SaaS products like G Suite.
  • D. Set up an array of Virtual Private Cloud (VPC) networks to control network security as mandated by the relevant regulation.
Show answer and explanation ▾

Correct answer: C

For SaaS products like G Suite, network security is Google's responsibility, not the customer's. The shared responsibility model for SaaS means Google handles infrastructure security including network controls. The organization cannot implement network-level firewall rules or VPC controls for G Suite because it operates outside their infrastructure. Instead, they should rely on G Suite's built-in security controls and compliance certifications to meet regulatory requirements.

Why the other options are wrong:

  • A. Firewall rules apply to GCP infrastructure, not to G Suite SaaS services accessed over the internet.
  • B. Cloud Armor protects GCP resources from DDoS and application-layer attacks; it cannot control G Suite network security.
  • D. VPC networks control traffic within GCP infrastructure and cannot be applied to manage G Suite security, which is a Google-hosted service.

Question 22

A customer's company has multiple business units. Each business unit operates independently, and each has their own engineering group. Your team wants visibility into all projects created within the company and wants to organize their Google Cloud Platform (GCP) projects based on different business units. Each business unit also requires separate sets of IAM permissions. Which strategy should you use to meet these needs?

  • A. Create an organization node, and assign folders for each business unit.
  • B. Establish standalone projects for each business unit, using gmail.com accounts.
  • C. Assign GCP resources in a project, with a label identifying which business unit owns the resource.
  • D. Assign GCP resources in a VPC for each business unit to separate network access.
Show answer and explanation ▾

Correct answer: A

Creating an organization node with folders for each business unit provides the hierarchical structure needed for visibility, organization, and separate IAM permissions. This approach allows the company to view all projects across the organization while maintaining business unit separation through folders. IAM permissions can be set at the folder level to ensure each business unit has independent access controls and isolation.

Why the other options are wrong:

  • B. Using gmail.com accounts and standalone projects lacks the organizational structure and centralized visibility required, and is not a best practice for enterprise deployments.
  • C. Labels identify resources but don't provide organizational hierarchy or separate IAM permission boundaries like folders do.
  • D. VPC networks control network traffic; they don't organize projects or provide the hierarchical visibility and separate IAM control needed for this scenario.

Question 23

A company has redundant mail servers in different Google Cloud Platform regions and wants to route customers to the nearest mail server based on location. How should the company accomplish this?

  • A. Configure TCP Proxy Load Balancing as a global load balancing service listening on port 995.
  • B. Create a Network Load Balancer to listen on TCP port 995 with a forwarding rule to forward traffic based on location.
  • C. Use Cross-Region Load Balancing with an HTTP(S) load balancer to route traffic to the nearest region.
  • D. Use Cloud CDN to route the mail traffic to the closest origin mail server based on client IP address.
Show answer and explanation ▾

Correct answer: A

TCP Proxy Load Balancing is a global load balancing service that can route traffic based on geographic location to the nearest backend in different regions. It supports TCP traffic on port 995 (IMAPS) and provides automatic routing to the nearest healthy mail server across regions, which is exactly what's needed for location-based routing of mail servers.

Why the other options are wrong:

  • B. Network Load Balancer is regional, not global, so it cannot route traffic across multiple regions based on client location.
  • C. HTTP(S) load balancer is designed for HTTP/HTTPS traffic, not mail protocols like IMAPS on port 995.
  • D. Cloud CDN is optimized for caching and serving content; it's not designed for routing mail server traffic based on location in the way required here.

Question 24

Your team sets up a Shared VPC Network where project co-vpc-prod is the host project. Your team has configured the firewall rules, subnets, and VPN gateway on the host project. They need to enable Engineering Group A to attach a Compute Engine instance to only the 10.1.1.0/24 subnet. What should your team grant to Engineering Group A to meet this requirement?

  • A. Compute Network User Role at the host project level.
  • B. Compute Network User Role at the subnet level.
  • C. Compute Shared VPC Admin Role at the host project level.
  • D. Compute Shared VPC Admin Role at the service project level.
Show answer and explanation ▾

Correct answer: B

The Compute Network User Role must be granted at the subnet level to allow Engineering Group A to attach instances to only the specific 10.1.1.0/24 subnet. This provides the least privilege necessary-the group can use only that subnet and cannot access other subnets in the Shared VPC. Granting this role at the host project level would allow access to all subnets, which exceeds the stated requirement.

Why the other options are wrong:

  • A. Granting the role at the host project level would allow access to all subnets and resources, not just the specific 10.1.1.0/24 subnet.
  • C. Compute Shared VPC Admin role is for administering the Shared VPC itself, which is too permissive for engineering groups that only need to attach instances.
  • D. Shared VPC Admin roles granted at the service project level don't provide the necessary permissions to attach to specific subnets in the host project.

Question 25

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?

  • A. Use Resource Manager on the organization level.
  • B. Use Forseti Security to automate inventory snapshots.
  • C. Use Stackdriver to create a dashboard across all projects.
  • D. Use Security Command Center to view all assets across the organization.
Show answer and explanation ▾

Correct answer: B

Forseti Security is designed to automate inventory snapshots and provide historical records of cloud resources and their configurations over time. It captures the state of infrastructure at different points and can track changes, making it the best solution for maintaining a complete historical record of what was running across thousands of instances in multiple projects.

Why the other options are wrong:

  • A. Resource Manager provides organizational hierarchy and project management but doesn't maintain historical snapshots of resource state.
  • C. Stackdriver (now Cloud Monitoring) creates dashboards for current metrics and logs but isn't designed for long-term historical inventory tracking.
  • D. Security Command Center shows current asset inventory and security findings but doesn't provide the historical point-in-time snapshots needed for this requirement.

Question 26

An organization is starting to move its infrastructure from its on-premises environment to Google Cloud Platform (GCP). The first step the organization wants to take is to migrate its current data backup and disaster recovery solutions to GCP for later analysis. The organization's production environment will remain on-premises for an indefinite time. The organization wants a scalable and cost-efficient solution. Which GCP solution should the organization use?

  • A. BigQuery using a data pipeline job with continuous updates
  • B. Cloud Storage using a scheduled task and gsutil
  • C. Compute Engine Virtual Machines using Persistent Disk
  • D. Cloud Datastore using regularly scheduled batch upload jobs
Show answer and explanation ▾

Correct answer: B

Cloud Storage with scheduled gsutil tasks is the most scalable and cost-efficient solution for migrating backup and disaster recovery data from on-premises to GCP. Cloud Storage is designed for data archival, is highly scalable, offers multiple storage classes for cost optimization, and can be easily automated with scheduled jobs. This approach supports the organization's need for a temporary backup destination while keeping production on- premises.

Why the other options are wrong:

  • A. BigQuery is optimized for analytical queries, not for backup storage or disaster recovery solutions.
  • C. Compute Engine with Persistent Disk is expensive and unnecessary for a backup/DR solution that doesn't require compute capacity.
  • D. Cloud Datastore is a NoSQL database; it's not designed for large-scale backup and disaster recovery data storage.

Question 27

You are creating an internal App Engine application that needs to access a user's Google Drive on the user's behalf. Your company does not want to rely on the current user's credentials. It also wants to follow Google-recommended practices. What should you do?

  • A. Create a new Service account, and give all application users the role of Service Account User.
  • B. Create a new Service account, and add all application users to a Google Group. Give this group the role of Service Account User.
  • C. Use a dedicated G Suite Admin account, and authenticate the application's operations with these G Suite credentials.
  • D. Create a new service account, and grant it G Suite domain-wide delegation. Have the application use it to impersonate the user.
Show answer and explanation ▾

Correct answer: D

Creating a service account with G Suite domain-wide delegation allows the application to impersonate users and access their Google Drive on their behalf without relying on user credentials. This follows Google-recommended security practices by using service accounts with appropriate delegation scopes, avoiding credential sharing, and maintaining proper separation of concerns. The application authenticates as the service account and then impersonates individual users for their specific data access.

Why the other options are wrong:

  • A. Giving individual users the Service Account User role directly doesn't follow the principle of least privilege and isn't the recommended approach.
  • B. Using a Google Group to manage Service Account User roles is better than option A but still doesn't implement the recommended domain-wide delegation pattern for user impersonation.
  • C. Using a G Suite Admin account with application credentials violates security best practices by sharing administrative credentials and doesn't properly separate user access.

Question 28

A customer wants to move their sensitive workloads to a Compute Engine-based cluster using Managed Instance Groups (MIGs). The jobs are bursty and must be completed quickly. They have a requirement to be able to control the key lifecycle. Which boot disk encryption solution should you use on the cluster to meet this customer's requirements?

  • A. Customer-supplied encryption keys (CSEK)
  • B. Customer-managed encryption keys (CMEK) using Cloud Key Management Service (KMS)
  • C. Encryption by default
  • D. Pre-encrypting files before transferring to Google Cloud Platform (GCP) for analysis
Show answer and explanation ▾

Correct answer: B

Customer-managed encryption keys (CMEK) using Cloud KMS is the correct solution because it allows customers to control the complete lifecycle of encryption keys while still benefiting from Google Cloud's managed infrastructure. This meets the requirement for key lifecycle control in a Managed Instance Group environment. CSEK requires managing keys outside of Google's systems and is less suitable for managed infrastructure, encryption by default provides no key control, and pre-encryption is inefficient for cloud- based workloads.

Why the other options are wrong:

  • A. CSEK requires managing keys externally and is cumbersome for managed instance groups requiring scaling.
  • C. Encryption by default does not provide customer control over the key lifecycle.
  • D. Pre-encrypting files before transfer is operationally inefficient and doesn't leverage cloud-native encryption.

Question 29

Your company is using Cloud Dataproc for its Spark and Hadoop jobs. You want to be able to create, rotate, and destroy symmetric encryption keys used for the persistent disks used by Cloud Dataproc. Keys can be stored in the cloud. What should you do?

  • A. Use the Cloud Key Management Service to manage the data encryption key (DEK).
  • B. Use the Cloud Key Management Service to manage the key encryption key (KEK).
  • C. Use customer-supplied encryption keys to manage the data encryption key (DEK).
  • D. Use customer-supplied encryption keys to manage the key encryption key (KEK).
Show answer and explanation ▾

Correct answer: B

The Cloud Key Management Service should be used to manage the key encryption key (KEK), which is the master key that encrypts the data encryption keys. This provides the ability to create, rotate, and destroy symmetric encryption keys stored in the cloud, which is exactly what the requirement specifies. Cloud KMS manages KEKs that protect DEKs, providing proper key hierarchy and lifecycle management.

Why the other options are wrong:

  • A. Managing the DEK directly with Cloud KMS is less secure than the proper key hierarchy of using KMS for the KEK.
  • C. Customer-supplied encryption keys require manual key management outside of cloud systems.
  • D. CSEK for KEK management is not recommended as it bypasses Cloud KMS benefits and requires external key storage.

Question 30

You are a member of the security team at an organization. Your team has a single GCP project with credit card payment processing systems alongside web applications and data processing systems. You want to reduce the scope of systems subject to PCI audit standards. What should you do?

  • A. Use multi-factor authentication for admin access to the web application.
  • B. Use only applications certified compliant with PA-DSS.
  • C. Move the cardholder data environment into a separate GCP project.
  • D. Use VPN for all connections between your office and cloud environments.
Show answer and explanation ▾

Correct answer: C

Moving the cardholder data environment into a separate GCP project reduces the scope of systems subject to PCI audit standards by isolating sensitive payment processing systems from other workloads. This architectural separation ensures that only the dedicated project requires PCI compliance certification, leaving web applications and data processing systems outside the audit scope. The other options do not reduce the compliance scope because they don't separate the cardholder data from the broader environment.

Why the other options are wrong:

  • A. Multi-factor authentication improves security but does not reduce the scope of systems subject to PCI audit.
  • B. Using PA-DSS certified applications improves compliance but does not reduce the scope of audit requirements.
  • D. VPN connections improve security but do not reduce the scope of systems subject to PCI audit standards.

Question 31

A retail customer allows users to upload comments and product reviews. The customer needs to make sure the text does not include sensitive data before the comments or reviews are published. Which Google Cloud Service should be used to achieve this?

  • A. Cloud Key Management Service
  • B. Cloud Data Loss Prevention API
  • C. BigQuery
  • D. Web Security Scanner
Show answer and explanation ▾

Correct answer: B

The Cloud Data Loss Prevention API is specifically designed to detect and redact sensitive data patterns such as credit card numbers, social security numbers, and other personally identifiable information. It scans text content to identify sensitive data before publication, making it the ideal service for validating user-generated content like comments and reviews. The other options serve different purposes and are not designed for content scanning.

Why the other options are wrong:

  • A. Cloud Key Management Service manages encryption keys rather than detecting sensitive data.
  • C. BigQuery is a data warehouse for analysis and does not provide real-time sensitive data detection.
  • D. Web Security Scanner identifies web application vulnerabilities rather than sensitive data within user content.

Question 32

A company allows every employee to use Google Cloud Platform. Each department has a Google Group, with all department members as group members. If a department member creates a new project, all members of that department should automatically have read-only access to all new project resources. Members of any other department should not have access to the project. You need to configure this behavior. What should you do to meet these requirements?

  • A. Create a Folder per department under the Organization. For each department's Folder, assign the Project Viewer role to the Google Group related to that department.
  • B. Create a Folder per department under the Organization. For each department's Folder, assign the Project Browser role to the Google Group related to that department.
  • C. Create a Project per department under the Organization. For each department's Project, assign the Project Viewer role to the Google Group related to that department.
  • D. Create a Project per department under the Organization. For each department's Project, assign the Project Browser role to the Google Group related to that department.
Show answer and explanation ▾

Correct answer: A

Creating a Folder per department and assigning the Project Viewer role to each department's Google Group ensures that when any department member creates a new project within their folder, the folder-level IAM binding automatically grants read-only access to all department members. The Folder resource hierarchy in GCP automatically cascades permissions to child projects, and Project Viewer provides read-only access. This approach scales automatically as new projects are created within each folder.

Why the other options are wrong:

  • B. Project Browser role does not provide resource-level read access; Project Viewer is needed for resource visibility.
  • C. Creating one Project per department does not allow automatic permissions on new projects created by department members.
  • D. Creating per-department Projects combined with Project Browser role fails to provide proper resource access control.

Question 33

A customer's internal security team must manage its own encryption keys for encrypting data on Cloud Storage and decides to use customer-supplied encryption keys (CSEK). How should the team complete this task?

  • A. Upload the encryption key to a Cloud Storage bucket, and then upload the object to the same bucket.
  • B. Use the gsutil command line tool to upload the object to Cloud Storage, and specify the location of the encryption key.
  • C. Generate an encryption key in the Google Cloud Platform Console, and upload an object to Cloud Storage using the specified key.
  • D. Encrypt the object, then use the gsutil command line tool or the Google Cloud Platform Console to upload the object to Cloud Storage.
Show answer and explanation ▾

Correct answer: D

When using customer-supplied encryption keys (CSEK), the encryption must be performed on the client side before uploading to Cloud Storage. The team should encrypt the object locally, then use either the gsutil command-line tool or Google Cloud Console to upload the encrypted object to Cloud Storage, specifying the encryption key. Google Cloud Storage does not accept unencrypted objects when CSEK is required; encryption happens client-side before transmission.

Why the other options are wrong:

  • A. Uploading encryption keys to Cloud Storage defeats the purpose of CSEK and creates a security risk.
  • B. While gsutil can be used for upload, the encryption must occur before upload, not just during upload specification.
  • C. Encryption keys cannot be generated in the Google Cloud Console for CSEK; they must be generated and managed externally by the customer.

Question 34

You want to evaluate your organization's Google Cloud instance for PCI compliance. You need to identify Google's inherent controls. Which document should you review to find the information?

  • A. Google Cloud Platform: Customer Responsibility Matrix
  • B. PCI DSS Requirements and Security Assessment Procedures
  • C. PCI SSC Cloud Computing Guidelines
  • D. Product documentation for Compute Engine
Show answer and explanation ▾

Correct answer: A

The Google Cloud Platform: Customer Responsibility Matrix document explicitly outlines which PCI compliance controls are Google's inherent responsibilities and which remain the customer's responsibility. This document is the authoritative source for understanding Google's inherent controls versus customer obligations in a PCI compliance evaluation. The other documents do not specifically address the division of control responsibility between Google and customers.

Why the other options are wrong:

  • B. PCI DSS Requirements document describes compliance standards but does not specifically identify Google's inherent controls.
  • C. PCI SSC Cloud Computing Guidelines are general cloud guidance but not specific to Google Cloud's control implementation.
  • D. Product documentation for Compute Engine describes features but does not specifically address PCI compliance controls and responsibilities.

Question 35

Your company runs a website that will store PII on Google Cloud Platform. To comply with data privacy regulations, this data can only be stored for a specific amount of time and must be fully deleted after this specific period. Data that has not yet reached the time period should not be deleted. You want to automate the process of complying with this regulation. What should you do?

  • A. Store the data in a single Persistent Disk, and delete the disk at expiration time.
  • B. Store the data in a single BigQuery table and set the appropriate table expiration time.
  • C. Store the data in a single Cloud Storage bucket and configure the bucket's Time to Live.
  • D. Store the data in a single BigTable table and set an expiration time on the column families.
Show answer and explanation ▾

Correct answer: B

BigQuery table expiration is specifically designed for PII data retention compliance. It automatically deletes entire tables after a specified time period, ensuring data is fully removed at expiration while preserving data before that threshold. This is the purpose-built GCP solution for time-based data deletion requirements.

Why the other options are wrong:

  • A. Persistent Disks require manual deletion and don't provide automatic expiration capabilities.
  • C. Cloud Storage buckets have TTL policies for individual objects, not data retention with selective deletion of unexpired data.
  • D. Bigtable column family expiration deletes cells based on age, which would delete data before the compliance period ends.

Question 36

A DevOps team will create a new container to run on Google Kubernetes Engine. As the application will be internet-facing, they want to minimize the attack surface of the container. What should they do?

  • A. Use Cloud Build to build the container images.
  • B. Build small containers using small base images.
  • C. Delete non-used versions from Container Registry.
  • D. Use a Continuous Delivery tool to deploy the application.
Show answer and explanation ▾

Correct answer: B

Building small containers using small base images directly minimizes attack surface by reducing the number of packages, libraries, and potential vulnerabilities present in the container. Fewer components mean fewer attack vectors for exploitation.

Why the other options are wrong:

  • A. Cloud Build is a build service and doesn't inherently reduce the attack surface of the resulting container.
  • C. Deleting old versions from Container Registry is a maintenance task that doesn't affect the security of currently running containers.
  • D. Continuous Delivery tools are deployment mechanisms and don't minimize the container's attack surface itself.

Question 37

While migrating your organization's infrastructure to GCP, a large number of users will need to access GCP Console. The Identity Management team already has a well- established way to manage your users and want to keep using your existing Active Directory or LDAP server along with the existing SSO password. What should you do?

  • A. Manually synchronize the data in Google domain with your existing Active Directory or LDAP server.
  • B. Use Google Cloud Directory Sync to synchronize the data in Google domain with your existing Active Directory or LDAP server.
  • C. Users sign in directly to the GCP Console using the credentials from your on- premises Kerberos compliant identity provider.
  • D. Users sign in using OpenID (OIDC) compatible IdP, receive an authentication token, then use that token to log in to the GCP Console.
Show answer and explanation ▾

Correct answer: B

Google Cloud Directory Sync is the official GCP tool designed to synchronize users from on-premises Active Directory or LDAP servers to Google Cloud Identity. It maintains the existing identity infrastructure while enabling SSO integration with GCP Console.

Why the other options are wrong:

  • A. Manual synchronization is error-prone and not scalable for large user populations.
  • C. GCP Console does not support direct Kerberos authentication; it requires Google Cloud Identity federation.
  • D. While OpenID Connect integration is possible, it's more complex than using Directory Sync which is purpose-built for Active Directory/LDAP scenarios.

Question 38

Your company is using GSuite and has developed an application meant for internal usage on Google App Engine. You need to make sure that an external user cannot gain access to the application even when an employee's password has been compromised. What should you do?

  • A. Enforce 2-factor authentication in GSuite for all users.
  • B. Configure Cloud Identity-Aware Proxy for the App Engine Application.
  • C. Provision user passwords using GSuite Password Sync.
  • D. Configure Cloud VPN between your private network and GCP.
Show answer and explanation ▾

Correct answer: B

Cloud Identity-Aware Proxy (IAP) provides context-aware access control to App Engine applications, verifying both user identity and device context. It prevents external access regardless of credential compromise by enforcing that requests must come through the IAP gateway with valid authentication.

Why the other options are wrong:

  • A. Two-factor authentication protects against compromised passwords but doesn't prevent external access once authenticated.
  • C. Password Sync is a credential management tool that doesn't prevent unauthorized external access.
  • D. VPN restricts network access but doesn't provide application-level identity verification or prevent compromised credentials from being used over the VPN.

Question 39

A large financial institution is moving its Big Data analytics to Google Cloud Platform. They want to have maximum control over the encryption process of data stored at rest in BigQuery. What technique should the institution use?

  • A. Use Cloud Storage as a federated Data Source.
  • B. Use a Cloud Hardware Security Module (Cloud HSM).
  • C. Customer-managed encryption keys (CMEK).
  • D. Customer-supplied encryption keys (CSEK).
Show answer and explanation ▾

Correct answer: D

Customer-supplied encryption keys (CSEK) allow organizations to provide their own encryption keys to BigQuery, maintaining maximum control over the encryption process. The customer generates, manages, and supplies keys for each operation, giving complete control over the encryption lifecycle.

Why the other options are wrong:

  • A. Cloud Storage federated data sources don't provide encryption control.
  • B. Cloud HSM is for key management and storage but CSEK is the direct method for maximum control over BigQuery encryption.
  • C. Customer-managed encryption keys (CMEK) delegate key management to Google Cloud, reducing direct control compared to CSEK.

Question 40

A company is deploying their application on Google Cloud Platform. Company policy requires long-term data to be stored using a solution that can automatically replicate data over at least two geographic places. Which Storage solution are they allowed to use?

  • A. Cloud Bigtable
  • B. Cloud BigQuery
  • C. Compute Engine SSD Disk
  • D. Compute Engine Persistent Disk
Show answer and explanation ▾

Correct answer: B

BigQuery automatically replicates data across multiple geographic regions as a built-in feature, meeting the requirement for data redundancy across at least two geographic locations without additional configuration.

Why the other options are wrong:

  • A. Cloud Bigtable replication must be explicitly configured and doesn't automatically replicate across geographic regions.
  • C. Compute Engine SSD Disks are local to a single zone and do not automatically replicate across geographic regions.
  • D. Compute Engine Persistent Disks are zonal or regional but do not automatically replicate across multiple geographic regions.

Question 41

A large e-retailer is moving to Google Cloud Platform with its ecommerce website. The company wants to ensure payment information is encrypted between the customer's browser and GCP when the customers checkout online. What should they do?

  • A. Configure an SSL Certificate on an L7 Load Balancer and require encryption.
  • B. Configure an SSL Certificate on a Network TCP Load Balancer and require encryption.
  • C. Configure the firewall to allow inbound traffic on port 443, and block all other inbound traffic.
  • D. Configure the firewall to allow outbound traffic on port 443, and block all other outbound traffic.
Show answer and explanation ▾

Correct answer: A

An L7 (Application) Load Balancer with SSL certificate configuration terminates HTTPS connections from clients and encrypts traffic between the browser and GCP. The L7 load balancer understands application-layer protocols and can properly handle SSL/TLS termination for web traffic.

Why the other options are wrong:

  • B. A Network TCP Load Balancer operates at Layer 4 and is not optimal for HTTPS termination; it doesn't understand SSL/TLS at the application level.
  • C. Firewall rules allowing port 443 only enable traffic flow but don't configure the encryption itself.
  • D. Outbound firewall rules don't encrypt inbound customer traffic; they control traffic leaving the network.

Question 42

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?

  • A. Migrate the application into an isolated project using a "Lift & Shift" approach. Enable all internal TCP traffic using VPC Firewall rules. Use VPC Flow logs to determine what traffic should be allowed for the application to work properly.
  • B. Migrate the application into an isolated project using a "Lift & Shift" approach in a custom network. Disable all traffic within the VPC and look at the Firewall logs to determine what traffic should be allowed for the application to work properly.
  • C. Refactor the application into a micro-services architecture in a GKE cluster. Disable all traffic from outside the cluster using Firewall Rules. Use VPC Flow logs to determine what traffic should be allowed for the application to work properly.
  • D. Refactor the application into a micro-services architecture hosted in Cloud Functions in an isolated project. Disable all traffic from outside your project using Firewall Rules. Use VPC Flow logs to determine what traffic should be allowed for the application to work properly.
Show answer and explanation ▾

Correct answer: A

Option A provides the safest approach for migrating an application with unknown port requirements. By using a Lift & Shift approach in an isolated project and enabling all internal TCP traffic initially, the application can function while VPC Flow Logs capture actual traffic patterns. This allows you to subsequently restrict firewall rules to only the necessary ports and protocols, minimizing security risk. The isolated project prevents any impact on the production environment.

Why the other options are wrong:

  • B. Firewall logs do not show blocked traffic details the way VPC Flow Logs do; starting with all traffic disabled would prevent the application from running at all during the discovery phase.
  • C. Refactoring into microservices on GKE is a major architectural change inappropriate for a time-constrained legacy migration and introduces unnecessary complexity.
  • D. Cloud Functions cannot host legacy applications and is entirely unsuitable for this use case.

Question 43

Your company has deployed an application on Compute Engine. The application is accessible by clients on port 587. You need to balance the load between the different instances running the application. The connection should be secured using TLS, and terminated by the Load Balancer. What type of Load Balancing should you use?

  • A. Network Load Balancing
  • B. HTTP(S) Load Balancing
  • C. TCP Proxy Load Balancing
  • D. SSL Proxy Load Balancing
Show answer and explanation ▾

Correct answer: D

SSL Proxy Load Balancing is the correct choice for this scenario. Port 587 is used for SMTP (email), which is a non-HTTP protocol. SSL Proxy Load Balancing handles TLS termination for non-HTTP protocols like SMTP, while HTTP(S) Load Balancing only works with HTTP/HTTPS. SSL Proxy provides the required encryption termination at the load balancer level.

Why the other options are wrong:

  • A. Network Load Balancing operates at Layer 4 but does not provide TLS termination; it would pass encrypted traffic through without decryption.
  • B. HTTP(S) Load Balancing is designed only for HTTP and HTTPS protocols, not for SMTP on port 587.
  • C. TCP Proxy Load Balancing handles Layer 4 traffic but does not provide TLS termination capabilities.

Question 44

You want to limit the images that can be used as the source for boot disks. These images will be stored in a dedicated project. What should you do?

  • A. Use the Organization Policy Service to create a compute.trustedimageProjects constraint on the organization level. List the trusted project as the whitelist in an allow operation.
  • B. Use the Organization Policy Service to create a compute.trustedimageProjects constraint on the organization level. List the trusted projects as the exceptions in a deny operation.
  • C. In Resource Manager, edit the project permissions for the trusted project. Add the organization as member with the role: Compute Image User.
  • D. In Resource Manager, edit the organization permissions. Add the project ID as member with the role: Compute Image User.
Show answer and explanation ▾

Correct answer: A

The Organization Policy Service constraint compute.trustedimageProjects is designed specifically to control which images can be used as boot disk sources. Using an allow operation with the trusted project listed as a whitelist restricts boot disk image sources to only those images stored in the designated project. This is the proper GCP mechanism for this control at the organization level.

Why the other options are wrong:

  • B. A deny operation with exceptions is the inverse approach; allow operations with whitelists are the correct pattern for restricting to trusted sources.
  • C. Resource Manager project permissions and the Compute Image User role do not control which images can be used as boot disk sources organization-wide.
  • D. Adding a project ID as a member with organizational permissions does not implement the constraint needed to restrict image sources.

Question 45

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?

  • A. Build new base images when patches are available, and use a CI/CD pipeline to rebuild VMs, deploying incrementally.
  • B. Federate a Domain Controller into Compute Engine, and roll out weekly patches via Group Policy Object.
  • C. Use Deployment Manager to provision updated VMs into new serving Instance Groups (IGs).
  • D. Reboot all VMs during the weekly maintenance window and allow the StartUp Script to download the latest patches from the internet.
Show answer and explanation ▾

Correct answer: A

Building new base images when patches are available and using a CI/CD pipeline to rebuild and incrementally deploy VMs is the best practice for elastic cloud infrastructure. This approach leverages immutable infrastructure principles, ensures consistent patching across all instances, allows testing before production deployment, and aligns with cloud- native operations. It avoids manual patching and ensures instances are always created from known-good images.

Why the other options are wrong:

  • B. Federating Active Directory into Compute Engine adds unnecessary complexity and ties cloud infrastructure to on-premises management patterns inappropriate for elastic cloud.
  • C. Deployment Manager creates new instances but does not address patching existing instances or automate the patching process.
  • D. Relying on startup scripts to download patches is unreliable, introduces inconsistency, and does not follow cloud best practices for immutable infrastructure.

Question 46

Your team needs to make sure that their backend database can only be accessed by the frontend application and no other instances on the network. How should your team design this network?

  • A. Create an ingress firewall rule to allow access only from the application to the database using firewall tags.
  • B. Create a different subnet for the frontend application and database to ensure network isolation.
  • C. Create two VPC networks, and connect the two networks using Cloud VPN gateways to ensure network isolation.
  • D. Create two VPC networks, and connect the two networks using VPC peering to ensure network isolation.
Show answer and explanation ▾

Correct answer: A

Creating an ingress firewall rule using firewall tags to allow access only from the frontend application to the database is the correct approach. Firewall tags enable granular, identity- based network access control within a single VPC. This method isolates database traffic to only authorized application instances without requiring multiple subnets or networks, and is more efficient and manageable than network-level segmentation.

Why the other options are wrong:

  • B. Subnets provide network routing boundaries but not access control; instances in different subnets can still communicate without firewall rules to restrict it.
  • C. Using separate VPC networks connected by Cloud VPN adds unnecessary complexity and latency for what can be accomplished with firewall rules.
  • D. VPC peering is used for connecting entire networks, not for restricting access between specific application tiers within a single organization.

Question 47

An organization receives an increasing number of phishing emails. Which method should be used to protect employee credentials in this situation?

  • A. Multifactor Authentication
  • B. A strict password policy
  • C. Captcha on login pages
  • D. Encrypted emails
Show answer and explanation ▾

Correct answer: A

Multifactor Authentication (MFA) is the most effective defense against phishing attacks. Even if attackers obtain credentials through phishing, they cannot access accounts without the second authentication factor. MFA prevents unauthorized access regardless of password compromise, making it the primary technical control for protecting against credential theft from phishing.

Why the other options are wrong:

  • B. Strict password policies alone do not prevent users from willingly providing credentials to phishers or protect against password reuse across services.
  • C. Captcha prevents automated attacks but does not stop users from voluntarily entering credentials on phishing pages.
  • D. Encrypted emails do not protect credentials that users may voluntarily share with attackers through phishing interactions.

Question 48

A customer is collaborating with another company to build an application on Compute Engine. The customer is building the application tier in their GCP Organization, and the other company is building the storage tier in a different GCP Organization. This is a 3- tier web application. Communication between portions of the application must not traverse the public internet by any means. Which connectivity option should be implemented?

  • A. VPC peering
  • B. Cloud VPN
  • C. Cloud Interconnect
  • D. Shared VPC
Show answer and explanation ▾

Correct answer: C

Cloud Interconnect is the appropriate choice for connecting two separate GCP organizations while keeping traffic off the public internet. Cloud Interconnect provides dedicated network connections between organizations with guaranteed bandwidth and low latency. VPC peering only works within a single organization or between organizations' VPCs in a limited way, while Cloud VPN encrypts traffic but still traverses the public internet.

Why the other options are wrong:

  • A. VPC peering cannot directly connect VPCs across separate GCP organizations; it is limited to VPCs within the same organization or between organizations in specific configurations.
  • B. Cloud VPN, while encrypted, still traverses the public internet and does not meet the requirement that communication must not traverse public internet by any means.
  • D. Shared VPC is an organizational resource sharing mechanism within a single GCP organization, not a cross-organization connectivity solution.

Question 49

Your team wants to make sure Compute Engine instances running in your production project do not have public IP addresses. The frontend application Compute Engine instances will require public IPs. The product engineers have the Editor role to modify resources. Your team wants to enforce this requirement. How should your team meet these requirements?

  • A. Enable Private Access on the VPC network in the production project.
  • B. Remove the Editor role and grant the Compute Admin IAM role to the engineers.
  • C. Set up an organization policy to only permit public IPs for the front-end Compute Engine instances.
  • D. Set up a VPC network with two subnets: one with public IPs and one without public IPs.
Show answer and explanation ▾

Correct answer: C

Organization policies are the correct mechanism to enforce constraints on resource creation across a project. By setting up an organization policy that restricts public IP assignment while creating exceptions for specific instances (the front-end ones), the team can enforce the requirement that most instances lack public IPs while allowing frontend instances to have them. This prevents engineers from circumventing the policy even with Editor role permissions.

Why the other options are wrong:

  • A. Private Access enables private connectivity to Google services but does not prevent public IP assignment to instances.
  • B. Removing Editor role and granting Compute Admin would still allow those engineers to create public IPs; IAM roles do not enforce this type of resource constraint.
  • D. VPC subnet configuration alone cannot enforce a policy-subnets can be configured for public or private IPs, but instances can still be assigned public IPs in either case through explicit configuration.

Question 50

A patch for a vulnerability has been released, and a DevOps team needs to update their running containers in Google Kubernetes Engine (GKE). How should the DevOps team accomplish this?

  • A. Use Puppet or Chef to push out the patch to the running container.
  • B. Verify that auto upgrade is enabled; if so, Google will upgrade the nodes in a GKE cluster.
  • C. Update the application code or apply a patch, build a new image, and redeploy it.
  • D. Configure containers to automatically upgrade when the base image is available in Container Registry.
Show answer and explanation ▾

Correct answer: C

Patching vulnerabilities in containers requires rebuilding the container image with the patched code or base image, then redeploying it. Containers are immutable artifacts; you cannot patch running containers in place. The correct approach is to update the application or patch the base image, rebuild it, and redeploy the new image to the cluster.

Why the other options are wrong:

  • A. Puppet and Chef are configuration management tools designed for VMs, not for updating containerized applications in Kubernetes.
  • B. GKE auto-upgrade upgrades the Kubernetes cluster nodes themselves, not the container images running on them.
  • D. Containers do not automatically upgrade when a base image is updated in Container Registry; you must explicitly rebuild and redeploy the application image.

Get the complete Google Professional Cloud Security Engineer bank

These 50 questions are roughly 16% of the bank. The full pack has 361 real Google Professional Cloud Security Engineer questions, each with the same depth of explanation, plus a questions-only PDF for timed practice and free updates forever.

View the full Google Professional Cloud Security Engineer question bank →

Related exams

Browse free practice questions for every exam →

Back to blog