0
0
AWScloud~10 mins

Parameters for customization 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 define a parameter in AWS CloudFormation template.

AWS
"Parameters": {
  "InstanceType": {
    "Type": "[1]"
  }
}
Drag options to blanks, or click blank then click option'
AString
BNumber
CList
DBoolean
Attempts:
3 left
💡 Hint
Common Mistakes
Using Number type for instance type which is text.
Using List type when only a single value is needed.
2fill in blank
medium

Complete the code to set a default value for a parameter in AWS CloudFormation.

AWS
"Parameters": {
  "InstanceType": {
    "Type": "String",
    "Default": "[1]"
  }
}
Drag options to blanks, or click blank then click option'
Ac5.xlarge
Bt2.micro
Cm5.large
Dt2.large
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing an instance type that is too large or uncommon as default.
Leaving the default value empty.
3fill in blank
hard

Fix the error in the parameter definition to allow only specific instance types.

AWS
"Parameters": {
  "InstanceType": {
    "Type": "String",
    "AllowedValues": [1]
  }
}
Drag options to blanks, or click blank then click option'
A["t2.micro", "t2.small", "t2.medium"]
B"t2.micro, t2.small, t2.medium"
C{"t2.micro", "t2.small", "t2.medium"}
Dt2.micro, t2.small, t2.medium
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string instead of a list for AllowedValues.
Using curly braces instead of square brackets.
4fill in blank
hard

Fill both blanks to define a parameter with a description and a constraint on allowed values.

AWS
"Parameters": {
  "EnvironmentType": {
    "Type": "String",
    "Description": "[1]",
    "AllowedValues": [2]
  }
}
Drag options to blanks, or click blank then click option'
AType of environment (dev, test, prod)
BList of environments
C["dev", "test", "prod"]
D["development", "testing", "production"]
Attempts:
3 left
💡 Hint
Common Mistakes
Using a vague or missing description.
Using incorrect format for AllowedValues.
5fill in blank
hard

Fill all three blanks to define a parameter with a default, description, and allowed values.

AWS
"Parameters": {
  "KeyName": {
    "Type": "String",
    "Description": "[1]",
    "Default": "[2]",
    "AllowedValues": [3]
  }
}
Drag options to blanks, or click blank then click option'
AName of an existing EC2 KeyPair to enable SSH access
Bmy-key-pair
C["my-key-pair", "default-key", "admin-key"]
DList of key pairs
Attempts:
3 left
💡 Hint
Common Mistakes
Default value not included in AllowedValues.
Description missing or unclear.