📖 Scenario: You are working as a cybersecurity trainee. Your task is to understand how digital forensics preserves evidence during an investigation. This helps ensure that the evidence remains trustworthy and can be used in court or to solve a case.
🎯 Goal: Build a simple Python dictionary that lists reasons why forensics preserves evidence. Then, add a condition to filter important reasons. Finally, create a summary list of these reasons to understand their importance.
📋 What You'll Learn
Create a dictionary called evidence_reasons with exact keys and values
Add a variable called important_threshold with the value 3
Use a dictionary comprehension to create important_reasons with reasons having values greater or equal to important_threshold
Create a list called summary containing only the keys from important_reasons
💡 Why This Matters
🌍 Real World
Digital forensics experts must carefully preserve evidence to ensure it is reliable and admissible in legal cases.
💼 Career
Understanding evidence preservation is essential for cybersecurity professionals working in incident response and forensic analysis.
Progress0 / 4 steps
1
Create the evidence reasons dictionary
Create a dictionary called evidence_reasons with these exact entries: 'Integrity': 5, 'Chain of Custody': 4, 'Authentication': 3, 'Analysis': 2, 'Presentation': 1.
Cybersecurity
Hint
Use curly braces to create a dictionary with the exact keys and values.
2
Add the important threshold variable
Add a variable called important_threshold and set it to the integer 3.
Cybersecurity
Hint
Just create a variable and assign the number 3 to it.
3
Filter important reasons using dictionary comprehension
Use a dictionary comprehension to create a new dictionary called important_reasons that includes only the items from evidence_reasons where the value is greater than or equal to important_threshold.
Cybersecurity
Hint
Use {key: value for key, value in dict.items() if condition} syntax.
4
Create a summary list of important reasons
Create a list called summary that contains only the keys from the important_reasons dictionary.
Cybersecurity
Hint
Use the keys() method and convert it to a list.
Practice
(1/5)
1. Why is it important for forensic experts to preserve evidence without altering it?
easy
A. To make the evidence look more impressive
B. To ensure the evidence remains reliable and trustworthy in court
C. To speed up the investigation process
D. To allow anyone to change the evidence if needed
Solution
Step 1: Understand the role of evidence in forensics
Evidence must be reliable to prove facts in legal cases.
Step 2: Recognize the importance of preserving evidence unchanged
Changing evidence can make it unreliable and unusable in court.
Final Answer:
To ensure the evidence remains reliable and trustworthy in court -> Option B
Quick Check:
Preserving evidence = Trustworthy proof [OK]
Hint: Evidence must stay unchanged to be trusted [OK]
Common Mistakes:
Thinking evidence can be altered to improve it
Believing speed is more important than accuracy
Assuming evidence can be changed by anyone
2. Which of the following is the correct first step when collecting digital evidence in forensics?
easy
A. Document the scene and evidence before touching anything
B. Turn off the device immediately to prevent data loss
Documenting the scene preserves context and chain of custody.
Step 2: Understand why documentation comes before handling
It prevents loss of important details and maintains evidence integrity.
Final Answer:
Document the scene and evidence before touching anything -> Option A
Quick Check:
Document first = Preserve context [OK]
Hint: Always document before touching evidence [OK]
Common Mistakes:
Turning off devices without documentation
Deleting files thinking it helps
Sharing evidence too early
3. Consider this scenario: A forensic investigator copies data from a suspect's computer using a write-blocker device. What is the main reason for using a write-blocker?
medium
A. To speed up the copying process
B. To encrypt the copied data for security
C. To prevent any changes to the original data during copying
D. To delete unnecessary files automatically
Solution
Step 1: Understand the function of a write-blocker
A write-blocker stops any write commands to the original device.
Step 2: Recognize why preventing changes is critical
It keeps the original evidence unchanged and admissible in court.
Final Answer:
To prevent any changes to the original data during copying -> Option C
Quick Check:
Write-blocker = No changes to original data [OK]
Hint: Write-blockers stop changes to original evidence [OK]
Common Mistakes:
Thinking write-blockers speed up copying
Believing they delete files
Confusing with encryption tools
4. A forensic analyst accidentally modifies a file timestamp while copying evidence. What is the best way to fix this mistake?
medium
A. Re-collect the evidence using proper write-blocking tools
B. Manually change the timestamp back to original
C. Ignore it since the file content is unchanged
D. Delete the file and use a backup copy
Solution
Step 1: Identify the problem caused by modifying evidence
Changing timestamps can question evidence integrity in court.
Step 2: Determine the correct corrective action
Re-collecting with write-blockers ensures no changes happen again.
Final Answer:
Re-collect the evidence using proper write-blocking tools -> Option A
Quick Check:
Use write-blockers to avoid evidence changes [OK]
Hint: Re-collect evidence properly if altered [OK]
Common Mistakes:
Ignoring timestamp changes
Trying to manually fix timestamps
Deleting files without proper backup
5. During a forensic investigation, why must the chain of custody be carefully documented and preserved along with the evidence?
hard
A. To make the evidence easier to delete after the case
B. To allow investigators to share evidence freely with the public
C. To speed up the investigation by skipping detailed reports
D. To prove that the evidence was handled properly and not tampered with
Solution
Step 1: Understand the purpose of chain of custody
It records who handled the evidence and when, ensuring accountability.
Step 2: Recognize why this documentation is critical
It proves evidence was not altered or tampered with during the investigation.
Final Answer:
To prove that the evidence was handled properly and not tampered with -> Option D
Quick Check:
Chain of custody = Proof of proper handling [OK]
Hint: Chain of custody proves evidence integrity [OK]
Common Mistakes:
Thinking chain of custody is for public sharing
Skipping documentation to save time
Using it to delete evidence
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.