A company runs a stateless web API on EC2 behind an ALB and needs blue/green deployments with minimal downtime. Which combination best matches AWS architectural best practices for safe rollback while maintaining low latency?

Answer

Use an ECS service with CodeDeploy blue/green deployment and ALB listener rules that shift traffic between target groups, enabling instant rollback

Explanation

CodeDeploy blue/green with ALB listener rule traffic shifting enables controlled rollout between target groups and fast rollback without long downtime. This aligns with safe deployment patterns for stateless workloads.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

You must design a multi-tenant application where each tenant’s data must be isolated at the logical access layer, and you need to enforce row-level permissions dynamically at query time. Which solution is most appropriate?

View question →

A company processes confidential documents uploaded by users. They must prevent plaintext exposure in logs, ensure least-privilege access to decrypt data, and rotate keys regularly without re-encrypting existing objects. Which AWS-native approach best meets these requirements?

View question →

An application must process tens of thousands of events per second, where downstream availability is variable. You need elasticity, buffering, and at-least-once processing. Which approach is best?

View question →

A backend service running in private subnets needs to reach an AWS managed service that supports public endpoints. You must restrict egress and avoid NAT gateway costs where possible. What is the best option?

View question →

A streaming analytics pipeline reads from Kinesis Data Streams and writes aggregates to DynamoDB. You observe occasional out-of-order arrivals and must ensure that each aggregate reflects the latest event for a given key. What is the most appropriate design change?

View question →

A company uses Amazon S3 for storing user uploads. They require that objects are encrypted at rest, access is restricted by tenant, and each object’s encryption context must be immutable after upload. Which approach is correct?

View question →

QuestionBack to list