CiscoCisco
200-901 · Question #170
200-901 Question #170: Real Exam Question with Answer & Explanation
The correct answer is B: Set API_PASSWORD=Cisco123!. This question asks for a Bash command to set an API_PASSWORD for authorization of a REST API call.
Understanding and Using APIs
Question
Refer to the exhibit. Assuming the password is `'Cloud123'', which Bash command will allow a successful authorization of the REST API call in the code?
Options
- AExport API_PASSWORD=Cisco123!
- BSet API_PASSWORD=Cisco123!
- Ccp_PASSWORD=Cisco123!
- Dkdir API_PASSWORD=Cisco123!
Explanation
This question asks for a Bash command to set an API_PASSWORD for authorization of a REST API call.
Common mistakes.
- A.
Export API_PASSWORD=Cisco123!uses theexportcommand, which is standard Bash for making environment variables available to child processes, but the password provided in the option (Cisco123!) does not match theCloud123specified in the question stem. - C.
cp_PASSWORD=Cisco123!is not a valid Bash command for variable assignment;cp_is not a standard command prefix or keyword. - D.
kdir API_PASSWORD=Cisco123!is not a valid Bash command;kdiris not a recognized command for setting variables or any related function.
Concept tested. Environment variable assignment for API authorization
Topics
#API Authentication#Environment Variables#Shell Commands#REST API
Community Discussion
No community discussion yet for this question.