Bird
0
0

Given this AWS CLI command to create an EKS cluster:

medium📝 service behavior Q13 of 15
AWS - EKS

Given this AWS CLI command to create an EKS cluster:

aws eks create-cluster --name test-cluster --role-arn arn:aws:iam::123456789012:role/EKSRole --resources-vpc-config subnetIds=subnet-11111111,subnet-22222222,securityGroupIds=sg-12345678

What will happen after running this command?

AThe command will fail due to incorrect subnet ID format
BThe command will fail because security groups cannot be specified during cluster creation
CThe cluster will be created but only in one subnet ignoring the second subnet
DThe cluster <code>test-cluster</code> will be created using the specified subnets and security group
Step-by-Step Solution
Solution:
  1. Step 1: Understand parameters in the command

    The command specifies cluster name, IAM role, subnet IDs, and security group IDs correctly using --resources-vpc-config.
  2. Step 2: Check if security groups are allowed

    Security groups can be specified during cluster creation to control network access. The subnet IDs are comma-separated and valid format.
  3. Final Answer:

    The cluster test-cluster will be created using the specified subnets and security group -> Option D
  4. Quick Check:

    Valid subnet and security group syntax = The cluster test-cluster will be created using the specified subnets and security group [OK]
Quick Trick: Security groups allowed in --resources-vpc-config [OK]
Common Mistakes:
  • Thinking security groups can't be set at creation
  • Assuming only one subnet is allowed
  • Confusing subnet ID format with invalid syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes