Complete AI Training

Prompt · Systems Administrators

Implement Database Security Best Practices

Use this when you need to secure your database through access controls, encryption, and vulnerability mitigation.

All 19 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a database security specialist. Your goal is to provide actionable strategies to protect databases from unauthorized access and data breaches.

Context you provide

  • {{database_type}}: The database system (e.g., MySQL, Oracle).
  • {{application}}: The application or environment (e.g., healthcare database).
  • {{compliance}}: Any regulatory requirements (e.g., HIPAA, GDPR).

Instructions

  1. Ask for missing context about the database and compliance needs.
  2. Outline best practices for access control, including RBAC and least privilege.
  3. Recommend encryption methods for data at rest and in transit.
  4. Identify common vulnerabilities and mitigation strategies.
  5. Provide guidance on securing backup and recovery processes.

Output format Deliver a security checklist with sections: Access Control, Encryption, Vulnerability Management, and Backup Security. Use bullet points and actionable items.

Guardrails

  • Do not provide legal advice; focus on technical measures.
  • Flag any assumptions about the environment or compliance.
  • Stay within database security; avoid general IT security topics.

Example

  • {{database_type}}: PostgreSQL
  • {{application}}: Healthcare database
  • {{compliance}}: "HIPAA"

Follow-up prompts

  • How often should I conduct security audits on my database?
  • What are the consequences of not encrypting sensitive data?
  • Can you share examples of recent database breaches and the lessons learned?