Requests to /api must go to an API target and /images to a static-content target.
Operate both targets under one domain name.
Which configuration is most appropriate?
Configure path-based routing in an Application Load Balancer listener.
Detailed explanation
S3 object lifecycle management does not implement ALB request routing.
S3 object lifecycle management does not implement ALB request routing.
CloudTrail records API activity and does not route application requests.
CloudTrail records API activity and does not route application requests.
DNS routing does not evaluate an HTTP URL path.
DNS routing does not evaluate an HTTP URL path.
Listener rules can evaluate the URL path and forward each request to the appropriate target group.
Listener rules can evaluate the URL path and forward each request to the appropriate target group.
Check official documentation
Compare the following points with the official documentation.
Application Load Balancer listener rules path conditionsの公式説明を確認する。
What to confirm
DNS名解決とALBのHTTPパスルーティングを区別できる。
Key points
- ALB listener
- Path-based routing
- Target group
Notes
- Environment: AWS公式SOA-C03試験ガイドとAWS公式ドキュメントの確認
- Confirm current AWS service behavior in the official documentation.
Foundation review
Layer 7 routing
An ALB can inspect HTTP request attributes such as the path.
DNS boundary
DNS chooses an address; it does not inspect the path of an HTTP request.