0
0
AWScloud~20 mins

Fargate serverless containers in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Fargate Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Fargate Task Networking Mode
Which networking mode does AWS Fargate use to run containers securely and isolate them from other tasks?
AAWSVPC mode, assigning each task its own elastic network interface
BBridge mode, sharing the host's network stack
CNone, Fargate tasks do not use networking
DHost mode, directly using the host's network interface
Attempts:
2 left
💡 Hint
Think about how Fargate isolates tasks for security and networking.
Architecture
intermediate
2:00remaining
Scaling Fargate Tasks Automatically
You want your Fargate service to automatically add more tasks when CPU usage is high and reduce tasks when CPU usage is low. Which AWS service should you configure to achieve this?
AAWS CloudFormation stack updates
BAWS Lambda functions triggered by CloudWatch alarms
CAWS Auto Scaling with ECS Service Auto Scaling policies
DAWS Elastic Load Balancer health checks
Attempts:
2 left
💡 Hint
Consider the service that manages container scaling based on metrics.
security
advanced
2:00remaining
IAM Role for Fargate Task Execution
Which IAM role is required for a Fargate task to pull container images from Amazon ECR and send logs to CloudWatch Logs?
AAdministrator Access role assigned to the user
BTask Role attached to the ECS service
CInstance Profile role attached to the EC2 instance
DExecution Role specified in the task definition
Attempts:
2 left
💡 Hint
This role allows the task to perform actions needed to start and monitor containers.
Configuration
advanced
2:00remaining
Fargate Task CPU and Memory Configuration
You want to run a Fargate task with 2 vCPU and 4 GB memory. Which of the following CPU and memory combinations is valid for Fargate?
ACPU: 1024, Memory: 2048
BCPU: 2048, Memory: 4096
CCPU: 4096, Memory: 2048
DCPU: 512, Memory: 8192
Attempts:
2 left
💡 Hint
Check AWS Fargate allowed CPU and memory combinations.
Best Practice
expert
2:00remaining
Securing Sensitive Data in Fargate Tasks
What is the best practice to provide sensitive information like database passwords to a Fargate task securely?
AStore the password in AWS Secrets Manager and reference it in the task definition
BPass the password as plain text in the ECS RunTask API call
CWrite the password to a file inside the container at runtime
DHardcode the password in the container image environment variables
Attempts:
2 left
💡 Hint
Think about AWS services designed for managing secrets securely.