Q: 14
Refer to the exhibit.
The goal is to write a Python script to automatically send a message to an external messaging
application when a rogue AP is detected on the network. The message should include the broadcast
SSID that is in the alert. A function called “send_to_application” is created, and this is the
declaration:
send_to_application(message)
The exhibit also shows the data that is received by the application and stored in the variable
return_val. Which Python code completes the task?

The goal is to write a Python script to automatically send a message to an external messaging
application when a rogue AP is detected on the network. The message should include the broadcast
SSID that is in the alert. A function called “send_to_application” is created, and this is the
declaration:
send_to_application(message)
The exhibit also shows the data that is received by the application and stored in the variable
return_val. Which Python code completes the task?

Options
Discussion
D . The key detail is that the requirement says the message must include the broadcast SSID found in the alert, but looking at how the data is passed in, D actually grabs both SSID and the bssids from return_val and sends them together. B looks tempting if you only read "SSID" but that's a trap since the full data is needed. Unless I'm missing some subtlety.
D imo. The key is that the alert message wants both the SSID and bssids included, not just SSID alone. Some practice sets show B as tempting but it's incomplete for this task. Pretty sure it's D unless there's a hidden requirement about the message format.
B or D, Cisco always makes these Python questions more confusing than they need to be. But seen similar on the practice set and D actually handles both SSID and bssids together. Could be wrong but I'm sticking with D.
Its D, seen something similar in the official guide and lab practice.
B. not D
Maybe D. includes both the SSID and bssids in the message, which matches what the function expects. B looks like a trap since it might ignore part of the data. Pretty sure about D unless I’m missing something in the exhibit.
Probably D, fits the format needed for the alert message with the required SSID from the return_val data.
Be respectful. No spam.