Step 1: Recall kubectl command for ReplicaSet creation
The correct command to create a ReplicaSet with replicas and image is 'kubectl run' with appropriate flags.
Step 2: Validate each option's syntax
kubectl run replicaset myapp --replicas=3 --image=myimage is the correct syntax; 'kubectl create rs' is not a valid command, and 'kubectl apply' requires a manifest file.
Final Answer:
kubectl run replicaset myapp --replicas=3 --image=myimage -> Option C
Quick Check:
ReplicaSet creation uses 'kubectl run' with --replicas flag [OK]
Quick Trick:Use 'kubectl run' with --replicas flag [OK]
Common Mistakes:
Using 'kubectl create rs' which is invalid
Using full name 'replicaset' which is invalid
Using 'kubectl apply' without a manifest file
Master "ReplicaSets and Deployments" in Kubernetes
9 interactive learning modes - each teaches the same concept differently