Lesson plan: Foundations: Web Applications, Databases, and Files
AP Cybersecurity · Unit 5 Securing Applications and Data · Topic Foundations (background for 5.1 to 5.6) · Practice set
At a glance
- Suggested time
- 1 class period (45 min)
- Pacing
- The unit's first set, before Injection Attacks. The CED gives Unit 5 thirty class periods, split across Topics 5.1 to 5.6 as 5, 7, 4, 5, 2, and 7. This Foundations background sits outside the CED's content periods, and this plan suggests 1 extra day for it. The CED takes for granted how a web application, its server, and its files fit together (5.1.B.9: the files that run web applications are stored in directories on servers). EK 5.1.B.3 and 5.1.B.7 define SQL and a buffer in one line each, and this set fills them out. No EK in Unit 5 names a replica or a backup, so that half of the set and the GitLab story are background for availability in 5.1.C.1 (data destroyed or encrypted so that others cannot access it).
- Before this set
- None in this unit. From Foundations: Requests, Servers, and Domain Names in Introduction to Security (Unit 1): a browser sends a request to a server, and the server sends a page back. The mini-lesson explains web application, input, database, table, query, path, buffer, replica, and backup as it goes.
- Skills
- 1.A Identify, with and without the support of AI, vulnerabilities, threats, and attack methods, and explain how they generate risk.2.A Identify security controls, and explain how they mitigate risks.
The one idea: A web application copies what a visitor sends into a query, reads the row the database answers with, and builds the page from it, while its files and its memory hold the rest. A replica copies every change, mistakes included, so only a backup saved before a mistake can undo it, and only one that worked.
Day by day
Day 1 · One request, and the copies of its data45 min
- Open (2 min)Ask where a website gets its data back from if its database server dies tonight. Collect a few answers on the board without correcting them.
- Mini-lesson (13 min)Teach Web Applications, Databases, and Files. Read it together, or assign it the night before. Under The database, point to the 12 in the figure's query and ask who put it there before reading the next paragraph. Under Copies of the data, stop at "Decide whether the replica or a backup would save the club site" and give pairs a minute before reading on. Under The GitLab database deletion, after the first paragraph, ask which copy GitLab should restore from.
- Do together (4 min)Problem 2 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- On their own (10 min)Problem 1 🔒 Problem 4 🔒 what counts as input · Problem 3 🔒 reading a query · Problem 5 🔒 the order of one request · Problem 6 🔒 where each piece of data is kept.
- Do together (4 min)Problem 7 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- On their own (7 min)Problem 8 🔒 counting the hours a restore loses · Problem 9 🔒 which copy a script on the network cannot erase · Problem 10 🔒 choosing among copies that failed.
- Discuss (3 min)Problem 10 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- Exit check (2 min)🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
Differentiation
- If students are struggling
- Project the lesson's request figure with the names covered (browser, web server, the site's program, database) and have students fill them in before Problem 2 🔒 and Problem 5 🔒. For Problem 8 🔒 and Problem 10 🔒, draw a timeline on the board and have students mark each copy's time and the mistake on it before answering.
- Extension
- Students write a copies table for the club site in the style of Problem 10 🔒, with one hidden flaw (a backup that has been failing, or a copy kept on the same server), and a partner works out which copy would lose the least.
- Vocabulary support
- web application, input, web server software, database, table, row, column, query, Structured Query Language (SQL), file, path, memory, buffer, replica, backup, offline, tape library.
🔒 Answer keyEvery problem's answer, the concept and essential knowledge it checks, and the trap it targets.Sign in as a teacher to see this🔒 Traps this set testsWhat each common wrong answer looks like, and one line to say when you see it.Sign in as a teacher to see this🔒 What to emphasizeThe points that decide the set's problems.Sign in as a teacher to see this🔒 Questions to ask aloudQuestions for the class discussion, with what to listen for.Sign in as a teacher to see this🔒 On the examHow the set's ideas appear on the AP exam, from the course framework.Sign in as a teacher to see this🔒 Your class so farLive results for your section: the problems a third or more missed on the first try, the most common wrong answer, and what it usually means.Sign in as a teacher to see this