0
0
AWScloud~20 mins

Fargate vs EC2 launch type in AWS - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Fargate vs EC2 Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding AWS Fargate vs EC2 Launch Type

Which statement correctly describes a key difference between AWS Fargate and EC2 launch types for running containers?

AFargate requires you to manage the underlying EC2 instances, while EC2 launch type abstracts instance management.
BEC2 launch type requires you to manage the underlying EC2 instances, while Fargate abstracts instance management.
CBoth Fargate and EC2 launch types require manual scaling of EC2 instances.
DFargate launch type only supports Windows containers, while EC2 supports Linux containers.
Attempts:
2 left
💡 Hint

Think about who manages the servers in each launch type.

Architecture
intermediate
2:00remaining
Choosing Launch Type for Cost Optimization

You want to run a containerized application with predictable steady traffic and want to optimize costs by using reserved capacity. Which launch type should you choose?

AUse EC2 launch type to leverage reserved EC2 instances for cost savings.
BUse Fargate launch type because it automatically uses reserved instances.
CUse Fargate launch type because it supports reserved EC2 capacity.
DUse EC2 launch type because Fargate does not support container orchestration.
Attempts:
2 left
💡 Hint

Reserved capacity applies to EC2 instances, not serverless services.

service_behavior
advanced
2:00remaining
Behavior of Auto Scaling with Fargate vs EC2

Which statement best describes how auto scaling works differently between Fargate and EC2 launch types?

AFargate auto scaling adjusts the number of running tasks without managing instances; EC2 auto scaling adjusts the number of EC2 instances.
BBoth Fargate and EC2 auto scaling adjust the number of EC2 instances only.
CFargate auto scaling requires manual scaling of EC2 instances; EC2 auto scaling automatically scales tasks.
DAuto scaling is not supported with Fargate launch type.
Attempts:
2 left
💡 Hint

Consider what resources each launch type manages.

security
advanced
2:00remaining
Security Responsibility Differences

Which security responsibility is unique to the EC2 launch type compared to Fargate?

AEncrypting data in transit between containers.
BConfiguring security groups for tasks.
CManaging container image vulnerabilities.
DPatching and securing the underlying EC2 instances.
Attempts:
2 left
💡 Hint

Think about who controls the servers in each launch type.

Best Practice
expert
3:00remaining
Best Practice for Hybrid Use of Fargate and EC2 Launch Types

You have a mixed workload: some tasks require custom AMIs and others benefit from serverless management. What is the best practice for using both Fargate and EC2 launch types in the same ECS cluster?

AUse only EC2 launch type and simulate serverless behavior with custom scripts.
BCreate separate ECS clusters for Fargate and EC2 launch types to avoid conflicts.
CUse a single ECS cluster with both launch types and assign tasks to appropriate launch types as needed.
DUse only Fargate launch type and avoid EC2 launch type for simplicity.
Attempts:
2 left
💡 Hint

Consider ECS cluster flexibility and task placement.