Google Cloud Storage can keep multiple versions of the same object. What happens when you enable versioning on a bucket and upload a new file with the same name?
Think about how versioning helps you recover old files.
When versioning is enabled, Cloud Storage keeps old versions of objects. Uploading a file with the same name creates a new version, so old versions remain accessible.
You have a Cloud Run service that processes user requests. It needs to keep user session data between requests. Which storage option is best to maintain state across multiple instances?
Remember that Cloud Run instances can scale and restart anytime.
Cloud Run instances are stateless and can restart or scale out. Storing session data in Cloud SQL ensures persistence and sharing across instances.
You store user preferences in Firestore. How can you ensure only the user can read and write their own preferences?
Think about how Firestore rules can restrict access based on user identity.
Firestore security rules can check the authenticated user's ID and allow access only to documents matching that ID, protecting user data.
You want to use Memorystore for Redis to store session state for a GKE cluster. Which configuration is required to allow GKE nodes to connect securely to Memorystore?
Consider network security and private connectivity.
Memorystore requires being in the same VPC or connected via VPC peering to allow secure private IP access from GKE nodes.
You design a multi-region web app on GCP that requires low-latency access to user state globally. Which approach best balances consistency and performance?
Think about global consistency and replication features.
Multi-region Cloud Spanner provides strong consistency with automatic replication across regions, ideal for global low-latency state management.