
Answer-first summary for fast verification
Answer: Create a namespace for each team, and attach resource quotas to each namespace., Create a LimitRange to specify the default compute resource requirements for each namespace.
To ensure applications can access necessary resources while managing resource sharing in GKE, creating a namespace for each team with attached resource quotas (B) and specifying default compute resource requirements for each namespace with a LimitRange (C) are the most effective strategies. These approaches ensure resource isolation and default settings for pods, which are essential for fair resource sharing and preventing resource overconsumption by any single team. Options A, D, and E do not directly address the core requirement of resource allocation and sharing as effectively as B and C.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
When designing a resource-sharing policy for applications across multiple teams in a Google Kubernetes Engine cluster, how can you ensure all applications have access to the necessary resources? (Select two correct approaches.)
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.