An ECS service must keep four tasks running.
Replace a task automatically when it stops.
Which setting is most appropriate?
Set the ECS service desired count to four so the service maintains that number of tasks.
Detailed explanation
DNS record count is not the ECS service desired count.
DNS record count is not the ECS service desired count.
The number of stored images does not control running ECS tasks.
The number of stored images does not control running ECS tasks.
Dashboard display count does not maintain ECS capacity.
Dashboard display count does not maintain ECS capacity.
The ECS service launches replacement tasks as needed to maintain the desired count.
The ECS service launches replacement tasks as needed to maintain the desired count.
Check official documentation
Compare the following points with the official documentation.
Amazon ECS service desired countの公式説明を確認する。
What to confirm
ECRイメージ数とECS実行タスク数を区別できる。
Key points
- ECS service
- Desired count
- Task replacement
Notes
- Environment: AWS公式SOA-C03試験ガイドとAWS公式ドキュメントの確認
- Confirm current AWS service behavior in the official documentation.
Foundation review
Control plane versus artifact
The ECR repository stores images; the ECS service controls task placement.
Declared capacity
The desired count expresses the steady-state capacity the service should maintain.