0
0
AWScloud~10 mins

Fargate vs EC2 launch type in AWS - Interactive 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'
ALAMBDA
BEC2
CFARGATE
DON_DEMAND
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'EC2' instead of 'FARGATE' for serverless launch type
Using lowercase or incorrect casing
2fill in blank
medium

Complete the code to define the required CPU units for a Fargate task.

AWS
Cpu: "[1]"
Drag options to blanks, or click blank then click option'
A1024
B256
C512
D2048
Attempts:
3 left
💡 Hint
Common Mistakes
Using numbers instead of strings
Choosing CPU values not supported by Fargate
3fill in blank
hard

Fix the error in the ECS task definition to correctly specify the network mode for Fargate.

AWS
NetworkMode: "[1]"
Drag options to blanks, or click blank then click option'
Abridge
Bhost
Cnone
Dawsvpc
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'bridge' or 'host' network modes with Fargate
Omitting the network mode setting
4fill in blank
hard

Fill both blanks to configure the ECS service to use EC2 launch type and specify the desired count.

AWS
LaunchType: "[1]",
DesiredCount: [2]
Drag options to blanks, or click blank then click option'
AEC2
BFARGATE
C3
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing launch types
Using string instead of integer for DesiredCount
5fill in blank
hard

Fill all three blanks to define a Fargate task with 512 CPU units, 1024 MiB memory, and the correct launch type.

AWS
Cpu: "[1]",
Memory: "[2]",
LaunchType: "[3]"
Drag options to blanks, or click blank then click option'
A256
B512
C1024
DFARGATE
Attempts:
3 left
💡 Hint
Common Mistakes
Using unsupported CPU or memory values
Incorrect launch type casing