CIS 3300 Test 2 - Slide Decks (Oct 26 to Nov 16)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play

1/74

flashcard set

Earn XP

Description and Tags

From Dr. Levine's iCollege decks: Data Dictionaries and Model Consistency; Sequence Diagrams, Interfaces, and Failure; Nonfunctional Requirements and Edge Cases; From Analysis to Specification.

75 Terms

1
New cards

Data dictionary (purpose)

Defines each field's meaning, kind of value, and rules so field names have a shared meaning (Oct 26)

2
New cards

Why "d1: Date" and "flag: Status" is an unhelpful dictionary

It repeats the ambiguity: which date is d1, what does flag = 1 mean, and when may a value be blank?

3
New cards

Seven data dictionary columns

Field, Entity, Meaning, Type/example, Required/blank rule, Key/reference/comparison rule, Source

4
New cards

What a dictionary meaning must NOT do

Restate the field name (e.g., "dueAt: the due date"). A field name alone does not define the event that supplies its value.

5
New cards

loanNumber vs studentNumber

loanNumber identifies one borrowing occurrence (required, unique). studentNumber on LOAN refers to the responsible student (required FK, may repeat across loans).

6
New cards

Same student borrows the same camera again next month

Create a NEW loan record with a new loanNumber; do not edit the old one (E3)

7
New cards

returnedAt (correct definition)

Actual date/time the item returns. Blank while the loan is active; recorded on return; must be at or after checkoutAt. Blank means active, never unknown.

8
New cards

Why "returnedAt: date-time, optional" fails

It doesn't say what it records, when blank is allowed, or what blank means

9
New cards

X1 defect: LOAN 0..* to 1..* ITEM

Lets one loan cover several items, conflicting with E2. Repair: change the ITEM endpoint to exactly 1.

10
New cards

X2 defect: returnedAt required when a loan is created

Conflicts with E6 (blank means active); every new loan would look already returned. Repair: blank while active, set at return.

11
New cards

X3 defect: checkout does not check for an active loan

Conflicts with E4 (one active loan per item); two students could get the same item. Repair: add decision "Active loan for this item?" Yes = block, No = create.

12
New cards

Four parts of a consistency finding

Conflict, consequence, repair, and a concrete check ("a repair is stronger when we can check it")

13
New cards

STUDENT 1 to 0..* LOAN: "a student can have no loans, so a loan can have no student"

FALSE. Read the minimum one direction at a time: a student may have 0 loans, but each loan must refer to exactly 1 student.

14
New cards

Workflow vs sequence diagram

Workflow answers "What happens?" Sequence diagram answers "Who asks whom, in what order?" (time runs downward)

15
New cards

Five questions only a sequence diagram answers

Ordering, blocking, trust boundary, return content, absence

16
New cards

Absence (sequence diagram question)

What happens when the other system sends nothing at all; the most common thing that happens

17
New cards

Trust boundary

Which lifeline belongs to an office you don't control, and what have they promised in writing?

18
New cards

->> (solid arrow, filled head)

A request the sender waits on (synchronous)

19
New cards

-->> (dashed arrow)

A return message, not a new request

20
New cards

--) (dashed, open head)

Fire and forget: nobody waits, and nobody notices if it fails

21
New cards

alt / else

Mutually exclusive paths (used to model failure)

22
New cards

opt

Something that may not happen

23
New cards

loop

Repeats, e.g., retry up to 3 attempts, 2 s apart

24
New cards

The three branches of the eligibility alt fragment

1) Answer within 3 s with both fields: continue. 2) No answer or error: unverified, supervisor. 3) Answer with a field missing: unverified, NOT "no hold."

25
New cards

"A missing field is not a no"

A reply missing a field must be treated as unverified; reading it as "no hold" lends equipment to a student with a hold

26
New cards

Interface

The promise: an agreement about what one system asks and the other does; exists even if unwritten (analysis)

27
New cards

API

One machine-callable way to keep the promise: address, method, request and reply shape (design)

28
New cards

Contract

The promise written down: fields, types, required, meaning, reply, speed, failure handling (the analyst's deliverable)

29
New cards

Six rows of an interface contract

Parties, Trigger, Request, Response, Timing, Failure

30
New cards

Five ways an external system fails (easiest to hardest to notice)

1) Down 2) Slow 3) Succeeds and does nothing 4) Answers twice / duplicates 5) Answers correctly and you misread it

31
New cards

"Succeeds and does nothing"

A reply arrives with a field missing, is read as success, and nobody is ever told

32
New cards

Four responses a contract can choose for a failure

1) Retry, bounded 2) Degrade, and say so 3) Queue and reconcile 4) Refuse, and tell someone the truth

33
New cards

Queue and reconcile

Accept now, deliver later, run a job comparing both sides; the only defense against failures 3 and 5

34
New cards

Option zero

Silence: nobody finds out about the failure. "Handle the error" is not an answer.

35
New cards

Seven consistency checks (M2 component 8)

ERD-domain, ERD-dictionary, interface-dictionary, workflow-data, stories-workflow, sequence-context, contract-assumptions

36
New cards

Sequence to context check

Every system in a sequence diagram must appear on the context diagram with a flow

37
New cards

Functional requirement

What the system does (e.g., "assign a driver"); fails loudly; usually a sprint to add

38
New cards

Nonfunctional requirement

How well and under what conditions; fails quietly; can't be bolted on, usually costs an architecture

39
New cards

Eight NFR categories

Security, privacy, performance, reliability/availability, accessibility, scalability, auditability, concurrency/failure

40
New cards

Security (question)

Who is allowed to see this, and how do you know they are who they claim?

41
New cards

Privacy (question)

Should this record exist at all, for how long, and for what stated purpose?

42
New cards

Performance (question)

How fast, at which percentile, under what load, measured from which event?

43
New cards

Reliability/availability (question)

What fraction of the service window does it work, and what happens while it doesn't?

44
New cards

Accessibility (question)

Who is excluded by this design, and what does the law require of a public university?

45
New cards

Scalability (question)

What happens to every number when demand multiplies on one night?

46
New cards

Auditability (question)

Afterwards, can you reconstruct the sequence from records nobody could edit?

47
New cards

Concurrency/failure (question)

What happens when two things happen at once, or one thing half-happens?

48
New cards

Five-part NFR pattern (on Test 2)

Quality attribute + measurement + threshold + condition + consequence of breach

49
New cards

Threshold with no consequence of breach

A target, not a requirement

50
New cards

The "tell" of a non-requirement

If two competent engineers can both claim they satisfied it and neither can be shown wrong, it's a hope, not a requirement

51
New cards

Two dispatchers, one driver

Concurrency failure: both assignments save and one ride is silently lost; a class diagram can't say "at most one active ride"

52
New cards

What an ERD can't show (privacy)

Retention: no notation for "this row is deleted after 90 days"

53
New cards

Three columns every data dictionary is missing (Week 11)

Sensitivity, owner, lifespan

54
New cards

Privacy vs auditability

The log that reconstructs an incident is the same log counsel can be compelled to produce

55
New cards

Security vs usability

Two-factor at 1 AM on a phone at 4%, for the person the service exists to protect

56
New cards

Availability vs cost

A second server runs all week to protect a few peak hours

57
New cards

Performance vs accuracy

A cached ETA is fast but wrong when a street is closed

58
New cards

Break sentence form (ICA 11)

"If X happens, then Y, and Z is harmed" (input, consequence, victim)

59
New cards

Six lens cards

Malicious User, Busy Night, Down Dependency, Curious Employee, Student With a Disability, Lawyer With a Subpoena

60
New cards

Given / When / Then

Given = precondition stated as fact; When = one trigger with a number; Then = outcome a stranger could observe

61
New cards

Untestable criterion

No number or observable event ("timely," "quickly"); two honest people could disagree whether it passed

62
New cards

Premature design criterion

Names a screen, channel, technology or data structure (e.g., "red banner push notification")

63
New cards

Wrong altitude criterion

Tests a component, not the business outcome (e.g., "service returns HTTP 200")

64
New cards

Missing the exception

Only the happy path has criteria; every process branch needs one

65
New cards

How many acceptance criteria

One for the happy path, one per named exception, one per binding NFR, one per business rule touched; usually 3-7

66
New cards

Five traceability links

Objective, requirement, model element, acceptance criterion, validation evidence

67
New cards

Widow requirement

Promised, but nothing models it (found reading left to right)

68
New cards

Orphan model element

Built, but nobody asked for it (found reading right to left)

69
New cards

Widow objective

An objective with no requirement under it

70
New cards

Ghost criterion

A criterion with no possible evidence (e.g., "students feel safer")

71
New cards

As-is / to-be context diagrams

Draw the context diagram as it is and as it will be, shading what's new (Wang 4.6.1); exposes deletions nobody decided on

72
New cards

"Are we done?" seven checks

Objectives covered, requirements furnished, models accounted for, exceptions criteria'd, stakeholders present, numbers sourced, open questions owned

73
New cards

Open questions list on Dec 4

Must NOT be empty; each needs an owner and a date

74
New cards

Finding severity levels

Blocker, Major, Minor, Question

75
New cards

Author's four legitimate answers to a finding

Accept, Accept with change, Reject with reason, Defer with date ("Noted" is not an answer)