Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
You have a machine learning model containerized and deployed on Kubernetes Engine with 2 replicas. To enhance its availability, you decide to increase the number of replicas to 4. Which command should you use?
A
Execute the kubectl scale deployment command with the --deploy 4 parameter.
kubectl scale deployment
--deploy 4
B
Use the kubectl scale deployment command with the --replicas 4 parameter.
--replicas 4
C
Run the kubectl scale deployment command with the --deploy 2 parameter.
--deploy 2
D
Apply the kubectl scale deployment command with the --replicas 2 parameter.
--replicas 2