Write a SQL query to identify the top five most frequently failing hardware components from a telemetry log table, grouped by region.
Use the telemetry_log table and consider only rows whose status indicates a failure. Exclude records with missing regions or component names.
region, component_name, failure_count, and component_rank.| Column | Type | Description |
|---|---|---|
| log_idPK | INT | Unique telemetry log identifier |
| region | VARCHAR(50) | Regional location associated with the event |
| component_name | VARCHAR(100) | Hardware component associated with the event |
| event_status | VARCHAR(20) | Telemetry event status, such as FAILURE, SUCCESS, or WARNING |
| logged_at | TIMESTAMP | Timestamp when the telemetry event was recorded |