0
0
AWScloud~10 mins

Elastic IP addresses 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 allocate a new Elastic IP address using AWS CLI.

AWS
aws ec2 allocate-address --domain [1]
Drag options to blanks, or click blank then click option'
Aclassic
Bvpc
Cinternet
Dprivate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'classic' domain when your account uses VPC only.
Using invalid domain names like 'internet' or 'private'.
2fill in blank
medium

Complete the code to associate an Elastic IP address with an instance using AWS CLI.

AWS
aws ec2 associate-address --instance-id [1] --allocation-id eipalloc-12345678
Drag options to blanks, or click blank then click option'
Aeipalloc-87654321
Bsg-1234abcd
Csubnet-1234abcd
Di-0a1b2c3d4e5f6g7h8
Attempts:
3 left
💡 Hint
Common Mistakes
Using allocation ID instead of instance ID for --instance-id.
Using subnet or security group IDs instead of instance ID.
3fill in blank
hard

Fix the error in the command to release an Elastic IP address.

AWS
aws ec2 release-address --allocation-id [1]
Drag options to blanks, or click blank then click option'
Aeipalloc-12345678
Beip-12345678
Ci-12345678
Dsubnet-12345678
Attempts:
3 left
💡 Hint
Common Mistakes
Using public IP (eip-) instead of allocation ID (eipalloc-).
Using instance or subnet IDs instead of allocation ID.
4fill in blank
hard

Fill both blanks to create a tag for an Elastic IP address using AWS CLI.

AWS
aws ec2 create-tags --resources [1] --tags Key=[2],Value=Production
Drag options to blanks, or click blank then click option'
Aeipalloc-1a2b3c4d
Bi-1a2b3c4d
CName
DEnvironment
Attempts:
3 left
💡 Hint
Common Mistakes
Using instance ID instead of allocation ID for resources.
Using invalid tag keys.
5fill in blank
hard

Fill all three blanks to describe the correct AWS CLI command to disassociate an Elastic IP address.

AWS
aws ec2 disassociate-address --[1] [2] --region [3]
Drag options to blanks, or click blank then click option'
Aassociation-id
Beipassoc-1234abcd
Cus-east-1
Dallocation-id
Attempts:
3 left
💡 Hint
Common Mistakes
Using allocation-id instead of association-id for disassociation.
Omitting the region parameter.