nerdexam
Cisco

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…

Submitted by yuki_2020· Mar 30, 2026Automation and Programmability – Use Cisco APIs (Cisco Secure Endpoint / AMP API) to automate security operations using Python scripting and REST API calls

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

350-701 question #821 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)
  • A
    8% (2)
  • B
    15% (4)
  • C
    73% (19)
  • D
    4% (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

#Cisco Secure Endpoint#REST API#Python scripting#HTTP methods

Community Discussion

No community discussion yet for this question.

Full 350-701 Practice