[Modify/Add] Improved practice exam layout and turned it into an interactive test experience.

This commit is contained in:
Kanani Nirav
2025-01-09 10:45:44 +09:00
parent 428aa3dafe
commit bb0244aad7
26 changed files with 252 additions and 209 deletions

40
_layouts/exam.html Normal file
View File

@@ -0,0 +1,40 @@
---
layout: default
---
<link href="{{ site.baseurl }}/assets/css/exam.css" rel="stylesheet">
<p>Select the correct answers for each question, including multiple-choice options when applicable, and click <b>Submit</b> to view your results. The quiz calculates your score and percentage, highlighting any incorrect questions to help you identify areas for improvement.</p>
<p>Click on the <b>Answer</b> button for the correct answer and its explanation.</p>
<p>If this practice exam has been helpful to you please share it with others and react to this below.</p>
<hr>
{{content}}
<button type="button" onclick="submitQuiz()">Submit</button>
<div id="result" style="display: none;">
<h2>Your Score: <span id="score"></span></h2>
<p class="percentage">Percentage: <span id="percentage"></span>%</p>
</div>
<p>Please feel free to comment below if any information is inaccurate or if any answers need correction.</p>
<a href="/practice-exam/exams.html"><img align="center" src="../images/list.png" height="30" width="30">Exam List</a>
<hr>
<p> <strong>You Can Purchase Sturdy PDF :</strong> &nbsp; &nbsp;</p>
<p><strong><a href="https://buymeacoffee.com/kananinirav/e/151079" target="blank">AWS Cloud Practitioner Study Notes - CLF-C02 (PDF)</a></strong> </p>
<p><strong><a href="https://buymeacoffee.com/kananinirav/e/151079" target="blank">AWS Cloud Practitioner Practice Exams - CLF-C02 (PDF)</a></strong> </p>
<h3>If you find the content of this website interesting and helpful, use the “Buy me a Coffee” link below to buy me a coffee</h3>
<p><a href="https://www.buymeacoffee.com/kananinirav" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a></p>
<p><img src="https://media.giphy.com/media/gTURHJs4e2Ies/giphy.gif" alt="gif"></p>
<script src="{{ site.baseurl }}/assets/js/exam.js"></script>

65
assets/css/exam.css Normal file
View File

@@ -0,0 +1,65 @@
ol {
padding-left: 20px;
}
li {
margin-bottom: 20px;
}
ul {
list-style-type: none;
padding: 0;
}
ul li {
margin: 5px 0;
}
/* Checkbox Styling */
input[type="checkbox"] {
accent-color: #4caf50; /* Green color for checkbox */
margin-right: 10px;
transform: scale(1.2); /* Slightly larger checkboxes */
}
/* Button Styling */
button {
background-color: #4caf50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
display: block;
margin: 20px auto;
transition: background-color 0.3s;
}
button:hover {
background-color: #45a049;
}
/* Result Display Styling */
#result {
text-align: center;
font-size: 18px;
margin-top: 20px;
}
#result h2 {
font-size: 24px;
color: #4caf50;
}
#result .percentage {
font-size: 20px;
color: #ff9800;
}
.incorrect {
background-color: #f8d7da;
border: 1px solid #f5c2c7;
color: #842029;
}

55
assets/js/exam.js Normal file
View File

@@ -0,0 +1,55 @@
document.addEventListener('DOMContentLoaded', () => {
// Dynamically add checkboxes to the list items
document.querySelectorAll('ol > li').forEach((question, index) => {
const options = question.querySelectorAll('ul li');
options.forEach(option => {
const optionText = option.textContent.trim();
if (/^[A-Z]\.\s/.test(optionText)) {
const checkbox = document.createElement('input');
checkbox.type = 'checkbox';
checkbox.name = `question-${index}`; // Unique identifier for each question
checkbox.value = optionText.charAt(0); // Use the letter as the value
option.prepend(checkbox);
}
});
});
});
function submitQuiz() {
let score = 0;
let totalQuestions = 0;
document.querySelectorAll('ol > li').forEach((question, index) => {
const correctAnswerText = question.querySelector('details p').textContent.match(/Correct answer:\s([A-Z, ]+)/i);
if (!correctAnswerText) return; // Skip if no correct answers are found
const correctAnswers = correctAnswerText[1]
.replace(/\s+/g, '') // Remove spaces
.split(/,|(?=[A-Z])/); // Split on commas or consecutive uppercase letters
const selectedOptions = Array.from(
document.querySelectorAll(`input[name="question-${index}"]:checked`)
).map(input => input.value);
if (correctAnswers.length > 0) {
totalQuestions++;
}
const isCorrect =
selectedOptions.length === correctAnswers.length &&
correctAnswers.every(answer => selectedOptions.includes(answer));
if (isCorrect) {
score++;
question.classList.remove('incorrect'); // Remove incorrect class if correct
} else {
question.classList.add('incorrect'); // Highlight incorrect questions
}
});
const percentage = totalQuestions > 0 ? ((score / totalQuestions) * 100).toFixed(2) : 0;
document.getElementById('score').innerText = `${score} / ${totalQuestions}`;
document.getElementById('percentage').innerText = percentage;
document.getElementById('result').style.display = 'block';
}

View File

@@ -1,10 +1,8 @@
# Practice Exam 1
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 1
1. AWS allows users to manage their resources using a web based user interface. What is the name of this interface? 1. AWS allows users to manage their resources using a web based user interface. What is the name of this interface?
- A. AWS CLI. - A. AWS CLI.
@@ -517,7 +515,3 @@ If this practice exam has been helpful to you please share it with others and re
<details markdown=1><summary markdown='span'>Answer</summary> <details markdown=1><summary markdown='span'>Answer</summary>
Correct answer: D Correct answer: D
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 10
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 10
1. Which of the following can an AWS customer use to launch a new Amazon Relational Database Service (Amazon RDS) cluster? (Select TWO) 1. Which of the following can an AWS customer use to launch a new Amazon Relational Database Service (Amazon RDS) cluster? (Select TWO)
- A. AWS Concierge. - A. AWS Concierge.
@@ -517,6 +515,3 @@ If this practice exam has been helpful to you please share it with others and re
Correct answer: B Correct answer: B
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 11
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 11
1. How can a company reduce its Total Cost of Ownership (TCO) using AWS? 1. How can a company reduce its Total Cost of Ownership (TCO) using AWS?
- A. By minimizing large capital expenditures. - A. By minimizing large capital expenditures.
@@ -518,6 +516,3 @@ If this practice exam has been helpful to you please share it with others and re
Correct answer: B, D Correct answer: B, D
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 12
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 12
1. Which of the following components of the AWS Global Infrastructure consists of one or more discrete data centers interconnected through low latency links? 1. Which of the following components of the AWS Global Infrastructure consists of one or more discrete data centers interconnected through low latency links?
- A. Availability Zone - A. Availability Zone
@@ -438,6 +436,3 @@ If this practice exam has been helpful to you please share it with others and re
Correct answer: D Correct answer: D
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 13
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 13
1. The use of what AWS feature or service allows companies to track and categorize spending on a detailed level? 1. The use of what AWS feature or service allows companies to track and categorize spending on a detailed level?
- A. Cost allocation tags - A. Cost allocation tags
@@ -686,6 +684,3 @@ If this practice exam has been helpful to you please share it with others and re
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 14
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 14
1. Which storage service can be used as a low-cost option for hosting static websites? 1. Which storage service can be used as a low-cost option for hosting static websites?
- A. Amazon Glacier - A. Amazon Glacier
@@ -847,6 +845,3 @@ If this practice exam has been helpful to you please share it with others and re
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 15
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 15
1. How do customers benefit from Amazon's massive economies of scale? 1. How do customers benefit from Amazon's massive economies of scale?
- A. Periodic price reductions as the result of Amazon's operational efficiencies - A. Periodic price reductions as the result of Amazon's operational efficiencies
@@ -886,6 +884,3 @@ If this practice exam has been helpful to you please share it with others and re
Reference: <https://cloudranger.com/best-practices-aws-disaster-recovery-planning/> Reference: <https://cloudranger.com/best-practices-aws-disaster-recovery-planning/>
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 16
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 16
1. What will help a company perform a cost benefit analysis of migrating to the AWS Cloud? 1. What will help a company perform a cost benefit analysis of migrating to the AWS Cloud?
- A. Cost Explorer - A. Cost Explorer
@@ -886,6 +884,3 @@ If this practice exam has been helpful to you please share it with others and re
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 17
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 17
1. What time-savings advantage is offered with the use of Amazon Rekognition? 1. What time-savings advantage is offered with the use of Amazon Rekognition?
- A. Amazon Rekognition provides automatic watermarking of images. - A. Amazon Rekognition provides automatic watermarking of images.
@@ -824,6 +822,3 @@ If this practice exam has been helpful to you please share it with others and re
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 18
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 18
1. Under the AWS shared responsibility model, which of the following is an example of security in the AWS Cloud? 1. Under the AWS shared responsibility model, which of the following is an example of security in the AWS Cloud?
- A. Managing edge locations - A. Managing edge locations
@@ -781,6 +779,3 @@ If this practice exam has been helpful to you please share it with others and re
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 19
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 19
1. Which AWS offering enables customers to find, buy, and immediately start using software solutions in their AWS environment? 1. Which AWS offering enables customers to find, buy, and immediately start using software solutions in their AWS environment?
- A. AWS Config - A. AWS Config
@@ -752,6 +750,3 @@ If this practice exam has been helpful to you please share it with others and re
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 2
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 2
1. A global company with a large number of AWS accounts is seeking a way in which they can centrally manage billing and security policies across all accounts. Which AWS Service will assist them in meeting these goals? 1. A global company with a large number of AWS accounts is seeking a way in which they can centrally manage billing and security policies across all accounts. Which AWS Service will assist them in meeting these goals?
- A. AWS Organizations. - A. AWS Organizations.
@@ -517,7 +515,3 @@ If this practice exam has been helpful to you please share it with others and re
<details markdown=1><summary markdown='span'>Answer</summary> <details markdown=1><summary markdown='span'>Answer</summary>
Correct answer: B Correct answer: B
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 20
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 20
1. Which AWS service helps identify malicious or unauthorized activities in AWS accounts and workloads? 1. Which AWS service helps identify malicious or unauthorized activities in AWS accounts and workloads?
- A. Amazon Rekognition - A. Amazon Rekognition
@@ -728,6 +726,3 @@ If this practice exam has been helpful to you please share it with others and re
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 21
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 21
1. A user needs to quickly deploy a non-relational database on AWS. The user does not want to manage the underlying hardware or the database software. <br/> Which AWS service can be used to accomplish this? 1. A user needs to quickly deploy a non-relational database on AWS. The user does not want to manage the underlying hardware or the database software. <br/> Which AWS service can be used to accomplish this?
- A. Amazon RDS - A. Amazon RDS
@@ -693,6 +691,3 @@ If this practice exam has been helpful to you please share it with others and re
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 22
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 22
1. A company operating in the AWS Cloud requires separate invoices for specific environments, such as development, testing, and production. <br/> How can this be achieved? 1. A company operating in the AWS Cloud requires separate invoices for specific environments, such as development, testing, and production. <br/> How can this be achieved?
- A. Use multiple AWS accounts - A. Use multiple AWS accounts
@@ -658,6 +656,3 @@ If this practice exam has been helpful to you please share it with others and re
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 23
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 23
1. A user is planning to migrate an application workload to the AWS Cloud. <br/> Which control becomes the responsibility of AWS once the migration is complete? 1. A user is planning to migrate an application workload to the AWS Cloud. <br/> Which control becomes the responsibility of AWS once the migration is complete?
- A. Patching the guest operating system - A. Patching the guest operating system
@@ -707,6 +705,3 @@ If this practice exam has been helpful to you please share it with others and re
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 3
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 3
1. Where can you store files in AWS? (Choose TWO) 1. Where can you store files in AWS? (Choose TWO)
- A. Amazon EFS. - A. Amazon EFS.
@@ -520,6 +518,3 @@ If this practice exam has been helpful to you please share it with others and re
Correct answer: B Correct answer: B
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 4
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 4
1. A developer needs to set up an SSL security certificate for a client's eCommerce website in order to use the HTTPS protocol. Which of the following AWS services can be used to deploy the required SSL server certificates? (Choose TWO) 1. A developer needs to set up an SSL security certificate for a client's eCommerce website in order to use the HTTPS protocol. Which of the following AWS services can be used to deploy the required SSL server certificates? (Choose TWO)
- A. Amazon Route 53. - A. Amazon Route 53.
@@ -524,6 +522,3 @@ If this practice exam has been helpful to you please share it with others and re
Correct answer: B Correct answer: B
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 5
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 5
1. A company is using EC2 Instances to run their e-commerce site on the AWS platform. If the site becomes unavailable, the company will lose a significant amount of money for each minute the site is unavailable. Which design principle should the company use to minimize the risk of an outage? 1. A company is using EC2 Instances to run their e-commerce site on the AWS platform. If the site becomes unavailable, the company will lose a significant amount of money for each minute the site is unavailable. Which design principle should the company use to minimize the risk of an outage?
- A. Least Privilege. - A. Least Privilege.
@@ -522,6 +520,3 @@ If this practice exam has been helpful to you please share it with others and re
Correct answer: B, C Correct answer: B, C
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 6
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 6
1. Which of the following is true regarding the AWS availability zones and edge locations? 1. Which of the following is true regarding the AWS availability zones and edge locations?
- A. Edge locations are located in separate Availability Zones worldwide to serve global customers. - A. Edge locations are located in separate Availability Zones worldwide to serve global customers.
@@ -518,6 +516,3 @@ If this practice exam has been helpful to you please share it with others and re
Correct answer: D Correct answer: D
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 7
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 7
1. Which of the following can help secure your sensitive data in Amazon S3? (Choose TWO) 1. Which of the following can help secure your sensitive data in Amazon S3? (Choose TWO)
- A. Delete the encryption keys once your data is encrypted. - A. Delete the encryption keys once your data is encrypted.
@@ -520,6 +518,3 @@ If this practice exam has been helpful to you please share it with others and re
Correct answer: C Correct answer: C
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 8
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 8
1. What is the main benefit of attaching security groups to an Amazon RDS instance? 1. What is the main benefit of attaching security groups to an Amazon RDS instance?
- A. Manages user access and encryption keys. - A. Manages user access and encryption keys.
@@ -521,6 +519,3 @@ If this practice exam has been helpful to you please share it with others and re
Correct answer: C, D Correct answer: C, D
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)

View File

@@ -1,10 +1,8 @@
# Practice Exam 9
Click on the **Answer** button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
--- ---
layout: exam
---
# Practice Exam 9
1. An administrator needs to rapidly deploy a popular IT solution and start using it immediately. Where can the administrator find assistance? 1. An administrator needs to rapidly deploy a popular IT solution and start using it immediately. Where can the administrator find assistance?
- A. AWS Well-Architected Framework documentation. - A. AWS Well-Architected Framework documentation.
@@ -521,6 +519,3 @@ If this practice exam has been helpful to you please share it with others and re
Correct answer: B Correct answer: B
</details> </details>
Please feel free to comment below if any information is inaccurate or if any answers need correction.
[<img align="center" src="../images/list.png" height="30" width="30"/> Exam List](../practice-exam/exams.md)