Module 2: Programming for the Web
8 dot points across 2 inquiry questions, in syllabus order. Each dot point has a focused answer, with exam-style questions and worked answers where available.
Inquiry Question 1: How are secure web applications developed?
Web vulnerabilities. XSS (stored and reflected), CSRF, SQL injection, mitigations for each, the worked example, and the traps markers look for.
HTTP. Request methods, status codes, headers, the role of HTTPS and TLS, the worked example, and the traps markers look for.
Web architecture. Browser, web server, application server, database, the request-response cycle, the worked three-tier example, and the traps markers look for.
Server-side programming. Routing, handlers, response building, database integration, the worked Flask example, and the traps markers look for.
Relational databases. Schema design, primary and foreign keys, SELECT with JOIN, INSERT, UPDATE, DELETE, the worked example, and the traps markers look for.
Inquiry Question 2: How can data be better visualised using a web browser?
HTML and CSS. Semantic markup, the box model, responsive design with media queries, the worked example, and the traps markers look for.
Client-side JavaScript. DOM manipulation, event handlers, fetch and async/await, the worked example, and the traps markers look for.
REST APIs. Resource modelling, JSON, HTTP methods mapped to CRUD, status codes, the worked example, and the traps markers look for.
