Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to specify the cluster name in the AWS CLI command.
AWS
aws eks create-cluster --name [1] --role-arn arn:aws:iam::123456789012:role/EKSRole --resources-vpc-config subnetIds=subnet-abc123,subnet-def456
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the command name instead of the cluster name.
Using a generic term like 'eks-cluster' without quotes.
✗ Incorrect
The --name parameter requires the cluster name, such as 'MyEKSCluster'.
2fill in blank
mediumComplete the code to specify the IAM role ARN for the EKS cluster.
AWS
aws eks create-cluster --name MyEKSCluster --role-arn [1] --resources-vpc-config subnetIds=subnet-abc123,subnet-def456 Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using an S3 bucket ARN instead of an IAM role ARN.
Using an EC2 instance ARN instead of an IAM role ARN.
✗ Incorrect
The IAM role ARN must be the one assigned for EKS cluster permissions, like 'arn:aws:iam::123456789012:role/EKSRole'.
3fill in blank
hardFix the error in the subnet IDs specification for the VPC config.
AWS
aws eks create-cluster --name MyEKSCluster --role-arn arn:aws:iam::123456789012:role/EKSRole --resources-vpc-config subnetIds=[1]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Separating subnet IDs with spaces instead of commas.
Using semicolons or pipes as separators.
✗ Incorrect
Subnet IDs must be comma-separated without spaces in the AWS CLI command.
4fill in blank
hardFill both blanks to complete the eksctl command to create a cluster with 3 nodes in the us-west-2 region.
AWS
eksctl create cluster --name MyCluster --region [1] --nodes [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong AWS region code.
Specifying the wrong number of nodes.
✗ Incorrect
The region is 'us-west-2' and the number of nodes is '3' as specified.
5fill in blank
hardFill all three blanks to define a CloudFormation snippet that creates an EKS cluster with a specified name, role ARN, and subnet IDs.
AWS
"Resources": { "EKSCluster": { "Type": "AWS::EKS::Cluster", "Properties": { "Name": "[1]", "RoleArn": "[2]", "ResourcesVpcConfig": { "SubnetIds": [[3]] } } } }
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting quotes around subnet IDs.
Using incorrect role ARN format.
Using wrong cluster name.
✗ Incorrect
The cluster name, role ARN, and subnet IDs must be correctly specified as strings and list items in CloudFormation.