HTTPS & TLS Handshake — Concept Check
Questions on HTTPS & TLS Handshake. HTTPS = HTTP over TLS. TLS authenticates the server via certificates and establishes an encrypted session key using asymmetric cryptography — then switches to fast symmetric encryption for all data.
Questions in this quiz
8 questions on HTTPS & TLS Handshake — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A backend engineer is configuring HTTPS for a Spring Boot application. The server's certificate is not trusted by the client's browser. What is most likely the issue?
- AThe server is using TLS 1.2 instead of TLS 1.3.
- BThe server's domain name is not included in the certificate.
- CThe certificate is not signed by a trusted Certificate Authority.
- DThe certificate does not include the server's public key.
2.During a TLS handshake, the client receives a certificate from the server. What does the client do next?
- AVerifies the certificate's signature with a trusted CA.
- BChecks if the certificate's expiration date is valid.
- CGenerates a symmetric key and sends it to the server.
- DImmediately encrypts data using the server's public key.
3.A microservice architecture uses mutual TLS (mTLS) for authentication. What is required for this setup?
- AThe client must use a symmetric key for authentication.
- BOnly the server needs a certificate signed by a CA.
- CBoth client and server must present valid certificates.
- DThe server must use TLS 1.2 for compatibility.
4.A service is experiencing slow response times. Logs indicate a delay during the TLS handshake. What could be the cause?
- AThe server's certificate is expired.
- BThe client and server are negotiating a new session key.
- CThe client is using an outdated cipher suite.
- DThe server is using an invalid domain name.
5.In TLS 1.3, how does the handshake differ from TLS 1.2 in terms of round-trip time?
- ATLS 1.3 requires 3 RTTs, reducing security risks.
- BTLS 1.3 completes in 1 RTT, while TLS 1.2 requires 2 RTTs.
- CTLS 1.3 requires 2 RTTs, but with faster encryption.
- DTLS 1.3 and TLS 1.2 both complete in 2 RTTs.
6.A developer is troubleshooting a certificate error in a Spring Boot application. The error states 'certificate not valid for domain'. What should they check first?
- AVerify the certificate's signature with a CA.
- BConfirm the certificate's expiration date.
- CCheck the TLS version used by the server.
- DEnsure the certificate's domain matches the server's domain.
7.What is the primary purpose of using symmetric encryption after the TLS handshake?
- ATo authenticate the client using its certificate.
- BTo ensure fast and efficient data encryption.
- CTo exchange the session key securely.
- DTo verify the server's identity to the client.
8.A backend engineer notices that a microservice fails to authenticate with another service using mTLS. What could be a likely reason?
- AThe client is using TLS 1.3, which doesn't support mTLS.
- BThe server's certificate is signed by a trusted CA.
- CThe client's certificate is not presented during the handshake.
- DThe server's domain name is correctly configured.