0
0
AWScloud~20 mins

Node groups (managed, self-managed, Fargate) in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
EKS Node Group Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Node Group Types in EKS

Which statement correctly describes the difference between managed node groups and self-managed node groups in Amazon EKS?

ASelf-managed node groups are automatically updated by AWS, while managed node groups require manual updates by the user.
BManaged node groups are automatically updated and maintained by AWS, while self-managed node groups require manual updates and management by the user.
CBoth managed and self-managed node groups are fully managed by AWS with no user intervention needed.
DManaged node groups cannot run on EC2 instances, while self-managed node groups run on EC2 instances.
Attempts:
2 left
💡 Hint

Think about who is responsible for updating and maintaining the nodes in each group.

Architecture
intermediate
2:00remaining
Choosing Node Group Types for Cost and Maintenance

You want to run a Kubernetes workload on EKS with minimal maintenance overhead and automatic scaling. Which node group type should you choose?

ASelf-managed node groups, because they allow full control over the instances.
BManaged node groups, because AWS handles updates and scaling automatically.
CFargate, because it runs containers without managing servers and scales automatically.
DOn-premises nodes connected via AWS Outposts.
Attempts:
2 left
💡 Hint

Consider which option removes the need to manage servers entirely.

Configuration
advanced
3:00remaining
EKS Node Group Configuration for Mixed Workloads

You want to configure an EKS cluster to run both long-running services and batch jobs. You decide to use managed node groups for services and Fargate for batch jobs. Which configuration is correct to achieve this?

AWS
eksctl create cluster --name my-cluster --region us-west-2

# Add Fargate profile for batch jobs
aws eks create-fargate-profile --cluster-name my-cluster --fargate-profile-name batch-jobs --pod-execution-role-arn arn:aws:iam::123456789012:role/AmazonEKSFargatePodExecutionRole --subnets subnet-abc123 subnet-def456 --selectors namespace=batch
AUse managed node groups for batch jobs and self-managed node groups for services.
BUse self-managed node groups for batch jobs and Fargate for services.
CUse only Fargate for all workloads to simplify management.
DUse managed node groups for the default namespace and create a Fargate profile targeting the batch namespace for batch jobs.
Attempts:
2 left
💡 Hint

Think about how Fargate profiles select pods by namespace or labels.

security
advanced
2:00remaining
IAM Roles for Node Groups and Fargate Profiles

Which IAM role is required for running pods on Fargate in an EKS cluster?

AAn IAM role with AmazonEKSFargatePodExecutionRolePolicy attached, assigned to the Fargate profile for pod execution.
BAn IAM role with AmazonEKSWorkerNodePolicy attached, assigned to the EC2 instances in managed node groups.
CAn IAM role with AmazonEC2FullAccess attached, assigned to the EKS control plane.
DNo IAM role is needed for Fargate pods as AWS manages all permissions automatically.
Attempts:
2 left
💡 Hint

Consider what role allows Fargate to pull container images and run pods securely.

service_behavior
expert
3:00remaining
Behavior of Node Groups During Cluster Scaling

In an EKS cluster with both managed node groups and Fargate profiles, what happens when the cluster scales up to handle increased pod demand?

AManaged node groups automatically add EC2 instances based on the node group's autoscaling settings, while Fargate automatically launches more pods without managing servers.
BBoth managed node groups and Fargate require manual addition of resources to scale pods.
CFargate scales EC2 instances automatically, but managed node groups require manual scaling.
DManaged node groups scale pods automatically, but Fargate requires manual pod scaling.
Attempts:
2 left
💡 Hint

Think about how each node group type handles scaling differently.