Interview › Security & DevSecOps
What is TLS, and what happens during a TLS handshake at a high level? [Advanced]
Answer
TLS secures network communication by authenticating the server, negotiating encryption parameters, deriving shared session keys, and encrypting application data. At a high level, the client validates the certificate chain, both sides agree on cryptographic parameters, and then use symmetric keys for the session.
Technical explanation
The server certificate proves the service identity if it chains to a trusted CA and matches the hostname.
Modern TLS uses ephemeral key exchange to provide forward secrecy.
After the handshake, application data is encrypted and integrity-protected against eavesdropping and tampering.
Hands-on example
Hands-on: run openssl s_client -connect api.example.com:443 -servername api.example.com to inspect the certificate chain, protocol, cipher, expiry, and hostname. In production, alert before certificate expiry and disable old protocols/ciphers.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Security & DevSecOps interview questions
- What is the difference between symmetric and asymmetric encryption? [Advanced]
- What is encryption at rest versus in transit, and how do you ensure both? [Advanced]
- What is certificate management, and how do tools like cert-manager help? [Advanced]
- What is the difference between authentication and authorization? [Advanced]
- What is secrets management, and how does HashiCorp Vault work at a high level? [Intermediate]
- What are Linux capabilities, and why drop them in containers? [Advanced]
- How do you apply least privilege to service-to-service communication (e.g., with Istio mTLS)? [Intermediate]
- What are Kubernetes Pod Security Standards (privileged, baseline, restricted)? [Advanced]