Defensive Design Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is defensive design?

A

To ensure programs function properly + don’t produce errors

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

How do programmers carry out defensive design?

A

Anticipate how users may misuse program
Ensure code is well - maintained
Testing to reduce errors

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

Input Validation

A

Checking if data meets certain criteria before passing it into the program

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

Example of input validation

A

Checking that an email contains @ symbol

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

Types of Input validation check

A

Range Check
Presence Check
Format Check
Look-up table
Length table

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

Input Validation: Range Check

A

Checks if data is within a specified range

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

Input Validation: Presence Check

A

Checks if data has been enterd

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

Input Validation: Format Check

A

Checks if data is in correct format

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

Input Validation: Look-up Table

A

Ches the data against a table of acceptable values

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

Input Validation: Length Table

A

Checks if data is the correct length

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

Authentication

A

To confirm the identity of a user before they are given access to data

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

Example of Authentication

A

Passwords - can be associated with their username

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

Ways to increase the security of a password - based authentication system:

A

Force users to use strong passwords
Limit the number of failed attempts before access is blocked

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