How to Grant Secure Cross-Cloud Access Using Short-Lived Credentials?
Your organization has applications that run in multiple clouds. The applications require access to a Google Cloud resource running in your project. You must use short-lived access credentials to maintain security across the clouds. What should you do?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
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.
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.
Community Discussion (7 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
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
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?
Scoped access policies restrict which resources can be accessed but do not generate the required short-lived tokens for external clouds.
Can Workload Identity Federation replace service account keys entirely?
Yes, WIF dynamically exchanges external tokens for Google OAuth tokens, eliminating the need to download or rotate static keys.