Complete the code to identify the initial step in root cause analysis.
def root_cause_analysis(issue): # Step 1: [1] the problem clearly problem_statement = issue return problem_statement
The first step in root cause analysis is to define the problem clearly. This helps focus the investigation.
Complete the code to perform the next step: gathering information.
def root_cause_analysis(issue): problem = issue # Step 2: [1] data related to the problem data = collect_data(problem) return data
After defining the problem, the next step is to collect data related to it. This helps find clues about the cause.
Fix the error in the code to analyze causes correctly.
def analyze_causes(data): # Identify possible causes causes = [] for item in data: if item == [1]: causes.append(item) return causes
The code checks if an item is None to identify missing or problematic data points, which can be root causes.
Fill both blanks to filter and report root causes.
def report_root_causes(causes): # Filter causes that are [1] and report them filtered = [c for c in causes if c [2] 'critical'] return filtered
We filter causes that are exactly critical by checking if c == 'critical'.
Fill all three blanks to create a summary report dictionary.
def summary_report(causes): report = [1] # create dictionary for cause in causes: report[cause.[2]()] = cause.[3]() return report
We create an empty dictionary with {}. Then use get_name() as keys and get_severity() as values.