Complete the code to create a basic dashboard header for agent monitoring.
<header>
<h1>[1]</h1>
</header>The header should clearly state the purpose of the dashboard, so "Agent Monitoring Dashboard" is the best choice.
Complete the code to add a navigation bar with a link to the agent list.
<nav>
<ul>
<li><a href="[1]">Agents</a></li>
</ul>
</nav>The link should point to the agents list page, so '/agents' is correct.
Fix the error in the code to correctly display the agent status with color coding.
<span class="status [1]">Active</span>
The class should match the status text 'Active' to apply the correct color styling.
Fill both blanks to create a filter function that returns agents with status 'online'.
def filter_agents(agents): return [agent for agent in agents if agent.[1] == '[2]']
The agent's status attribute should be checked for the value 'online' to filter correctly.
Fill all three blanks to create a dictionary comprehension that maps agent names to their CPU usage if usage is above 50%.
high_usage = {agent.[1]: agent.[2] for agent in agents if agent.[3] > 50}The dictionary keys are agent names, values are CPU usage, filtered for usage above 50%.
