Courseiva

Google Professional Cloud Security Engineer (PCSE) — Questions 376450

960 questions total · 13pages · All types, answers revealed

Page 5

Page 6 of 13

Page 7
376
Multi-Selecteasy

Which TWO of the following are benefits of using Cloud NAT? (Choose TWO.)

Select 2 answers
A.Cloud NAT provides inbound port forwarding to instances.
B.Cloud NAT can be used to enable connectivity between VPC networks via VPN.
C.Instances without external IP addresses can connect to the internet.
D.Inbound connections from the internet are blocked unless explicitly allowed.
E.Cloud NAT automatically provides high availability across zones.
AnswersC, D

Cloud NAT enables outbound-only internet access for private instances.

Why this answer

Cloud NAT allows instances without external IP addresses to initiate outbound connections to the internet, translating their private IPs to a single public IP or a range. This is a core benefit because it enables secure outbound internet access without exposing instances to inbound traffic.

Exam trap

Google Cloud often tests the misconception that Cloud NAT provides inbound port forwarding or automatic high availability, but in reality it is strictly an outbound SNAT service that requires manual configuration for redundancy.

377
MCQhard

A security auditor needs to review all IAM policy changes made in the last 30 days across multiple projects. The auditor has the Organization Viewer role at the organization level. What is the most efficient way to provide access without giving unnecessary permissions?

A.Grant the auditor the Logs Viewer role at the organization level to view audit logs of IAM changes.
B.The existing Organization Viewer role already provides access to IAM policies across all projects.
C.Grant the auditor the Project Viewer role on each project.
D.Grant the auditor the roles/iam.securityReviewer role at the organization level.
AnswerD

This role provides read access to IAM policies across all projects within the organization.

Why this answer

The roles/iam.securityReviewer role at the organization level grants read-only access to all IAM policies and audit logs across all projects in the organization, without granting any write or management permissions. This allows the auditor to review IAM policy changes efficiently without needing per-project assignments.

Exam trap

Google Cloud often tests the misconception that the Organization Viewer role provides broad read access to all resources, when in fact it only grants visibility into organization-level metadata, not IAM policies or audit logs.

How to eliminate wrong answers

Option A is wrong because the Logs Viewer role only provides access to log entries, not to IAM policies themselves; the auditor needs to review IAM policy changes, which requires reading the policies, not just logs. Option B is wrong because the Organization Viewer role only allows viewing organization-level resources and metadata, but does not grant access to IAM policies or audit logs across projects. Option C is wrong because granting the Project Viewer role on each project is inefficient and unnecessary; it would require manual assignment to every project, and it does not provide access to IAM policy history or audit logs.

378
Multi-Selectmedium

You are designing VPC firewall rules for a multi-tier application. Which TWO considerations are important when creating firewall rules in terms of security and manageability? (Choose TWO.)

Select 2 answers
A.Network tags are not recommended for large deployments because they require managing many tags.
B.Use hierarchical firewall policies to enforce baseline rules across all VPCs in the organization.
C.Use service accounts or network tags to target rules, rather than source CIDR, where possible for dynamic environments.
D.Enable firewall rules logging for all rules to ensure full auditability.
E.Always specify the target region for firewall rules to limit the scope.
AnswersB, C

Hierarchical policies provide centralized management and consistent enforcement.

Why this answer

Options B and C are correct. Hierarchical firewall policies allow you to enforce baseline rules across all VPCs in an organization, simplifying management and ensuring consistent security. Using service accounts or network tags to target rules (rather than source CIDR) is recommended for dynamic environments where IP addresses may change, as it improves scalability and reduces manual updates.

Option A is incorrect because network tags are actually recommended for large deployments to simplify rule targeting. Option D is incorrect because enabling firewall rules logging for all rules generates excessive logs and costs; it should be selectively applied to rules that require auditing. Option E is incorrect because firewall rules can be global or regional; specifying a target region is not always necessary and may overly restrict the rule's applicability.

379
MCQeasy

A healthcare organization is deploying a new application on Google Cloud that will process protected health information (PHI) subject to HIPAA. The security team has enabled encryption at rest using Google-managed keys and configured Cloud Audit Logs. During a compliance review, the auditor notes that the organization has not yet signed a Business Associate Agreement (BAA) with Google Cloud. What should the organization do to remediate this issue?

A.Enable VPC Service Controls to satisfy HIPAA requirements without a BAA.
B.Use Customer-Managed Encryption Keys (CMEK) to meet the requirement for a signed BAA.
C.Sign a BAA with Google Cloud through the Google Cloud Console or by contacting Google Cloud Support.
D.Configure Access Transparency logs as a substitute for a BAA.
AnswerC

A BAA is required under HIPAA.

Why this answer

Under HIPAA, a covered entity or business associate must have a signed Business Associate Agreement (BAA) with any service provider that creates, receives, maintains, or transmits protected health information (PHI) on its behalf. Google Cloud offers a standard BAA that customers must accept through the Google Cloud Console or by contacting support; encryption at rest and audit logs are separate technical controls that do not satisfy this contractual requirement. Option C is correct because signing a BAA is the only direct way to establish the legally required business associate relationship with Google Cloud for PHI processing.

Exam trap

The trap here is that candidates confuse technical security controls (encryption, network isolation, logging) with the contractual requirement for a BAA, assuming that strong encryption or access controls can substitute for the legal agreement mandated by HIPAA.

How to eliminate wrong answers

Option A is wrong because VPC Service Controls provide network-based data exfiltration prevention but do not create a contractual business associate relationship; HIPAA requires a signed BAA regardless of network controls. Option B is wrong because Customer-Managed Encryption Keys (CMEK) give the customer control over encryption keys but do not replace the legal obligation to sign a BAA; encryption is a technical safeguard, not a contractual one. Option D is wrong because Access Transparency logs provide visibility into Google administrative access but are not a substitute for a BAA; HIPAA mandates a signed agreement, not just logging features.

380
MCQeasy

Which service provides a centralized view of all resource configurations and IAM policies across projects?

A.Cloud Security Command Center
B.Cloud Asset Inventory
C.Cloud Audit Logs
D.Access Transparency
AnswerB

Cloud Asset Inventory provides a centralized view of all resources and their IAM policies across projects.

Why this answer

Cloud Asset Inventory provides a centralized view of all resources and their IAM policies across projects. Option A, Cloud Security Command Center, provides security findings and vulnerabilities, not a full inventory. Option C, Cloud Audit Logs, records API activity but not a static inventory.

Option D, Access Transparency, logs Google personnel access.

381
MCQeasy

An organization wants to use a FIPS 140-2 Level 3 validated hardware security module (HSM) to protect encryption keys in Cloud KMS. Which key protection level should they choose when creating a key ring?

A.software
B.cloud
C.external
D.hsm
AnswerD

HSM keys use Cloud HSM which is FIPS 140-2 Level 3 validated.

Why this answer

Cloud KMS offers two protection levels: software and HSM. HSM protection level uses Cloud HSM, which is FIPS 140-2 Level 3 validated. Software keys are validated to Level 1.

382
MCQeasy

A security engineer wants to block all SSH access from the internet to a VPC network, except for a specific bastion host. What is the most efficient way to configure this?

A.Create a firewall rule allowing SSH only from the bastion host's IP and rely on the implicit deny
B.Create a firewall rule with deny SSH from 0.0.0.0/0 and a higher priority rule allowing SSH from the bastion host's IP
C.Use a service perimeter
D.Create a firewall rule denying SSH from all IPs except the bastion host using the 'except' sources
AnswerA

Since the implicit deny blocks all other traffic, this single rule is sufficient.

Why this answer

VPC firewall rules are implicitly deny-all at the end of the evaluation order. By creating a single allow rule for SSH from the bastion host's IP, all other SSH traffic is implicitly denied by the default deny rule, without needing an explicit deny rule. This is the most efficient approach as it minimizes rule count and avoids potential priority conflicts.

Exam trap

Google Cloud often tests the misconception that you need an explicit deny rule to block traffic, when in fact the implicit deny at the end of the firewall rule evaluation order already blocks all traffic not explicitly allowed.

How to eliminate wrong answers

Option B is wrong because it introduces an unnecessary explicit deny rule for SSH from 0.0.0.0/0; the implicit deny already blocks all traffic not explicitly allowed, so the explicit deny adds no value and increases rule complexity. Option C is wrong because a service perimeter (VPC Service Controls) is designed to restrict data exfiltration from Google Cloud services, not to control network-level access like SSH to compute instances. Option D is wrong because VPC firewall rules do not support an 'except' syntax for sources; you cannot specify a deny rule with an exclusion list—you must use allow rules with specific source IPs.

383
MCQmedium

A company is using Cloud Monitoring to track latency of a microservice. They notice a sudden spike in the 99th percentile latency but no change in request count. What is the most likely cause?

A.A single slow query to a backend database
B.A pod restart in GKE
C.A misconfigured health check causing 503s
D.A DDoS attack
AnswerA

A slow query can increase tail latency, affecting p99 while average may remain low.

Why this answer

A single slow query to a backend database can increase p99 latency without affecting request count. Other options would affect availability or count.

384
MCQeasy

A company wants to ensure that data stored in Cloud Storage is encrypted at rest using keys that they generate and manage on-premises. Which encryption method should they use?

A.Customer-Managed Encryption Keys (CMEK) using Cloud KMS
B.Google-managed encryption keys
C.Customer-Supplied Encryption Keys (CSEK)
D.Client-side encryption before uploading
AnswerC

CSEK allows you to supply your own encryption keys, which are used to encrypt data. You manage the keys on-premises.

Why this answer

Customer-Supplied Encryption Keys (CSEK) allow you to provide your own encryption keys for Cloud Storage objects. Google discards the key after encryption/decryption, and you manage the key lifecycle.

385
Drag & Dropmedium

Drag and drop the steps to set up IAM conditions for a service account in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

IAM conditions involve identifying the scope, writing the condition, binding it, attaching the policy, and testing.

386
MCQeasy

Which of the following is a customer responsibility under the Google Cloud shared responsibility model?

A.Physical security of data centers
B.Encryption of data at rest and in transit
C.Hardware maintenance
D.Hypervisor security
AnswerB

Customers are responsible for encrypting their data, though Google provides tools to assist.

Why this answer

The shared responsibility model assigns physical security, hardware, and hypervisor security to Google; the customer is responsible for data encryption, IAM, network controls, and application security.

387
Multi-Selecthard

Which THREE steps are required to implement field-level encryption for sensitive columns in a Cloud SQL for PostgreSQL database using Cloud KMS? (Choose three.)

Select 3 answers
A.Create a symmetric encryption key in Cloud KMS.
B.Install the pgcrypto extension in the PostgreSQL database.
C.Configure a Cloud HSM key to generate the data encryption key.
D.Enable CMEK on the Cloud SQL instance.
E.Grant the Cloud SQL service account the 'Cloud KMS CryptoKey Encrypter/Decrypter' role.
AnswersA, B, E

The key is needed to encrypt/decrypt data at the field level.

Why this answer

Cloud KMS symmetric encryption keys are used to encrypt data encryption keys (DEKs) that protect the column data. In field-level encryption, the application or database encrypts each column value using a DEK, which is then wrapped (encrypted) by a Cloud KMS key. This ensures the sensitive data is encrypted at the application layer, independent of the underlying storage encryption.

Exam trap

Google Cloud often tests the distinction between instance-level encryption (CMEK) and field-level encryption; the trap here is that candidates confuse CMEK (which encrypts the entire database at rest) with the need for a per-column encryption mechanism using pgcrypto and Cloud KMS.

388
MCQmedium

Refer to the exhibit. A security engineer reviews the IAM policy for a service account. What is the effect of the condition?

A.The user can only use the service account when the request originates from a specific IP range.
B.The condition has no effect because request.time is not a supported variable in IAM conditions.
C.The user can only use the service account when the resource is in a specific region.
D.The user can only use the service account before December 31, 2025.
AnswerD

Correct: The condition requires request.time < 2025-12-31T23:59:59Z, so access is only granted before that moment.

Why this answer

The condition in the IAM policy uses the `request.time` attribute with a date/time comparison operator, which is a supported variable in IAM conditions. The condition `StringEquals` with `request.time` and a specific date (e.g., `2025-12-31T23:59:59Z`) restricts access to only before that timestamp, effectively granting access only until December 31, 2025. This is a common pattern for time-based access control in cloud IAM policies.

Exam trap

Google Cloud often tests the misconception that `request.time` is not a valid IAM condition variable, leading candidates to incorrectly choose Option B, but in reality, it is fully supported and commonly used for time-based access control.

How to eliminate wrong answers

Option A is wrong because the condition does not reference an IP address range (e.g., `request.ip` or `sourceIp`); it uses `request.time`, which is a time-based variable, not a network-based one. Option B is wrong because `request.time` is indeed a supported variable in IAM conditions (e.g., in AWS IAM or Google Cloud IAM), and the condition will have an effect by restricting access based on the current timestamp. Option C is wrong because the condition does not involve a resource region (e.g., `resource.location`); it only checks the request time, not the geographic location of the resource.

389
MCQeasy

A company runs a Cloud SQL for PostgreSQL instance that stores customer data. They must encrypt the database at rest using customer-managed encryption keys (CMEK) to meet regulatory requirements. The instance is currently using Google-managed encryption. What must they do to implement CMEK? The company wants to minimize downtime and avoid data loss.

A.Use the gcloud command to update the existing instance to use CMEK by specifying the key.
B.Create a new Cloud SQL instance with CMEK enabled, then export data from the old instance and import into the new one.
C.Configure Cloud External Key Manager (EKM) and attach it to the existing instance via a patch operation.
D.Implement client-side encryption in the application using a library like Tink and store the encrypted data in the existing database.
AnswerB

This meets the CMEK requirement by creating a new instance, and data migration via export/import ensures minimal data loss and manageable downtime.

Why this answer

Cloud SQL does not support enabling CMEK on an existing instance; you must create a new instance with CMEK enabled at provisioning time. Exporting data from the old instance and importing it into the new one ensures the database is re-encrypted under the customer-managed key with minimal downtime and no data loss, as the export/import process preserves the data.

Exam trap

Google Cloud often tests the misconception that you can update an existing Cloud SQL instance to use CMEK via a gcloud command or API patch, when in reality CMEK must be configured at instance creation time.

How to eliminate wrong answers

Option A is wrong because the gcloud command cannot update an existing Cloud SQL instance to use CMEK; CMEK must be specified at instance creation time and cannot be added later via an update or patch operation. Option C is wrong because Cloud External Key Manager (EKM) is used for managing keys externally but does not enable CMEK on an existing instance; attaching EKM via a patch operation is not supported for changing encryption keys on a running Cloud SQL instance. Option D is wrong because client-side encryption with Tink would encrypt data before it reaches the database, which does not satisfy the requirement for database-at-rest encryption using CMEK; it also adds application complexity and does not leverage Cloud SQL's native encryption capabilities.

390
MCQmedium

An organization wants to provide private, on-premises access to Google Cloud APIs (e.g., Cloud Storage, BigQuery) without traversing the public internet. They have a Direct Connect link to Google Cloud. Which solution should they implement?

A.VPC Service Controls
B.Cloud NAT
C.Private Service Connect
D.Private Google Access
AnswerC

Private Service Connect enables private endpoints to Google APIs using internal IP addresses.

Why this answer

Private Service Connect allows you to create private endpoints to access Google APIs (like googleapis.com) using internal IP addresses, without going over the internet. It works with Direct Connect or VPN. VPC Service Controls restrict access but do not provide private connectivity.

Cloud NAT provides outbound internet access, not private API access. Private Google Access enables on-premises access to Google APIs via on-premises DNS, but it still uses public IPs unless combined with Private Service Connect.

391
MCQmedium

A healthcare company must export Cloud Audit Logs to an external SIEM for HIPAA compliance. The logs must be retained for 7 years and be immutable. Which solution meets these requirements with minimal operational overhead?

A.Configure a log sink to send logs to an on-premises syslog server via VPN.
B.Create a Pub/Sub sink with a retention policy that delivers logs to a custom application.
C.Stream audit logs to BigQuery using a log sink, and set table expiration to 7 years.
D.Use a log sink to export logs to a Cloud Storage bucket with a retention policy of 7 years and Object holds enabled.
AnswerD

Retention policy prevents deletion until retention expires; Object holds prevent premature deletion.

Why this answer

Cloud Storage buckets support Object holds, which prevent object deletion or modification, ensuring immutability. A retention policy set to 7 years enforces the minimum retention period required by HIPAA. This combination meets compliance needs with minimal operational overhead, as it leverages native GCP features without requiring custom infrastructure or manual management.

Exam trap

Google Cloud often tests the misconception that BigQuery or Pub/Sub can provide long-term immutable storage, but candidates must recognize that Cloud Storage with Object holds is the only native GCP service that offers both enforced retention and immutability without custom development.

How to eliminate wrong answers

Option A is wrong because sending logs to an on-premises syslog server via VPN introduces significant operational overhead for VPN maintenance, syslog server management, and does not inherently provide immutability or guaranteed 7-year retention. Option B is wrong because Pub/Sub retention policies are limited to a maximum of 7 days, not 7 years, and delivering logs to a custom application adds unnecessary complexity and does not ensure immutability. Option C is wrong because BigQuery table expiration only controls table deletion, not individual row immutability; data in BigQuery can be updated or deleted unless additional controls like time-travel or table-level access controls are implemented, which are not specified and add overhead.

392
MCQhard

A security engineer is investigating a compromised Compute Engine VM. They need to take a forensic snapshot of the disk without losing any data, including deleted files, and ensure the snapshot is not tampered with. Which steps should they take?

A.Use dd to copy the disk over SSH to a forensic workstation.
B.Stop the instance, create a snapshot of the disk, then detach the disk.
C.Detach the disk first, then create a snapshot of the detached disk.
D.Create a snapshot of the disk while the instance is running, then detach the disk.
AnswerD

This captures the current state including deleted files, and detaching prevents further modifications. Running snapshot is possible.

Why this answer

The correct approach is to first create a snapshot of the disk for forensic analysis, which captures the disk state including deleted files (unless overwritten). Then detach the disk from the instance to prevent further changes. Creating a snapshot after detaching would lose the current state.

Powering off the instance may alter data. Using dd over SSH may change file access times.

393
MCQhard

A Google Kubernetes Engine (GKE) cluster has applications that need to access Cloud Storage. The security team wants to grant fine-grained access per pod. What is the recommended approach?

A.Use Workload Identity: map each Kubernetes service account to a dedicated GCP service account with minimal permissions.
B.Use node-level service accounts and rely on network policies to restrict pod access.
C.Store service account keys as Kubernetes secrets and mount them into pods.
D.Create a single GCP service account with Storage permissions, and use it for all pods in the cluster.
AnswerA

Workload Identity allows per-pod identity mapping, enabling the principle of least privilege.

Why this answer

Workload Identity for GKE allows you to bind a Kubernetes service account to a GCP service account. Pods running with that Kubernetes SA can then authenticate as the GCP SA to access GCP resources. This provides pod-level granularity.

394
MCQeasy

You are a security engineer for a startup that uses Google Workspace and Google Cloud. You have been asked to allow a contractor, who has a Google account (contractor@example.com), to manage Cloud Storage buckets in a specific project. The contractor should not have access to any other resources. You create a custom role with the necessary permissions and grant it to the user at the project level. However, the contractor reports that they cannot see the project in the Cloud Console. What is the most likely reason?

A.The contractor's Google account is not in the same domain as the Google Cloud organization.
B.The custom role does not include the 'resourcemanager.projects.get' permission, which is required to view the project in the console.
C.The contractor needs to sign in using a different authentication method, such as SAML.
D.An organization policy denies access to the project for external users.
AnswerB

This permission is needed to list and view projects in the console.

Why this answer

The Cloud Console requires the 'resourcemanager.projects.get' permission to list and display projects. Even though the custom role grants permissions to manage Cloud Storage buckets, without this specific permission, the contractor cannot see the project in the console. Granting the permission at the project level allows the user to view the project in the console while still restricting access to other resources.

Exam trap

Google Cloud often tests the distinction between permissions needed to perform actions via the API versus permissions needed to view resources in the console, leading candidates to assume that granting resource-specific permissions (like storage.buckets.*) is sufficient for console visibility.

How to eliminate wrong answers

Option A is wrong because the contractor's Google account does not need to be in the same domain as the Google Cloud organization; external Google accounts can be granted IAM roles at the project level. Option C is wrong because the contractor already has a Google account and can sign in directly; SAML is not required for console access. Option D is wrong because organization policies that deny access to external users would block all access, not just the ability to see the project, and there is no indication such a policy is in place.

395
MCQmedium

A company uses Cloud Identity to manage users and groups. They want to synchronize users from their on-premises Active Directory to Cloud Identity. Which tool should they use?

A.Identity and Access Management (IAM)
B.Cloud Deployment Manager
C.Google Cloud Directory Sync (GCDS)
D.Cloud Identity SDK
AnswerC

Correct: GCDS syncs AD/LDAP to Cloud Identity.

Why this answer

Google Cloud Directory Sync (GCDS) is the official tool for synchronizing users and groups from Active Directory or LDAP to Cloud Identity. Cloud Identity SDK is not a sync tool. Deployment Manager is for infrastructure.

IAM is for access control.

396
Multi-Selecteasy

Which TWO actions should you take to reduce the attack surface of a Compute Engine VM? (Choose 2.)

Select 2 answers
A.Remove public IP addresses
B.Enable Secure Boot
C.Enable Instance Termination Action
D.Use preemptible VMs
E.Enable Virtual Trusted Platform Module (vTPM)
AnswersA, B

Removing public IP eliminates a direct attack vector from the internet.

Why this answer

Removing public IP and enabling Secure Boot reduce exposure. vTPM and other options do not directly reduce attack surface.

397
Multi-Selectmedium

A company wants to enforce that only users from a specific domain (example.com) can be granted IAM roles on any resource in their organization. Which two steps are required? (Choose two.)

Select 2 answers
A.Create custom roles that only allow users from example.com.
B.Configure Cloud Identity or Google Workspace to manage the example.com domain.
C.Set the organization policy constraint 'constraints/iam.allowedPolicyMemberDomains' to include example.com.
D.Create an IAM deny policy to deny access to users from other domains.
E.Use Cloud Directory Sync to sync only example.com users.
AnswersB, C

The constraint requires the domain to be managed by Cloud Identity/Workspace.

Why this answer

Enforcing allowed member domains requires setting the organization policy constraint 'constraints/iam.allowedPolicyMemberDomains' to include example.com. Additionally, configuring Cloud Identity or Google Workspace with the domain is necessary for the constraint to work. IAM deny policies are not used.

Custom roles are not required. Cloud Directory Sync is for syncing users, not enforcement.

398
Multi-Selectmedium

Which TWO of the following are valid reasons to enable VPC Flow Logs? (Choose two.)

Select 2 answers
A.To log Cloud NAT translations for audit purposes
B.To detect and block DDoS attacks at the network layer
C.To enforce firewall rules automatically based on traffic patterns
D.To perform network forensics after a security incident
E.To troubleshoot connectivity issues between VMs
AnswersD, E

Correct: logs provide source/dest information.

Why this answer

VPC Flow Logs capture metadata about IP traffic going to and from network interfaces in a VPC, including source/destination IPs, ports, protocols, and packet/byte counts. This historical data is essential for post-incident network forensics, allowing you to trace the path of malicious traffic, identify compromised hosts, and reconstruct the timeline of an attack. Without flow logs, you would lack the granular traffic records needed for such analysis.

Exam trap

Google Cloud often tests the distinction between passive logging (VPC Flow Logs) and active security controls (e.g., Cloud Armor, firewall rules), leading candidates to mistakenly think flow logs can block traffic or enforce policies.

399
MCQmedium

A healthcare startup is building a data pipeline on Google Cloud. They receive patient data via a REST API running on Cloud Run. The data includes sensitive health information that must be de-identified before being stored in BigQuery. They plan to use Cloud DLP to inspect and transform the data. However, due to latency requirements, they need to de-identify the data within 5 seconds of receiving the request. They have set up a Cloud DLP job to inspect the data synchronously using the DLP API. During testing, they notice that the de-identification sometimes takes over 10 seconds, causing API timeouts. They want to reduce the latency without compromising security. What should they do?

A.Use a Cloud Function to process the data and call the DLP API.
B.Use Cloud DLP with a content item size limit and stored infoTypes to reduce inspection time.
C.Instead of using Cloud DLP, use BigQuery column-level security with data masking.
D.Configure a Cloud DLP job to run asynchronously and store results in BigQuery, then modified the pipeline to read the de-identified data later.
AnswerB

Limiting content size and using pre-defined infoTypes speeds up synchronous inspection.

Why this answer

Cloud DLP synchronous inspection latency is directly proportional to the content size and the number of infoTypes scanned. By limiting the content item size (e.g., to 1 MB) and using stored infoTypes (which are pre-compiled for faster matching), you reduce the inspection time significantly, enabling de-identification within the 5-second window without compromising security.

Exam trap

Google Cloud often tests the misconception that adding more compute resources (like Cloud Functions) or switching to asynchronous processing will solve latency issues, when the real bottleneck is the DLP inspection configuration itself.

How to eliminate wrong answers

Option A is wrong because introducing a Cloud Function adds an extra hop and cold-start latency, which does not address the root cause of DLP API slowness and may even increase overall latency. Option C is wrong because BigQuery column-level security with data masking only controls access at query time; it does not de-identify data before storage, leaving sensitive data exposed in the pipeline and violating the requirement to de-identify before storing. Option D is wrong because asynchronous DLP jobs are designed for batch processing and cannot meet the 5-second synchronous latency requirement; they introduce a delay that breaks the real-time pipeline.

400
MCQmedium

Refer to the exhibit. A security engineer runs the commands shown. The command 'gcloud compute instances list' fails with a permission denied error. The service account key belongs to a service account with the role 'roles/compute.viewer' on the project. What is the most likely cause?

A.The role 'roles/compute.viewer' does not include the permission to list instances.
B.The service account key file is invalid or the service account has been deleted.
C.The command 'gcloud auth activate-service-account' should be 'gcloud auth login' instead.
D.The project 'my-project' does not exist or the service account is not in that project.
AnswerB

Most likely cause: the key is invalid, causing authentication failure.

Why this answer

The command 'gcloud auth activate-service-account' uses a service account key file to authenticate as that service account. If the key file is invalid (e.g., corrupted, expired, or malformed) or the service account itself has been deleted, authentication will fail, causing subsequent commands like 'gcloud compute instances list' to return a permission denied error even if the service account has the correct role. The error is not about missing permissions on the role, but about the inability to prove identity.

Exam trap

Google Cloud often tests the distinction between authentication failure (invalid key/deleted account) and authorization failure (insufficient permissions), tricking candidates into assuming the role itself is missing a permission when the real issue is that the identity cannot be verified.

How to eliminate wrong answers

Option A is wrong because the role 'roles/compute.viewer' does include the 'compute.instances.list' permission, so it is sufficient to list instances. Option C is wrong because 'gcloud auth activate-service-account' is the correct command to authenticate using a service account key file; 'gcloud auth login' is for user accounts, not service accounts. Option D is wrong because if the project did not exist or the service account was not in it, the error would typically be 'project not found' or 'permission denied' after successful authentication, not a permission denied error caused by failed authentication; the scenario explicitly states the key belongs to a service account with the viewer role on the project, implying the project exists.

401
Multi-Selectmedium

A security engineer is investigating a potential data breach in a Google Cloud environment. The engineer suspects that a compromised service account key was used to access Cloud Storage buckets. Which TWO actions should the engineer take immediately to mitigate the risk?

Select 2 answers
A.Disable the service account
B.Revoke all IAM roles granted to the service account
C.Rotate the service account key
D.Delete the compromised service account key
E.Enable Cloud Audit Logs for the service account
AnswersA, D

Disabling the service account immediately revokes all access for that account.

Why this answer

Disabling the service account immediately stops all access using any of its keys, including the compromised one, without deleting the account or its configuration. This is the fastest way to block the attacker while preserving the ability to investigate and re-enable the account later if needed. In Google Cloud, disabling a service account is a reversible action that revokes all authentication and authorization for that identity.

Exam trap

Google Cloud often tests the distinction between disabling a service account (which stops all access immediately) versus deleting or rotating a key (which may leave other keys or a window of exposure), and candidates mistakenly choose 'rotate the key' thinking it invalidates the old key, but rotation alone does not delete the old key.

402
Matchingmedium

Match each encryption scope to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Data protected while traveling over networks

Data protected when stored on disk

Customer-supplied encryption keys for Google Cloud resources

Customer-managed encryption keys via Cloud KMS

Google-managed encryption keys for all data at rest

Why these pairings

Correct matches: Google-managed encryption (A) is fully handled by Google; CMEK (B) lets you manage keys via Cloud KMS; CSEK (C) requires you to supply keys. Common confusions involve who manages the keys.

403
MCQmedium

A company wants to use Chronicle to ingest logs from their on-premises firewalls into Google Cloud. They need to normalize logs into a common schema for analysis. Which Chronicle capability should they use?

A.Log forwarders
B.YARA-L rules
C.Chronicle dashboards
D.Unified Data Model (UDM)
AnswerD

UDM normalizes logs into a common schema for analysis.

Why this answer

Chronicle uses the Unified Data Model (UDM) to normalize logs from various sources into a common schema. Log forwarders can collect and send logs to Chronicle, but UDM is the normalization engine. YARA-L rules are for detection, not normalization.

The dashboard is for visualization.

404
Multi-Selectmedium

A multinational corporation must comply with GDPR requirements for storing and processing personal data of EU citizens. The company is using Google Cloud and wants to ensure that data remains within the European Union. Which TWO actions should the organization take? (Select TWO.)

Select 2 answers
A.Set up VPC Service Controls to block access from outside the EU.
B.Enable Access Transparency logs to monitor access by Google support personnel.
C.Use Cloud Data Loss Prevention (DLP) to automatically redact personal data before storage.
D.Configure Organization Policies to restrict resource creation to EU regions only.
E.Use CMEK with a key stored in Cloud HSM located in a US region to encrypt data.
AnswersA, D

VPC Service Controls can prevent data access from outside the EU, further ensuring compliance.

Why this answer

VPC Service Controls create a security perimeter around Google Cloud resources, allowing you to restrict data access based on attributes like IP address or geographic location. By configuring VPC Service Controls to block access from outside the EU, the organization can enforce that data stored and processed in Google Cloud remains within the European Union, directly supporting GDPR compliance for data residency.

Exam trap

Google Cloud often tests the distinction between data protection controls (like DLP or encryption) and data residency controls (like VPC Service Controls or Organization Policies), leading candidates to mistakenly select options that protect data but do not enforce geographic boundaries.

405
MCQeasy

A company has configured a VPC firewall rule to allow HTTP traffic from a specific source IP range 203.0.113.0/24. However, HTTP requests from that range are being denied. Which initial verification should the security engineer perform?

A.Check if the source range overlaps with a deny rule
B.Check if the target instances have the correct network tag
C.Check the rule priority
D.Check the rule direction (ingress vs egress)
AnswerD

A firewall rule must be ingress to allow incoming traffic. If it is egress, it won't allow inbound connections.

Why this answer

The rule is configured to allow HTTP traffic, but if the rule direction is set to egress instead of ingress, it will not apply to incoming HTTP requests from the source IP range. In Google Cloud VPC firewall rules, direction determines whether the rule applies to inbound (ingress) or outbound (egress) traffic; an egress rule only controls traffic leaving the VPC network, so HTTP requests arriving from the internet would be denied by the implied deny ingress rule.

Exam trap

Google Cloud often tests the misconception that firewall rules are automatically bidirectional or that source IP range alone guarantees traffic flow, when in fact the direction attribute must match the traffic path (ingress for incoming requests).

How to eliminate wrong answers

Option A is wrong because overlapping deny rules would cause denial, but the question asks for the initial verification; checking for overlaps is secondary to confirming the rule is actually applied to the correct traffic direction. Option B is wrong because target tags are used to apply rules to specific VM instances, but the rule already specifies a source IP range; if the rule direction is wrong, even correctly tagged instances will not receive the traffic. Option C is wrong because rule priority determines which rule applies when multiple rules match, but if the rule is egress, it will never match ingress traffic regardless of priority.

406
MCQeasy

A startup is using Cloud Functions to process files uploaded to a Cloud Storage bucket. The Cloud Function is triggered by finalize events on the bucket. The developers created a service account for the Cloud Function and granted it the roles/storage.objectViewer role on the bucket. However, the function fails with a permission denied when trying to read the file. The function has the following XML in the event context: 'event_id'. What is the most likely issue?

A.The Cloud Function is using the default App Engine service account instead of the custom service account.
B.The service account does not exist.
C.The bucket is in a different project, and cross-project access is not configured.
D.The Cloud Function is not configured to be triggered by the correct event type.
AnswerA

The default service account may not have the required permissions, leading to the error.

Why this answer

The most likely issue is that the Cloud Function is using the default App Engine service account instead of the custom service account that was granted the roles/storage.objectViewer role. When a Cloud Function is deployed without explicitly specifying a service account, it defaults to the App Engine default service account (project-id@appspot.gserviceaccount.com), which does not have the necessary permissions to read the file. The custom service account with the objectViewer role exists but is not assigned to the function, causing the permission denied error.

Exam trap

Google Cloud often tests the default service account behavior in serverless services, where candidates assume that granting permissions to a custom service account automatically applies to the function, but the function must be explicitly configured to use that account.

How to eliminate wrong answers

Option B is wrong because the service account was explicitly created and granted the roles/storage.objectViewer role, so it does exist; the issue is that the function is not using it. Option C is wrong because there is no indication in the question that the bucket is in a different project; the error is a permission denied on the same project, and cross-project access would require additional IAM bindings but is not the described scenario. Option D is wrong because the function is correctly triggered by finalize events on the bucket, as indicated by the event context 'event_id', and the error occurs when trying to read the file, not during triggering.

407
MCQhard

Refer to the exhibit. This IAM policy is applied to a Google Cloud Storage bucket. Alice reports she cannot delete objects in the bucket. Bob can delete objects. What is the most likely reason?

A.The service account has objectAdmin role, but Bob is not a member.
B.The etag mismatch causes a conflict.
C.Bob has a higher role inherited from the project level.
D.Alice has only objectViewer role, which does not allow deletion.
AnswerD

The objectViewer role only allows read access to objects, not deletion.

Why this answer

The exhibit shows that Alice has only the roles/storage.objectViewer role, which does not include delete permissions. Bob, although listed in the same binding, must have additional permissions from another policy (e.g., at the project level) that allow him to delete objects. Option A is incorrect because the service account does not affect Bob's permissions.

Option B is incorrect; etag is used for concurrent modification prevention, not for permission conflicts. Option C is incorrect because Bob's ability is likely due to inherited permissions, but the exhibit only shows this policy.

408
MCQeasy

A user is getting a permission denied error when trying to access a Cloud SQL instance from a Compute Engine VM. The VM's service account has the Cloud SQL Client role. What is the most likely cause?

A.The Cloud SQL API is not enabled for the project.
B.The service account is not attached to the VM.
C.The user is not using a Cloud SQL proxy.
D.The Cloud SQL instance does not have a private IP.
AnswerA

The API must be enabled to allow access to Cloud SQL.

Why this answer

Even with correct IAM roles, the Cloud SQL API must be enabled for the project. The service account being attached is confirmed by the role assignment, private IP is not required for Client role, and using a proxy is optional but not the cause of permission denied.

409
Multi-Selectmedium

A company needs to implement data pseudonymisation to comply with GDPR. They are using BigQuery for analytics. Which TWO services can help them pseudonymise data in transit before it enters BigQuery?

Select 2 answers
A.Cloud Dataflow
B.Cloud Data Loss Prevention (DLP)
C.Cloud Storage
D.Cloud SQL
E.Cloud Functions
AnswersA, B

Dataflow can read streaming data, apply DLP de-identification transforms, and write to BigQuery.

Why this answer

Cloud DLP can inspect and de-identify data, including pseudonymisation (e.g., tokenization, masking). Dataflow can process streaming data and apply transformations using DLP templates. Together, they can pseudonymise data before loading into BigQuery.

410
Multi-Selectmedium

Which TWO actions are required to meet FedRAMP Moderate baseline for Google Cloud?

Select 2 answers
A.Enable Multi-Factor Authentication (MFA) for all Google Cloud users with access to the project.
B.Use Customer-Supplied Encryption Keys (CSEK) for all Cloud Storage buckets.
C.Enable encryption at rest for all data using CMEK or Google-managed keys.
D.Enable Data Access audit logs for all Google Cloud services in the project.
E.Create VPC Service Controls perimeters to restrict data exfiltration.
AnswersA, C

FedRAMP Moderate requires strong authentication, including MFA.

Why this answer

FedRAMP Moderate requires multi-factor authentication (MFA) for all users accessing the system, including Google Cloud users. Enabling MFA for all users with access to the project satisfies this control by adding an additional authentication factor beyond a password, as mandated by NIST SP 800-53 IA-2. Option C is correct because FedRAMP Moderate requires encryption at rest for all data, and using Customer-Managed Encryption Keys (CMEK) or Google-managed keys meets this requirement under NIST SP 800-53 SC-28.

Exam trap

Google Cloud often tests the misconception that all audit log types (including Data Access) are required for FedRAMP Moderate, when in fact only Admin Read, Admin Write, and Data Write logs are mandatory, and Data Read logs are optional.

411
MCQeasy

A security engineer wants to allow egress traffic from Compute Engine instances to the internet only for updates to a specific set of packages. All other egress must be denied. Which VPC firewall rule configuration should the engineer use?

A.Create an egress allow rule for the specific package sources and a deny all egress rule with lower priority (higher number).
B.Create an egress deny rule for all traffic and then a higher-priority allow rule for the package sources.
C.Create an ingress allow rule for the package sources and a deny all egress rule with higher priority.
D.Use Cloud NAT to force all egress through a single IP and then restrict with a firewall rule.
AnswerA

Correct: The allow rule matches the specific destinations, and the deny all rule with lower priority (higher number) catches everything else. Because VPC firewall rules are evaluated from highest to lowest priority, the allow rule first permits the desired traffic, then the deny rule blocks the rest.

Why this answer

VPC firewall rules are stateful, so allowing egress for specific destinations (e.g., package repositories) automatically allows return traffic. Deny rules should be used to block all other egress. The correct approach is an egress allow rule for the specific destinations and a lower-priority egress deny rule for all other traffic.

412
MCQeasy

Your organization wants to assign a set of permissions to a group of users that allows them to create and delete Compute Engine instances, but not to modify other resources like Cloud Storage buckets. Which type of IAM role should you create?

A.Predefined role (roles/compute.instanceAdmin.v1)
B.Basic role (Editor)
C.Predefined role (roles/editor)
D.Custom role with only compute.instances.create and compute.instances.delete
AnswerD

A custom role allows you to include exactly the permissions needed, granting fine-grained access control.

Why this answer

Custom IAM roles allow you to curate a specific set of permissions tailored to your needs. Predefined roles like roles/compute.instanceAdmin include broader permissions that may not be desired. Basic roles (Owner, Editor, Viewer) are too broad and should be avoided in production.

413
MCQhard

A company uses VPC Service Controls to protect a BigQuery dataset. They need to allow an external on-premises application to query the dataset without being inside the service perimeter. The external application has a static IP address. Which configuration is required?

A.Add the external IP to an access level and configure an ingress rule in the service perimeter.
B.Whitelist the external IP in the BigQuery dataset's IAM policy.
C.Create a Cloud VPN tunnel between the on-premises network and the VPC, and add the tunnel to the service perimeter.
D.Use Private Google Access on the VPC to allow on-premises traffic.
AnswerA

An ingress rule with an IP-based access level allows traffic from that IP to cross the perimeter.

Why this answer

VPC Service Controls access levels can define IP-based conditions. By creating an ingress rule that allows traffic from the specified IP address to access the BigQuery API, the external application can be authorized.

414
MCQmedium

A company needs to store sensitive API keys in Secret Manager and ensure that only a specific service account can access the latest version of a secret. Which IAM permission is required for the service account to read the secret value?

A.secretmanager.secrets.get
B.secretmanager.versions.access
C.secretmanager.secrets.create
D.secretmanager.versions.list
AnswerB

This permission allows accessing the secret payload of a version.

Why this answer

To access a secret version's payload (the actual secret value), the permission 'secretmanager.versions.access' is required. The role 'roles/secretmanager.secretAccessor' includes this permission. The other permissions are for listing or managing metadata.

415
MCQmedium

A security team wants to enforce that all Compute Engine instances in the organization use Shielded VM features (Secure Boot, vTPM, Integrity Monitoring). What should they configure?

A.A custom organization policy with a CEL condition
B.An IAM policy that only allows creation of Shielded VMs
C.The built-in constraint constraints/compute.requireShieldedVm
D.A deny policy that denies the permission compute.instances.create unless Shielded VM is enabled
AnswerC

This built-in constraint enforces Shielded VM on all new instances.

Why this answer

The organization policy constraint constraints/compute.requireShieldedVm enforces that all new VMs must have Shielded VM enabled. It is a built-in constraint available in the Organization Policy service.

416
MCQeasy

An organization wants to use a third-party identity provider (IdP) that supports OpenID Connect (OIDC) to manage access to Google Cloud resources. They want users to authenticate with the external IdP and access GCP via the Cloud Console and gcloud CLI. Which feature should they use?

A.Cloud Identity with OIDC federation
B.Cloud Identity with SAML 2.0 federation
C.Service account key authentication
D.Workload Identity Federation
AnswerA

Cloud Identity supports OIDC federation for user authentication with external IdPs.

Why this answer

Cloud Identity supports OIDC federation, allowing users to authenticate with an external OIDC IdP and access GCP.

417
MCQeasy

A company wants to use Cloud CDN to cache content from an HTTP Load Balancer. They have a custom domain and want to serve traffic over HTTPS. What must they configure on the load balancer?

A.Create an SSL certificate resource and attach it to the HTTPS target proxy.
B.Set up a backend bucket with a public certificate.
C.Upload a custom SSL certificate directly to the Cloud CDN configuration.
D.Enable HTTP to HTTPS redirect on the load balancer.
AnswerA

Correct: HTTPS load balancer requires SSL certificate on target proxy.

Why this answer

To serve HTTPS traffic with Cloud CDN and a custom domain, the load balancer must have an SSL certificate attached to its HTTPS target proxy. This is because Cloud CDN relies on the load balancer's target proxy to terminate TLS and present the certificate to clients. Creating an SSL certificate resource (either Google-managed or self-managed) and attaching it to the HTTPS target proxy is the required step.

Exam trap

Google Cloud often tests the misconception that Cloud CDN handles SSL certificates independently, when in fact the certificate must be attached to the load balancer's HTTPS target proxy, not configured within the CDN itself.

How to eliminate wrong answers

Option B is wrong because a backend bucket stores content but does not handle SSL termination; certificates must be attached to the HTTPS target proxy, not to the bucket. Option C is wrong because Cloud CDN does not accept SSL certificates directly; certificates are managed at the load balancer level via the target proxy. Option D is wrong because HTTP-to-HTTPS redirect is a separate feature that does not provide the SSL certificate needed for HTTPS termination; it only redirects HTTP traffic to HTTPS.

418
MCQhard

A company has a VPC Service Controls perimeter that includes BigQuery and Cloud Storage. They need to allow a specific on-premises application (with a static IP) to access a BigQuery dataset within the perimeter. Which configuration should they use?

A.Create a VPC firewall rule allowing ingress from the on-premises IP to the BigQuery API.
B.Exempt the on-premises service account from the perimeter.
C.Use Private Google Access from the on-premises network.
D.Add the on-premises IP to an access level and create an ingress rule in the service perimeter.
AnswerD

Correct: An access level can be defined using the IP address, and an ingress rule allows that access level to cross the perimeter.

Why this answer

VPC Service Controls allows ingress rules to permit traffic from specific identities or IP ranges into the perimeter. They need to create an ingress rule that allows the on-premises IP to access BigQuery.

419
Multi-Selectmedium

A company wants to implement single sign-on (SSO) for its employees to access the Google Cloud Console using their existing corporate credentials from an on-premises Active Directory. Which THREE components are required? (Choose 3)

Select 3 answers
A.Workload Identity Federation to map AD users to service accounts.
B.Cloud Directory Sync to synchronize user and group objects from Active Directory to Google Cloud Directory.
C.A VPN connection between the on-premises network and Google Cloud.
D.A SAML 2.0 identity provider (e.g., AD FS) that authenticates users against Active Directory.
E.Cloud Identity or Google Workspace to configure the SAML integration.
AnswersB, D, E

Users must exist in Google's directory for IAM assignments.

Why this answer

SAML 2.0 federation requires a SAML Identity Provider (AD FS or similar) to authenticate users, Cloud Identity or Google Workspace as the identity platform to configure the SAML trust, and Cloud Directory Sync to synchronize users from AD to Google Cloud Directory so that users exist in Google's directory for IAM binding.

420
MCQhard

A healthcare organization uses BigQuery to store patient data with column-level encryption using CMEK. They need to ensure that data is encrypted at rest and in transit, and that only authorized users can query specific columns. Which combination of controls should they use?

A.Use VPC Service Controls to restrict access to BigQuery datasets, and use IAM conditions to limit column access.
B.Use Cloud HSM to create encryption keys and apply them to BigQuery tables using Cloud Key Management Service.
C.Use Cloud Data Loss Prevention to de-identify sensitive columns, and then use IAM to control access.
D.Use BigQuery column-level encryption with CMEK keys, and grant access via Authorized Views.
AnswerD

This combination ensures encryption and fine-grained access control.

Why this answer

BigQuery column-level encryption with CMEK ensures data is encrypted at rest using customer-managed keys, while Authorized Views provide row- and column-level access control without exposing the underlying encrypted columns to unauthorized users. This combination satisfies both encryption requirements (at rest and in transit, as BigQuery enforces TLS in transit) and fine-grained access control for specific columns.

Exam trap

The trap here is that candidates confuse column-level encryption with table-level encryption or de-identification, and fail to recognize that Authorized Views are the only mechanism in BigQuery that can enforce column-level access control on encrypted columns without exposing the underlying data.

How to eliminate wrong answers

Option A is wrong because VPC Service Controls restrict data exfiltration and access at the dataset or project level, not at the column level, and IAM conditions cannot enforce column-level encryption or granular column access. Option B is wrong because Cloud HSM and Cloud KMS can create and manage CMEK keys, but applying them to tables only encrypts the table at rest, not at the column level, and does not control which users can query specific columns. Option C is wrong because Cloud DLP de-identifies data (e.g., masking or tokenization) but does not provide encryption at rest with CMEK, and IAM alone cannot enforce column-level access on the de-identified data without additional mechanisms like Authorized Views.

421
Multi-Selectmedium

A security engineer is configuring VPC Service Controls to protect a Google Cloud project containing sensitive data. The project contains Compute Engine instances, Cloud Storage buckets, and BigQuery datasets. The perimeter is defined with the project as a protected project. Which TWO actions are valid to restrict data exfiltration while maintaining necessary access?

Select 2 answers
A.Use VPC Service Controls to block access to the Compute Engine metadata server to prevent credential extraction.
B.Configure the service perimeter to allow access from the VPC network where the Compute Engine instances reside using private Google access.
C.Create an access level that restricts access to only the IP ranges of the corporate network. Apply the access level to the service perimeter.
D.Create a service perimeter that includes all Google Cloud projects in the organization to simplify management.
E.Use VPC Service Controls to restrict access based on network tags on Compute Engine instances.
AnswersB, C

Private Google access allows on-premises or VM instances to access Google APIs within the perimeter.

Why this answer

VPC Service Controls can allow traffic from a specific VPC network via private Google access, which uses RFC 1918 addresses and does not traverse the public internet. This restricts data exfiltration by ensuring that only resources within the defined VPC can access the protected services, while still allowing legitimate Compute Engine instances to reach Cloud Storage and BigQuery within the perimeter.

Exam trap

Google Cloud often tests the misconception that VPC Service Controls can block the metadata server or use instance-level tags, when in reality they operate at the project and VPC network level and do not interact with instance metadata or tags.

422
MCQeasy

A developer wants to grant a service account the ability to impersonate another service account in a different project. Which IAM permission is required for the developer to assign?

A.iam.serviceAccounts.actAs
B.iam.serviceAccounts.getAccessToken
C.iam.serviceAccounts.create
D.iam.serviceAccounts.update
AnswerA

Required to impersonate a service account.

Why this answer

The iam.serviceAccounts.actAs permission on the target service account allows a principal to impersonate that service account. This permission is included in the Service Account User role (roles/iam.serviceAccountUser). The developer needs to grant that role to the source service account (or user) on the target service account.

423
MCQmedium

A company is migrating its on-premises Microsoft Active Directory to Google Cloud using Managed Microsoft AD (Microsoft AD). They need to ensure that users can authenticate to Compute Engine Windows instances using their on-premises credentials without additional user setup. What is the most secure and scalable approach?

A.Configure the Windows instances to join the on-premises AD domain directly via VPN.
B.Create a two-way trust between the Managed Microsoft AD domain and the on-premises AD domain.
C.Synchronize on-premises users to Managed Microsoft AD using Google Cloud Directory Sync (GCDS).
D.Store on-premises user credentials in Cloud KMS and use a custom authentication script.
AnswerB

A trust enables on-premises users to authenticate to resources in the cloud domain without duplicating identities.

Why this answer

Establishing a two-way trust between Managed Microsoft AD and the on-premises AD domain allows users to authenticate to Compute Engine Windows instances using their existing on-premises credentials without any additional user setup. This trust enables Kerberos authentication to flow seamlessly across the two domains, ensuring that on-premises users can access cloud resources securely and scalably without duplicating identities or credentials.

Exam trap

Google Cloud often tests the misconception that directory synchronization (like GCDS) is sufficient for authentication, but candidates must understand that synchronization alone does not enable single sign-on or credential validation—only a trust or federation (e.g., via Active Directory Federation Services) allows users to authenticate with their existing on-premises passwords.

How to eliminate wrong answers

Option A is wrong because joining Windows instances directly to the on-premises AD domain via VPN creates a single point of failure and introduces latency; it also requires persistent VPN connectivity and does not leverage the managed AD service, making it less scalable and less secure due to direct exposure of domain controllers over the VPN. Option C is wrong because Google Cloud Directory Sync (GCDS) only synchronizes user and group objects from on-premises AD to Managed Microsoft AD, but it does not establish a trust relationship; users would still need to be re-authenticated against the Managed Microsoft AD domain, and their passwords are not synced, so they cannot use their on-premises credentials without additional setup (e.g., password hash sync). Option D is wrong because storing on-premises user credentials in Cloud KMS and using a custom authentication script is insecure (credentials in plaintext or encrypted at rest but still exposed during runtime), unscalable (requires custom code and maintenance), and violates the principle of using managed services; it also does not integrate with Windows authentication protocols like Kerberos or NTLM.

424
Multi-Selecthard

A multinational organization uses Chronicle SIEM to aggregate and analyze security logs from multiple GCP projects and on-premises systems. The security team wants to detect a known threat pattern: a user authenticating from an anomalous geographic location followed by a large data egress from a Compute Engine instance within 10 minutes. Which three steps are necessary to create this detection? (Choose three.)

Select 3 answers
A.Ingest Cloud Audit Logs and VPC Flow Logs into Chronicle via forwarders or native integration
B.Deploy a forwarder to send on-premises authentication logs to Chronicle
C.Configure a BigQuery export of VPC Flow Logs for long-term analysis
D.Enable the Standard tier of Security Command Center to generate finding notifications
E.Create a YARA-L rule that matches on a UDM 'authentication' event with unusual geo-location followed by a 'network' event with large bytes out
AnswersA, B, E

These log sources provide authentication events and network traffic data.

Why this answer

Chronicle uses YARA-L rules to detect patterns across different log sources. UDM normalizes logs into a common schema. The rule can reference events from multiple log types (e.g., authentication logs and network logs) and define temporal relationships.

425
MCQmedium

Refer to the exhibit. A security engineer runs the following IAM policy command for a Cloud Storage bucket. What access does the bindings grant?

A.alice can view objects; example.com users can view objects; service account can admin objects.
B.alice and example.com domain can view; service account can admin; and the public can view because of domain.
C.alice and all users from example.com can view objects; the service account can admin all objects.
D.alice can view; example.com can view; service account can admin; but only if the bucket is public.
AnswerC

This correctly describes the bindings.

Why this answer

The IAM policy bindings grant `roles/storage.objectViewer` to user `alice@example.com` and to all authenticated users from the `example.com` domain (via `domain:example.com`), and `roles/storage.objectAdmin` to a service account. The viewer role allows listing and reading objects, while the admin role allows full control over objects, including creation, deletion, and modification. There is no public access granted because the bindings do not include `allUsers` or `allAuthenticatedUsers`.

Exam trap

Google Cloud often tests the distinction between `domain:` and `allUsers` — candidates mistakenly think a domain grant makes the bucket public, but it only grants access to authenticated users from that specific domain.

How to eliminate wrong answers

Option A is wrong because it omits that `example.com` users are granted viewer access, not just `alice` and the service account; it also incorrectly implies the service account can only admin objects, which is correct but incomplete. Option B is wrong because it claims 'the public can view because of domain' — a domain grant (`domain:example.com`) only applies to authenticated users from that domain, not the general public. Option D is wrong because it adds a condition 'only if the bucket is public' — IAM policies on Cloud Storage buckets are independent of bucket-level public access settings; the bindings grant access regardless of whether the bucket is public.

426
Matchingmedium

Match each access control mechanism to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Identity and Access Management for resource-level permissions

Constraints applied at the organization node

Service perimeters to prevent data exfiltration

Network-level allow/deny rules for VMs

Identity-Aware Proxy for application-level access

Why these pairings

IAM manages identities and permissions, VPC Service Controls prevent data exfiltration, and Organization Policies set configuration constraints. Distractors confuse these definitions with each other or with Access Context Manager.

427
MCQmedium

A financial institution uses Cloud KMS to manage encryption keys. They want to ensure that key material is never exported from the KMS service. Which key protection method should they use?

A.Cloud HSM
B.External key manager
C.HSM keys in Cloud KMS
D.Software keys in Cloud KMS
AnswerC

HSM keys are generated inside FIPS 140-2 Level 3 HSMs and key material never leaves the HSM.

Why this answer

HSM keys in Cloud KMS are generated and stored within a FIPS 140-2 Level 3 certified hardware security module (HSM) that is physically and logically controlled by Google. The key material never leaves the HSM boundary; all cryptographic operations are performed inside the HSM, and export of the key material is prevented by design. This satisfies the requirement that key material is never exported from the KMS service.

Exam trap

Google Cloud often tests the misconception that Cloud HSM (the dedicated service) is the same as HSM keys in Cloud KMS, but Cloud HSM allows key export while HSM keys in Cloud KMS do not, making the distinction critical for this question.

How to eliminate wrong answers

Option A is wrong because Cloud HSM is a separate service that provides dedicated HSM appliances, but it does not inherently prevent key export; customers can generate and export keys from Cloud HSM if they choose. Option B is wrong because an external key manager (EKM) allows customers to bring their own key material from an external key management system, which necessarily involves exporting key material from the KMS service to the external system. Option D is wrong because software keys in Cloud KMS are stored as encrypted blobs in Google's key storage infrastructure, and while they are protected, the key material can be exported via the API (e.g., using the `cryptoKeyVersions.export` method) if the key is created with exportable material, which contradicts the requirement.

428
MCQmedium

An organization subject to GDPR receives a data subject request for erasure ('right to be forgotten'). The data subject's information is stored in BigQuery audit logs. What is the implication for the audit logs, and what should the organization do?

A.Use Cloud DLP to redact the personal data from the audit logs, and store the redacted version.
B.Delete the entire log bucket containing the audit logs.
C.Delete the BigQuery dataset containing the logs.
D.Edit the audit log entries directly using the Cloud Logging API.
AnswerA

Cloud DLP can redact personal data from logs, allowing you to comply with erasure requests while retaining the logs.

Why this answer

BigQuery audit logs are immutable by default for compliance reasons. You cannot delete individual entries. The recommended approach is to redact the personal data from the logs using Cloud DLP or to export logs to Cloud Storage and then delete the export.

Deleting the entire log sink would affect future logging but not existing logs. The logs cannot be edited.

429
MCQhard

A compliance officer reviews the Cloud Audit Log entry above and wants to know if any sensitive data was exposed during the instance creation. What is the best course of action?

A.Enable data access audit logs for Compute Engine to capture request payloads.
B.Check the status field to see if the operation failed, which might indicate a misconfiguration.
C.Analyze the log entry to see the image used; the image metadata is included.
D.Use Cloud DLP to scan the log entry for sensitive data.
AnswerA

Data access logs include full request and response data.

Why this answer

Enabling data access audit logs for Compute Engine captures the request payloads of API calls, including the instance creation request. This allows the compliance officer to inspect the exact parameters sent, such as any sensitive data that might have been passed as metadata or startup scripts, which are not included in the default admin activity audit logs. Data access audit logs provide the granularity needed to determine if sensitive data was exposed during the operation.

Exam trap

The trap here is that candidates assume the default audit logs already contain enough detail to inspect payloads, but they do not — only enabling data access audit logs provides the request payload data needed to check for sensitive data exposure.

How to eliminate wrong answers

Option B is wrong because the status field only indicates whether the operation succeeded or failed; it does not reveal the content of the request payload, so it cannot determine if sensitive data was exposed. Option C is wrong because the log entry includes only the image name or URI, not the full image metadata or any user-provided data that might contain sensitive information; image metadata is not automatically included in audit logs. Option D is wrong because Cloud DLP is designed to scan stored data for sensitive information, not to analyze audit log entries; audit logs are not a data source for DLP scanning, and the log entry itself does not contain the payload needed for such analysis.

430
Multi-Selecthard

A company wants to implement automatic de-identification of sensitive data stored in Cloud Storage using Cloud DLP. They need to scan new objects as they are uploaded and apply a transformation to remove credit card numbers. Which three resources must they create? (Choose THREE.)

Select 3 answers
A.Cloud DLP inspection template
B.Cloud DLP job that uses the trigger and template
C.Cloud DLP job trigger
D.Cloud Function to process objects
E.Cloud DLP de-identification template
AnswersB, C, E

The job ties together the trigger and template.

Why this answer

To automatically de-identify sensitive data in Cloud Storage using Cloud DLP, you must create three resources: a Cloud DLP job trigger (C) to initiate the scan when new objects are uploaded, a Cloud DLP de-identification template (E) that specifies the transformation (e.g., removing credit card numbers), and a Cloud DLP job (B) that references both the trigger and the de-identification template. The inspection template (A) is not required because the job can directly specify the infoTypes to inspect in its configuration.

Exam trap

A common pitfall is to assume that an inspection template is required for any DLP job, but in this scenario the de-identification template is mandatory because the goal is to transform data (remove credit card numbers). The three required resources are the job trigger (to automatically scan new objects), the de-identification template (to specify the transformation), and the DLP job (to bind trigger and template). An inspection template is not needed because the job can directly specify infoTypes to inspect.

431
MCQeasy

A company needs to archive Cloud Audit Logs for compliance purposes for 7 years. The logs are rarely accessed after the first year. Which storage option is the most cost-effective?

A.Export logs to Cloud Storage with Standard storage class
B.Export logs to BigQuery dataset
C.Export logs to Pub/Sub topic
D.Export logs to Cloud Storage with Archive storage class
AnswerD

Archive class is the cheapest for long-term, rarely accessed data.

Why this answer

Cloud Storage offers Archive class for long-term, low-cost storage. BigQuery is for analysis, not archival. Pub/Sub is for streaming.

Cloud Storage is the right choice; Archive class is cheaper than Nearline or Coldline.

432
Multi-Selectmedium

A multinational company must comply with GDPR and needs to ensure that personal data is processed in a manner that respects data subject rights. Which TWO of the following are required under GDPR? (Choose 2)

Select 2 answers
A.Delete personal data immediately upon request without any exceptions.
B.Store personal data only in the region where the data subject resides.
C.Provide data subjects with a copy of their personal data upon request (right of access).
D.Implement data protection by design and by default in all processing activities.
E.Encrypt all personal data at rest and in transit using AES-256 and TLS 1.3.
AnswersC, D

GDPR grants data subjects the right to obtain confirmation of processing and access to their data.

Why this answer

Right of access and privacy by design are explicit GDPR requirements. Other options are either too prescriptive or incorrect.

433
MCQeasy

A security engineer wants to monitor all actions that create or modify resources in a Google Cloud project. Which type of audit log is enabled by default and cannot be disabled?

A.Policy Denied logs
B.Data Access logs
C.Admin Activity logs
D.System Event logs
AnswerC

Admin Activity logs are enabled by default and cannot be disabled.

Why this answer

Admin Activity logs record all API calls that modify configuration or metadata. They are enabled by default and cannot be disabled. Data Access logs are opt-in, System Event logs are enabled by default but cannot be disabled either, and Policy Denied logs are generated when access is denied by IAM policies.

434
MCQeasy

You want to encrypt data in Google Cloud Storage using a key that is managed and stored in a third-party key management system outside of Google Cloud. Which feature should you use?

A.Cloud External Key Manager (Cloud EKM)
B.Cloud HSM
C.Default encryption at rest
D.Customer-Supplied Encryption Keys (CSEK)
AnswerA

Cloud EKM integrates with third-party key managers to keep keys outside Google Cloud.

Why this answer

Cloud EKM allows you to use keys from an external key manager, keeping keys outside Google. Option B (Cloud HSM) stores keys in Google hardware, so it does not meet the requirement. Option C (Default encryption at rest) uses Google-managed keys.

Option D (Customer-Supplied Encryption Keys, CSEK) allows you to supply your own keys, but they are stored in Google, not in a third-party KMS. Although CSEK uses customer-supplied keys, the keys are stored inside Google's infrastructure, not in a third-party KMS. Cloud EKM is the only option that keeps keys outside Google Cloud.

435
MCQmedium

A DevOps engineer needs to allow a CI/CD pipeline running in Google Kubernetes Engine (GKE) to push images to a specific Artifact Registry repository. The pipeline uses a Kubernetes service account. What is the best practice to grant this access without creating a JSON key for a Google service account?

A.Use a node pool with a service account that has the required roles
B.Grant the GSA the IAM role directly on the namespace using RBAC
C.Use Workload Identity to bind the KSA to a GSA with the Artifact Registry Writer role
D.Create a JSON key for the GSA, store it as a Kubernetes secret, and mount it into the pod
AnswerC

Workload Identity enables keyless authentication by allowing the KSA to impersonate the GSA.

Why this answer

Workload Identity for GKE allows you to bind a Kubernetes service account (KSA) to a Google service account (GSA). The KSA can then impersonate the GSA when accessing Google Cloud APIs, eliminating the need for service account keys.

436
MCQeasy

Which of the following is true about IAM deny policies?

A.Deny policies can only be applied at the organization level.
B.Deny policies take precedence over allow policies.
C.Deny policies are evaluated before allow policies.
D.Deny policies can grant permissions.
AnswerB

Correct: if a deny matches, access is denied regardless of allows.

Why this answer

Deny policies override allow policies. They are evaluated after allow policies, and if a deny matches, the access is denied regardless of allowed roles. They apply to the resource hierarchy as well.

Deny policies can be set at the organization, folder, project, or resource level.

437
MCQhard

An organization has a security policy that requires TLS 1.2 or higher for all HTTPS traffic to their external HTTP(S) load balancer. They also need to disable weak cipher suites. Which configuration should be applied?

A.Configure the SSL policy on the load balancer's backend bucket.
B.Use Cloud Armor WAF rules to block TLS 1.0/1.1 traffic.
C.Set the SSL policy on the target HTTPS proxy with minimum TLS version 1.2 and a compatible profile.
D.Set the SSL policy on the target HTTPS proxy with minimum TLS version 1.2 and a MODERN or RESTRICTED cipher profile.
AnswerD

This ensures only strong ciphers are allowed with TLS 1.2+.

Why this answer

SSL policies on the target HTTPS proxy allow setting minimum TLS version and cipher profile. Set the minimum TLS version to 1.2 and choose the MODERN or RESTRICTED profile to disable weak ciphers.

438
MCQhard

A company uses Shared VPC in a host project with multiple service projects. The security team wants to ensure that all traffic between service projects is inspected by a third-party firewall appliance deployed in the host project. Which configuration should be implemented?

A.Enable Cloud NAT on each service project and configure a default route to the firewall appliance.
B.Set up VPC network peering between service projects and route traffic through the host project via a VPN tunnel.
C.Create a policy-based route in the host project that matches traffic between service project subnets and has a next hop to the firewall appliance's internal IP.
D.Create a firewall rule in the host project that allows traffic between service projects only if the source is the firewall appliance.
AnswerC

Policy-based routes can direct specific inter-subnet traffic to a next-hop instance for inspection.

Why this answer

A policy-based route in the host project can match traffic based on source and destination subnets from different service projects and force that traffic to be forwarded to the next-hop IP of the third-party firewall appliance. This ensures all inter-service-project traffic is inspected by the firewall, as the route overrides the default VPC routing behavior within the Shared VPC environment.

Exam trap

Google Cloud often tests the distinction between firewall rules (which filter traffic) and routes (which direct traffic); the trap here is that candidates mistakenly think a firewall rule can force traffic through an appliance, when in fact only a route can change the path traffic takes.

How to eliminate wrong answers

Option A is wrong because Cloud NAT is used for outbound internet access from private instances, not for directing inter-service-project traffic through a firewall; it does not provide a mechanism to route traffic between service projects via a third-party appliance. Option B is wrong because VPC network peering does not support transitive routing; traffic between peered VPCs cannot be routed through a third VPC (the host project) without additional complex configurations like VPN tunnels, and even then, it would not inherently force inspection by a firewall in the host project. Option D is wrong because a firewall rule only controls which traffic is allowed or denied based on source/destination/port, but it does not route traffic; it cannot force traffic to go through the firewall appliance—it only permits or blocks traffic that is already routed.

439
MCQmedium

A healthcare organization needs to ensure that all access to ePHI in Cloud SQL is logged for HIPAA compliance. They have enabled audit logs. What additional step is required to ensure logs are retained for at least one year?

A.Create a log sink to export the logs to Cloud Storage.
B.Enable Access Transparency logs.
C.Set a retention policy on the Cloud SQL instance.
D.Adjust the retention period in the Logs Explorer to 1 year.
AnswerA

Log sinks allow exporting logs to Cloud Storage where retention policies can be set for longer periods.

Why this answer

Cloud Audit Logs are retained by default for 30 days (or 400 days for some logs with the default retention in the _Required bucket). To retain logs for longer, you must create a log sink that exports logs to Cloud Storage (or BigQuery). Enabling Access Transparency logs is good but not necessary for retention.

Adjusting the retention period in the Logs Explorer is not possible; Logs Explorer only queries logs within the retention period.

440
MCQmedium

A healthcare company stores patient data in BigQuery and needs to mask sensitive columns like SSN and email for analysts who do not need to see the actual values. They want to apply consistent masking across queries without modifying the underlying data. Which feature should they use?

A.IAM conditions on tables
B.BigQuery Data Policy with data masking rules
C.Authorized views with row-level security
D.Cloud DLP de-identification transforms on export
AnswerB

Data masking rules in BigQuery Data Policy allow column-level masking without changing the underlying data.

Why this answer

BigQuery Data Policy with data masking rules allows you to define column-level masking policies that automatically redact sensitive data (e.g., SSN, email) in query results based on the user's role, without altering the underlying table. This meets the requirement for consistent masking across all queries without modifying the source data.

Exam trap

Google often tests the distinction between row-level security (which filters rows) and column-level masking (which obfuscates column values), leading candidates to mistakenly choose authorized views when the requirement is to mask sensitive columns, not restrict rows.

How to eliminate wrong answers

Option A is wrong because IAM conditions control access at the resource level (e.g., table or dataset) based on attributes like time or IP, but they cannot mask specific column values within a table. Option C is wrong because authorized views with row-level security filter rows based on user identity, but they do not mask or redact individual column values; they restrict which rows are visible, not the content of sensitive columns. Option D is wrong because Cloud DLP de-identification transforms on export apply masking only when data is exported to another location, not during live queries in BigQuery, and they modify the exported data rather than masking in place.

441
MCQmedium

A company needs to retain audit logs for 7 years to meet compliance requirements. By default, Cloud Audit Logs are retained for 30 days. What should they do to retain the logs for 7 years?

A.Increase the default audit log retention period in the Logging settings to 7 years.
B.Enable Logging export to BigQuery and set table expiration to 7 years.
C.Use Cloud Functions to copy audit logs daily to Coldline Storage.
D.Create a log sink to export audit logs to a Cloud Storage bucket with a retention policy set to 7 years.
AnswerD

Log sinks can export logs to Cloud Storage, and bucket retention policies can enforce data retention for compliance duration.

Why this answer

Log Sinks can route logs to Cloud Storage Buckets, which support retention policies. Object Retention Lock can enforce WORM compliance if required.

442
MCQeasy

A company uses Cloud Monitoring to track latency on their Compute Engine instances. They notice a spike in latency every day at 2:00 PM. The operations team wants to automate the creation of a support ticket when this spike occurs. What should they do?

A.Create a Cloud Monitoring alert that sends a notification to a Pub/Sub topic, which triggers a Cloud Function that creates a ticket.
B.Create a Cloud Function that runs every minute to check latency and create a ticket.
C.Configure Cloud Tasks to periodically query the latency metric and create a ticket.
D.Use Cloud Scheduler to run a job that checks latency every hour and creates a ticket if spike is detected.
AnswerA

This is the standard pattern: alert -> Pub/Sub -> Cloud Function -> ticket creation.

Why this answer

Cloud Monitoring alerts can be configured to send notifications to a Pub/Sub topic when a metric threshold is breached. A Cloud Function subscribed to that topic can then create a support ticket automatically, enabling real-time incident response. Option B is incorrect because a Cloud Function running every minute to check latency would be inefficient and not directly triggered by the metric alert.

Option C is incorrect because Cloud Tasks is designed for asynchronous task execution, not for monitoring metrics or alerting. Option D is incorrect because Cloud Scheduler runs jobs on a fixed schedule, not based on real-time metric spikes.

443
Multi-Selectmedium

A company is subject to ITAR regulations and needs to ensure that all data stored in GCP remains within the United States. They also require FIPS 140-2 Level 3 validation for encryption keys. Which two services should they use together to meet these requirements? (Choose 2)

Select 2 answers
A.Cloud KMS with software keys
B.Cloud HSM
C.Cloud DLP
D.Assured Workloads
E.Secret Manager
AnswersB, D

Why this answer

Assured Workloads provides compliance controls for ITAR (among others) and can enforce data residency within the US. Cloud HSM provides FIPS 140-2 Level 3 validated HSM for encryption keys. Together they satisfy both requirements.

444
MCQeasy

A company needs to isolate development and production workloads within the same Google Cloud organization. Each environment must have its own VPC network, but they must share a common set of network security policies. Which design meets these requirements?

A.Create separate projects and use VPC Network Peering between them
B.Use Shared VPC with separate service projects for dev and prod
C.Create separate VPCs in the same project and use VPC peering
D.Use a single VPC with multiple subnets and strict firewall rules
AnswerB

Shared VPC centralizes network administration and security policies while allowing environment isolation via separate projects.

Why this answer

Shared VPC allows development and production workloads to operate in separate service projects while attaching to a common host VPC. This provides network isolation (each environment has its own VPC network in its service project) while enforcing a unified set of security policies at the host VPC level, meeting the requirement for both isolation and shared policies. Option A is incorrect: VPC Network Peering connects two separate VPCs but does not centralize policy management; each project retains independent firewall rules and security policies.

Option C is incorrect: creating separate VPCs within the same project does not provide the project-level isolation often required for dev/prod separation, and VPC peering alone does not enforce common security policies. Option D is incorrect: a single VPC with multiple subnets and firewall rules does not isolate workloads at the VPC level; the same firewall rules apply to the entire VPC, and subnet-level isolation is limited, failing to meet the requirement for separate VPC networks.

445
MCQhard

A healthcare organization is designing a data pipeline that ingests patient health records into Cloud Storage, then processes them with Dataflow for analytics. They must ensure that data is encrypted at rest and in transit, and that only authorized users can access the raw data. They also need to guarantee that the encryption keys are stored outside of Google Cloud. Which solution meets all requirements?

A.Use default encryption and rely on Google's data residency commitments.
B.Use Cloud External Key Manager (Cloud EKM) with a partner key manager.
C.Use Customer-Supplied Encryption Keys (CSEK) for Cloud Storage and Dataflow.
D.Use Cloud HSM to generate and store keys.
AnswerB

Cloud EKM supports external keys and is integrated with Cloud Storage and Dataflow.

Why this answer

Cloud EKM allows you to manage encryption keys using a supported external key management partner, ensuring keys are stored outside Google Cloud. This meets the requirement for encryption at rest and in transit (Dataflow and Cloud Storage use these keys transparently) while keeping key material external to Google's infrastructure. Only authorized users can access raw data via IAM and the external key manager's access controls.

Exam trap

Google Cloud often tests the distinction between where keys are stored versus where they are managed: candidates confuse CSEK (keys stored in Google Cloud) with external key storage, or assume Cloud HSM keeps keys outside Google Cloud when it actually runs on Google's infrastructure.

How to eliminate wrong answers

Option A is wrong because default encryption uses Google-managed keys stored within Google Cloud, not outside it, and data residency commitments do not address key storage location. Option C is wrong because Customer-Supplied Encryption Keys (CSEK) are stored in Cloud Storage and managed by the customer but the key material is still stored within Google Cloud (the customer provides the key, but Google stores it in its own infrastructure). Option D is wrong because Cloud HSM generates and stores keys within Google Cloud's hardware security modules, not outside Google Cloud.

446
Multi-Selecteasy

A company is migrating workloads to Google Cloud and wants to ensure that their VPC network is secure by default. Which two best practices should they follow? (Choose two.)

Select 2 answers
A.Remove the default firewall rules that allow all egress
B.Use Shared VPC for all projects
C.Create a firewall rule to deny all ingress except specific ports
D.Enable VPC Flow Logs
E.Use private IP addresses for instances
AnswersA, E

Default egress allow can be risky; removing it enforces least privilege.

Why this answer

The default VPC firewall rules include an egress rule that allows all outbound traffic (target: all instances, action: allow, protocol: all, destination: 0.0.0.0/0). Removing this default egress rule and replacing it with more restrictive outbound rules is a security best practice to prevent unauthorized data exfiltration and limit outbound connections to only necessary destinations. This aligns with the principle of least privilege for network traffic.

Exam trap

Google Cloud often tests the misconception that the default VPC firewall rules are secure by default, but the trap here is that the default egress rule is permissive (allow all), not restrictive, so candidates may overlook the need to remove or override it.

447
MCQmedium

A healthcare organization must ensure that Protected Health Information (PHI) stored in Cloud Storage buckets is not inadvertently shared. They want to automatically scan all new objects added to the bucket for sensitive data and log findings. Which approach should they use?

A.Use Data Loss Prevention (DLP) API to manually scan the bucket each time a new object is added.
B.Use Access Transparency logs to monitor all access to the bucket.
C.Use Cloud Audit Logs and create a log-based metric to detect sensitive data.
D.Use Cloud DLP inspection job triggers with a schedule to scan the bucket periodically.
AnswerD

DLP job triggers can be set to scan Cloud Storage objects on a schedule or event-driven via Pub/Sub, allowing automatic scanning of new objects.

Why this answer

Cloud DLP job triggers can be configured to scan Cloud Storage buckets on a schedule or event-driven (e.g., via Cloud Storage Pub/Sub notifications). The trigger will inspect objects for sensitive data and log results. This meets the requirement for automatic scanning.

448
Matchingmedium

Match each VPC firewall rule component to its definition.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Ingress or egress traffic direction

CIDR blocks for incoming traffic

VM instance tags that rule applies to

Rule evaluation order (lower number = higher priority)

Allow or deny traffic

Why these pairings

VPC firewall rules consist of components like Source IP (traffic origin), Destination IP (traffic target), Action (allow/deny), and Priority (evaluation order). Common confusions include swapping Source and Destination, or confusing Action with Priority.

449
Multi-Selectmedium

A company wants to enforce that no service account keys are created for service accounts in a specific project. Additionally, they want to allow only users from their corporate domain (example.com) to be granted IAM roles. Which TWO organization policy constraints should they apply at the project level?

Select 2 answers
A.constraints/iam.workloadIdentityPoolProviders
B.constraints/iam.allowedPolicyMemberDomains
C.constraints/compute.requireShieldedVm
D.constraints/compute.restrictCloudArmorPolicies
E.constraints/iam.disableServiceAccountKeyCreation
AnswersB, E

Restricts IAM members to domains in the list.

Why this answer

The constraint 'constraints/iam.disableServiceAccountKeyCreation' prevents key creation. 'constraints/iam.allowedPolicyMemberDomains' restricts IAM members to specified domains. Both can be applied at the project level.

450
MCQeasy

An organization wants to restrict access to Google Cloud APIs such as BigQuery and Cloud Storage so that only requests originating from a specific VPC network are allowed. Which Google Cloud service should they use?

A.Private Service Connect
B.VPC firewall rules
C.VPC Service Controls
D.Cloud Armor
AnswerC

VPC Service Controls create a perimeter around Google Cloud APIs, restricting access based on network and identity.

Why this answer

VPC Service Controls allow you to define a service perimeter around a set of Google Cloud APIs, restricting access to only those identities and networks you specify. This is the correct service for this requirement. Firewall rules control network traffic to VM instances, not API access.

Cloud Armor protects against web attacks. Private Service Connect provides private connectivity to Google APIs but does not restrict access.

Page 5

Page 6 of 13

Page 7