-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1861 lines (1730 loc) · 91.8 KB
/
index.html
File metadata and controls
1861 lines (1730 loc) · 91.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AWS Flashcards</title>
<script src="https://unpkg.com/embla-carousel@8/embla-carousel.umd.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');
:root {
--aws-orange: #FF9900;
--aws-orange-light: #FFB84D;
--aws-navy: #232F3E;
--bg: #141922;
--surface: #1e2736;
--surface-raised: #283143;
--ink: #ffffff;
--ink-secondary: #e2e8f0;
--muted: #a0aec0;
--border: #4a5568;
--success: #68d391;
--warning: #f6ad55;
--domain-cloud: #63b3ed;
--domain-security: #68d391;
--domain-tech: #f6ad55;
--domain-billing: #b794f4;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg);
color: var(--ink);
height: 100vh;
overflow: hidden;
user-select: none;
}
.container {
height: 100%;
display: flex;
flex-direction: column;
border: 1px solid var(--border);
background: var(--bg);
}
/* Title bar */
.title-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 14px;
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.title-stack {
display: flex;
flex-direction: column;
gap: 1px;
}
.title-kicker {
font-size: 10px;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
color: var(--aws-orange-light);
}
.title {
font-size: 15px;
font-weight: 700;
color: var(--ink);
text-transform: uppercase;
letter-spacing: 1px;
}
.title-actions {
display: flex;
align-items: center;
gap: 6px;
}
.icon-btn {
background: var(--surface-raised);
border: 1px solid var(--border);
color: var(--ink-secondary);
font-size: 14px;
cursor: pointer;
padding: 4px 8px;
transition: all 0.2s;
border-radius: 3px;
}
.icon-btn:hover {
background: var(--border);
color: var(--ink);
border-color: var(--muted);
}
/* Domain header */
.domain-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 14px;
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.domain-tag {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 4px 10px;
border-radius: 3px;
background: rgba(66, 153, 225, 0.2);
color: var(--domain-cloud);
}
.card-counter {
font-size: 13px;
font-weight: 600;
color: var(--ink-secondary);
font-family: 'Space Mono', monospace;
}
/* Embla Carousel */
.embla {
flex: 1;
overflow: hidden;
padding: 14px;
}
.embla__viewport {
height: 100%;
}
.embla__container {
display: flex;
height: 100%;
}
.embla__slide {
flex: 0 0 100%;
min-width: 0;
padding: 0 4px;
}
/* Flashcard */
.flashcard-wrapper {
height: 100%;
perspective: 1000px;
}
.flashcard {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
}
.flashcard.flipped {
transform: rotateY(180deg);
}
.flashcard-face {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
display: flex;
flex-direction: column;
background: var(--surface-raised);
border: 1px solid var(--border);
border-radius: 6px;
overflow: hidden;
}
.flashcard-back {
transform: rotateY(180deg);
}
.flashcard-content {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
text-align: center;
}
.flashcard-text {
font-size: 24px;
font-weight: 600;
line-height: 1.35;
color: var(--ink);
white-space: pre-line;
}
.flashcard-back .flashcard-text {
font-size: 16px;
text-align: left;
color: var(--aws-orange-light);
}
.flashcard-hint {
padding: 10px;
text-align: center;
border-top: 1px solid var(--border);
font-size: 11px;
color: var(--ink-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
opacity: 0.7;
}
/* Navigation */
.nav-bar {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
padding: 12px 14px;
background: var(--surface);
border-top: 1px solid var(--border);
}
.nav-btn {
background: var(--surface-raised);
border: 1px solid var(--border);
color: var(--ink-secondary);
font-size: 16px;
cursor: pointer;
padding: 8px 14px;
transition: all 0.2s;
border-radius: 4px;
}
.nav-btn:hover {
background: var(--border);
color: var(--ink);
}
.nav-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.action-btn {
font-family: 'Rajdhani', sans-serif;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.know-btn {
background: #2f855a;
color: #ffffff;
}
.know-btn:hover {
background: #38a169;
}
.review-btn {
background: #c05621;
color: #ffffff;
}
.review-btn:hover {
background: #dd6b20;
}
/* Progress bar */
.progress-section {
padding: 12px 14px;
background: var(--surface);
border-top: 1px solid var(--border);
}
.progress-bar-container {
height: 6px;
background: var(--bg);
border-radius: 3px;
overflow: hidden;
margin-bottom: 8px;
}
.progress-bar {
height: 100%;
background: linear-gradient(90deg, var(--aws-orange), var(--aws-orange-light));
border-radius: 3px;
transition: width 0.3s ease;
}
.progress-stats {
display: flex;
justify-content: space-between;
align-items: center;
}
.progress-percent {
font-size: 12px;
font-weight: 600;
color: var(--aws-orange-light);
}
.progress-counts {
font-size: 11px;
color: var(--ink-secondary);
}
.progress-counts span {
margin-left: 12px;
}
.learned-count {
color: var(--success);
font-weight: 600;
}
.review-count {
color: var(--warning);
font-weight: 600;
}
/* Settings dialog */
.settings-dialog {
border: none;
border-radius: 6px;
padding: 0;
width: calc(100% - 32px);
max-width: 100%;
max-height: calc(100% - 32px);
background: var(--surface-raised);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
overflow: hidden;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: 0;
}
.settings-dialog::backdrop {
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(4px);
}
.settings-dialog-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 14px;
background: var(--bg);
color: var(--ink);
border-bottom: 1px solid var(--border);
}
.settings-dialog-title {
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1.2px;
}
.settings-dialog-close {
background: var(--aws-orange);
border: none;
color: #000000;
font-size: 11px;
cursor: pointer;
padding: 5px 12px;
font-weight: 700;
transition: background 0.2s;
text-transform: uppercase;
letter-spacing: 1px;
border-radius: 3px;
font-family: 'Rajdhani', sans-serif;
}
.settings-dialog-close:hover {
background: var(--aws-orange-light);
}
.settings-dialog-body {
padding: 16px 14px;
overflow-y: auto;
max-height: calc(100vh - 200px);
}
.settings-section {
margin-bottom: 20px;
}
.settings-section:last-child {
margin-bottom: 0;
}
.settings-section-title {
font-size: 11px;
color: var(--aws-orange-light);
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700;
}
.domain-filters {
display: flex;
flex-direction: column;
gap: 8px;
}
.domain-filter {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px;
background: var(--surface);
border-radius: 4px;
cursor: pointer;
transition: background 0.2s;
}
.domain-filter:hover {
background: var(--border);
}
.domain-filter input {
accent-color: var(--aws-orange);
width: 16px;
height: 16px;
}
.domain-filter-label {
flex: 1;
font-size: 13px;
font-weight: 600;
color: var(--ink);
}
.domain-filter-count {
font-size: 11px;
color: var(--ink-secondary);
font-family: 'Space Mono', monospace;
}
.toggle-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background: var(--surface);
border-radius: 4px;
margin-bottom: 8px;
}
.toggle-row:last-child {
margin-bottom: 0;
}
.toggle-label {
font-size: 13px;
font-weight: 600;
color: var(--ink);
}
.toggle-switch {
position: relative;
width: 44px;
height: 24px;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 12px;
transition: 0.3s;
}
.toggle-slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background: var(--ink);
border-radius: 50%;
transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
background: var(--aws-orange);
}
.toggle-switch input:checked + .toggle-slider:before {
transform: translateX(20px);
}
.reset-btn {
width: 100%;
padding: 10px;
background: rgba(229, 62, 62, 0.15);
border: 1px solid #fc8181;
color: #fc8181;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
cursor: pointer;
border-radius: 4px;
transition: all 0.2s;
font-family: 'Rajdhani', sans-serif;
}
.reset-btn:hover {
background: #e53e3e;
color: #ffffff;
}
</style>
</head>
<body>
<div class="container">
<div class="title-bar">
<div class="title-stack">
<span class="title-kicker">CLF-C02 Study</span>
<span class="title">AWS FLASHCARDS</span>
</div>
<div class="title-actions">
<button class="icon-btn" id="settingsToggle" title="Settings">
<span>⚙</span>
</button>
<button class="icon-btn" id="closeBtn" title="Close">
<span>×</span>
</button>
</div>
</div>
<div class="domain-header">
<span class="domain-tag" id="domainTag">Cloud Concepts</span>
<span class="card-counter" id="cardCounter">1/60</span>
</div>
<div class="embla" id="embla">
<div class="embla__viewport" id="emblaViewport">
<div class="embla__container" id="emblaContainer">
<!-- Cards rendered by JS -->
</div>
</div>
</div>
<div class="nav-bar">
<button class="nav-btn" id="prevBtn" title="Previous (Left Arrow)">←</button>
<button class="action-btn know-btn" id="knowBtn" title="Know It (K)">Know It</button>
<button class="action-btn review-btn" id="reviewBtn" title="Review (R)">Review</button>
<button class="nav-btn" id="nextBtn" title="Next (Right Arrow)">→</button>
</div>
<div class="progress-section">
<div class="progress-bar-container">
<div class="progress-bar" id="progressBar" style="width: 0%"></div>
</div>
<div class="progress-stats">
<span class="progress-percent" id="progressPercent">0% complete</span>
<span class="progress-counts">
<span class="learned-count" id="learnedCount">0 Learned</span>
<span class="review-count" id="reviewCount">0 To Review</span>
</span>
</div>
</div>
<dialog class="settings-dialog" id="settingsDialog">
<div class="settings-dialog-header">
<span class="settings-dialog-title">Settings</span>
<button class="settings-dialog-close" id="settingsClose">Done</button>
</div>
<div class="settings-dialog-body">
<div class="settings-section">
<div class="settings-section-title">Study Domains</div>
<div class="domain-filters" id="domainFilters">
<!-- Rendered by JS -->
</div>
</div>
<div class="settings-section">
<div class="settings-section-title">Options</div>
<div class="toggle-row">
<span class="toggle-label">Shuffle Cards</span>
<label class="toggle-switch">
<input type="checkbox" id="shuffleToggle" />
<span class="toggle-slider"></span>
</label>
</div>
<div class="toggle-row">
<span class="toggle-label">Show Card Counter</span>
<label class="toggle-switch">
<input type="checkbox" id="counterToggle" checked />
<span class="toggle-slider"></span>
</label>
</div>
</div>
<div class="settings-section">
<div class="settings-section-title">Progress</div>
<button class="reset-btn" id="resetBtn">Reset All Progress</button>
</div>
</div>
</dialog>
</div>
<script>
const { ipcRenderer } = require('electron');
// ============================================
// FLASHCARD DATA
// ============================================
const flashcardData = {
domains: [
{ id: "cloud-concepts", name: "Cloud Concepts", weight: 24, color: "#4299e1" },
{ id: "security", name: "Security & Compliance", weight: 30, color: "#48bb78" },
{ id: "technology", name: "Technology & Services", weight: 34, color: "#ed8936" },
{ id: "billing", name: "Billing & Support", weight: 12, color: "#9f7aea" }
],
cards: [
// ============================================
// DOMAIN 1: CLOUD CONCEPTS (24%)
// ============================================
{
id: "cc-001",
domain: "cloud-concepts",
question: "What are the 6 pillars of the AWS Well-Architected Framework?",
answer: "1. Operational Excellence\n2. Security\n3. Reliability\n4. Performance Efficiency\n5. Cost Optimization\n6. Sustainability"
},
{
id: "cc-002",
domain: "cloud-concepts",
question: "What is the Operational Excellence pillar focused on?",
answer: "Running and monitoring systems to deliver business value, and continually improving processes and procedures.\n\nKey topics: automating changes, responding to events, defining standards."
},
{
id: "cc-003",
domain: "cloud-concepts",
question: "What is the Security pillar focused on?",
answer: "Protecting information, systems, and assets while delivering business value through risk assessments and mitigation strategies.\n\nKey topics: identity management, detection, infrastructure protection, data protection."
},
{
id: "cc-004",
domain: "cloud-concepts",
question: "What is the Reliability pillar focused on?",
answer: "Ensuring a workload performs its intended function correctly and consistently.\n\nKey topics: distributed system design, recovery planning, handling change."
},
{
id: "cc-005",
domain: "cloud-concepts",
question: "What is the Performance Efficiency pillar focused on?",
answer: "Using computing resources efficiently to meet system requirements, and maintaining that efficiency as demand changes.\n\nKey topics: selecting the right resource types, monitoring performance, making trade-offs."
},
{
id: "cc-006",
domain: "cloud-concepts",
question: "What is the Cost Optimization pillar focused on?",
answer: "Running systems to deliver business value at the lowest price point.\n\nKey topics: understanding spending, controlling costs, right-sizing, using the right pricing model."
},
{
id: "cc-007",
domain: "cloud-concepts",
question: "What is the Sustainability pillar focused on?",
answer: "Minimizing the environmental impacts of running cloud workloads.\n\nKey topics: shared responsibility model for sustainability, maximizing utilization, using managed services."
},
{
id: "cc-008",
domain: "cloud-concepts",
question: "What are the 3 cloud deployment models?",
answer: "1. Public Cloud - Resources owned and operated by third-party provider (AWS)\n\n2. Private Cloud (On-Premises) - Resources deployed on-premises using virtualization\n\n3. Hybrid Cloud - Combination of public and private clouds"
},
{
id: "cc-009",
domain: "cloud-concepts",
question: "What is Multi-Cloud?",
answer: "Using multiple cloud providers simultaneously (e.g., AWS + Azure + GCP).\n\nBenefits: Avoid vendor lock-in, leverage best services from each provider, meet compliance requirements."
},
{
id: "cc-010",
domain: "cloud-concepts",
question: "What are IaaS, PaaS, and SaaS?",
answer: "IaaS (Infrastructure as a Service): Raw computing resources (EC2, VPC)\n\nPaaS (Platform as a Service): Platform for deploying apps (Elastic Beanstalk, Lambda)\n\nSaaS (Software as a Service): Complete software solutions (Gmail, Salesforce)"
},
{
id: "cc-011",
domain: "cloud-concepts",
question: "What is Elasticity in cloud computing?",
answer: "The ability to automatically acquire resources when needed and release them when no longer needed.\n\nExample: Auto Scaling adds EC2 instances during high traffic and removes them when traffic decreases."
},
{
id: "cc-012",
domain: "cloud-concepts",
question: "What is Agility in cloud computing?",
answer: "The ability to rapidly develop, test, and launch software applications that drive business growth.\n\nCloud enables faster innovation cycles and reduces time to market."
},
{
id: "cc-013",
domain: "cloud-concepts",
question: "What is Scalability vs Elasticity?",
answer: "Scalability: The ability to handle increased load by adding resources (vertical or horizontal).\n\nElasticity: Automatic scaling based on demand - resources scale out AND back in.\n\nElasticity is a subset of scalability."
},
{
id: "cc-014",
domain: "cloud-concepts",
question: "What is High Availability?",
answer: "Systems that are designed to operate continuously without failure for a long time.\n\nAchieved by: Running in multiple Availability Zones, using load balancers, implementing redundancy."
},
{
id: "cc-015",
domain: "cloud-concepts",
question: "What is Fault Tolerance?",
answer: "The ability of a system to continue operating properly when one or more components fail.\n\nExample: If one server fails, traffic is automatically routed to healthy servers with zero downtime."
},
{
id: "cc-016",
domain: "cloud-concepts",
question: "What is Disaster Recovery (DR)?",
answer: "Planning and processes for recovering from catastrophic failures.\n\nKey concepts: RTO (Recovery Time Objective) - how fast to recover, RPO (Recovery Point Objective) - how much data loss is acceptable."
},
{
id: "cc-017",
domain: "cloud-concepts",
question: "What are AWS Regions?",
answer: "Physical locations around the world where AWS clusters data centers.\n\nEach region has multiple isolated Availability Zones. Regions are completely independent from each other."
},
{
id: "cc-018",
domain: "cloud-concepts",
question: "What are Availability Zones (AZs)?",
answer: "One or more discrete data centers with redundant power, networking, and connectivity within a Region.\n\nAZs are connected with low-latency links. Deploying across multiple AZs provides high availability."
},
{
id: "cc-019",
domain: "cloud-concepts",
question: "What are Edge Locations?",
answer: "Data centers used by CloudFront to cache copies of content closer to users for faster delivery.\n\nThere are more Edge Locations than Regions. Used for CDN and Route 53 DNS."
},
{
id: "cc-020",
domain: "cloud-concepts",
question: "What are AWS Local Zones?",
answer: "AWS infrastructure placed in large cities, closer to end users than Regions.\n\nUse case: Latency-sensitive applications like video rendering, real-time gaming, machine learning inference."
},
{
id: "cc-021",
domain: "cloud-concepts",
question: "What is AWS Wavelength?",
answer: "AWS infrastructure deployed at 5G network edge locations within telecom providers' data centers.\n\nUse case: Ultra-low latency applications for mobile devices (gaming, AR/VR, autonomous vehicles)."
},
{
id: "cc-022",
domain: "cloud-concepts",
question: "What is CapEx vs OpEx?",
answer: "CapEx (Capital Expenditure): Upfront costs for physical infrastructure. Own and maintain hardware.\n\nOpEx (Operational Expenditure): Pay-as-you-go model. No upfront costs. Cloud shifts IT spending from CapEx to OpEx."
},
{
id: "cc-023",
domain: "cloud-concepts",
question: "What are the 6 perspectives of the AWS Cloud Adoption Framework (CAF)?",
answer: "Business Capabilities:\n1. Business\n2. People\n3. Governance\n\nTechnical Capabilities:\n4. Platform\n5. Security\n6. Operations"
},
{
id: "cc-024",
domain: "cloud-concepts",
question: "What are economies of scale in cloud computing?",
answer: "AWS can achieve lower variable costs than individual companies because usage from hundreds of thousands of customers is aggregated.\n\nThis allows AWS to pass savings to customers through lower pay-as-you-go prices."
},
{
id: "cc-025",
domain: "cloud-concepts",
question: "What is Global Reach in AWS?",
answer: "The ability to deploy applications in multiple geographic regions in minutes.\n\nBenefits: Lower latency for end users, data residency compliance, disaster recovery across regions."
},
// ============================================
// DOMAIN 2: SECURITY & COMPLIANCE (30%)
// ============================================
{
id: "sec-001",
domain: "security",
question: "What is the AWS Shared Responsibility Model?",
answer: "AWS Responsibility: Security OF the cloud (hardware, software, networking, facilities)\n\nCustomer Responsibility: Security IN the cloud (data, IAM, OS patching, firewall configuration, encryption)"
},
{
id: "sec-002",
domain: "security",
question: "In the Shared Responsibility Model, who is responsible for patching EC2 instances?",
answer: "The Customer.\n\nEC2 is IaaS, so customers are responsible for guest OS patching, application updates, and security configurations."
},
{
id: "sec-003",
domain: "security",
question: "In the Shared Responsibility Model, who patches Lambda?",
answer: "AWS.\n\nLambda is a managed service, so AWS handles the underlying infrastructure, OS, and runtime patching."
},
{
id: "sec-004",
domain: "security",
question: "What is AWS IAM?",
answer: "Identity and Access Management - a global service for managing access to AWS resources.\n\nComponents: Users, Groups, Roles, Policies\n\nPrinciple: Least privilege access"
},
{
id: "sec-005",
domain: "security",
question: "What are IAM Users, Groups, and Roles?",
answer: "Users: Identity for a person or service\n\nGroups: Collection of users with shared permissions\n\nRoles: Identity with permissions that can be assumed by users, services, or applications (no long-term credentials)"
},
{
id: "sec-006",
domain: "security",
question: "What are IAM Policies?",
answer: "JSON documents that define permissions.\n\nTypes:\n- Identity-based: Attached to users, groups, roles\n- Resource-based: Attached to resources (S3 bucket policy)\n- Permission boundaries: Maximum permissions limit"
},
{
id: "sec-007",
domain: "security",
question: "What is the IAM Policy evaluation logic?",
answer: "1. Explicit Deny always wins\n2. If no explicit deny, check for Allow\n3. Default is implicit Deny\n\nOrder: Deny > Allow > Implicit Deny"
},
{
id: "sec-008",
domain: "security",
question: "What are IAM best practices?",
answer: "1. Enable MFA for root and all users\n2. Never use root account for daily tasks\n3. Create individual IAM users\n4. Use groups to assign permissions\n5. Grant least privilege\n6. Use roles for applications\n7. Rotate credentials regularly"
},
{
id: "sec-009",
domain: "security",
question: "What is MFA and what types does AWS support?",
answer: "Multi-Factor Authentication - adds a second layer of security.\n\nTypes:\n- Virtual MFA (Authenticator app)\n- Hardware MFA key (YubiKey)\n- Hardware key fob\n- SMS (not recommended)"
},
{
id: "sec-010",
domain: "security",
question: "What is AWS Organizations?",
answer: "Service to centrally manage multiple AWS accounts.\n\nFeatures:\n- Consolidated billing\n- Organizational Units (OUs)\n- Service Control Policies (SCPs)\n- Single payer for all accounts"
},
{
id: "sec-011",
domain: "security",
question: "What are Service Control Policies (SCPs)?",
answer: "Policies that define maximum permissions for accounts in an organization.\n\nSCPs don't grant permissions - they set guardrails. Even if IAM allows an action, SCP can block it.\n\nApply to OUs or individual accounts."
},
{
id: "sec-012",
domain: "security",
question: "What is AWS KMS?",
answer: "Key Management Service - create and manage encryption keys.\n\nFeatures:\n- AWS managed keys\n- Customer managed keys (CMK)\n- Automatic key rotation\n- Integrated with many AWS services"
},
{
id: "sec-013",
domain: "security",
question: "What is AWS WAF?",
answer: "Web Application Firewall - protects web apps from common exploits.\n\nProtects against: SQL injection, XSS, rate limiting\n\nWorks with: CloudFront, ALB, API Gateway"
},
{
id: "sec-014",
domain: "security",
question: "What is AWS Shield?",
answer: "DDoS protection service.\n\nShield Standard: Free, automatic protection for all AWS customers\n\nShield Advanced: Paid, enhanced protection, 24/7 DDoS response team, cost protection"
},
{
id: "sec-015",
domain: "security",
question: "What is Amazon GuardDuty?",
answer: "Intelligent threat detection service.\n\nAnalyzes: CloudTrail logs, VPC Flow Logs, DNS logs\n\nDetects: Unusual API calls, malicious IPs, compromised instances, crypto mining"
},
{
id: "sec-016",
domain: "security",
question: "What is Amazon Inspector?",
answer: "Automated security assessment service.\n\nScans: EC2 instances, container images (ECR), Lambda functions\n\nFinds: Software vulnerabilities, network exposure, unintended network accessibility"
},
{
id: "sec-017",
domain: "security",
question: "What is Amazon Macie?",
answer: "Data security service using ML to discover and protect sensitive data in S3.\n\nFinds: PII, financial data, credentials\n\nAlerts on: Public buckets, unencrypted data, access anomalies"
},
{
id: "sec-018",
domain: "security",
question: "What is AWS Security Hub?",
answer: "Central security dashboard that aggregates findings from multiple AWS security services.\n\nIntegrates with: GuardDuty, Inspector, Macie, IAM Access Analyzer\n\nProvides: Automated compliance checks"
},
{
id: "sec-019",
domain: "security",
question: "What is Amazon Detective?",
answer: "Service that analyzes and visualizes security data to investigate potential security issues.\n\nUse case: Root cause analysis after GuardDuty finding\n\nData sources: CloudTrail, VPC Flow Logs, GuardDuty findings"
},
{
id: "sec-020",
domain: "security",
question: "What is AWS Secrets Manager?",
answer: "Service to store, rotate, and retrieve secrets (API keys, database credentials).\n\nFeatures:\n- Automatic rotation\n- Integration with RDS\n- Encrypted storage\n- Fine-grained access control"
},
{
id: "sec-021",
domain: "security",
question: "Secrets Manager vs Parameter Store?",
answer: "Secrets Manager:\n- Built-in rotation\n- Higher cost\n- Designed for secrets\n\nParameter Store:\n- No built-in rotation\n- Free tier available\n- General config storage\n- Can store secrets (SecureString)"
},
{
id: "sec-022",
domain: "security",
question: "What are Security Groups?",
answer: "Virtual firewall at the instance level.\n\nStateful: Return traffic automatically allowed\nRules: Allow rules only (no deny)\nDefault: Deny all inbound, allow all outbound"
},
{
id: "sec-023",
domain: "security",
question: "What are Network ACLs (NACLs)?",
answer: "Firewall at the subnet level.\n\nStateless: Must define inbound AND outbound rules\nRules: Allow AND Deny rules\nDefault: Allow all traffic\nProcessed: In order by rule number"
},
{
id: "sec-024",
domain: "security",
question: "Security Groups vs NACLs?",
answer: "Security Groups:\n- Instance level\n- Stateful\n- Allow only\n- All rules evaluated\n\nNACLs:\n- Subnet level\n- Stateless\n- Allow and Deny\n- Rules processed in order"
},
{
id: "sec-025",
domain: "security",
question: "What is AWS Artifact?",
answer: "Portal providing access to AWS compliance reports and agreements.\n\nReports: SOC, PCI, ISO certifications\nAgreements: BAA (HIPAA), GDPR DPA\n\nNo cost to access."
},
{
id: "sec-026",
domain: "security",
question: "What compliance standards does AWS support?",
answer: "SOC 1, 2, 3 - Auditing standards\nPCI-DSS - Payment card data\nHIPAA - Healthcare data (requires BAA)\nFedRAMP - US government\nGDPR - EU data protection\nISO 27001 - Security management"
},
{
id: "sec-027",
domain: "security",
question: "What is AWS Config?",
answer: "Service that tracks AWS resource configurations and changes over time.\n\nFeatures:\n- Configuration history\n- Compliance rules\n- Remediation actions\n- Resource relationships"
},
{
id: "sec-028",
domain: "security",
question: "What is AWS CloudTrail?",
answer: "Service that logs all API calls made in your AWS account.\n\nTracks: Who, what, when, where\nLogs: Management events, data events\nRetention: 90 days (free), longer with S3"
},
{
id: "sec-029",
domain: "security",
question: "What is encryption at rest vs in transit?",
answer: "At Rest: Data stored on disk is encrypted (S3, EBS, RDS)\n\nIn Transit: Data moving over network is encrypted (HTTPS/TLS, VPN)\n\nAWS services support both types."
},
{
id: "sec-030",
domain: "security",
question: "What is AWS Certificate Manager (ACM)?",
answer: "Service to provision, manage, and deploy SSL/TLS certificates.\n\nFeatures:\n- Free public certificates\n- Automatic renewal\n- Integration with CloudFront, ALB, API Gateway"
},
{
id: "sec-031",
domain: "security",
question: "What is the AWS root account?",
answer: "The account created when you first set up AWS. Has unrestricted access.\n\nBest practices:\n- Never use for daily tasks\n- Enable MFA immediately\n- Don't create access keys\n- Use IAM users instead"
},
{
id: "sec-032",