Google Professional Cloud Security Engineer Practice Test 24
Question 230
A VM with no external IP must reach supported Google APIs for patch inventory. If the relevant Private Google Access for internal VMs safeguard is omitted, which outcome is the MOST directly associated failure?
- Enforcing an untested perimeter can cause production data pipeline failures.
- Using the private VIP indiscriminately can allow calls to services outside the intended restricted set.
- One misconfigured BGP peer can eliminate the claimed high-availability path.
- Assuming Cloud NAT is mandatory for every Google API access pattern can add needless public egress.
Explanation
Correct Answer
D:Assuming Cloud NAT is mandatory for every Google API access pattern can add needless public egress. Private Google Access supports API reachability for suitable private-resource networking contexts. The corrective approach is to test API hostname resolution and reachability from a VM with no external IP.
Incorrect Answers
A:This failure pattern belongs chiefly to VPC Service Controls dry-run evaluation; it is not the failure most directly tested in the Private Google Access for internal VMs situation.
B:This failure pattern belongs chiefly to Restricted Google APIs VIP for perimeters; it is not the failure most directly tested in the Private Google Access for internal VMs situation.
C:This failure pattern belongs chiefly to HA VPN encrypted hybrid tunnels; it is not the failure most directly tested in the Private Google Access for internal VMs situation.
Question 231
A compliance officer discovers a proposed lifecycle rule would delete objects covered by preservation requirements. Select TWO statements that correctly combine the Legal hold versus lifecycle delete method with evidence or its governing principle.
- Inventory downstream exports and enforce approved destination, redaction and retention rules.
- Configure supported Access Approval settings and authorized approvers for eligible services.
- Delete a retained log object simply because its age exceeds the general cleanup threshold.
- Apply appropriate holds, retention policies and lifecycle conditions for each data class.
- Eligible temporary data expires while protected records reject premature deletion.
Explanation
Correct Answers
D:Apply appropriate holds, retention policies and lifecycle conditions for each data class. This is the intended action for Legal hold versus lifecycle delete.
E:Eligible temporary data expires while protected records reject premature deletion. This is directly observable validation of the Legal hold versus lifecycle delete result.
Incorrect Answers
A:Inventory downstream exports and enforce approved destination, redaction and retention rules. This serves the different Cross-border logs and downstream data processors objective, not the selected Legal hold versus lifecycle delete plan. Legal preservation and ordinary object lifecycle deletion are separate data governance requirements.
B:Configure supported Access Approval settings and authorized approvers for eligible services. This serves the different Access Approval Google support access objective, not the selected Legal hold versus lifecycle delete plan. Legal preservation and ordinary object lifecycle deletion are separate data governance requirements.
C:Delete a retained log object simply because its age exceeds the general cleanup threshold. This is not part of a safe or effective Legal hold versus lifecycle delete design. A broad expiration rule without holds can conflict with retention obligations.
Question 232
Security needs to identify which principal read sensitive Cloud Storage objects. After the recommended Data Access Audit Logs enablement and cost change is implemented, which observation MOST directly verifies that it works?
- Simulated suspicious behavior produces a traceable finding without treating every normal request as malicious.
- Test resources create the expected findings and remediated resources reflect updated status.
- Authorized test reads produce the expected data access evidence while logging costs are understood.
- Detection alerts identify the monitored flow and are routed to responsible responders.
Explanation
Correct Answer
C:Authorized test reads produce the expected data access evidence while logging costs are understood. This directly tests whether the Data Access Audit Logs enablement and cost goal was met. Data Access logs have different availability and configuration behavior from Admin Activity logs.
Incorrect Answers
A:Simulated suspicious behavior produces a traceable finding without treating every normal request as malicious. This is evidence about Event Threat Detection behavior monitoring, not direct proof of the required Data Access Audit Logs enablement and cost behavior. The relevant check is that authorized test reads produce the expected data access evidence while logging costs are understood.
B:Test resources create the expected findings and remediated resources reflect updated status. This is evidence about Security Health Analytics custom finding, not direct proof of the required Data Access Audit Logs enablement and cost behavior. The relevant check is that authorized test reads produce the expected data access evidence while logging costs are understood.
D:Detection alerts identify the monitored flow and are routed to responsible responders. This is evidence about Cloud Intrusion Detection System alerts, not direct proof of the required Data Access Audit Logs enablement and cost behavior. The relevant check is that authorized test reads produce the expected data access evidence while logging costs are understood.
Question 233
A developer requests broad organization Owner permissions just to read one BigQuery dataset. Which practical correction or implementation decision is MOST directly appropriate?
- Test time boundary and resource-name evaluation with Policy Troubleshooter.
- Validate membership propagation and group-to-resource policy inheritance.
- Give organization Owner to any user who reports a single permission-denied error.
- Use Policy Troubleshooter and negative tests to verify effective role scope.
Explanation
Correct Answer
D:Use Policy Troubleshooter and negative tests to verify effective role scope. The intended behavior can be checked because the intended task succeeds without granting administrative privileges to unrelated projects.
Incorrect Answers
A:Test time boundary and resource-name evaluation with Policy Troubleshooter. This could help Conditional IAM access restrictions, but it does not resolve the IAM least-privilege role scoping case. IAM allow policy bindings determine which principals may act on resources within a hierarchy.
B:Validate membership propagation and group-to-resource policy inheritance. This could help Group-based IAM authorization, but it does not resolve the IAM least-privilege role scoping case. IAM allow policy bindings determine which principals may act on resources within a hierarchy.
C:Give organization Owner to any user who reports a single permission-denied error. This would not correct the IAM least-privilege role scoping workflow. Broad primitive roles can expose multiple projects and protected datasets unnecessarily.
Question 234
An internal application requests broad Google API scopes solely to read a small approved dataset. If the relevant OAuth audience and minimum scopes safeguard is omitted, which outcome is the MOST directly associated failure?
- Overbroad scopes or missing audience checks can expose unrelated APIs.
- An easily phished one-time passcode may not stop real-time credential relay attacks.
- A faulty global SSO switch without recovery may lock out administrators.
- A policy with broad project exemption may restore publicly reachable attack paths.
Explanation
Correct Answer
A:Overbroad scopes or missing audience checks can expose unrelated APIs. Token validity includes intended recipient and authorization context, not just signature format. The corrective approach is to test token claims and authorization denial using a token issued for another client.
Incorrect Answers
B:An easily phished one-time passcode may not stop real-time credential relay attacks. This failure pattern belongs chiefly to Phishing-resistant multi-factor verification; it is not the failure most directly tested in the OAuth audience and minimum scopes situation. Overbroad scopes or missing audience checks can expose unrelated APIs.
C:A faulty global SSO switch without recovery may lock out administrators. This failure pattern belongs chiefly to Identity-provider failover and recovery testing; it is not the failure most directly tested in the OAuth audience and minimum scopes situation. Overbroad scopes or missing audience checks can expose unrelated APIs.
D:A policy with broad project exemption may restore publicly reachable attack paths. This failure pattern belongs chiefly to Restricting external IPv4 addresses through org policy; it is not the failure most directly tested in the OAuth audience and minimum scopes situation. Overbroad scopes or missing audience checks can expose unrelated APIs.
Question 235
Security must protect cloud console accounts from password theft and adversary-in-the-middle phishing. Which approach BEST meets the requirement while respecting the system constraints?
- Select the protocol appropriate to identity federation versus delegated API authorization and validate claims.
- Assume a strong password completely replaces the need for multi-factor authentication.
- Stage authentication changes with a fallback path and monitored test accounts before enforcement.
- Enforce supported phishing-resistant 2-Step Verification options for eligible accounts and test recovery.
Explanation
Correct Answer
D:Enforce supported phishing-resistant 2-Step Verification options for eligible accounts and test recovery. Phishing-resistant authenticators bind verification to the legitimate service origin. Verification should demonstrate that security-key sign-in succeeds for enrolled administrators while unsupported fallback paths are governed.
Incorrect Answers
A:Select the protocol appropriate to identity federation versus delegated API authorization and validate claims. This primarily addresses SAML versus OAuth authentication purpose, not the specific Phishing-resistant multi-factor verification decision. Here, phishing-resistant authenticators bind verification to the legitimate service origin.
B:Assume a strong password completely replaces the need for multi-factor authentication. This is an unsafe or ineffective shortcut for Phishing-resistant multi-factor verification. An easily phished one-time passcode may not stop real-time credential relay attacks.
C:Stage authentication changes with a fallback path and monitored test accounts before enforcement. This primarily addresses Identity-provider failover and recovery testing, not the specific Phishing-resistant multi-factor verification decision. Here, phishing-resistant authenticators bind verification to the legitimate service origin.
Question 236
Central security needs to deny unauthorized internet egress across several VPC projects. Which approach BEST meets the requirement while respecting the system constraints?
- Configure hierarchical and network firewall policies with correct priority and target scope.
- Add a permissive VPC firewall rule and assume it always overrides organization firewall policies.
- Apply Cloud Armor security policy WAF rules at an appropriate priority to the supported backend.
- Remove unnecessary public ingress and use the supported internal endpoint or identity-protected front door.
Explanation
Correct Answer
A:Configure hierarchical and network firewall policies with correct priority and target scope. Hierarchical firewall policies can govern descendant networks independently of local VPC rule intent. Verification should demonstrate that packet tests and firewall logs show expected policy evaluation for allowed and blocked flows.
Incorrect Answers
B:Add a permissive VPC firewall rule and assume it always overrides organization firewall policies. This is an unsafe or ineffective shortcut for Hierarchical Cloud NGFW policy ordering. Assuming a lower-priority allow overrides a higher-priority deny may leave an exposure or outage.
C:Apply Cloud Armor security policy WAF rules at an appropriate priority to the supported backend. This primarily addresses Cloud Armor WAF rule precedence, not the specific Hierarchical Cloud NGFW policy ordering decision. Here, hierarchical firewall policies can govern descendant networks independently of local VPC rule intent.
D:Remove unnecessary public ingress and use the supported internal endpoint or identity-protected front door. This primarily addresses Private versus public endpoint design, not the specific Hierarchical Cloud NGFW policy ordering decision. Here, hierarchical firewall policies can govern descendant networks independently of local VPC rule intent.
Question 237
A transformation pipeline must preserve a defined character alphabet while securing values. Testing exposes this failure: Poor tweak or key management can weaken confidentiality and cause inconsistent decryptability. Which remediation should be applied FIRST?
- Validate format rules, deterministic behavior where required and cryptographic key permissions.
- Establish classification, retention and deletion controls on all authorized copies of regulated data.
- Replace the last digit of the identifier and call it strong format-preserving encryption.
- Configure appropriate BigQuery policy tags or data masking policies and targeted access roles.
Explanation
Correct Answer
A:Validate format rules, deterministic behavior where required and cryptographic key permissions. Confirmation requires seeing that encrypted identifiers follow the required format and only approved services can reverse them.
Incorrect Answers
B:Establish classification, retention and deletion controls on all authorized copies of regulated data. It addresses Sensitive data retention and data lifecycle, not the diagnosed Format-preserving encryption data handling failure. Poor tweak or key management can weaken confidentiality and cause inconsistent decryptability.
C:Replace the last digit of the identifier and call it strong format-preserving encryption. This retains the Format-preserving encryption data handling problem. Format-preserving encryption retains structural constraints but is not the same as plain-text masking.
D:Configure appropriate BigQuery policy tags or data masking policies and targeted access roles. It addresses BigQuery column-level policy tags and masking, not the diagnosed Format-preserving encryption data handling failure. Poor tweak or key management can weaken confidentiality and cause inconsistent decryptability.
Question 238
Developers deploy multiple services that accidentally share one default execution identity. Which practical correction or implementation decision is MOST directly appropriate?
- Test deployments with permitted and forbidden target service account identities.
- Inspect service account attachments and IAM permissions before and after workload migration.
- Inspect recent authentication activity and test the replacement runtime principal before retirement.
- Assume the default compute service account is automatically limited to public read operations.
Explanation
Correct Answer
B:Inspect service account attachments and IAM permissions before and after workload migration. The intended behavior can be checked because cloud Audit Logs attribute workload actions to the intended service principal with only approved permissions.
Incorrect Answers
A:Test deployments with permitted and forbidden target service account identities. This could help Scoped permission for service account creation, but it does not resolve the Default service account overprivilege case. Default service account identity and its IAM grants are separate from the VM operating system login.
C:Inspect recent authentication activity and test the replacement runtime principal before retirement. This could help Service account disabling and dependency mapping, but it does not resolve the Default service account overprivilege case. Default service account identity and its IAM grants are separate from the VM operating system login.
D:Assume the default compute service account is automatically limited to public read operations. This would not correct the Default service account overprivilege workflow. Excessive default service account grants expand impact if one workload is compromised.
Question 239
A security team needs to distinguish a benign prompt spike from unauthorized agent actions. An engineer must explain the recommendation for AI model monitoring and abuse investigations. Which underlying principle is the MOST accurate?
- Network connectivity and database-level authentication are separate enforcement layers.
- AI training workloads inherit ordinary cloud identity and data governance responsibilities.
- AI runtime threat detection requires operational telemetry and governed diagnostic retention.
- IaaS-hosted models leave more guest and runtime controls with customers than managed AI services.
Explanation
Correct Answer
C:AI runtime threat detection requires operational telemetry and governed diagnostic retention. Therefore the implementation decision is to monitor model and tool access logs, anomaly signals and permitted user identity context.
Incorrect Answers
A:Network connectivity and database-level authentication are separate enforcement layers. This describes the separate Cloud SQL private IP and database authentication mechanism; the present case instead requires AI model monitoring and abuse investigations. No audit trail makes prompt injection or misuse difficult to reconstruct.
B:AI training workloads inherit ordinary cloud identity and data governance responsibilities. This describes the separate AI training data isolation and least privilege mechanism; the present case instead requires AI model monitoring and abuse investigations. No audit trail makes prompt injection or misuse difficult to reconstruct.
D:IaaS-hosted models leave more guest and runtime controls with customers than managed AI services. This describes the separate IaaS versus managed AI training boundary mechanism; the present case instead requires AI model monitoring and abuse investigations. No audit trail makes prompt injection or misuse difficult to reconstruct.
Question 240
A new high-risk resource must produce a trackable finding rather than an unstructured email. An engineer must explain the recommendation for Security Health Analytics custom finding. Which underlying principle is the MOST accurate?
- Aggregated sinks centralize eligible descendant logs but need correct scope and sink writer identity access.
- IaC policy validation can catch configuration drift earlier than production vulnerability alerts.
- Preventive guardrails and detective drift monitoring complement each other across cloud projects.
- Custom security findings provide evidence of drift but do not always automatically prevent resource creation.
Explanation
Correct Answer
D:Custom security findings provide evidence of drift but do not always automatically prevent resource creation. Therefore the implementation decision is to configure a supported Security Health Analytics custom module or SCC posture detector with scoped rule logic.
Incorrect Answers
A:A detector with the wrong scope can miss important projects or overwhelm responders with noise. Aggregated sinks centralize eligible descendant logs but need correct scope and sink writer identity access.
B:A detector with the wrong scope can miss important projects or overwhelm responders with noise. IaC policy validation can catch configuration drift earlier than production vulnerability alerts.
C:A detector with the wrong scope can miss important projects or overwhelm responders with noise. This describes the separate Custom organization policy drift monitoring mechanism; the present case instead requires Security Health Analytics custom finding.