Question 101
Refer to the exhibit. A developer just finished testing a Python script and wants to save the list of packages and versions installed on the current machine. The developer must make sure that it will not cause any issues if tested on another device due to different library versions. Which line of code needs to be placed on the snippet where the code is missing?
A. pip freeze 2> requirements.txt
B. pip freeze > requirements.txt
C. pip freeze => requirements.txt
D. pip freeze | requirements.txt
Question 102
A developer pushes an application to production. The application receives a webhook over HTTPS without a secret. The webhook information contains credentials to service in cleartext. When the information is received, it is stored in the database with an SHA-256 hash. Credentials to the database are accessed at runtime through the use of a vault service. While troubleshooting, the developer sets the logging to debug to view the message from the webhook. What is the security issue in this scenario?
A. Database credentials should be accessed by using environment variables defined at runtime.
B. During the transport of webhook messages, the credentials could be unencrypted and leaked.
C. During logging, debugging should be disabled for the webhook message.
D. Hashing the credentials in the database is not secure enough; the credentials should be encrypted.
Question 103
Refer to the exhibit. A developer cannot reach the web application behind an NGINX load balancer. The developer sends a request to an application FQDN with cURL but gets an HTTP 502 response. Which action solves the problem?
A. Fix errors in the server configuration, which is behind the load balancer.
B. Bring up the load balancer to the active state.
C. Fix errors in the cURL request sent by the client.
D. Change the default gateway on the load balancer to an active one.
Question 104
Refer to the exhibit. A network engineer wants use API update information about device interfaces. The network devices are deployed in a Cisco DevNet Sandbox and have running interfaces. Which value is suitable as the headers variable?
A. {'Content-Type': 'application/yang.data+yaml', 'Accept': 'application/yang.data+yaml'}
B. {'Content-Type': 'application/yang.data+json', 'Accept': 'application/yang.data+json'}
C. {'Content-Type': 'application/yang.data+utf8l', 'Accept': 'application/yang.data+utf8'}
D. {'Content-Type': 'application/restconf.data+txt', 'Accept': 'application/restconf.data+txt'}
Question 105
Which action do webhooks enable an application to perform?
A. Increase the request rate limit.
B. Populate the application with restricted data.
C. Receive real-time data.
D. Implement a push model.
Question 106
Refer to the exhibit. A developer can access the TLS REST API on server A, but cannot access the API on server B. The developer can ping server B. When the developer performs a packet capture on the TLS REST API port on server B, the capture shows that the packet arrived and the server responded. What causes the issue?
A. Port 80 is blocked on the outgoing interface of firewall B.
B. Port 443 is blocked on the outgoing interface of firewall A.
C. Port 443 is blocked on the incoming interface of firewall B.
D. Port 80 is blocked on the incoming interface of firewall A.
Question 107
DRAG DROP - Refer to the exhibit. Drag and drop the code from the bottom onto the box where the code is missing to complete the function that adds a new global access rule that denies traffic using the Cisco ASA REST API. Not all options are used. Select and Place:
Question 108
DRAG DROP - Drag and drop the API characteristics from the left onto the categories on the right. Select and Place:
Question 109
How are operations on REST APIs performed as compared to RPC APIs?
A. In a REST API, operations are performed on an object (node) that is identified by a URL, but RPC APIs are operation-oriented.
B. In a REST API, operations are performed on an external resource that is defined on the API, but the RCP APIs are resource-oriented.
C. In a REST API, operations are performed on a platform that is identified by the URL, but RPC APIs are platform-oriented.
D. In a REST API, operations are performed on an internal resource that is defined on the API, but RPC APIs are resource-oriented.
Question 110
Which HTTP error code series relates to redirection?
A. 400
B. 500
C. 200
D. 300