Google Cloud Professional Cloud Developer — Question 353
Your team is trying to reduce their cloud spend, and you want to evaluate your GKE Autopilot cluster costs. When reviewing the manifests, you see that resource requests are currently not specified. Your application is stateless and fault-tolerant, and there are no specific hardware or memory requirements on nodes. You want to modify the cluster to be scalable and cost-effective as quickly as possible while maintaining a cluster with sufficient computing resources. What should you do?
Answer options
- A. Request that your Pods run as Spot Pods, and use the cloud.google.com/gke-spot=true label in your YAML manifest.
- B. Request the Balanced compute class in your YAML manifest.
- C. In the YAML deployment configuration manifest, request and set the maximum CPU to 5 vCPU.
- D. Set up Cloud Trace and Cloud Monitoring, identify the maximum memory used in the past 30 days, and set the YAML manifest to request that amount of memory.
Correct answer: A
Explanation
The correct answer is A because using Spot Pods allows for significant cost savings in a GKE Autopilot cluster by leveraging unused capacity in the cloud. The other options focus on specific resource configurations or monitoring setups that do not directly address the need for immediate cost reduction or scalability in a stateless application context.