Which command applies a configuration file named 'app.yaml' to a Kubernetes cluster?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: kubectl apply -f app.yaml

'kubectl apply -f' is the declarative way to create or update resources based on a configuration file....

Real Exam ScenarioKubernetes CLI

Which command applies a configuration file named 'app.yaml' to a Kubernetes cluster?

✓ Correct Answer & ExplanationKubernetes CLI

Correct Answer

kubectl apply -f app.yaml

Why This Answer Is Correct

'kubectl apply -f' is the declarative way to create or update resources based on a configuration file.

📚 What This Question Tests

This question evaluates your knowledge of Kubernetes CLI — a core concept tested in cloud certification exams. Understanding Kubernetes CLI is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.