Google Professional Cloud Developer exam dumps

Google Professional Cloud Developer practice question 383 of 481

Professional Cloud Developer. Professional level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud Developer Question 383

Select 3Google Cloud Platform

You are tasked with deploying a new containerized workload on Google Kubernetes Engine (GKE). The workload is CPU-intensive and requires high memory to function properly. Additionally, you want to ensure that the workload can scale efficiently under increased demand. How should you define the workload specifications to meet these requirements?

  1. A

    Set resource requests and limits for both CPU and memory in the Pod specification.

  2. B

    Use a Horizontal Pod Autoscaler (HPA) to scale the deployment based on CPU utilization.

  3. C

    Deploy the workload on a node pool with preemptible VM instances to save costs.

  4. D

    Choose machine types with sufficient CPU and memory in the node pool to match workload demands.

  5. E

    Rely only on default resource settings provided by Kubernetes for simplicity.

Show answer and explanation

Correct answers: A, B, D

Explanation

To ensure the workload performs optimally and scales efficiently, you need to define resource requests and limits to guarantee resource allocation, use a Horizontal Pod Autoscaler for dynamic scaling, and select node types with sufficient resources to match the workload's demands. Default settings or preemptible VMs are not suitable for a critical, resource-intensive workload.

  • A. Correct.

    Correct. Setting resource requests and limits ensures the workload gets the necessary resources and prevents other Pods from over-consuming resources on the same node.

  • B. Correct.

    Correct. A Horizontal Pod Autoscaler allows the workload to scale horizontally based on metrics like CPU utilization, which is critical for handling increased demand.

  • C. Incorrect.

    Incorrect. While preemptible VMs are cost-effective, they are not suitable for workloads requiring high availability or consistent resource guarantees.

  • D. Correct.

    Correct. Choosing machine types with sufficient CPU and memory ensures that the nodes can handle the resource-intensive workload without bottlenecks.

  • E. Incorrect.

    Incorrect. Default resource settings in Kubernetes may not meet the specific demands of CPU-intensive and memory-intensive workloads, leading to potential instability.

Timed practice exam

Take a Google Professional Cloud Developer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam