Practice Test 3 | Google Cloud Certified Associate Cloud Engineer | Dumps | Mock Test
Which of the following command could be used to autoscale a replication controller “foo” with number of pods between 1 to 10 having target cpu utilization at 80%?
A. kubectl autoscale deployment foo –min=1 –max–10 –cpu-percent=80
B. kubectl rc –autoscale foo –min=1 –max=10 –cpu-percentage=80
C. kubectl deployment –autoscale foo –min=1 –max–10 –cpu-percent=80
D. kubectl autoscale rc foo –max=10 –cpu-percent=80
Explanation:
Answer D
D is correct: This command is used to autoscale a replication controller with max 10 pods. It is important to specify –max flag as it defines the target pods that could be launched when cpu reaches 80%.
A is incorrect: The following command is used to autoscale a deployment and not rc
B & C is incorrect: Both the commands are incorrect.
Link:
https://cloud.google.com/kubernetes-engine/docs/how-to/scaling-apps
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands
Comments are closed, but trackbacks and pingbacks are open.