CompTIA
CV0-003 · Question #765
A systems administrator is writing a script for provisioning nodes in the environment. Which of the following would be BEST for the administrator to use to provision the authentication credentials…
The correct answer is C. password=$(cat /opt/app/credentials). The best way to provision authentication credentials to a script is to use a secure method, such as storing the credentials in a file that is not accessible to the public.
Security
Question
A systems administrator is writing a script for provisioning nodes in the environment. Which of the following would be BEST for the administrator to use to provision the authentication credentials to the script?
Options
- Apassword='curl https://10.2.3.4/api/sytemops?op=provision'
- Bpassword=$env_password
- Cpassword=$(cat /opt/app/credentials)
- Dpassword="MyS3cretP4sswordIsVeryL0ng"
How the community answered
(30 responses)- A17% (5)
- B3% (1)
- C73% (22)
- D7% (2)
Explanation
The best way to provision authentication credentials to a script is to use a secure method, such as storing the credentials in a file that is not accessible to the public.
Topics
#credential management#secrets handling#scripting#provisioning
Community Discussion
No community discussion yet for this question.