Bird
0
0

Which of the following is the correct command to deploy an application using a YAML file named app-deployment.yaml on EKS?

easy📝 Configuration Q12 of 15
AWS - EKS
Which of the following is the correct command to deploy an application using a YAML file named app-deployment.yaml on EKS?
Akubectl run app-deployment.yaml
Beksctl create app app-deployment.yaml
Caws eks deploy app-deployment.yaml
Dkubectl apply -f app-deployment.yaml
Step-by-Step Solution
Solution:
  1. Step 1: Identify the kubectl command for applying YAML

    The correct command to deploy resources defined in a YAML file is kubectl apply -f filename.
  2. Step 2: Evaluate other options

    kubectl run app-deployment.yaml is for running individual pods, not applying YAML manifests. eksctl create app app-deployment.yaml misuses eksctl, which is primarily for EKS cluster creation. aws eks deploy app-deployment.yaml is not a valid AWS CLI command.
  3. Final Answer:

    kubectl apply -f app-deployment.yaml -> Option D
  4. Quick Check:

    Deploy YAML with kubectl apply -f [OK]
Quick Trick: Use kubectl apply -f for YAML deployment files [OK]
Common Mistakes:
  • Using eksctl for direct YAML deployment
  • Confusing kubectl run with apply
  • Trying AWS CLI commands that don't exist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes