D2: Deploying Containerized Apps to GKE
Google Cloud Associate Cloud Engineer exam practice questions · 12 flashcards
Question
Where should container images be stored?
1 / 12
Tip: Space flips the card, ← / → navigate.
Show all 12 Deploying Containerized Apps to GKE practice questions and answers
- Where should container images be stored?Artifact Registry.
- Artifact Registry Docker image path format?REGION-docker.pkg.dev/PROJECT/REPO/IMAGE:TAG.
- How do you build and push an image with Cloud Build?gcloud builds submit --tag IMAGE_PATH.
- How do you deploy from a manifest?kubectl apply -f deployment.yaml.
- How do you create a deployment imperatively?kubectl create deployment NAME --image=IMAGE.
- How do you expose a deployment externally?kubectl expose deployment NAME --type=LoadBalancer --port=80 --target-port=8080.
- Service types?ClusterIP (internal), NodePort, LoadBalancer (external/internal LB).
- How do you expose HTTP apps with L7 routing?Ingress or the Gateway API (creates an Application Load Balancer).
- How do you scale a deployment manually?kubectl scale deployment NAME --replicas=N.
- How do you update the image?kubectl set image deployment/NAME CONTAINER=NEW_IMAGE (rolling update).
- How do you roll back a GKE Deployment?kubectl rollout undo deployment/NAME.
- How do you check rollout status?kubectl rollout status deployment/NAME.