0
0
AWScloud~10 mins

EKS cluster creation in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete 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'
Acluster-1
Beks-cluster
CMyEKSCluster
Dcreate-cluster
Attempts:
3 left
💡 Hint
Common Mistakes
Using the command name instead of the cluster name.
Using a generic term like 'eks-cluster' without quotes.
2fill in blank
medium

Complete 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'
Aarn:aws:iam::123456789012:role/EKSRole
Barn:aws:s3:::mybucket
Carn:aws:iam::123456789012:role/SomeOtherRole
Darn:aws:ec2:region:123456789012:instance/i-1234567890abcdef0
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.
3fill in blank
hard

Fix 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'
Asubnet-abc123,subnet-def456
Bsubnet-abc123 subnet-def456
Csubnet-abc123;subnet-def456
Dsubnet-abc123|subnet-def456
Attempts:
3 left
💡 Hint
Common Mistakes
Separating subnet IDs with spaces instead of commas.
Using semicolons or pipes as separators.
4fill in blank
hard

Fill 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'
Aus-west-2
Bus-east-1
C3
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong AWS region code.
Specifying the wrong number of nodes.
5fill in blank
hard

Fill 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'
AMyEKSCluster
Barn:aws:iam::123456789012:role/EKSRole
C"subnet-abc123", "subnet-def456"
D"subnet-xyz789", "subnet-uvw456"
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting quotes around subnet IDs.
Using incorrect role ARN format.
Using wrong cluster name.