How to Grant Secure Cross-Cloud Access Using Short-Lived Credentials?
Short answer
C Configure a workload identity pool and provider to exchange external tokens for short-lived Google Cloud credentials.
Question
Key Takeaways
Examines Workload Identity Federation for cross-cloud authentication while testing the common trap of choosing long-lived service account keys for security-critical scenarios.
This question tests securing multi-cloud application access to Google Cloud resources using short-lived tokens via Workload Identity Federation. Community consensus confirms option C as the secure, scalable solution that eliminates long-lived key management.
Common mistake: Option B is frequently selected because downloading service account keys appears simpler, but it violates security best practices by creating static, long-lived credentials prone to leakage.
Expert Analysis
Why the Answer Is Correct
Workload Identity Federation enables external workloads to authenticate directly without storing static keys. By configuring a workload identity pool and provider for each external cloud, you can exchange external tokens for Google Cloud short-lived access credentials. This architecture aligns perfectly with the requirement for temporary, highly secure tokens across distributed environments.
Why the Other Options Are Wrong
Option A incorrectly applies Compute Engine-specific workload identity features to external multi-cloud applications. Option B relies on long-lived service account keys, which contradicts the explicit requirement for short-lived credentials and increases breach risk. Option D focuses solely on network-level firewall rules, which cannot handle identity-based authentication or token generation.
Community Comment Notes
Multiple users confirmed C as correct, emphasizing that Workload Identity Federation replaces insecure key downloads with dynamic token exchange. Comments highlight how scoped access policies and IAM impersonation bindings securely delegate permissions without persisting secrets. One dissenting vote for Option A was corrected by noting that native GCE workload identity does not support third-party cloud identities.
Official Reference
https://cloud.google.com/iam/docs/workload-identity-federation
This link opens the official vendor documentation in a new tab.
Exam Strategy
When a question specifies short-lived credentials and multi-cloud or hybrid environments, immediately prioritize Workload Identity Federation over service account keys. Always match the credential lifecycle requirement to the authentication mechanism before evaluating network or compute configurations.
Frequently Asked Questions
Why is a scoped access policy wrong here?
Can Workload Identity Federation replace service account keys entirely?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 7 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 7
-
ABotha 👍 4Correct Answer: C Short-lived access credentials: Workload Identity Federation (WIF) allows you to issue short-lived access tokens to external applications, reducing the risk of credential theft and misuse. Multiple clouds: You can create a workload identity pool for each external cloud, allowing applications from different environments to access your Google Cloud resources securely. Centralized management: WIF provides a centralized way to manage access to your Google Cloud resources, simplifying administration and improving security. Impersonation: By setting up a service account and adding an IAM binding for impersonation, you can allow external applications to act as the service account, granting them the necessary permissions to access your Google Cloud resources.
-
BPzen 👍 1 Answered CFor applications running in multiple clouds that need access to Google Cloud resources, the Workload Identity Federation feature is the most secure and scalable solution. It allows you to grant external workloads access to Google Cloud resources using short-lived credentials, eliminating the need to manage long-lived service account keys. Workload Identity Pool: Create a pool to represent identities from external clouds. Workload Identity Provider: Set up a provider for each external cloud to validate identities from those environments. Short-Lived Credentials: Use Google’s Security Token Service (STS) to exchange tokens from external identity providers for short-lived Google Cloud credentials. Service Account Impersonation: Set up a Google Cloud service account with the required permissions. Add an IAM binding to allow the external identity to impersonate the service account.
-
Pime13 👍 1 Answered CWhy Option C: Short-Lived Credentials: Workload Identity Federation allows you to use short-lived credentials, which are more secure than long-lived service account keys. Cross-Cloud Compatibility: By creating a workload identity pool and providers for each external cloud, you can securely authenticate and authorize applications running in different cloud environments. IAM Binding for Impersonation: This setup allows you to grant specific permissions to the service account, ensuring that only authorized actions are performed.
-
SQLbox 👍 2C is the correct answer
-
koo_kai 👍 2 Answered CIt"s C
Show 2 more comments
-
1e22522 👍 2 Answered CIt's C
-
yokoyan 👍 1 Answered AI think it's A.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.