How would you answer an interview scenario involving rewrites and redirects in Ingress?
For an interview scenario involving rewrites and redirects, I would first clarify the business goal, scale, constraints, and the failure or quality attribute the interviewer wants to explore. Ingress controllers can rewrite request paths or redirect clients based on routing configuration. In this scenario, a backend expects / but is exposed publicly at /orders. Explain the options and risks of path rewriting. For production, keep rewrites explicit and minimal, test original path and forwarded headers, and prefer applications that understand their public base path. I would then explain the main alternatives and tradeoffs, identify likely failure modes, and describe how I would validate the solution through testing, observability, security controls, and recovery or rollback planning.