By the end of this chapter, you will be able to:
These skills will help you build secure, reliable databases that meet real-world business needs and protect valuable information.
Designing a database is a fundamental skill for cyber security professionals tasked with safeguarding sensitive information in Kenyan institutions. Whether for a county government office managing citizen records or a financial institution protecting client data, a well-designed database ensures data integrity, confidentiality, and availability. This chapter focuses on designing relational databases, a widely adopted model that supports structured data storage and complex queries, and on creating entity relationship diagrams (ERDs) to visualize database structure effectively.
Relational database design is governed by principles that ensure data is logically organized and redundancies minimized. The core principle is that data is stored in tables called relations, each representing an entity such as customers or transactions. Each table has rows (records) and columns (attributes), and relationships between tables are established through keys.
Normalization is a systematic approach to decomposing tables to eliminate data anomalies and redundancies. For cyber security professionals, normalization reduces the attack surface by limiting repeated sensitive data and simplifying access controls.
Normalization supports security by making it easier to implement row-level permissions and reduces the risk of unauthorized data duplication or exposure.
Effective table design involves specifying the right attributes and keys to support data relationships and security requirements. In Kenya’s banking sector, for example, customer tables might include sensitive information requiring encryption and access restrictions.
Designing a relational database with security in mind is critical in Kenya’s cyber security landscape. Protecting data from unauthorized access and ensuring accountability requires embedding security controls at the design stage.
Create a free account to open more of this chapter.
Free: practical guides, quick cards, workplace scenarios and more.
Create a free accountThis chapter focused on designing a relational database, emphasizing the importance of structuring data efficiently to support secure and reliable storage and retrieval. It introduced the concept of entity relationships, explaining their role in representing real-world objects and the associations between them within the database context. The process of creating entity relationship diagrams (ERDs) was detailed, highlighting how these visual tools aid in mapping out the database’s structure before implementation. The chapter also covered the critical phase of normalization, demonstrating how to systematically organize data to eliminate redundancy and ensure data integrity. Through normalization, database designers can optimize tables to reduce anomalies and enhance performance. Overall, the chapter provided a comprehensive guide to the foundational steps in building a secure and well-structured relational database.
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Computer with database design software | |
| Access to requirements specification document | |
| Writing materials (pen, notebook) |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Computer with database design software | 1 Pc per Candidate |
| 2 | Access to requirements specification document | 1 Pc per Candidate |
| 3 | Writing materials (pen, notebook) | 1 set per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Design relational database schema | |||
| Candidate uses PPE as required (if applicable) (Award 1 mark for correct PPE use or zero) | 1 | ||
| Candidate reviews requirements specification document (Award 3 marks for thorough understanding of requirements or zero) | 3 | ||
| Candidate identifies appropriate tables (Students, Courses, Enrollments) (Award 1 mark per correctly identified table, zero if missing) | 4 | ||
| Candidate defines primary keys for each table correctly (Award 1 mark per correctly defined primary key, zero if incorrect) | 4 | ||
| Candidate establishes correct foreign key relationships between tables (Award 4 marks if all foreign keys correctly defined, zero if missing or incorrect) | 4 | ||
| Candidate defines appropriate field data types for each attribute (Award up to 3 marks for correct data types, zero if inappropriate) | 3 | ||
| Candidate includes constraints to ensure data integrity (e.g. NOT NULL, UNIQUE) (Award up to 3 marks for appropriate constraints, zero if missing) | 3 | ||
| Candidate documents schema clearly with table names, fields, keys and relationships (Award up to 3 marks for clear and complete documentation, zero if incomplete) | 3 | ||
| Sub-Total | 25 | ||
| PRODUCT CHECKLIST | |||
| Schema includes Students, Courses, and Enrollments tables (Award 4 marks if all three tables are present and named correctly, zero if missing) | 4 | ||
| Primary keys correctly assigned to each table (Award 4 marks if all primary keys correct, zero if incorrect) | 4 | ||
| Foreign keys correctly link tables (e.g., Enrollments links Students and Courses) (Award 4 marks if all foreign keys correct, zero if incorrect) | 4 | ||
| Field data types appropriate and consistent (Award up to 3 marks for appropriate data types, zero if inappropriate) | 3 | ||
| Constraints correctly applied for data integrity (Award up to 3 marks for correct constraints, zero if missing) | 3 | ||
| Schema diagram clearly and neatly presented (Award up to 3 marks for neatness and clarity, zero if unclear) | 3 | ||
| Sub-Total | 21 | ||
| GRAND TOTAL | 46 | ||
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Pencils (HB and 2B) | Drawing paper A3 size |
| Eraser | |
| Ruler 30cm | |
| Compass | |
| Protractor | |
| Colored pens (Red, Blue, Black) |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Drawing paper A3 size | 1 Sheet per Candidate |
| 2 | Pencils (HB and 2B) | 2 Pcs per Candidate |
| 3 | Eraser | 1 Pc per Candidate |
| 4 | Ruler 30cm | 1 Pc per Candidate |
| 5 | Compass | 1 Pc per Candidate |
| 6 | Protractor | 1 Pc per Candidate |
| 7 | Colored pens (Red, Blue, Black) | 3 Pcs per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Create Entity Relationship Diagram | |||
| Candidate uses PPE (if applicable) before starting the drawing process (Award 1 mark for correct PPE use or zero) | 1 | ||
| Candidate sets out drawing area on A3 paper correctly (Award 2 marks for correct layout and margins or zero) | 2 | ||
| Candidate identifies and lists all entities required by the scenario (Award 1 mark per correctly identified entity up to 4) | 4 | ||
| Candidate identifies and defines relationships between entities (Award 1 mark per correctly defined relationship up to 4) | 4 | ||
| Candidate specifies cardinalities correctly for all relationships (Award 1 mark per correctly specified cardinality up to 4) | 4 | ||
| Candidate includes primary keys and attributes for each entity (Award 1 mark per entity with correct primary key and attributes up to 5) | 5 | ||
| Candidate uses correct ERD notation (e.g. crow's foot notation) consistently (Award 3 marks for consistent and correct notation or zero) | 3 | ||
| Candidate uses neat and clear drawing techniques with appropriate labeling (Award 3 marks for neatness, clarity and labels or zero) | 3 | ||
| Sub-Total | 26 | ||
| PRODUCT CHECKLIST | |||
| Finished ERD correctly shows all entities with appropriate attributes and primary keys (Award 5 marks for complete and accurate entities or zero) | 5 | ||
| All relationships are correctly represented with proper cardinalities (Award 5 marks for complete and accurate relationships or zero) | 5 | ||
| Diagram fits neatly on A3 paper sized 420mm x 297mm with clear margins (Award 4 marks for correct paper usage and layout or zero) | 4 | ||
| Use of correct ERD notation symbols throughout the diagram (Award 4 marks for consistent and correct notation or zero) | 4 | ||
| Sub-Total | 18 | ||
| GRAND TOTAL | 44 | ||
At the start of this chapter we promised you would be able to:
Tick each one you can genuinely do.
So, are you there yet?
You're competent when you can confidently do 50% or more of what this chapter promised.
Sign in to record how you're doing.