Interview practice question
Reaching a private database through a bastion
Cloud & DevOps · Linux and Scripting · Intermediate
You need to connect a local SQL client to a database that is only reachable from a bastion host. How would you do it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- SSH local port forwarding (-L).
- ssh -L 5432:db-host:5432 user@bastion.
- Connect client to localhost:5432.
- ProxyJump for chained hosts.
- Prefer managed alternatives (SSM port forwarding).
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.