You deploy a Kubernetes Pod on Google Kubernetes Engine (GKE) with a node selector that matches no nodes. What will happen to the Pod?
apiVersion: v1
kind: Pod
metadata:
name: test-pod
spec:
containers:
- name: nginx
image: nginx
nodeSelector:
disktype: ssdThink about how Kubernetes schedules Pods with node selectors.
If no nodes match the nodeSelector, the Pod cannot be scheduled and stays Pending until a matching node appears.
You want to deploy a stateless web application that must scale automatically based on HTTP traffic. Which Google Cloud service is the best choice?
Consider which service offers automatic scaling for web apps without managing infrastructure.
App Engine Standard Environment automatically scales stateless web apps based on traffic without user management of servers.
You deploy a workload on Google Cloud Run that needs to access a Cloud Storage bucket securely. What is the best practice to grant access?
Think about the principle of least privilege and secure identity management.
Assigning the service account the minimal required role is secure and avoids embedding credentials.
You want to configure Horizontal Pod Autoscaling (HPA) for a GKE Deployment based on CPU usage. Which YAML snippet correctly defines the HPA?
Look for the correct apiVersion and field names for CPU-based autoscaling.
autoscaling/v1 with targetCPUUtilizationPercentage is the standard way to configure CPU autoscaling in GKE.
You need to deploy a web application on Google Cloud to achieve high availability across multiple regions. Which architecture follows best practices?
Consider global load balancing and data consistency across regions.
Using a global load balancer with multi-region database replication ensures availability and data consistency.