正解:C
The Python script in the exhibit uses the Cisco AMP for Endpoints API to get information about the computers in the deployment. It imports the requests library, which allows it to make HTTP requests. It then defines three variables: client_id, api_key, and url. These are used to authenticate and access the API endpoint. The url is set to '1', which returns a list of computers in JSON format. The script then makes a GET request using the requests.get() method, passing the url and the authentication details as parameters. The response from the API is stored in the response variable, and converted to JSON using the response.json() method. The script then loops over each computer in the 'data' field of the JSON response, using a for loop. Inside the loop, it extracts the hostname of each computer using the 'hostname' key, and prints it using the print() function. Therefore, the script will pull all computer hostnames and print them, which is option C. References:
* Overview of the Cisco AMP for Endpoints API
* Secure Endpoint API - Cisco DevNet
* Implementing and Operating Cisco Security Core Technologies (SCOR) v1.0