350-901 · Question #29
QUESTION 29 Drag and Drop Question: Refer to the exhibit. A system administrator has installed a Linux-based alarm system in their home that can execute a Bash shell script when an intruder is…
This question tests the ability to complete a Bash shell script that uses the Cisco Webex (formerly Spark) REST API to send an automated alert when a home alarm system detects an intruder. It requires matching correct API endpoints, field names, and HTTP content-type headers to…
Question
<item 1> to <item 5>) for this drag-and-drop task is not provided in the current context. Available options for dragging (from the Answer Area on page 5): application/xml, application/json, /rooms, name, title, userName, /memberships, personEmail, /members, /spaces.Explanation
This question tests the ability to complete a Bash shell script that uses the Cisco Webex (formerly Spark) REST API to send an automated alert when a home alarm system detects an intruder. It requires matching correct API endpoints, field names, and HTTP content-type headers to the correct placeholders in the script.
Approach. The script makes HTTP requests via curl to the Cisco Webex REST API. The correct content-type header is application/json (not application/xml) because Webex's API exclusively uses JSON payloads. To create a notification room, the endpoint is /rooms (or /spaces - Webex uses both, but /rooms is the canonical v1 endpoint). To add a recipient to that room, the endpoint is /memberships, and the recipient is identified using the personEmail field. The room's display name uses the title field in the JSON body. These five pieces - application/json, /rooms, title, /memberships, and personEmail - are the correct selections for items 1–5 respectively.
Concept tested. Integration of REST API calls (Cisco Webex API) into a Bash automation script - specifically correct HTTP Content-Type headers, Webex API endpoint paths (/rooms, /memberships), and JSON field names (title, personEmail) used to programmatically create a space and notify a user upon an alarm event.
Reference. Cisco Webex REST API documentation (https://developer.webex.com/docs/api/v1/rooms and /memberships); CompTIA CyberOps Associate / Cisco CyberOps Associate (CBROPS 200-201) - automation and scripting with REST APIs.
Topics
Community Discussion
No community discussion yet for this question.