🔥 40% Off Crucial Exams Memberships — Deal ends today!

54 minutes, 5 seconds remaining!

GCP Associate Cloud Engineer Practice Question

Your team deploys a stateless web service to a new Google Kubernetes Engine Autopilot cluster using the manifest below. After the rollout, you inspect a running Pod and notice that both containers have a CPU request of 250 mCPU and a memory request of 512 MiB even though you never defined any resources.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
spec:
  replicas: 2
  selector:
    matchLabels:
      app: web
  template:
    metadata:
      labels:
        app: web
    spec:
      containers:
      - name: frontend
        image: gcr.io/my-proj/frontend:1.0
      - name: helper
        image: gcr.io/my-proj/helper:1.0

What explains the observed resource values in this Pod?

  • Because no resources were specified, the Pod was scheduled with zero requests; the 250 mCPU and 512 MiB you see are only advisory and are not billable.

  • GKE Autopilot automatically assigns a default request and limit (about 0.25 vCPU and 512 MiB) to every container whose manifest omits the resources field, and billing is based on those defaults.

  • The Pod could not have started without explicit resources, so the values you saw came from an earlier revision of the manifest that still had requests defined.

  • Autopilot silently ignores any resource section and applies cluster-level horizontal Pod autoscaling instead, which explains the numbers you observed.

GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot