0
0
AWScloud~10 mins

Fargate serverless containers 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 launch type for an ECS task using Fargate.

AWS
LaunchType=[1]
Drag options to blanks, or click blank then click option'
AFARGATE
BEC2
CLAMBDA
DON_DEMAND
Attempts:
3 left
💡 Hint
Common Mistakes
Using EC2 launch type instead of Fargate
Confusing Lambda with Fargate
2fill in blank
medium

Complete the code to define the network mode required for Fargate tasks.

AWS
"networkMode": "[1]"
Drag options to blanks, or click blank then click option'
Aawsvpc
Bbridge
Chost
Dnone
Attempts:
3 left
💡 Hint
Common Mistakes
Using bridge or host network mode which are for EC2 launch type
Setting network mode to none
3fill in blank
hard

Fix the error in the task definition to specify CPU units for a Fargate task.

AWS
"cpu": "[1]"
Drag options to blanks, or click blank then click option'
A1024
B5120
C2048
D256
Attempts:
3 left
💡 Hint
Common Mistakes
Using CPU values not supported by Fargate
Using values too large or invalid strings
4fill in blank
hard

Fill both blanks to define memory and CPU for a Fargate task in the task definition.

AWS
"memory": "[1]",
"cpu": "[2]"
Drag options to blanks, or click blank then click option'
A512
B256
C1024
D2048
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing incompatible CPU and memory values
Using memory less than 512 MB
5fill in blank
hard

Fill all three blanks to configure container port mapping and protocol for a Fargate service.

AWS
"portMappings": [{
  "containerPort": [1],
  "hostPort": [2],
  "protocol": "[3]"
}]
Drag options to blanks, or click blank then click option'
A80
B0
Ctcp
Dudp
Attempts:
3 left
💡 Hint
Common Mistakes
Setting hostPort equal to containerPort in Fargate
Using UDP protocol for HTTP services