Google Professional Cloud Security Engineer Practice Test 40
Question 390
A team maintains policies but has never tested alert escalation or response procedures. Testing exposes this failure: An unused incident playbook cannot demonstrate a tested detection and response process. Which remediation should be applied FIRST?
- Publish an incident-response policy PDF and claim incidents are automatically investigated.
- Use compliant CMEK or EKM architecture and document key ownership, rotation and access controls.
- Export protected, time-stamped audit evidence with defined control owner, source and retention.
- Conduct tabletop validation and sample ticket evidence against documented escalation targets.
Explanation
Correct Answer
D:Conduct tabletop validation and sample ticket evidence against documented escalation targets. Confirmation requires seeing that a sample alert is triaged, escalated and closed with attributable decision and evidence.
Incorrect Answers
A:Publish an incident-response policy PDF and claim incidents are automatically investigated. This retains the SOC control evidence and incident workflow problem. Audit frameworks assess the operation of controls, not only the existence of a vendor badge.
B:Use compliant CMEK or EKM architecture and document key ownership, rotation and access controls. It addresses Encryption compliance and external key governance, not the diagnosed SOC control evidence and incident workflow failure. An unused incident playbook cannot demonstrate a tested detection and response process.
C:Export protected, time-stamped audit evidence with defined control owner, source and retention. It addresses Audit evidence collection and attestation, not the diagnosed SOC control evidence and incident workflow failure. An unused incident playbook cannot demonstrate a tested detection and response process.
Question 391
An old key remains active after engineers migrated to managed runtime identity. Which practical correction or implementation decision is MOST directly appropriate?
- Inspect recent authentication activity and test the replacement runtime principal before retirement.
- Validate key disablement through audit logs and test legitimate replacement authentication.
- Test key-creation denial in representative child projects and audit exceptions.
- Remove the public Git commit and assume the exposed key cannot be copied or used.
Explanation
Correct Answer
B:Validate key disablement through audit logs and test legitimate replacement authentication. The intended behavior can be checked because the leaked key can no longer authenticate and supported workloads still operate using their new identity.
Incorrect Answers
A: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 Service account key inventory and exposure response case. Long-lived service account keys are exportable credentials that require strict inventory and incident response.
C:Test key-creation denial in representative child projects and audit exceptions. This could help Service account key creation organization policy, but it does not resolve the Service account key inventory and exposure response case. Long-lived service account keys are exportable credentials that require strict inventory and incident response.
D:Remove the public Git commit and assume the exposed key cannot be copied or used. This would not correct the Service account key inventory and exposure response workflow. Rotating only a repository secret variable leaves an already leaked key valid.
Question 392
Developers deploy multiple services that accidentally share one default execution identity. Testing exposes this failure: Excessive default service account grants expand impact if one workload is compromised. Which remediation should be applied FIRST?
- Separate service account creation, service account user and IAM policy administration privileges.
- Configure a Workload Identity Federation pool and provider with audience and attribute restrictions.
- Assume the default compute service account is automatically limited to public read operations.
- Inspect service account attachments and IAM permissions before and after workload migration.
Explanation
Correct Answer
D:Inspect service account attachments and IAM permissions before and after workload migration. Confirmation requires seeing that cloud Audit Logs attribute workload actions to the intended service principal with only approved permissions.
Incorrect Answers
A:Separate service account creation, service account user and IAM policy administration privileges. It addresses Scoped permission for service account creation, not the diagnosed Default service account overprivilege failure. Excessive default service account grants expand impact if one workload is compromised.
B:Configure a Workload Identity Federation pool and provider with audience and attribute restrictions. It addresses Workload Identity Federation for CI systems, not the diagnosed Default service account overprivilege failure. Excessive default service account grants expand impact if one workload is compromised.
C:Assume the default compute service account is automatically limited to public read operations. This retains the Default service account overprivilege problem. Default service account identity and its IAM grants are separate from the VM operating system login.
Question 393
A new Compute Engine workload runs under a default service account that might have overly broad legacy permissions. Which approach BEST meets the requirement while respecting the system constraints?
- Attach a dedicated minimally privileged service account and remove unneeded default account grants.
- Create distinct runtime service accounts and bind task-specific roles at the smallest supported scope.
- Assume the default compute service account is automatically limited to public read operations.
- Inventory workloads using the identity and disable or suspend the affected service account with a recovery plan.
Explanation
Correct Answer
A:Attach a dedicated minimally privileged service account and remove unneeded default account grants. Default service account identity and its IAM grants are separate from the VM operating system login. Verification should demonstrate that cloud Audit Logs attribute workload actions to the intended service principal with only approved permissions.
Incorrect Answers
B:Create distinct runtime service accounts and bind task-specific roles at the smallest supported scope. This primarily addresses Service account per-workload identity design, not the specific Default service account overprivilege decision. Here, default service account identity and its IAM grants are separate from the VM operating system login.
C:Assume the default compute service account is automatically limited to public read operations. This is an unsafe or ineffective shortcut for Default service account overprivilege. Excessive default service account grants expand impact if one workload is compromised.
D:Inventory workloads using the identity and disable or suspend the affected service account with a recovery plan. This primarily addresses Service account disabling and dependency mapping, not the specific Default service account overprivilege decision. Here, default service account identity and its IAM grants are separate from the VM operating system login.
Question 394
An engineering team needs to prevent new resources with unapproved attributes while allowing compliant ones. Select TWO statements that correctly combine the Custom organization policy on resource attributes method with evidence or its governing principle.
- Compliant test creations succeed and prohibited configurations are rejected with useful error evidence.
- Claim arbitrary free-text comments can enforce any Cloud API property as a custom policy.
- Design organization, folders and projects to reflect governance boundaries and inherited IAM needs.
- Use supported organization policy domain-restricted sharing controls with approved identities or exceptions.
- Define and enforce an applicable custom organization policy constraint with supported resource rules.
Explanation
Correct Answers
A:Compliant test creations succeed and prohibited configurations are rejected with useful error evidence. This is directly observable validation of the Custom organization policy on resource attributes result.
E:Define and enforce an applicable custom organization policy constraint with supported resource rules. This is the intended action for Custom organization policy on resource attributes.
Incorrect Answers
B:Claim arbitrary free-text comments can enforce any Cloud API property as a custom policy. This is not part of a safe or effective Custom organization policy on resource attributes design. Untested constraints may unexpectedly block service integrations and maintenance.
C:Design organization, folders and projects to reflect governance boundaries and inherited IAM needs. This serves the different Organization hierarchy and inherited roles objective, not the selected Custom organization policy on resource attributes plan. Custom organization constraints restrict supported resource configurations using explicit evaluated rules.
D:Use supported organization policy domain-restricted sharing controls with approved identities or exceptions. This serves the different Restricting allowed IAM member domains objective, not the selected Custom organization policy on resource attributes plan. Custom organization constraints restrict supported resource configurations using explicit evaluated rules.
Question 395
A domain registrar has not published the DS record for a DNSSEC-signed managed zone. An engineer must explain the recommendation for Cloud DNSSEC authoritative zone protection. Which underlying principle is the MOST accurate?
- DNSSEC authenticates DNS data integrity but does not encrypt DNS queries or content.
- Access levels are contextual expressions that must be consumed by a policy to enforce a boundary.
- Private addressing changes routability but does not independently confer application authorization.
- A web proxy enforces application-aware outbound web policy rather than serving as inbound load balancing.
Explanation
Correct Answer
A:DNSSEC authenticates DNS data integrity but does not encrypt DNS queries or content. Therefore the implementation decision is to enable DNSSEC on the supported Cloud DNS public zone and publish matching trust-chain records.
Incorrect Answers
B:Incorrect DS rollover can cause validating resolvers to reject legitimate zone responses. Access levels are contextual expressions that must be consumed by a policy to enforce a boundary.
C:Incorrect DS rollover can cause validating resolvers to reject legitimate zone responses. Private addressing changes routability but does not independently confer application authorization.
D:Incorrect DS rollover can cause validating resolvers to reject legitimate zone responses. A web proxy enforces application-aware outbound web policy rather than serving as inbound load balancing.
Question 396
A team trains on Compute Engine VMs and assumes Google manages all guest operating system patches. Which approach BEST meets the requirement while respecting the system constraints?
- Classify responsibility for infrastructure-managed versus customer-managed AI deployment components.
- Enforce tool authorization and distinguish untrusted retrieved content from trusted application instructions.
- Attach a dedicated supported service account and restrict managed training pipeline permissions.
- Assume managed training automatically guarantees the supplied input data is authorized and anonymized.
Explanation
Correct Answer
A:Classify responsibility for infrastructure-managed versus customer-managed AI deployment components. IaaS-hosted models leave more guest and runtime controls with customers than managed AI services. Verification should demonstrate that security checklists assign guest patch, network and data permissions to the appropriate party.
Incorrect Answers
B:Enforce tool authorization and distinguish untrusted retrieved content from trusted application instructions. This primarily addresses Prompt injection and retrieved data boundary, not the specific IaaS versus managed AI training boundary decision. Here, iaaS-hosted models leave more guest and runtime controls with customers than managed AI services.
C:Attach a dedicated supported service account and restrict managed training pipeline permissions. This primarily addresses Vertex AI training and pipeline service identities, not the specific IaaS versus managed AI training boundary decision. Here, iaaS-hosted models leave more guest and runtime controls with customers than managed AI services.
D:Assume managed training automatically guarantees the supplied input data is authorized and anonymized. This is an unsafe or ineffective shortcut for IaaS versus managed AI training boundary. Misunderstanding the service model can leave unpatched training images or ungoverned data access.
Question 397
A security team needs a custom posture detector for an organization-specific misconfiguration. If the relevant Security Health Analytics custom finding safeguard is omitted, which outcome is the MOST directly associated failure?
- Attaching broad roles to a common node identity magnifies container escape impact.
- Reviewing only workload stdout logs can miss changes to IAM or organization policies.
- A detector with the wrong scope can miss important projects or overwhelm responders with noise.
- Untested all-fleet patching may cause application regressions or leave unpatched instances unnoticed.
Explanation
Correct Answer
C:A detector with the wrong scope can miss important projects or overwhelm responders with noise. Custom security findings provide evidence of drift but do not always automatically prevent resource creation. The corrective approach is to validate rule conditions, scanning coverage and remediation workflow in a test project.
Incorrect Answers
A:This failure pattern belongs chiefly to GKE Workload Identity for deployment runtime; it is not the failure most directly tested in the Security Health Analytics custom finding situation.
B:This failure pattern belongs chiefly to Admin Activity Audit Logs provenance; it is not the failure most directly tested in the Security Health Analytics custom finding situation.
D:This failure pattern belongs chiefly to VM Manager patch orchestration; it is not the failure most directly tested in the Security Health Analytics custom finding situation.
Question 398
A Cloud Run service needs a payment token that is periodically rotated. Which approach BEST meets the requirement while respecting the system constraints?
- Store production API credentials in a public Dockerfile ARG and assume Secret Manager manages them.
- Configure Cloud SQL private connectivity and a supported database authentication model with least privilege.
- Apply Sensitive Data Protection de-identification transforms that redact selected infoTypes.
- Store approved secrets in Secret Manager versions and grant secret access only to intended workloads.
Explanation
Correct Answer
D:Store approved secrets in Secret Manager versions and grant secret access only to intended workloads. Secrets are governed objects with IAM and version lifecycle; runtime variables alone are not a secret vault. Verification should demonstrate that authorized workloads retrieve the needed version and revoked versions cannot be accessed.
Incorrect Answers
A:Store production API credentials in a public Dockerfile ARG and assume Secret Manager manages them. This is an unsafe or ineffective shortcut for Secret Manager versioning and least privilege. Shared plaintext tokens in source repositories remain exposed after workload deployment.
B:This primarily addresses Cloud SQL private IP and database authentication, not the specific Secret Manager versioning and least privilege decision.
C:Apply Sensitive Data Protection de-identification transforms that redact selected infoTypes. This primarily addresses Sensitive Data Protection inspection redaction, not the specific Secret Manager versioning and least privilege decision. Here, secrets are governed objects with IAM and version lifecycle; runtime variables alone are not a secret vault.
Question 399
A security team needs a custom posture detector for an organization-specific misconfiguration. Which approach BEST meets the requirement while respecting the system constraints?
- Use supported VM Manager patch jobs and compliance views with approved maintenance scheduling.
- Name a project risk-monitoring and assume Security Health Analytics scans it for custom vulnerabilities.
- Configure a supported Security Health Analytics custom module or SCC posture detector with scoped rule logic.
- Configure appropriate organization policy monitoring or posture-management controls at scale.
Explanation
Correct Answer
C:Configure a supported Security Health Analytics custom module or SCC posture detector with scoped rule logic. Custom security findings provide evidence of drift but do not always automatically prevent resource creation. Verification should demonstrate that test resources create the expected findings and remediated resources reflect updated status.
Incorrect Answers
A:Use supported VM Manager patch jobs and compliance views with approved maintenance scheduling. This primarily addresses VM Manager patch orchestration, not the specific Security Health Analytics custom finding decision. Here, custom security findings provide evidence of drift but do not always automatically prevent resource creation.
B:Name a project risk-monitoring and assume Security Health Analytics scans it for custom vulnerabilities. This is an unsafe or ineffective shortcut for Security Health Analytics custom finding. A detector with the wrong scope can miss important projects or overwhelm responders with noise.
D:Configure appropriate organization policy monitoring or posture-management controls at scale. This primarily addresses Custom organization policy drift monitoring, not the specific Security Health Analytics custom finding decision. Here, custom security findings provide evidence of drift but do not always automatically prevent resource creation.
Question 400
Compliance requires object ownership not to bypass uniform policy permissions. Which practical correction or implementation decision is MOST directly appropriate?
- Inventory object ACL users and test upload/download behavior before and after enforcement.
- Assume changing a bucket label instantly deletes all legacy object ACL semantics without enabling uniform access.
- Pilot changes and compare Cloud Audit Logs with planned operational tasks.
- Test time boundary and resource-name evaluation with Policy Troubleshooter.
Explanation
Correct Answer
A:Inventory object ACL users and test upload/download behavior before and after enforcement. The intended behavior can be checked because aCL-based grants no longer provide unintended access and IAM-defined users continue to work.
Incorrect Answers
B:Assume changing a bucket label instantly deletes all legacy object ACL semantics without enabling uniform access. This would not correct the Cloud Storage ACL versus IAM with uniform access workflow. Retaining object ACL assumptions can leave applications unexpectedly denied after migration.
C:Pilot changes and compare Cloud Audit Logs with planned operational tasks. This could help Policy Intelligence permission recommendations, but it does not resolve the Cloud Storage ACL versus IAM with uniform access case. Uniform bucket-level access disables object ACL evaluation in favor of IAM policies.
D:Test time boundary and resource-name evaluation with Policy Troubleshooter. This could help Conditional IAM access restrictions, but it does not resolve the Cloud Storage ACL versus IAM with uniform access case. Uniform bucket-level access disables object ACL evaluation in favor of IAM policies.