Google Professional Cloud Security Engineer Practice Test 23
Question 220
An internal application requests broad Google API scopes solely to read a small approved dataset. After the recommended OAuth audience and minimum scopes change is implemented, which observation MOST directly verifies that it works?
- Tokens for the wrong audience are rejected and users are not prompted for unrelated scopes.
- Old privileged sessions expire according to policy and authorized workers can reauthenticate.
- Controlled test logins work after the change and emergency recovery stays documented.
- Membership changes match approved source records and unexpected external identities are rejected.
Explanation
Correct Answer
A:Tokens for the wrong audience are rejected and users are not prompted for unrelated scopes. This directly tests whether the OAuth audience and minimum scopes goal was met. Token validity includes intended recipient and authorization context, not just signature format.
Incorrect Answers
B:Old privileged sessions expire according to policy and authorized workers can reauthenticate. This is evidence about Session duration and reauthentication policy, not direct proof of the required OAuth audience and minimum scopes behavior. The relevant check is that tokens for the wrong audience are rejected and users are not prompted for unrelated scopes.
C:Controlled test logins work after the change and emergency recovery stays documented. This is evidence about Identity-provider failover and recovery testing, not direct proof of the required OAuth audience and minimum scopes behavior. The relevant check is that tokens for the wrong audience are rejected and users are not prompted for unrelated scopes.
D:Membership changes match approved source records and unexpected external identities are rejected. This is evidence about Programmatic group membership governance, not direct proof of the required OAuth audience and minimum scopes behavior. The relevant check is that tokens for the wrong audience are rejected and users are not prompted for unrelated scopes.
Question 221
A procurement team selects a managed service and assumes its certifications cover the company's custom application controls. Which approach BEST meets the requirement while respecting the system constraints?
- Assume every beta API is compliant with every standard because another Google Cloud product has an audit report.
- Use supported Assured Workloads configuration with the appropriate compliance regime and project placement.
- Compare official service compliance scope, customer contract terms and workload-specific requirements.
- Export protected, time-stamped audit evidence with defined control owner, source and retention.
Explanation
Correct Answer
C:Compare official service compliance scope, customer contract terms and workload-specific requirements. Provider attestations cover specified services and periods, not every customer configuration or integration. Verification should demonstrate that the architecture uses eligible services with customer-owned compensating controls documented.
Incorrect Answers
A:Assume every beta API is compliant with every standard because another Google Cloud product has an audit report. This is an unsafe or ineffective shortcut for Vendor shared-control contract and service eligibility. Assuming a vendor certificate transfers regulatory responsibility to the customer workload may produce audit gaps.
B:Use supported Assured Workloads configuration with the appropriate compliance regime and project placement. This primarily addresses Assured Workloads compliance resource boundary, not the specific Vendor shared-control contract and service eligibility decision. Here, provider attestations cover specified services and periods, not every customer configuration or integration.
D:Export protected, time-stamped audit evidence with defined control owner, source and retention. This primarily addresses Audit evidence collection and attestation, not the specific Vendor shared-control contract and service eligibility decision. Here, provider attestations cover specified services and periods, not every customer configuration or integration.
Question 222
Security wants evidence for why some cross-project connections are rejected. An engineer must explain the recommendation for Firewall rule logging and deny analysis. Which underlying principle is the MOST accurate?
- Threat detection derives signals from audit and operational events, distinct from posture-only scanning.
- Firewall rule logging provides policy decision evidence distinct from basic network flow summaries.
- Cloud IDS observes replicated network traffic for threats but does not inherently replace blocking firewall controls.
- Image digest attestations authorize precisely identified artifacts rather than unrelated mutable labels.
Explanation
Correct Answer
B:Firewall rule logging provides policy decision evidence distinct from basic network flow summaries. Therefore the implementation decision is to enable appropriate firewall policy rule logging and inspect effective rules for denied connections.
Incorrect Answers
A:Without accurate priority and match review an unrelated allow rule may not resolve a deny. Threat detection derives signals from audit and operational events, distinct from posture-only scanning.
C:Without accurate priority and match review an unrelated allow rule may not resolve a deny. Cloud IDS observes replicated network traffic for threats but does not inherently replace blocking firewall controls.
D:Without accurate priority and match review an unrelated allow rule may not resolve a deny. Image digest attestations authorize precisely identified artifacts rather than unrelated mutable labels.
Question 223
An attacker pushes a modified container directly to a registry with a plausible version tag. Testing exposes this failure: Without deploy enforcement a registry push alone may let unreviewed images run. Which remediation should be applied FIRST?
- Rename a malicious image to approved:latest and assume its tag is equivalent to a signed attestation.
- Integrate authenticated dependency or image scanning into CI with controlled fail policies.
- Enable applicable Cloud Run Binary Authorization with reviewed service and job policy semantics.
- Test missing, invalid and valid attestations using immutable image digests.
Explanation
Correct Answer
D:Test missing, invalid and valid attestations using immutable image digests. Confirmation requires seeing that images lacking required attestations are rejected at deployment while approved digests are allowed.
Incorrect Answers
A:Rename a malicious image to approved:latest and assume its tag is equivalent to a signed attestation. This retains the Binary Authorization GKE admission problem. Binary Authorization checks deployment policy and attestation against image identity rather than trusting a mutable tag.
B:Integrate authenticated dependency or image scanning into CI with controlled fail policies. It addresses Continuous integration dependency security gate, not the diagnosed Binary Authorization GKE admission failure. Without deploy enforcement a registry push alone may let unreviewed images run.
C:Enable applicable Cloud Run Binary Authorization with reviewed service and job policy semantics. It addresses Binary Authorization Cloud Run revision policy, not the diagnosed Binary Authorization GKE admission failure. Without deploy enforcement a registry push alone may let unreviewed images run.
Question 224
A partner integration needs a documented exception without opening access to every domain. Which practical correction or implementation decision is MOST directly appropriate?
- Test allowed and blocked external principals and record exception governance.
- Test creation with and without external IPs across restricted and exception projects.
- Deploy policy changes incrementally and validate expected deny results in representative projects.
- Configure a Cloud DNS domain and assume IAM sharing is restricted to its email suffix.
Explanation
Correct Answer
A:Test allowed and blocked external principals and record exception governance. The intended behavior can be checked because unapproved external principals cannot be added to controlled IAM policies.
Incorrect Answers
B:Test creation with and without external IPs across restricted and exception projects. This could help Restricting external IPv4 addresses through org policy, but it does not resolve the Restricting allowed IAM member domains case. Domain-restricted sharing guardrails constrain identity grants separately from resource firewalls.
C:Deploy policy changes incrementally and validate expected deny results in representative projects. This could help Custom organization policy on resource attributes, but it does not resolve the Restricting allowed IAM member domains case. Domain-restricted sharing guardrails constrain identity grants separately from resource firewalls.
D:Configure a Cloud DNS domain and assume IAM sharing is restricted to its email suffix. This would not correct the Restricting allowed IAM member domains workflow. An overly permissive domain exception can enable unauthorized external role assignments.
Question 225
A financial auditor requests evidence about actions Google personnel took while accessing supported customer environments. If the relevant Access Transparency provider audit visibility safeguard is omitted, which outcome is the MOST directly associated failure?
- Broad unreviewed deletion rules can disable legitimate cloud users during synchronization.
- An unused incident playbook cannot demonstrate a tested detection and response process.
- Relying on at-rest encryption while exposing raw datasets to all researchers violates least privilege.
- Treating a missing transparency event as proof no customer account accessed data is incorrect.
Explanation
Correct Answer
D:Treating a missing transparency event as proof no customer account accessed data is incorrect. Access Transparency provides visibility into certain Google personnel interactions and differs from customer Audit Logs. The corrective approach is to map event coverage and permissions to the relevant provider support event and data scope.
Incorrect Answers
A:Broad unreviewed deletion rules can disable legitimate cloud users during synchronization. This failure pattern belongs chiefly to Cloud Identity directory synchronization; it is not the failure most directly tested in the Access Transparency provider audit visibility situation. Treating a missing transparency event as proof no customer account accessed data is incorrect.
B:This failure pattern belongs chiefly to SOC control evidence and incident workflow; it is not the failure most directly tested in the Access Transparency provider audit visibility situation.
C:This failure pattern belongs chiefly to Healthcare data privacy segmentation; it is not the failure most directly tested in the Access Transparency provider audit visibility situation.
Question 226
Compliance requires different access and retention treatment depending on information sensitivity. An engineer must explain the recommendation for Sensitive data classification and policy labels. Which underlying principle is the MOST accurate?
- Healthcare privacy controls require data minimization, authorization and auditability regardless of infrastructure encryption.
- Data classification drives control selection and should be based on sensitivity and legal purpose.
- Provider attestations cover specified services and periods, not every customer configuration or integration.
- Redaction obscures selected content but requires correct detector configuration and validation.
Explanation
Correct Answer
B:Data classification drives control selection and should be based on sensitivity and legal purpose. Therefore the implementation decision is to classify data and map each class to applicable access, encryption, monitoring and retention controls.
Incorrect Answers
A:A generic restricted label without actual IAM or lifecycle rules offers no confidentiality guarantee. This describes the separate Healthcare data privacy segmentation mechanism; the present case instead requires Sensitive data classification and policy labels.
C:A generic restricted label without actual IAM or lifecycle rules offers no confidentiality guarantee. Provider attestations cover specified services and periods, not every customer configuration or integration.
D:A generic restricted label without actual IAM or lifecycle rules offers no confidentiality guarantee. Redaction obscures selected content but requires correct detector configuration and validation.
Question 227
A shared subnet hosts payment and reporting VMs that must have different inbound ports. After the recommended Cloud NGFW targeted service account rules change is implemented, which observation MOST directly verifies that it works?
- Service-project instances attach to approved host subnets without receiving unnecessary network administrator roles.
- Packet tests and firewall logs show expected policy evaluation for allowed and blocked flows.
- Attack payloads receive expected enforcement while legitimate requests pass monitored rule evaluation.
- Only the designated workload receives the intended connection and other subnet peers are denied.
Explanation
Correct Answer
D:Only the designated workload receives the intended connection and other subnet peers are denied. This directly tests whether the Cloud NGFW targeted service account rules goal was met. Targeted Cloud NGFW policies separate workload groups without relying solely on broad CIDR membership.
Incorrect Answers
A:Service-project instances attach to approved host subnets without receiving unnecessary network administrator roles. This is evidence about Shared VPC host and service project boundaries, not direct proof of the required Cloud NGFW targeted service account rules behavior. The relevant check is that only the designated workload receives the intended connection and other subnet peers are denied.
B:Packet tests and firewall logs show expected policy evaluation for allowed and blocked flows. This is evidence about Hierarchical Cloud NGFW policy ordering, not direct proof of the required Cloud NGFW targeted service account rules behavior. The relevant check is that only the designated workload receives the intended connection and other subnet peers are denied.
C:Attack payloads receive expected enforcement while legitimate requests pass monitored rule evaluation. This is evidence about Cloud Armor WAF rule precedence, not direct proof of the required Cloud NGFW targeted service account rules behavior. The relevant check is that only the designated workload receives the intended connection and other subnet peers are denied.
Question 228
A cluster operator is concerned that unrelated namespaces share the same node IAM permissions. Testing exposes this failure: Attaching broad roles to a common node identity magnifies container escape impact. Which remediation should be applied FIRST?
- Test pod identities from distinct namespaces and confirm restricted API calls fail.
- Integrate authenticated dependency or image scanning into CI with controlled fail policies.
- Place a project Owner JSON key in the cluster's default namespace for all pods.
- Scan infrastructure-as-code plans against approved security guardrails and require review before deployment.
Explanation
Correct Answer
A:Test pod identities from distinct namespaces and confirm restricted API calls fail. Confirmation requires seeing that only the intended pods access the bucket without exporting long-lived private service keys.
Incorrect Answers
B:Integrate authenticated dependency or image scanning into CI with controlled fail policies. It addresses Continuous integration dependency security gate, not the diagnosed GKE Workload Identity for deployment runtime failure. Attaching broad roles to a common node identity magnifies container escape impact.
C:Place a project Owner JSON key in the cluster's default namespace for all pods. This retains the GKE Workload Identity for deployment runtime problem. Runtime workload identity scopes cloud permissions to pods and service accounts rather than entire hosts.
D:Scan infrastructure-as-code plans against approved security guardrails and require review before deployment. It addresses Infrastructure as code security validation, not the diagnosed GKE Workload Identity for deployment runtime failure. Attaching broad roles to a common node identity magnifies container escape impact.
Question 229
Security wants evidence for why some cross-project connections are rejected. Select TWO statements that correctly combine the Firewall rule logging and deny analysis method with evidence or its governing principle.
- Enable appropriate firewall policy rule logging and inspect effective rules for denied connections.
- Change a VM hostname and assume the firewall priority order changes automatically.
- Log entries identify matching policy, direction, source, destination and disposition.
- Configure a controlled Cloud Logging sink to an approved transport and filter event contents.
- Investigate the specific SCC Security Health Analytics finding and remediate the actual resource configuration.
Explanation
Correct Answers
A:Enable appropriate firewall policy rule logging and inspect effective rules for denied connections. This is the intended action for Firewall rule logging and deny analysis.
C:Log entries identify matching policy, direction, source, destination and disposition. This is directly observable validation of the Firewall rule logging and deny analysis result.
Incorrect Answers
B:Change a VM hostname and assume the firewall priority order changes automatically. This is not part of a safe or effective Firewall rule logging and deny analysis design. Without accurate priority and match review an unrelated allow rule may not resolve a deny.
D:Configure a controlled Cloud Logging sink to an approved transport and filter event contents. This serves the different External SIEM log export privacy objective, not the selected Firewall rule logging and deny analysis plan. Firewall rule logging provides policy decision evidence distinct from basic network flow summaries.
E:Investigate the specific SCC Security Health Analytics finding and remediate the actual resource configuration. This serves the different Security Health Analytics remediation workflow objective, not the selected Firewall rule logging and deny analysis plan. Firewall rule logging provides policy decision evidence distinct from basic network flow summaries.
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.