WEEK 2 ASSIGNMENTS Day 6 ~ Day 10 Video & Advertising Platform (Advanced)

Week 2 Individual Homework Missions

Building on the domains and data model you designed in Week 1, implement front-end integration, back-end business logic and idempotency,
member/auth security audits, payment transactions and global launch monitoring yourself, and complete your ai_review.md decision evidence.

10 assignments
2 per day / 10 problems total
50 pts / 100 pts
50 pts per problem (100 pts per day)
90–120 min
Suggested time per day
ZIP submission
Submit StudentID_Name_DayNN.zip

📌 Day 5–10 homework submission and grading rules

Day 6. Front-End Development and API Integration

HW-D06-01
Day 6 • HW-D06-01 50 pts

HW-D06-01. Live Video Player & State Binding UI

Build a UI state machine and event binding for the VidAce player that renders video metadata, an ad countdown (skip after 5 sec) and live viewing stats at the same time during HLS streaming.

Tech SkillTECH-FE, TECH-STATE
AI SkillAI-CODE, AI-REV, AI-TEST
Lab areaCODE
Suggested time45–60 min
Video Player State Machine Throttling API Binding
Output: player_state_machine.md, VideoPlayer.js, ai_review.md
HW-D06-02
Day 6 • HW-D06-02 50 pts

HW-D06-02. Fallback UX for AdBlock and Network Drops

Design a resilient UX where the player doesn't freeze and falls back to a replacement banner or safe mode when the ad API is blocked by the browser's ad blocker (AdBlock) or network delays.

Tech SkillTECH-FE, TECH-UX
AI SkillAI-CTX, AI-DEBUG, AI-REV
Lab areaCODE / UX
Suggested time45–60 min
AdBlock Detection Graceful Fallback Error UX
Output: fallback_flow.md, ad_fallback_handler.js, ai_review.md

Day 7. Connecting Features and Completing User Scenarios

HW-D07-01
Day 7 • HW-D07-01 50 pts

HW-D07-01. Async Pipeline for Large Video Upload and Encoding

Complete idempotency logic so that network retries don't cause duplicate encoding during chunked upload of a 2GB video and state changes in the async encoding queue.

Tech SkillTECH-BE, TECH-ASYNC
AI SkillAI-CODE, AI-REV, AI-DOC
Lab areaCODE
Suggested time45–60 min
Chunk Upload Idempotency Encoding Pipeline
Output: upload_state_spec.md, UploadService.js, ai_review.md
HW-D07-02
Day 7 • HW-D07-02 50 pts

HW-D07-02. Abuse Detection (FDS) and Correcting Transactions

Block abnormal playback and fake ad clicks by macro bots in real time, and build business rules that issue negative correction entries for already wrongly billed records without damaging the ledger.

Tech SkillTECH-DDD, TECH-FDS
AI SkillAI-REV, AI-AUDIT, AI-LOGIC
Lab areaCODE / LOGIC
Suggested time45–60 min
Abuse Detection Compensating Tx FDS Filter
Output: fds_business_rules.md, ViewValidator.js, ai_review.md

Day 8. Member Services and the Onboarding Experience

HW-D08-01
Day 8 • HW-D08-01 50 pts

HW-D08-01. Multi-Tenant Permission (RBAC/ABAC) Matrix and Guards

Define a permission matrix per role — viewer, creator (owner/editor), advertiser, admin — and design authorization middleware that completely blocks deleting others' videos or channel takeover (IDOR).

Tech SkillTECH-SEC, TECH-AUTH
AI SkillAI-CODE, AI-REV, AI-SEC
Lab areaCODE / ARCH
Suggested time45–60 min
RBAC / ABAC Auth Guard IDOR Prevention
Output: role_permission_matrix.md, auth_guard.js, ai_review.md
HW-D08-02
Day 8 • HW-D08-02 50 pts

HW-D08-02. Preventing OAuth2 Token Theft and a Session Security Audit

To defend against token theft through XSS/CSRF in social login and SPA setups, set up HttpOnly cookie-based Refresh Token Rotation (RTR) and immediate session expiry.

Tech SkillTECH-SEC, TECH-OAUTH
AI SkillAI-AUDIT, AI-REV, AI-DOC
Lab areaCODE / AUDIT
Suggested time45–60 min
OAuth2 / OIDC Token Rotation Security Audit
Output: security_audit_report.md, token_service.js, ai_review.md

Day 9. Payment Services and the Checkout Experience

HW-D09-01
Day 9 • HW-D09-01 50 pts

HW-D09-01. Advertiser Campaign Budget Top-Up & PG Payment Pipeline

When advertisers top up large budgets, check for tampered amounts between the payment window and back-end approval, and build an idempotent checkout pipeline that blocks double payments from double clicks or network delays.

Tech SkillTECH-PAY, TECH-TX
AI SkillAI-CODE, AI-REV, AI-DOC
Lab areaCODE
Suggested time45–60 min
PG Integration Tamper-proof Checkout Pipeline
Output: payment_pipeline.md, CheckoutService.js, ai_review.md
HW-D09-02
Day 9 • HW-D09-02 50 pts

HW-D09-02. Payment Timeout Compensating Transactions (Saga) and Settlement Reconciliation

Build a system that automatically and fully recovers 'ghost payment' mismatches — the card was approved after a PG approval timeout but the system balance wasn't credited — with batch Reconciliation and Saga compensating cancellation.

Tech SkillTECH-PAY, TECH-DIST
AI SkillAI-REV, AI-AUDIT, AI-LOGIC
Lab areaCODE / ARCH
Suggested time45–60 min
Saga Pattern Reconciliation Ghost Transaction
Output: payment_recovery_state.md, PaymentReconciliationWorker.js, ai_review.md

Day 10. Service Launch and Final Presentation

HW-D10-01
Day 10 • HW-D10-01 50 pts

HW-D10-01. Company-Wide Core E2E Integration QA and Launch Readiness Review

Automate tests for E2E scenarios of the whole business loop linking viewers, creators and advertisers, and finish a Go/No-Go checklist to decide production deployment on launch day.

Tech SkillTECH-QA, TECH-E2E
AI SkillAI-TEST, AI-DOC, AI-REV
Lab areaTEST / QA
Suggested time45–60 min
E2E Automation Launch Readiness Go/No-Go Gate
Output: e2e_test_scenarios.md, launch_readiness_checklist.md, e2e_core_flow.spec.js, ai_review.md
HW-D10-02
Day 10 • HW-D10-02 50 pts

HW-D10-02. Circuit Breaker & Zero-Downtime Rollback for Large Traffic Failures

Build circuit breaker middleware that prevents Cascading Failure when traffic surges 20x right after launch, and a rollback runbook that recovers without loss within 1 minute when a deployment defect is found.

Tech SkillTECH-SRE, TECH-RESIL
AI SkillAI-CODE, AI-REV, AI-AUDIT
Lab areaCODE / SRE
Suggested time45–60 min
Circuit Breaker Zero Downtime Rollback Runbook
Output: circuit_breaker_architecture.md, CircuitBreaker.js, zero_downtime_rollback_runbook.md, ai_review.md