0
0
AWScloud~20 mins

ECS cluster concept in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ECS Cluster Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the primary role of an ECS cluster?

In Amazon ECS, what is the main purpose of an ECS cluster?

AIt provides a user interface to configure container networking.
BIt stores container images used by tasks and services.
CIt monitors the health of individual containers inside tasks.
DIt groups and manages a set of container instances or serverless tasks for running containers.
Attempts:
2 left
💡 Hint

Think about what a cluster usually means in computing: a group working together.

Architecture
intermediate
2:00remaining
How does ECS cluster capacity affect task placement?

Which statement best describes how ECS cluster capacity influences where tasks are placed?

ATasks are placed only on container instances with enough CPU and memory available in the cluster.
BTasks are placed randomly across all container instances regardless of capacity.
CTasks are placed only on the newest container instance added to the cluster.
DTasks are placed on container instances outside the cluster if capacity is low.
Attempts:
2 left
💡 Hint

Consider resource availability when placing containers.

security
advanced
2:00remaining
Which ECS cluster setting improves security by isolating workloads?

Which ECS cluster configuration helps improve security by isolating workloads?

ARunning all tasks in a single cluster to simplify management.
BUsing separate ECS clusters for different environments like development and production.
CAllowing all container instances to share the same IAM role without restrictions.
DDisabling task-level IAM roles to reduce complexity.
Attempts:
2 left
💡 Hint

Think about how separating environments can limit risks.

service_behavior
advanced
2:00remaining
What happens if an ECS cluster has no registered container instances?

What is the expected behavior when an ECS cluster has no registered container instances and you try to run a task using EC2 launch type?

AThe task fails to start because there are no container instances to run it on.
BThe task runs on any available container instance in other clusters.
CThe task automatically runs on AWS Fargate instead.
DThe task starts but remains in a stopped state immediately.
Attempts:
2 left
💡 Hint

Consider what is needed to run a task with EC2 launch type.

Best Practice
expert
3:00remaining
Which ECS cluster design best supports high availability and fault tolerance?

To ensure high availability and fault tolerance for your ECS workloads, which cluster design is best?

AUse a single large container instance instead of multiple smaller ones.
BDeploy all container instances in a single Availability Zone to reduce latency.
CDeploy container instances across multiple Availability Zones within the cluster.
DRun all tasks on AWS Fargate without any container instances.
Attempts:
2 left
💡 Hint

Think about spreading risk across locations.