Question 900An analytics service needs project-scoped API permissions but currently runs as a broadly privileged default VM identity. Which documented safeguard helps sustain the improvement? Restrict workload identity bindings to specific namespaces and service accounts and audit changes. Set an owner-reviewed deadline for legacy key elimination and alert on unexpected key creation. Require change tickets and periodic alert review for sensitive IAM modifications. Inventory VM service account assignments and review broad default identity grants after each deployment. ExplanationCorrect Answer D:Inventory VM service account assignments and review broad default identity grants after each deployment. This reduces the failure risk because Compute Engine workloads can obtain short-lived access tokens for their attached service identity when configured correctly. Immediate action: Create a dedicated service account with least privilege and attach it to the VM rather than storing credentials in startup scripts. Other Answers A:GKE Workload Identity Federation maps Kubernetes workload identity to Google Cloud authorization without mounting permanent service account keys. The preventive control that addresses this condition is: Inventory VM service account assignments and review broad default identity grants after each deployment. B:Long-lived service account keys increase credential exposure, while workload identities and short-lived tokens reduce persistent secret reliance. The preventive control that addresses this condition is: Inventory VM service account assignments and review broad default identity grants after each deployment. C:Admin Activity audit logs provide evidence of supported administrative policy changes when properly queried. The preventive control that addresses this condition is: Inventory VM service account assignments and review broad default identity grants after each deployment.
Question 901A security team wants VM applications to use workload identities without storing permanent secrets. Which supported solution best fits this production constraint? Create a dedicated service account with least privilege and attach it to the VM rather than storing credentials in startup scripts. Inventory existing user-managed service account keys, migrate applications to supported identity mechanisms, then disable and delete unused keys. Identify the required Google-managed service agent and grant only the documented service-agent role on supported resources. Add a supported IAM condition to an appropriately scoped role binding to enforce the approved time or resource criteria. ExplanationCorrect Answer A:Create a dedicated service account with least privilege and attach it to the VM rather than storing credentials in startup scripts. This is appropriate because Compute Engine workloads can obtain short-lived access tokens for their attached service identity when configured correctly. Verify with: Run a safe storage read from the VM and verify its service identity has only the intended permission. Other Answers B:Long-lived service account keys increase credential exposure, while workload identities and short-lived tokens reduce persistent secret reliance. The required action here is: Create a dedicated service account with least privilege and attach it to the VM rather than storing credentials in startup scripts. C:Google-managed service agents allow Google Cloud products to perform product operations and can fail when required permissions are removed. The required action here is: Create a dedicated service account with least privilege and attach it to the VM rather than storing credentials in startup scripts. D:IAM Conditions evaluate expression constraints on supported access checks, narrowing when a binding grants permissions. The required action here is: Create a dedicated service account with least privilege and attach it to the VM rather than storing credentials in startup scripts.
Question 902A security team wants VM applications to use workload identities without storing permanent secrets. Why is the selected configuration more appropriate here? Google Cloud IAM Credentials API can mint time-limited tokens for approved callers, reducing key exposure and rotation burden. Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. Compute Engine workloads can obtain short-lived access tokens for their attached service identity when configured correctly. Custom IAM roles can combine specific eligible permissions when no predefined role precisely matches the required task. ExplanationCorrect Answer C:Compute Engine workloads can obtain short-lived access tokens for their attached service identity when configured correctly. This explains the relevant intervention: Create a dedicated service account with least privilege and attach it to the VM rather than storing credentials in startup scripts. Confirm by: Run a safe storage read from the VM and verify its service identity has only the intended permission. Other Answers A:Google Cloud IAM Credentials API can mint time-limited tokens for approved callers, reducing key exposure and rotation burden. The more specific mechanism behind the reported outcome is: Compute Engine workloads can obtain short-lived access tokens for their attached service identity when configured correctly. B:Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. The more specific mechanism behind the reported outcome is: Compute Engine workloads can obtain short-lived access tokens for their attached service identity when configured correctly. D:Custom IAM roles can combine specific eligible permissions when no predefined role precisely matches the required task. The more specific mechanism behind the reported outcome is: Compute Engine workloads can obtain short-lived access tokens for their attached service identity when configured correctly.
Question 903A security team wants VM applications to use workload identities without storing permanent secrets. Which controlled test would best verify the outcome? Verify the migrated application works without the old key before disabling it in a controlled change. Run each workload with its intended identity and verify resource access cannot cross the other workload's boundary. Have a test identity perform permitted read operations and verify unrelated destructive operations are denied. Run a safe storage read from the VM and verify its service identity has only the intended permission. ExplanationCorrect Answer D:Run a safe storage read from the VM and verify its service identity has only the intended permission. This directly tests whether the intervention works: Create a dedicated service account with least privilege and attach it to the VM rather than storing credentials in startup scripts. The technical reason is: Compute Engine workloads can obtain short-lived access tokens for their attached service identity when configured correctly. Other Answers A:Long-lived service account keys increase credential exposure, while workload identities and short-lived tokens reduce persistent secret reliance. The applicable evidence for this requirement is: Run a safe storage read from the VM and verify its service identity has only the intended permission. B:Distinct service identities enable independent authorization and audit attribution across workloads and reduce shared credential blast radius. The applicable evidence for this requirement is: Run a safe storage read from the VM and verify its service identity has only the intended permission. C:Custom IAM roles can combine specific eligible permissions when no predefined role precisely matches the required task. The applicable evidence for this requirement is: Run a safe storage read from the VM and verify its service identity has only the intended permission.
Question 904A security team wants VM applications to use workload identities without storing permanent secrets. What governance control should accompany this configuration? Restrict workload identity bindings to specific namespaces and service accounts and audit changes. Limit token-creation grants and audit impersonation use, target accounts, and expiration handling. Inventory VM service account assignments and review broad default identity grants after each deployment. Document custom role owners and review permission changes when Google Cloud services evolve. ExplanationCorrect Answer C:Inventory VM service account assignments and review broad default identity grants after each deployment. This reduces the failure risk because Compute Engine workloads can obtain short-lived access tokens for their attached service identity when configured correctly. Immediate action: Create a dedicated service account with least privilege and attach it to the VM rather than storing credentials in startup scripts. Other Answers A:GKE Workload Identity Federation maps Kubernetes workload identity to Google Cloud authorization without mounting permanent service account keys. The preventive control that addresses this condition is: Inventory VM service account assignments and review broad default identity grants after each deployment. B:Service account impersonation obtains time-limited credentials under the target service account's identity while preserving the caller's audit trail. The preventive control that addresses this condition is: Inventory VM service account assignments and review broad default identity grants after each deployment. D:Custom IAM roles can combine specific eligible permissions when no predefined role precisely matches the required task. The preventive control that addresses this condition is: Inventory VM service account assignments and review broad default identity grants after each deployment.
Question 905A Cloud Run API calls Pub/Sub using a developer's personal credential that expires during a weekend release. What should the Google Cloud administrator do first? Configure Workload Identity Federation for GKE so the intended Kubernetes service account can access supported Google Cloud APIs. Grant the calling principal only the necessary service account impersonation permission and use short-lived impersonated credentials for approved administrative commands. Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. Assign a narrowly scoped predefined read-only IAM role to the auditor at the intended project rather than granting a basic Owner role. ExplanationCorrect Answer C:Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. This is appropriate because Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. Verify with: Invoke a test request and confirm the service accesses one approved resource but is denied an unrelated protected resource. Other Answers A:GKE Workload Identity Federation maps Kubernetes workload identity to Google Cloud authorization without mounting permanent service account keys. The required action here is: Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. B:Service account impersonation obtains time-limited credentials under the target service account's identity while preserving the caller's audit trail. The required action here is: Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. D:Predefined IAM roles grant defined permission sets, while basic Owner and Editor roles expose much broader authority. The required action here is: Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs.
Question 906A Cloud Run API calls Pub/Sub using a developer's personal credential that expires during a weekend release. Which Google Cloud technical behavior is relevant? Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. Google Cloud IAM Credentials API can mint time-limited tokens for approved callers, reducing key exposure and rotation burden. Service accounts act as principals in IAM allow policies, and resource-scoped role grants limit API operations to intended resources. Policy analysis explains how allow and deny evaluations contribute to an access decision, reducing trial-and-error permission escalation. ExplanationCorrect Answer A:Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. This explains the relevant intervention: Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. Confirm by: Invoke a test request and confirm the service accesses one approved resource but is denied an unrelated protected resource. Other Answers B:Google Cloud IAM Credentials API can mint time-limited tokens for approved callers, reducing key exposure and rotation burden. The more specific mechanism behind the reported outcome is: Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. C:Service accounts act as principals in IAM allow policies, and resource-scoped role grants limit API operations to intended resources. The more specific mechanism behind the reported outcome is: Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. D:Policy analysis explains how allow and deny evaluations contribute to an access decision, reducing trial-and-error permission escalation. The more specific mechanism behind the reported outcome is: Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys.
Question 907A Cloud Run API calls Pub/Sub using a developer's personal credential that expires during a weekend release. Which test differentiates the desired fix from unrelated behavior? Invoke a test request and confirm the service accesses one approved resource but is denied an unrelated protected resource. Verify the migrated application works without the old key before disabling it in a controlled change. Confirm the token accesses only its approved API and stops working after the configured expiry. Test access during and outside the condition window or resource path using a controlled identity. ExplanationCorrect Answer A:Invoke a test request and confirm the service accesses one approved resource but is denied an unrelated protected resource. This directly tests whether the intervention works: Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. The technical reason is: Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. Other Answers B:Long-lived service account keys increase credential exposure, while workload identities and short-lived tokens reduce persistent secret reliance. The applicable evidence for this requirement is: Invoke a test request and confirm the service accesses one approved resource but is denied an unrelated protected resource. C:Google Cloud IAM Credentials API can mint time-limited tokens for approved callers, reducing key exposure and rotation burden. The applicable evidence for this requirement is: Invoke a test request and confirm the service accesses one approved resource but is denied an unrelated protected resource. D:IAM Conditions evaluate expression constraints on supported access checks, narrowing when a binding grants permissions. The applicable evidence for this requirement is: Invoke a test request and confirm the service accesses one approved resource but is denied an unrelated protected resource.
Question 908A Cloud Run API calls Pub/Sub using a developer's personal credential that expires during a weekend release. Which operating practice is most likely to prevent recurrence? Review provider audience, issuer claims, attribute mapping, and service account bindings after CI changes. Review who can attach privileged identities to resources and separate deployment from runtime permissions. Review Cloud Run runtime identity grants before promoting new revisions. Run periodic least privilege reviews using IAM role usage and defined job functions. ExplanationCorrect Answer C:Review Cloud Run runtime identity grants before promoting new revisions. This reduces the failure risk because Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. Immediate action: Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. Other Answers A:Workload Identity Federation exchanges trusted external workload tokens for short-lived Google Cloud credentials without maintaining static service keys. The preventive control that addresses this condition is: Review Cloud Run runtime identity grants before promoting new revisions. B:Attaching a service identity to resources can require iam.serviceAccounts.actAs, distinct from granting all permissions of that identity to the caller. The preventive control that addresses this condition is: Review Cloud Run runtime identity grants before promoting new revisions. D:Basic Editor includes many resource mutation permissions, while task-specific roles constrain the authorized actions. The preventive control that addresses this condition is: Review Cloud Run runtime identity grants before promoting new revisions.
Question 909An HTTP service needs read access to one storage bucket but should not use the project's default broad permissions. Which implementation choice most directly addresses the described requirement? Grant a deployer the narrowly scoped Service Account User permission required to attach an approved service account to a supported resource. Grant the workload service account a narrowly scoped Pub/Sub publisher role on the specific topic it must publish to. Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. Inspect an affected principal's effective IAM bindings and run Policy Troubleshooter or equivalent policy analysis before editing grants. ExplanationCorrect Answer C:Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. This is appropriate because Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. Verify with: Invoke a test request and confirm the service accesses one approved resource but is denied an unrelated protected resource. Other Answers A:Attaching a service identity to resources can require iam.serviceAccounts.actAs, distinct from granting all permissions of that identity to the caller. The required action here is: Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. B:Service accounts act as principals in IAM allow policies, and resource-scoped role grants limit API operations to intended resources. The required action here is: Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. D:Policy analysis explains how allow and deny evaluations contribute to an access decision, reducing trial-and-error permission escalation. The required action here is: Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs.
Question 910An HTTP service needs read access to one storage bucket but should not use the project's default broad permissions. What technical principle makes this decision suitable? Distinct service identities enable independent authorization and audit attribution across workloads and reduce shared credential blast radius. Service accounts act as principals in IAM allow policies, and resource-scoped role grants limit API operations to intended resources. Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. An IAM binding on an ancestor can apply to descendant resources, so removing a narrow child binding may not eliminate effective access. ExplanationCorrect Answer C:Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. This explains the relevant intervention: Deploy the Cloud Run service using a dedicated runtime service account with only the permissions needed for its downstream APIs. Confirm by: Invoke a test request and confirm the service accesses one approved resource but is denied an unrelated protected resource. Other Answers A:Distinct service identities enable independent authorization and audit attribution across workloads and reduce shared credential blast radius. The more specific mechanism behind the reported outcome is: Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. B:Service accounts act as principals in IAM allow policies, and resource-scoped role grants limit API operations to intended resources. The more specific mechanism behind the reported outcome is: Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys. D:An IAM binding on an ancestor can apply to descendant resources, so removing a narrow child binding may not eliminate effective access. The more specific mechanism behind the reported outcome is: Cloud Run service identities supply Application Default Credentials for supported service-to-service calls without embedding static keys.