Multiple choice technology programming languages

how can we provide authetication in Windows Service, So that it will not ask for user credentials at the time of installation

  1. By reading context values from command prompt

  2. By hard coding the user credentials in Windows Service file

  3. both are correct

  4. both are incorrect

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

For Windows Services, you can hardcode user credentials in the service configuration file to prevent credential prompts during installation. However, this is a security anti-pattern as it stores credentials in plaintext. Options A and C are incorrect, making B the 'correct' answer among the choices despite being a poor practice.