In a GKE cluster, one microservice renders images and is CPU-heavy relative to memory; other services fit n2-standard. How do you optimize resource efficiency?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a node pool with compute-optimized machine types for the image renderer and a general-purpose node pool for the others..
Why this is the answer
Creating a dedicated node pool with compute-optimized machine types (e.g., C2 or C2D) for the CPU-heavy image-rendering microservice ensures that these demanding workloads run on hardware best suited for their needs, maximizing performance and efficiency. The general-purpose node pool (using n2-standard machine types) can then host the other microservices, which are well-suited to those resources. This strategy prevents the CPU-heavy workload from contending for resources with other services on the same nodes, leading to better overall cluster utilization and cost optimization. Assigning higher pod priority only influences scheduling order, not the underlying machine type or resource allocation. Running the image renderer on general-purpose nodes and others on compute-optimized nodes is counterproductive, as the CPU-heavy service would be on less optimal hardware. Setting resource requests is good practice but doesn't address the need for specialized hardware for a specific workload.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed