|
| 1 | +-- Insert test users |
| 2 | +INSERT INTO users (user_id, name, email, password_hash) VALUES |
| 3 | + ('00000000-0000-0000-0000-000000000001', 'Test User', 'test@example.com', '$2a$10$dummyhashfordemopurposes'); |
| 4 | + |
1 | 5 | -- Insert initial course data |
2 | 6 | INSERT INTO courses (course_id, title) VALUES |
3 | 7 | ('550e8400-e29b-41d4-a716-446655440000', 'DevOps Fundamentals'), |
@@ -86,3 +90,59 @@ INSERT INTO questions (question_id, text, sample_solution, chapter_id, ordering) |
86 | 90 | 'How do distributed tracing and logging work together to provide system insights?', |
87 | 91 | 'Distributed tracing tracks requests across multiple services, providing end-to-end visibility of transaction flows and identifying performance bottlenecks. Logging captures detailed events and errors at each service level. Together, they enable: 1) Correlation of trace spans with relevant log entries, 2) Root cause analysis by following trace paths and examining logs, 3) Performance optimization by identifying slow operations in traces and their corresponding log details, 4) Error investigation by linking failed traces to error logs, and 5) System understanding through combined transaction flows and detailed event records.', |
88 | 92 | '550e8400-e29b-41d4-a716-446655440003', 3); |
| 93 | + |
| 94 | +-- Insert test flashcard decks |
| 95 | +INSERT INTO flashcard_decks (deck_id, user_id, name) VALUES |
| 96 | + ('550e8400-e29b-41d4-a716-446655450001', '00000000-0000-0000-0000-000000000001', 'DevOps Fundamentals Deck'), |
| 97 | + ('550e8400-e29b-41d4-a716-446655450002', '00000000-0000-0000-0000-000000000001', 'Testing Strategies Deck'), |
| 98 | + ('550e8400-e29b-41d4-a716-446655450003', '00000000-0000-0000-0000-000000000001', 'CI/CD Pipeline Essentials'); |
| 99 | + |
| 100 | +-- Insert test flashcards for DevOps Fundamentals Deck |
| 101 | +INSERT INTO flashcards (flashcard_id, deck_id, front, back) VALUES |
| 102 | + ('550e8400-e29b-41d4-a716-446655450011', '550e8400-e29b-41d4-a716-446655450001', |
| 103 | + 'What does CI/CD stand for?', |
| 104 | + 'Continuous Integration / Continuous Deployment (or Continuous Delivery)'), |
| 105 | + |
| 106 | + ('550e8400-e29b-41d4-a716-446655450012', '550e8400-e29b-41d4-a716-446655450001', |
| 107 | + 'What is Infrastructure as Code (IaC)?', |
| 108 | + 'Managing and provisioning computing infrastructure through machine-readable definition files, rather than physical hardware configuration or interactive configuration tools'), |
| 109 | + |
| 110 | + ('550e8400-e29b-41d4-a716-446655450013', '550e8400-e29b-41d4-a716-446655450001', |
| 111 | + 'Name the three pillars of observability', |
| 112 | + 'Metrics, Logs, and Traces'), |
| 113 | + |
| 114 | + ('550e8400-e29b-41d4-a716-446655450014', '550e8400-e29b-41d4-a716-446655450001', |
| 115 | + 'What is the difference between monitoring and observability?', |
| 116 | + 'Monitoring tells you WHAT is happening (predefined metrics), while observability helps you understand WHY it is happening (ability to debug unknown issues)'); |
| 117 | + |
| 118 | +-- Insert test flashcards for Testing Strategies Deck |
| 119 | +INSERT INTO flashcards (flashcard_id, deck_id, front, back) VALUES |
| 120 | + ('550e8400-e29b-41d4-a716-446655450021', '550e8400-e29b-41d4-a716-446655450002', |
| 121 | + 'What is the difference between verification and validation?', |
| 122 | + 'Verification: Are we building the product right? (according to specifications)\nValidation: Are we building the right product? (according to user requirements)'), |
| 123 | + |
| 124 | + ('550e8400-e29b-41d4-a716-446655450022', '550e8400-e29b-41d4-a716-446655450002', |
| 125 | + 'Name 3 fundamental principles of software testing', |
| 126 | + '1. Testing shows presence of defects, not their absence\n2. Exhaustive testing is impossible\n3. Early testing saves time and money'), |
| 127 | + |
| 128 | + ('550e8400-e29b-41d4-a716-446655450023', '550e8400-e29b-41d4-a716-446655450002', |
| 129 | + 'What is mutation testing?', |
| 130 | + 'A testing technique that evaluates test suite quality by introducing small changes (mutations) to the code and checking if tests can detect these changes'); |
| 131 | + |
| 132 | +-- Insert test flashcards for CI/CD Pipeline Essentials Deck |
| 133 | +INSERT INTO flashcards (flashcard_id, deck_id, front, back) VALUES |
| 134 | + ('550e8400-e29b-41d4-a716-446655450031', '550e8400-e29b-41d4-a716-446655450003', |
| 135 | + 'What are the key stages of a CI/CD pipeline?', |
| 136 | + '1. Source Control\n2. Build Stage\n3. Test Stage\n4. Code Analysis\n5. Deployment to Staging\n6. Production Deployment\n7. Monitoring'), |
| 137 | + |
| 138 | + ('550e8400-e29b-41d4-a716-446655450032', '550e8400-e29b-41d4-a716-446655450003', |
| 139 | + 'What is the main benefit of automated testing in CI/CD?', |
| 140 | + 'Early detection of integration issues and improved code quality through consistent, repeatable testing'), |
| 141 | + |
| 142 | + ('550e8400-e29b-41d4-a716-446655450033', '550e8400-e29b-41d4-a716-446655450003', |
| 143 | + 'What is infrastructure drift?', |
| 144 | + 'When actual infrastructure configuration deviates from the defined specification over time due to manual changes, patches, or updates'), |
| 145 | + |
| 146 | + ('550e8400-e29b-41d4-a716-446655450034', '550e8400-e29b-41d4-a716-446655450003', |
| 147 | + 'How does IaC prevent infrastructure drift?', |
| 148 | + 'By maintaining a single source of truth in code, regularly comparing actual vs desired state, and enabling automated remediation'); |
0 commit comments