Bird
0
0

You tried to create an EKS cluster with this command:

medium📝 Debug Q14 of 15
AWS - EKS

You tried to create an EKS cluster with this command:

aws eks create-cluster --name mycluster --role-arn arn:aws:iam::123456789012:role/EKSRole --resources-vpc-config subnetIds=subnet-12345 subnet-67890

The command failed. What is the most likely cause?

AMissing comma between subnet IDs in <code>subnetIds</code> parameter
BIncorrect IAM role ARN format
CCluster name <code>mycluster</code> is invalid
DSubnets are in different availability zones
Step-by-Step Solution
Solution:
  1. Step 1: Review subnetIds parameter format

    The subnet IDs must be comma-separated inside the subnetIds= value. Here, a space separates them, which is invalid syntax.
  2. Step 2: Check other parameters

    The IAM role ARN format looks correct, cluster name is valid, and subnets in different zones are recommended, not an error.
  3. Final Answer:

    Missing comma between subnet IDs in subnetIds parameter -> Option A
  4. Quick Check:

    Comma separates subnet IDs [OK]
Quick Trick: Comma separate subnet IDs, not spaces [OK]
Common Mistakes:
  • Using spaces instead of commas between subnet IDs
  • Assuming cluster name rules cause failure
  • Confusing subnet zones with errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes