Sample questions
Question 1Easy
The default port for HTTPS is:
- 22
- 8080
- 80
- 443
Answer: D. 443
Explanation
HTTP uses 80 and HTTPS uses 443 by default.
Step-by-step solution
- HTTP uses port 80 by default.
- HTTPS wraps HTTP in TLS and uses port 443 by default.
- Port 22 is SSH and 8080 is a common alternative HTTP port.
- So the answer is 443.
Why the other options are wrong
- A. Port 22 is used by SSH, not HTTPS.
- B. Port 8080 is a common alternative HTTP port, not the HTTPS default.
- C. Port 80 is the default for plain HTTP, not HTTPS.
Tip: Remember the defaults as pairs: HTTP 80, HTTPS 443, SSH 22.
Question 2Easy
SSH is primarily used for:
- Resolving domain names
- Browsing websites
- Sending email between servers
- Secure remote login and command execution
Answer: D. Secure remote login and command execution
Explanation
SSH (port 22) encrypts remote shell sessions and supports key-based authentication.
Step-by-step solution
- SSH stands for Secure Shell.
- It runs over port 22 and encrypts the session.
- It is used for remote login and running commands on a server.
- So the answer is: secure remote login and command execution.
Why the other options are wrong
- A. Resolving domain names is the job of DNS.
- B. Browsing websites uses HTTP or HTTPS, not SSH.
- C. Sending email uses SMTP and related protocols, not SSH.
Tip: SSH = secure remote shell. Think of DNS for names, HTTP for web, SMTP for email.
Question 3Easy
HTTPS is HTTP running over:
- FTP
- TLS
- SMTP
- SSH
Answer: B. TLS
Explanation
TLS encrypts and authenticates HTTP traffic between browser and server.
Step-by-step solution
- HTTPS is HTTP sent over a secure channel.
- The channel is TLS, which encrypts and authenticates the traffic.
- So HTTPS is HTTP over TLS: option B.
Why the other options are wrong
- A. FTP is a separate file transfer protocol.
- C. SMTP is the email sending protocol.
- D. SSH is a remote login protocol, not the base of HTTPS.
Tip: HTTPS = HTTP over TLS.
Question 4Easy
A Certificate Authority (CA) is:
- A government body that hosts websites
- A firewall for web servers
- A browser plug-in that blocks ads
- A trusted entity that signs digital certificates
Answer: D. A trusted entity that signs digital certificates
Explanation
Browsers trust a set of root CAs; certificates signed by them (directly or via intermediates) are trusted.
Step-by-step solution
- A Certificate Authority is a trusted organisation.
- It checks identity and signs digital certificates.
- Browsers trust the CAs in their root store.
- So the answer is: a trusted entity that signs digital certificates.
Why the other options are wrong
- A. A CA is not a government body that hosts websites.
- B. A CA is not a firewall; it issues certificates.
- C. A CA is not an ad-blocking browser plug-in.
Tip: CA means signer of certificates. Think: who signs, not who hosts or protects.
Question 5Medium
What does a server's TLS certificate primarily prove to the browser?
- The site's content is legally approved
- The public key belongs to that domain
- The website has no bugs
- The server is located in a particular country
Answer: B. The public key belongs to that domain
Explanation
A trusted CA vouches that the certificate's public key belongs to the named domain, preventing impersonation.
Step-by-step solution
- A TLS certificate is issued by a CA for a specific domain.
- The certificate binds the domain name to its public key.
- So it proves the public key belongs to that domain.
- The answer is: the public key belongs to that domain.
Why the other options are wrong
- A. Legal approval of content is not something a certificate proves.
- C. A certificate says nothing about whether the site has bugs.
- D. A certificate does not show the physical location of the server.
Tip: A certificate proves identity (domain to public key), not the quality, content or location of the site.
Question 6Medium
In PKI, the "chain of trust" runs from a server certificate up through:
- The DNS server to the ISP
- The firewall to the router
- Intermediate CAs to a trusted root
- The user's password to the browser
Answer: C. Intermediate CAs to a trusted root
Explanation
Each certificate is signed by the one above, ending at a root CA in the trust store.
Step-by-step solution
- A server certificate is signed by an intermediate CA.
- The intermediate CA is signed by a higher CA.
- The chain ends at a root CA in the browser's trust store.
- So the chain of trust runs up through intermediate CAs to a trusted root.
Why the other options are wrong
- A. DNS and ISP are not part of the certificate chain.
- B. Firewall and router are network devices, not certificate signers.
- D. A user's password is not part of the PKI chain of trust.
Tip: Chain of trust: leaf certificate, then intermediates, then a trusted root.
Question 7Medium
A wildcard certificate for *.example.com is valid for:
- Only example.com itself, not subdomains
- Every domain on the internet
- Multi-level names like a.b.example.com
- Any single-level subdomain like api.example.com
Answer: D. Any single-level subdomain like api.example.com
Explanation
A wildcard covers one label level; it does not match the bare domain or deeper subdomains.
Step-by-step solution
- A wildcard *.example.com matches one label before example.com.
- api.example.com has exactly one extra label, api.
- So api.example.com is covered.
- The answer is: any single-level subdomain like api.example.com.
Why the other options are wrong
- A. The bare domain example.com is not matched by *.example.com.
- B. A wildcard covers only one domain pattern, not the whole internet.
- C. a.b.example.com has two extra labels, so the wildcard does not cover it.
Tip: A wildcard covers one label only: *.example.com covers api.example.com, not example.com or a.b.example.com.
Question 8Medium
Why are SSL 2.0, SSL 3.0 and early TLS versions disabled on modern servers?
- They have known weaknesses
- They are too new for most browsers
- They do not support certificates
- They only work on port 80
Answer: A. They have known weaknesses
Explanation
Old protocol versions have known attacks; current TLS versions should be used.
Step-by-step solution
- SSL 2.0, SSL 3.0 and early TLS versions have known security flaws.
- Attackers can exploit these weaknesses.
- Modern servers therefore disable these versions.
- So the answer is: they have known weaknesses.
Why the other options are wrong
- B. Age is not the reason; these versions are old, not too new.
- C. Old SSL versions did support certificates; the issue is security.
- D. Port 80 is not a property of these protocols.
Tip: Old SSL and early TLS are disabled because of known attacks. Use current TLS versions.
Question 9Hard
In modern TLS, the key exchange typically uses ephemeral (EC)DHE mainly to provide:
- Faster DNS lookups
- Forward secrecy
- Server-side compression
- Longer certificate lifetimes
Answer: B. Forward secrecy
Explanation
Ephemeral key exchange means a compromised server key cannot decrypt previously recorded sessions.
Step-by-step solution
- Ephemeral (EC)DHE creates a new key pair for each session.
- The session key is not derived from the long-term server key.
- So a later leak of the server's key cannot decrypt recorded sessions.
- The purpose is forward secrecy.
Why the other options are wrong
- A. DNS speed is unrelated to the key exchange.
- C. Compression is a separate feature and is not the purpose of ephemeral keys.
- D. Certificate lifetime is set by the CA and is not what ephemeral keys provide.
Tip: Ephemeral key exchange (DHE, ECDHE) gives forward secrecy: past traffic stays safe if the long-term key leaks.
Question 10Hard
During a TLS handshake, which happens first?
- Parameters are negotiated
- The browser displays the page
- The session key is published
- Application data is sent encrypted
Answer: A. Parameters are negotiated
Explanation
The hello messages negotiate parameters; then the server authenticates and keys are agreed before any application data flows.
Step-by-step solution
- A TLS handshake starts with the client Hello and server Hello.
- These hello messages negotiate the TLS version and cipher parameters.
- Keys are agreed and the server is authenticated after that.
- So the first step is: parameters are negotiated.
Why the other options are wrong
- B. The page is displayed only after the handshake and data transfer.
- C. The session key is never published; it is agreed secretly.
- D. Application data is sent only after the handshake is complete.
Tip: Handshake order: negotiate parameters, authenticate and agree keys, then send encrypted data.
Practise all 20 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →