Free Cisco 300-435 Actual Exam Questions - Question 8 Discussion
Drag and drop the code snippers from the bottom onto the blanks in the code to subscribe to a Cisco
DNA event by using the intent API . Not all options used.

I think option B fits best for the event type since it looks like a proper string literal, which fits the typical subscribe method pattern. Also, the snippet that accepts one parameter inside the callback seems like the right choice because usually these listeners handle one event object, not multiple parameters. The others either don’t have quotes or look like unrelated code blocks, so they can be ruled out. The question is definitely about subscribing to a single event with a callback handling the event object.
The snippet with the subscribe call should include the event type string inside quotes, probably something like "DeviceAdded". Also, the callback function needs to accept an event parameter to handle the event data properly.
This one’s tricky. I’d skip any snippets that look like they don’t interact with the intent API directly. For example, if something’s just importing or unrelated to event subscription, it's probably a trap. Focus on code that sets up the subscription and handles the callback. That usually means looking for methods like subscribe or adding listeners specifically for Cisco DNA events. It’s about plugging in the right function where they expect the event connection to happen, so pick snippets that clearly show subscription logic and leave out unrelated bits.