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

1 hour, 59 minutes remaining!

GCP Associate Cloud Engineer Practice Question

You are deploying a new stateless checkout API container image to an existing GKE Standard cluster that already hosts several internal microservices. Requirements are:

  • The API must be reachable only by other workloads inside the cluster.
  • A minimum of 2 replicas must be running at all times and the workload must automatically scale up to 10 replicas whenever the average CPU utilization across pods exceeds 70 %.
  • You want to avoid creating any external or internal load-balancer resources that would add cost and management overhead.

Which set of Kubernetes resources best satisfies these requirements?

  • Create a Deployment with 2 replicas and expose it using a Service of type NodePort; restrict access with additional VPC firewall rules.

  • Create a Deployment with 2 replicas and expose it using a Service of type LoadBalancer annotated for an internal load balancer; rely on the Deployment's rolling-update strategy for scaling.

  • Create a Deployment initially set to 2 replicas, an HPA targeting the Deployment with minReplicas 2, maxReplicas 10, and 70 % CPU threshold, and expose it with a Service of type ClusterIP.

  • Create a StatefulSet with 2 replicas, attach an HPA, and expose it through a Service of type NodePort.

GCP Associate Cloud Engineer
Planning and implementing 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