0
0
MySQLquery~5 mins

Secure connection (SSL) in MySQL - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does SSL stand for in database connections?
SSL stands for Secure Sockets Layer. It is a protocol that encrypts data sent between your computer and the database server to keep it safe from eavesdropping.
Click to reveal answer
beginner
Why is using SSL important when connecting to a MySQL database?
Using SSL protects sensitive data like passwords and queries by encrypting the connection. This prevents attackers from reading or changing the data while it travels over the internet.
Click to reveal answer
intermediate
Which MySQL client option enables SSL for a connection?
The option is --ssl-mode=REQUIRED or --ssl. This tells MySQL to use SSL encryption when connecting to the server.
Click to reveal answer
intermediate
Name the three main certificate files used in MySQL SSL connections.
They are:<br>1. CA certificate (Certificate Authority)<br>2. Client certificate<br>3. Client private key<br>These files help verify identities and encrypt the connection.
Click to reveal answer
advanced
What does the MySQL SSL mode VERIFY_CA do?
It requires the client to verify that the server's certificate is signed by a trusted Certificate Authority (CA). This adds trust that you are connecting to the right server.
Click to reveal answer
What is the main purpose of using SSL in MySQL connections?
ATo encrypt data between client and server
BTo speed up the connection
CTo compress data sent over the network
DTo backup the database automatically
Which MySQL client option forces SSL encryption?
A--ssl-mode=DISABLED
B--no-ssl
C--ssl-mode=REQUIRED
D--skip-ssl
Which certificate verifies the identity of the server in SSL?
ACA certificate
BClient private key
CClient certificate
DUser password
What does the SSL mode VERIFY_IDENTITY do in MySQL?
AEncrypts data without verification
BDisables SSL encryption
CAllows unencrypted fallback
DVerifies server certificate and hostname
If SSL is not enabled, what risk exists when connecting to MySQL over the internet?
ANo risk, SSL is optional
BData can be read or changed by attackers
CDatabase will automatically backup
DConnection will be faster
Explain how SSL secures a MySQL database connection and why it is important.
Think about how data travels over the internet and what risks SSL helps avoid.
You got /4 concepts.
    List the certificate files needed for MySQL SSL connection and describe their roles.
    Certificates help prove who is who and keep data safe.
    You got /3 concepts.