DDD - Design Flashcards

1
Q

What does GDPR stand for

A

General Data Protection Regulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is GDPR

A

legislation which sets out rules for the protection of personal data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Under GDPR individuals have the right to

A

be informed about how their personal data will be used

see any data held about them

have any inaccurate data held about them

have information about them delted once there is no longer a reason for holding it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Under GDPR businesses must

A

Store all data securely

report any data breach within 72 hours

ensure that any data held about an individual is accurate

provide access to data held about an individual when requested by the individual

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is an entity

A

an object which a database will store information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what can entity be

A

a person, object or something abstract

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

examples of entity

A

-pupil
-teacher
-car
-holiday booking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is an attribute

A

an item of information that relates to particular entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Examples of attributes

A

-forename
-dob
-model
-arrival

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a primary key

A

a field which uniquely identifies a record in a database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what happens to database design primary keys are

A

underlined

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is a foreign key

A

a primary key from one table which is used in a second table to link the tables together

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

in database design, foreign keys are shown with

A

an asterisk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

attribute types

A

Text
Number
Date
Boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the size of an attribute

A

a measure of how much space the field will take up when stored in main memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

the size of a text attribute is

A

the number of characters which will be stored

17
Q

What happens if the attribute size is too small

A

it may result in data being lost

18
Q

what happens if the attribute size is too big

A

otherwise storage space is wasted unnecessarily

19
Q

what is a presence check

A

ensures that data is entered in a field

20
Q

What is restricted choice check

A

limits data entry to a set of acceptable values

21
Q

what is field length validation

A

limits the number of characters that can be stored in a field

22
Q

what is range check

A

ensures that data falls between two values

23
Q

ERD

A

entity relationship diagram

24
Q

What is an ERD

A

a graphic representation of entities in a database and their relationship to each other

25
Q

What should an Entity Relationship Diagram include

A

Entites
Attributes
Primary Keys
Foreign Keys
Cardinality
Description of relationship

26
Q

Types of cardinality

A

1:1
1:M
M:M

27
Q

example of a 1:1 relationship

A

1 husband has 1 spouse

28
Q

example of a 1:M reationship

A

! mother can have many children

29
Q

example of M:M relationship

A

many aunts can have many nieces and nephews

30
Q

what is a data dictionary

A

contains information about the tables and fields in a database

31
Q

Information in a data dictionary is known as

A

metadata

32
Q

What should metadata include

A

Entity name
Information about each attribute belonging to the entity

33
Q

what is a query

A

a request for data from a database table and tables

33
Q

What information should be stored about each attribute belonging to the entity

A

key
type
size
required
validation

34
Q

what should a query design include

A

fields to be displayed
tables that are used
query data
sort order of the query data