0
0
GCPcloud~20 mins

Workload identity federation in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Workload Identity Federation Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Workload Identity Federation Basics

What is the primary benefit of using Workload Identity Federation in Google Cloud?

AIt allows external workloads to access Google Cloud resources without using long-lived service account keys.
BIt automatically encrypts all data stored in Google Cloud Storage buckets.
CIt enables Google Cloud services to run workloads on-premises without internet access.
DIt provides a graphical interface to manage Google Cloud IAM roles.
Attempts:
2 left
💡 Hint

Think about how external systems can securely access Google Cloud without managing keys.

Configuration
intermediate
2:00remaining
Configuring a Workload Identity Pool Provider

You want to configure a Workload Identity Pool provider to trust an external OIDC identity provider. Which configuration element is mandatory to specify in the provider setup?

AThe Google Cloud project billing account ID.
BThe issuer URI of the external OIDC identity provider.
CThe IP address of the external workload.
DThe encryption key used for Google Cloud Storage.
Attempts:
2 left
💡 Hint

Consider what uniquely identifies the external identity provider in OIDC.

Architecture
advanced
2:30remaining
Designing Secure Access with Workload Identity Federation

You have an application running on AWS that needs to access Google Cloud Storage securely without using service account keys. Which architecture best follows Workload Identity Federation best practices?

AManually copy files from AWS to Google Cloud Storage using a local machine with gcloud CLI.
BGenerate a Google Cloud service account key and store it in AWS Secrets Manager for the application to use.
CUse a VPN to connect AWS to Google Cloud and allow access via internal IPs without authentication.
DCreate a Workload Identity Pool in Google Cloud, configure an AWS provider with the AWS account ID, and grant the pool access to the required Cloud Storage roles.
Attempts:
2 left
💡 Hint

Think about how to avoid managing keys and use identity federation instead.

security
advanced
2:00remaining
Security Implications of Workload Identity Federation

Which of the following is a key security advantage of using Workload Identity Federation over traditional service account keys?

AIt eliminates the need to distribute and rotate long-lived service account keys, reducing risk of key leakage.
BIt automatically encrypts all network traffic between Google Cloud and external workloads.
CIt allows anonymous access to Google Cloud resources for faster development.
DIt disables audit logging for external workload access to improve performance.
Attempts:
2 left
💡 Hint

Consider how key management affects security risks.

service_behavior
expert
2:30remaining
Behavior of Token Exchange in Workload Identity Federation

When an external workload exchanges its identity token for a Google Cloud access token using Workload Identity Federation, what happens if the token audience does not match the configured audience in the Workload Identity Pool provider?

AGoogle Cloud ignores the audience and issues an access token anyway.
BThe token exchange succeeds but logs a warning for auditing purposes.
CThe token exchange fails and Google Cloud denies access due to audience mismatch.
DThe external workload is granted limited read-only access automatically.
Attempts:
2 left
💡 Hint

Think about how strict identity verification is in token exchanges.