Defensive Design Flashcards

1
Q

What does a data validation routine do?

A

Ensures that the data entered is of the correct range, type, length, format and that it is present

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

What are the 5 main data validation checks?

A

Range check
Type check
Length check
Presence check
Format check

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

What does a range check do?

A

Checks that a number/ date is within a sensible range

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

What does a type check do?

A

Checks if the data is of the correct type

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

What does a length check do?

A

Checks that the data entered is of the correct length

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

What does a presence check do?

A

Checks that the field has not been left blank

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

What does a format check do?

A

Checks that the data entered is of the correct format

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

Define anticipating misuse

A

Always thinking of preventing hackers

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

Describe Network Protocols

A

For any communication, data has to be transmitted. For this to happen there must be rules in place. These rules are called network protocols.

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

What does HTTP stand for?

A

Hyper Text Transfer Protocol

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

What is HTTP used for?

A

Sending and receiving webpages

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

What is HTTPs?

A

A more secure version of HTTP

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

What makes HTTPs more secure?

A

The webpages are encrypted

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

What does FTP stand for?

A

File Transfer Protocol

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

What does FTP do?

A

Transfers files between clients and servers

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

What does POP stand for?

A

Post Office Protocol

17
Q

What does SMTP stand for?

A

Simple Mail Transfer Protocol

18
Q

What does IMAP stand for?

A

Internet Message Access Protocol

19
Q

What does POP do?

A

Receives emails and deletes them once they are downloaded

20
Q

What does IMAP do?

A

Receives emails but doesn’t delete them

21
Q

What does SMTP do?

A

Sends emails from clients or between servers

22
Q

What does the TCP do to send data over networks?

A
  • Divides the message into smaller parts called packets
  • Adds a sequence number so it can be reassembled
  • Adds error correction information so errors can be found and fixed
23
Q

What does the TCP do to receive data over networks?

A
  • Examines each packet for errors
  • Fixes errors
  • Requests missing packets to be resent
  • Reassembles the message using sequence numbers
24
Q

What does the IP do to sent packets over networks?

A
  • Adds the destination address to each packet
  • Adds it’s own address (source address) to indicate where the packet originated from