Spaces:
Running

File size: 18,425 Bytes
34b0f72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AWS Certified Cloud Practitioner Practice Test | CertifyHub</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#4F46E5',
                        secondary: '#10B981',
                        dark: '#1E293B',
                        light: '#F8FAFC'
                    }
                }
            }
        }
    </script>
    <style>
        .answer-option:hover {
            background-color: #F3F4F6;
        }
        .answer-selected {
            background-color: #E0E7FF;
            border-color: #4F46E5;
        }
        .answer-correct {
            background-color: #D1FAE5;
            border-color: #10B981;
        }
        .answer-incorrect {
            background-color: #FEE2E2;
            border-color: #EF4444;
        }
        .progress-bar {
            transition: width 0.3s ease;
        }
    </style>
</head>
<body class="bg-gray-50 font-sans antialiased">
    <!-- Navigation -->
    <nav class="bg-white shadow-sm">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between h-16">
                <div class="flex items-center">
                    <div class="flex-shrink-0 flex items-center">
                        <i data-feather="award" class="text-primary h-8 w-8"></i>
                        <span class="ml-2 text-xl font-bold text-dark">CertifyHub</span>
                    </div>
                    <div class="hidden sm:ml-6 sm:flex sm:space-x-8">
                        <a href="index.html" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Home</a>
                        <a href="certifications.html" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Certifications</a>
                        <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Study Tools</a>
                        <a href="#" class="border-primary text-dark inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Practice Tests</a>
                    </div>
                </div>
                <div class="hidden sm:ml-6 sm:flex sm:items-center">
                    <button class="bg-primary hover:bg-primary-700 text-white px-4 py-2 rounded-md text-sm font-medium flex items-center">
                        <i data-feather="user" class="mr-2 w-4 h-4"></i> Sign In
                    </button>
                </div>
                <div class="-mr-2 flex items-center sm:hidden">
                    <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary">
                        <i data-feather="menu"></i>
                    </button>
                </div>
            </div>
        </div>
    </nav>

    <!-- Test Header -->
    <div class="bg-white shadow">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
            <div class="flex flex-col md:flex-row md:items-center md:justify-between">
                <div>
                    <h1 class="text-xl font-bold text-dark">AWS Certified Cloud Practitioner Practice Test</h1>
                    <p class="text-sm text-gray-600 mt-1">Exam Domain: Cloud Concepts</p>
                </div>
                <div class="mt-4 md:mt-0 flex items-center">
                    <div class="flex items-center text-sm text-gray-600">
                        <i data-feather="clock" class="w-4 h-4 mr-1"></i> 30 min remaining
                    </div>
                    <button class="ml-4 px-3 py-1 border border-red-300 rounded-md text-sm font-medium text-red-600 hover:bg-red-50 flex items-center">
                        <i data-feather="x" class="w-4 h-4 mr-1"></i> Exit
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!-- Progress Bar -->
    <div class="bg-gray-200 h-2">
        <div class="bg-primary h-2 progress-bar" style="width: 25%"></div>
    </div>

    <!-- Test Content -->
    <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
        <div class="bg-white rounded-lg shadow-md overflow-hidden">
            <div class="p-6 sm:p-8">
                <!-- Question Info -->
                <div class="flex justify-between items-center mb-6">
                    <span class="text-sm font-medium text-primary">Question 4 of 20</span>
                    <span class="text-sm font-medium text-gray-500">4 points</span>
                </div>

                <!-- Question -->
                <div class="mb-8">
                    <h2 class="text-lg font-medium text-dark">Which of the following is a benefit of using cloud computing?</h2>
                </div>

                <!-- Answer Options -->
                <div class="space-y-4">
                    <div class="answer-option p-4 border rounded-lg cursor-pointer answer-selected">
                        <div class="flex items-start">
                            <div class="flex items-center h-5">
                                <input id="option-a" name="answer" type="radio" class="focus:ring-primary h-4 w-4 text-primary border-gray-300" checked>
                            </div>
                            <div class="ml-3 text-sm">
                                <label for="option-a" class="font-medium text-dark">A. Reduced capital expenditures</label>
                                <p class="text-gray-600 mt-1">Cloud computing eliminates the need for upfront hardware investments.</p>
                            </div>
                        </div>
                    </div>

                    <div class="answer-option p-4 border rounded-lg cursor-pointer">
                        <div class="flex items-start">
                            <div class="flex items-center h-5">
                                <input id="option-b" name="answer" type="radio" class="focus:ring-primary h-4 w-4 text-primary border-gray-300">
                            </div>
                            <div class="ml-3 text-sm">
                                <label for="option-b" class="font-medium text-dark">B. Guaranteed 100% uptime</label>
                                <p class="text-gray-600 mt-1">Cloud providers ensure no downtime for any services.</p>
                            </div>
                        </div>
                    </div>

                    <div class="answer-option p-4 border rounded-lg cursor-pointer">
                        <div class="flex items-start">
                            <div class="flex items-center h-5">
                                <input id="option-c" name="answer" type="radio" class="focus:ring-primary h-4 w-4 text-primary border-gray-300">
                            </div>
                            <div class="ml-3 text-sm">
                                <label for="option-c" class="font-medium text-dark">C. Complete data security</label>
                                <p class="text-gray-600 mt-1">All security responsibilities are handled by the cloud provider.</p>
                            </div>
                        </div>
                    </div>

                    <div class="answer-option p-4 border rounded-lg cursor-pointer">
                        <div class="flex items-start">
                            <div class="flex items-center h-5">
                                <input id="option-d" name="answer" type="radio" class="focus:ring-primary h-4 w-4 text-primary border-gray-300">
                            </div>
                            <div class="ml-3 text-sm">
                                <label for="option-d" class="font-medium text-dark">D. Unlimited storage capacity</label>
                                <p class="text-gray-600 mt-1">Cloud services provide infinite storage with no costs.</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Explanation (shown after answer submission) -->
                <div class="mt-8 p-4 bg-blue-50 rounded-lg hidden" id="explanation">
                    <h3 class="text-sm font-medium text-blue-800">Explanation</h3>
                    <p class="mt-2 text-sm text-blue-700">
                        The correct answer is A. Reduced capital expenditures. Cloud computing follows a pay-as-you-go model which eliminates the need for large upfront investments in hardware. While cloud providers offer high availability, they don't guarantee 100% uptime (B). Security is a shared responsibility (C), and storage is not unlimited nor free (D).
                    </p>
                </div>

                <!-- Navigation Buttons -->
                <div class="mt-8 flex justify-between">
                    <button class="inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
                        <i data-feather="arrow-left" class="mr-2 w-4 h-4"></i> Previous
                    </button>
                    <button id="submit-btn" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary hover:bg-primary-700">
                        Submit Answer
                    </button>
                    <button id="next-btn" class="hidden inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary hover:bg-primary-700">
                        Next Question <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!-- Sidebar for Question Navigation -->
    <div class="hidden lg:block fixed right-0 top-0 h-full w-64 bg-white shadow-lg overflow-y-auto pt-16">
        <div class="p-4">
            <h3 class="text-lg font-medium text-dark mb-4">Questions</h3>
            <div class="grid grid-cols-4 gap-2">
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-primary text-white">1</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">2</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">3</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-primary text-white font-bold border-2 border-primary">4</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">5</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">6</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">7</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">8</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">9</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">10</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">11</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">12</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">13</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">14</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">15</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">16</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">17</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">18</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">19</a>
                <a href="#" class="flex items-center justify-center h-10 w-10 rounded-full bg-gray-100 text-dark">20</a>
            </div>
            <button class="mt-6 w-full flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-secondary hover:bg-secondary-700">
                <i data-feather="check-circle" class="mr-2 w-4 h-4"></i> Submit Test
            </button>
        </div>
    </div>

    <!-- Footer -->
    <footer class="bg-dark text-white">
        <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
            <div class="grid grid-cols-2 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase">Certifications</h3>
                    <ul class="mt-4 space-y-4">
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">IT & Cloud</a></li>
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Healthcare</a></li>
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Finance</a></li>
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Project Management</a></li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase">Study Tools</h3>
                    <ul class="mt-4 space-y-4">
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Practice Tests</a></li>
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Study Guides</a></li>
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Flashcards</a></li>
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Exam Simulators</a></li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase">Company</h3>
                    <ul class="mt-4 space-y-4">
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">About</a></li>
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Blog</a></li>
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Careers</a></li>
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Contact</a></li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase">Legal</h3>
                    <ul class="mt-4 space-y-4">
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Privacy</a></li>
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Terms</a></li>
                        <li><a href="#" class="text-base text-gray-400 hover:text-white">Cookie Policy</a></li>
                    </ul>
                </div>
            </div>
            <div class="mt-12 border-t border-gray-700 pt-8 flex flex-col md:flex-row justify-between">
                <p class="text-base text-gray-400">
                    &copy; 2023 CertifyHub. All rights reserved.
                </p>
                <div class="mt-4 md:mt-0 flex space-x-6">
                    <a href="#" class="text-gray-400 hover:text-white">
                        <i data-feather="twitter" class="h-6 w-6"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white">
                        <i data-feather="facebook" class="h-6 w-6"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white">
                        <i data-feather="instagram" class="h-6 w-6"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white">
                        <i data-feather="linkedin" class="h-6 w-6"></i>
                    </a>
                </div>
            </div>
        </div>
    </footer>

    <script>
        feather.replace();
        
        // Simple interaction for the practice test
        document.getElementById('submit-btn').addEventListener('click', function() {
            // Show explanation
            document.getElementById('explanation').classList.remove('hidden');
            
            // Highlight correct answer (A in this case)
            const options = document.querySelectorAll('.answer-option');
            options.forEach(option => {
                option.classList.remove('answer-selected');
                if (option.querySelector('label').textContent.includes('A.')) {
                    option.classList.add('answer-correct');
                } else {
                    option.classList.add('answer-incorrect');
                }
            });
            
            // Change button to next question
            this.classList.add('hidden');
            document.getElementById('next-btn').classList.remove('hidden');
        });
    </script>
</body>
</html>