Bird
0
0

Which of the following is the correct command to apply a Kafka cluster YAML file named kafka-cluster.yaml using Strimzi on Kubernetes?

easy📝 Configuration Q12 of 15
Kafka - Kubernetes and Cloud Deployment
Which of the following is the correct command to apply a Kafka cluster YAML file named kafka-cluster.yaml using Strimzi on Kubernetes?
Akubectl run kafka-cluster.yaml
Bstrimzi create kafka-cluster.yaml
Ckubectl apply -f kafka-cluster.yaml
Dkafka apply kafka-cluster.yaml
Step-by-Step Solution
Solution:
  1. Step 1: Recall how Kubernetes applies YAML files

    Kubernetes uses kubectl apply -f filename.yaml to create or update resources.
  2. Step 2: Match the command to Strimzi usage

    Strimzi uses Kubernetes resources, so applying the Kafka cluster YAML is done with kubectl apply -f.
  3. Final Answer:

    kubectl apply -f kafka-cluster.yaml -> Option C
  4. Quick Check:

    Apply YAML with kubectl apply -f [OK]
Quick Trick: Use kubectl apply -f for YAML files on Kubernetes [OK]
Common Mistakes:
  • Using non-existent 'strimzi create' command
  • Confusing kubectl run with apply
  • Trying to use kafka CLI for Kubernetes YAML

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes