5. You want to restrict a credential so only jobs in the DevOps folder and its subfolders can use it, but not jobs elsewhere. How should you configure the credential?
hard
A. Add the credential in each job configuration inside DevOps.
B. Add the credential with global scope and restrict job permissions manually.
C. Add the credential with system scope to limit access.
D. Add the credential with folder scope inside the DevOps folder.
Solution
Step 1: Understand folder scope for restriction
Folder scope limits credential use to jobs inside that folder and its subfolders.
Step 2: Avoid global or system scope
Global scope allows all jobs; system scope is not a valid Jenkins credential scope.
Step 3: Avoid per-job credentials for manageability
Adding credentials per job is inefficient and error-prone.
Final Answer:
Add the credential with folder scope inside the DevOps folder. -> Option D
Quick Check:
Folder scope limits credential to folder and subfolders [OK]
Hint: Use folder scope inside DevOps folder for restriction [OK]
Common Mistakes:
Using global scope and relying on permissions only
Confusing system scope with folder scope
Adding credentials individually to jobs
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.