350-701 · Question #821
Refer to the exhibit. A security engineer must create a new VIP user group on a Cisco Secure Endpoint device. To automate the procedure, a Python script is used. Which code snippet completes the…
The correct answer is C. request = requests.post(url, auth=(amp_client_id, amp_api_key), data=data). Option C is correct because creating a new user group requires a POST request (to submit new data to the server), and it must use the correct variable names 'amp_client_id' and 'amp_api_key' as defined in the exhibit's script context, along with 'data=data' to pass the payload…
Question
Refer to the exhibit. A security engineer must create a new VIP user group on a Cisco Secure Endpoint device. To automate the procedure, a Python script is used. Which code snippet completes the script? A. B. C. D.
Exhibit
Options
- Arequest = requests.post(url, auth=(client_id, api_key), data=data)
- Brequest = requests.get(url, auth=(amp_client_id, amp_api_key), data=data)
- Crequest = requests.post(url, auth=(amp_client_id, amp_api_key), data=data)
- Drequest = requests.post(url, auth=(amp_client_id, amp_api_key), data=VIP)
How the community answered
(26 responses)- A8% (2)
- B15% (4)
- C73% (19)
- D4% (1)
Explanation
Option C is correct because creating a new user group requires a POST request (to submit new data to the server), and it must use the correct variable names 'amp_client_id' and 'amp_api_key' as defined in the exhibit's script context, along with 'data=data' to pass the payload. POST is the appropriate HTTP method for creating new resources in a REST API, while the authentication credentials must match the variable names previously declared in the script.
Topics
Community Discussion
No community discussion yet for this question.
