Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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