0
0
AWScloud~10 mins

Instance types and families 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 instance type for an EC2 instance.

AWS
resource "aws_instance" "example" {
  ami           = "ami-12345678"
  instance_type = "[1]"
}
Drag options to blanks, or click blank then click option'
Aami-12345678
Bt2.micro
Cus-east-1
Dvpc-1234abcd
Attempts:
3 left
💡 Hint
Common Mistakes
Using the AMI ID instead of the instance type.
Using a region or VPC ID instead of the instance type.
2fill in blank
medium

Complete the code to select a compute-optimized instance family.

AWS
resource "aws_instance" "compute_optimized" {
  ami           = "ami-87654321"
  instance_type = "[1]"
}
Drag options to blanks, or click blank then click option'
Ar5.xlarge
Bm5.large
Ct3.micro
Dc5.large
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a general purpose or memory-optimized instance instead of compute-optimized.
Confusing instance families by their letter prefixes.
3fill in blank
hard

Fix the error in the instance type to use a valid memory-optimized instance.

AWS
resource "aws_instance" "memory_optimized" {
  ami           = "ami-11223344"
  instance_type = "[1]"
}
Drag options to blanks, or click blank then click option'
At3.medium
Bc5.large
Cr5.large
Dm5.xlarge
Attempts:
3 left
💡 Hint
Common Mistakes
Using compute-optimized or general purpose instance types instead of memory-optimized.
Choosing an invalid instance type string.
4fill in blank
hard

Fill both blanks to define a burstable instance with the smallest size.

AWS
resource "aws_instance" "burstable" {
  ami           = "ami-55667788"
  instance_type = "[1].[2]"
}
Drag options to blanks, or click blank then click option'
At3
Bmicro
Csmall
Dm5
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'm5' which is general purpose instead of burstable.
Choosing 'small' size instead of 'micro' for smallest instance.
5fill in blank
hard

Fill all three blanks to create a general purpose instance with medium size and the latest generation.

AWS
resource "aws_instance" "general_purpose" {
  ami           = "ami-99887766"
  instance_type = "[1][2].[3]"
}
Drag options to blanks, or click blank then click option'
Am
B5
Cmedium
Dlarge
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'large' size instead of 'medium'.
Using wrong family letter or generation number.