You see frequent ECS task restarts during a deployment. Which ECS configuration best prevents tasks from being killed before they can finish processing requests?
Answer
Increase the load balancer deregistration delay and set appropriate deployment circuit breaker settings
Explanation
Deregistration delay gives existing targets time to drain before termination. Combined with deployment settings, this reduces restart-related disruptions.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which AWS service is primarily responsible for orchestrating automated, rule-based workflows that can span multiple AWS services (e.g., invoke Lambda, call Step Functions, send notifications)?
View question →
A CI/CD pipeline needs to build an artifact, run integration tests, and then deploy only if tests pass. Which AWS approach is most aligned with this requirement?
View question →
In AWS Key Management Service (KMS), which concept is most important to understand for designing fine-grained data encryption access for logs, S3 objects, and applications?
View question →
You need to run an application container image that changes frequently and you want rollback to a known-good version. Which approach best fits using Amazon ECR?
View question →
When you use the AWS CLI with an IAM role via an OIDC web identity provider (for workloads outside AWS), which OAuth2/OIDC flow is typically involved?
View question →
For AWS CloudWatch Logs, which action most directly helps reduce ingestion costs while retaining error data for analysis?
View question →