Cisco 300-735 - Automating and Programming Cisco Security Solutions Certification Exam
Question #1 (Topic: demo questions)
A network operator must generate a daily flow report and learn how to act on or manipulate returned dat a. When the operator runs the script, it returns an enormous amount of information. Which two actions enable the operator to limit returned data? (Choose two.)
Correct Answer: A, B
Explanation:
import json
import json
import requests
USER = "admin"
PASS = "C1sco12345"
TENAT_ID = "132"
BASE_URL = "https://198.18.128.136"
CREDENTIALS = {'password': PASS, 'username': USER}
session = requests.Session()
session.post(BASE_URL+"/token/v2/authenticate", data= CREDENTIALS, verify=False)
QUERY_URL=BASE_URL+"/sw-reporting/rest/v2/tenants/{0}/queries".format(TENAT_ID)
flow_data ={
"searchName": "Flows API Search on 6/29/2019",
"startDateTime": "2019-06-29T00:00:01Z",
"endDateTime": "2019-06-29T23:59:59Z"
}
session.post(QUERY_URL, json=flow_data, verify=False)
Question #2 (Topic: demo questions)
Refer to the exhibit.
import requests
URL = 'https://sma.cisco.com:6080/sma/api/v2.0/quarantine/messages/details?quarantineType=spam&device_type=esa'
HEADERS = {'Authorization': 'Basic Y2hlcGFLYWJSQSZl'}
response = requests.get(URL, headers=HEADERS)
A security engineer attempts to query the Cisco Security Management appliance to retrieve details
of a specific message. What must be added to the script to achieve the desired result?
Correct Answer: C
Explanation not available for this question.
Question #3 (Topic: demo questions)
What does the response from the API contain when this code is executed?
import requests
headers = {
'Authorization': 'Bearer ' + investigate_api_key
}
domains=["cisco.com", "google.com", "xreddfr.df"]
investigate_url= "https://investigate.api.umbrella.com/domains/categorization/"
values = str(json.dumps(domains))
response = requests.post(investigate_url, data=values, headers=headers)
Correct Answer: D
Explanation not available for this question.
Question #4 (Topic: demo questions)
Which description of synchronous calls to an API is true?
Correct Answer: B
Explanation not available for this question.