exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 67 discussion

Actual exam question from Cisco's 200-901
Question #: 67
Topic #: 1
[All 200-901 Questions]

Which method should be used to safely store the API keys?

  • A. in an environment variable unique to the system database
  • B. encrypted in a configuration file that is separate from the code
  • C. plain text in the code as a constant
  • D. encrypted in the code in a function
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Leonhrz
Highly Voted 4 years, 5 months ago
should be 'B'
upvoted 29 times
...
[Removed]
Highly Voted 3 years, 10 months ago
A https://developer.cisco.com/codeexchange/github/repo/obrigg/meraki-channel-distribution/
upvoted 20 times
...
daniii89
Most Recent 4 months, 3 weeks ago
Selected Answer: A
API keys are sensitive information and should be stored securely to prevent unauthorized access. The best practice is to store them in a secure environment variable, separate from the application code. A. Store API keys in environment variables (Best Practice) • Environment variables are not stored in the codebase, reducing the risk of accidental exposure in version control (e.g., Git). • They are specific to the system/user session, making them more secure. • Can be accessed in code using: • Python: import os api_key = os.getenv("API_KEY") • Node.js: const apiKey = process.env.API_KEY;
upvoted 1 times
...
kymoni
8 months, 2 weeks ago
Selected Answer: B
encrypted
upvoted 1 times
...
macxsz
2 years, 6 months ago
Selected Answer: B
The only one making sense for the "safe" part is B
upvoted 2 times
...
mrimmune
2 years, 8 months ago
A example : bash - export switchuser='cisco' python: import os user = os._enveron.get('switchuser')
upvoted 2 times
...
anagy11
2 years, 9 months ago
Selected Answer: A
I prefer A over B but B also can make sense
upvoted 4 times
...
[Removed]
2 years, 9 months ago
A is the right answer.
upvoted 1 times
...
sds85
2 years, 9 months ago
Selected Answer: A
Concerning B: The problem here is that you need a key to decrypt the file and unless you enter that interactively you have to store it somewhere so that its accessible at run time and at that point, if someone has access to the script they likely have access to the key so you are not much better off. So only remains A.
upvoted 1 times
...
Fmagnago
2 years, 11 months ago
A Storing the Meraki API Key as an environment variable Once the API key is obtained, you'll need to store the Meraki dashboard API key as an environment variable: export MERAKI_KEY = <YOUR MERAKI API KEY>
upvoted 3 times
...
Iamrandom
3 years ago
Selected Answer: B
key words: "safely store". As an environment variable, it's neither safe or stored: not safe because it's not encrypted in any way nor stored as it is in volatile memory. Answer is B.
upvoted 2 times
...
lupindepin
3 years, 1 month ago
Cisco Pearson courses reco => env Google reco => both encrypted / env To me it's A
upvoted 3 times
...
understandingson
3 years, 4 months ago
Keys should never be stored in code or config, but in environment variables
upvoted 3 times
...
koptos
3 years, 7 months ago
I think is A, but system database seems very misleading...
upvoted 2 times
aprettyparrot
3 years, 7 months ago
I was thinking A because I remember that from somewhere, and then I remembered that’s for a container. So I’m going with B
upvoted 1 times
...
...
nebtashi
3 years, 8 months ago
You can do A and B but the questions what method is a "safe" way to do so. Storing it in an environment variable is NOT secure but putting it in an ENCRYPTED config file separated from code is much safer.
upvoted 3 times
...
examtaker_2021
3 years, 10 months ago
I am convinced with B as per the below statement. "You use this API key. And you'll notice here that, first of all, the API key is this big, long string of confusing data. You would never remember that API key and use it to type it in as a user. You would store it inside of your program, or inside of a configuration file somewhere so your program could reference it and use it."
upvoted 1 times
examtaker_2021
3 years, 10 months ago
I am kind of convinced with A after I read google link and use Postman for API practice.
upvoted 5 times
...
...
SAGA
3 years, 10 months ago
at end, A or B?
upvoted 1 times
Johnconnor2021
3 years, 10 months ago
think is B, has more sense. Putting it inside the code can be easily exposed.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...