Cisco 350-901 Practice Test - Questions Answers, Page 33
List of questions
Related questions
Refer to the exhibit. The code fetches the latest order from the purchases table for a specific user. An engineer needs to pass query parameters to the execute function to prevent an SQL injection attack.
Which code snippet must be placed in the blank in the code to meet this requirement?
What securely stores and encrypts the API keys and tokens that are used for an application deployment?
ITSM
Artifactory
GitHub
Vault
Refer to the exhibit.
A developer has created a Python script that retrieves information about the deployment of Cisco wireless access points using REST API. Which two code snippets must be added to the blank in the code to print the value of the userid key instead of printing the full JSON response? (Choose two.)
Refer to the exhibit.
A developer runs the docker service scale command to increase the number of replicas for the cisco_devnet service. The swarm cluster is using a private IP address subnet. The service has these design requirements:
It must be hosted behind a virtual IP address that is reachable from the Internet.
For security reasons, the Docker swarm cluster subnet must not be reachable from the Internet.
Which design approach is used to fulfill the requirements?
Create an overlay network by using a globally roulable subnet and enable a routing mesh within the swarm cluster.
Create a bridge network by using a globally routable subnet and enable a routing mesh within the swarm cluster.
Configure an external load balancer to route requests to the swarm service by using VPN.
Configure an external load balancer to route requests to the swarm service by using NAT.
A development team is looking for a tool to automate configurations across the infrastructure. The tool must have these characteristics:
• written in Python
• define playbooks (or intent
• stateless
• imperative
Which tool meets these requirements?
Puppet
Netmiko
Ansible
NCM
Refer to the exhibit.
A developer must review an intern's code for a script they wrote to automate backups to the storage server. The script must connect to the network device and copy the running-config to the server.
When considering maintainability, which two changes must be made to the code? (Choose two.)
Rename the class to "ArchiveManager".
The code is incorrect because the class does not have an__init__() method.
The command sent to the network device is incorrect.
Refactor the code placing the "for" loop steps inside a single nc method.
The intern must use IP addresses because DNS is unreliable.
Which data encoding format uses gRPC by default for serializing structured sets of information?
JSON
YAML
Protobuf
XML
Refer to the exhibit.
A network administrator copies SSL certificates to a Cisco NX-OS switch. An Ansible playbook is created to enable NX-API, which will use the new certificate. In the group_vars/vars.yml file, which code snippet must be used to define the properly formatted variables?
A developer in a learn of distributed authors is working on code in an isolated Git branch named 'update4a2f5464771 The developer attempts to merge the new code with a branch named ’dvcapp2a3f1564733' however the merge operation encounters a conflict error during the process.
Which Git command must the developer use to exit from the merge process and return the branch to the previous state?
git merge -exit
git merge -abort
git abort —merge
git abort -status
How does the use of release packaging allow dependencies to be effectively managed during deployments?
dependencies are staggered between multiple releases
designed to prevent any dependencies between release units
dependencies are tested after the release is deployed
removal of release units if they have issues in testing
Question