C Certs Club
Home
Oracle SAP Microsoft Cisco CompTIA Fortinet Salesforce Nutanix Linux Foundation Amazon View All Vendors →
Login Register

Cisco 300-735 - Automating and Programming Cisco Security Solutions Certification Exam

Download Exam View Entire Exam
Page: 1 / 1
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.) 

A.
Add recordLimit. followed by an integer (key:value) to the flow_data.
B.
Add a for loop at the end of the script, and print each key value pair separately.
C.
Add flowLimit, followed by an integer (key:value) to the flow_data.
D.
Change the startDateTime and endDateTime values to include smaller time interval.
E.
Change the startDate and endDate values to include smaller date intervals.
Correct Answer: A, B
Explanation:
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?

A.
Add message ID information to the URL string as a URI.
B.
Run the script and parse through the returned data to find the desired message.
C.
Add message ID information to the URL string as a parameter.
D.
Add message ID information to the headers. 
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)

A.
error message and status code of 403
B.
newly created domains in Cisco Umbrella Investigate
C.
updated domains in Cisco Umbrella Investigate
D.
status and security details for the domains
Correct Answer: D
Explanation not available for this question.
Question #4 (Topic: demo questions)

Which description of synchronous calls to an API is true?

A.
They can be used only within single-threaded processes.
B.
They pause execution and wait for the response.
C.
They always successfully return within a fixed time.
D.
They can be used only for small requests.
Correct Answer: B
Explanation not available for this question.
Download Exam
Page: 1 / 1
Next Page