Google Cloud Professional Cloud Developer — Question 114
You are designing a resource-sharing policy for applications used by different teams in a Google Kubernetes Engine cluster. You need to ensure that all applications can access the resources needed to run. What should you do? (Choose two.)
Answer options
- A. Specify the resource limits and requests in the object specifications.
- B. Create a namespace for each team, and attach resource quotas to each namespace.
- C. Create a LimitRange to specify the default compute resource requirements for each namespace.
- D. Create a Kubernetes service account (KSA) for each application, and assign each KSA to the namespace.
- E. Use the Anthos Policy Controller to enforce label annotations on all namespaces. Use taints and tolerations to allow resource sharing for namespaces.
Correct answer: B, C
Explanation
The correct answers, B and C, ensure that resource allocation is managed effectively by creating namespaces and setting resource quotas, which maintains separation and limits resource usage per team. Options A, D, and E do not directly address the resource-sharing policy in the context of multiple teams needing access to resources, as they focus on individual object specifications or permissions rather than overall management of resources across namespaces.