0
0
Jenkinsdevops~5 mins

Credential types and storage in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of credentials in Jenkins?
Credentials in Jenkins store sensitive information like passwords, tokens, or keys securely to allow Jenkins jobs to access external systems without exposing secrets.
Click to reveal answer
beginner
Name three common types of credentials supported by Jenkins.
Jenkins supports Username and Password, Secret Text, and SSH Username with Private Key as common credential types.
Click to reveal answer
intermediate
How does Jenkins store credentials securely?
Jenkins encrypts credentials and stores them in its internal credentials store, which is protected by Jenkins' security settings and file system permissions.
Click to reveal answer
intermediate
What is the difference between 'Secret Text' and 'Username and Password' credential types in Jenkins?
'Secret Text' stores a single secret string like an API token, while 'Username and Password' stores a pair of username and password for authentication.
Click to reveal answer
intermediate
Where can Jenkins credentials be scoped to control their availability?
Credentials in Jenkins can be scoped globally (available to all jobs) or to specific folders or pipelines to limit access.
Click to reveal answer
Which Jenkins credential type would you use to store an SSH private key?
ACertificate
BSecret Text
CUsername and Password
DSSH Username with Private Key
Where are Jenkins credentials stored?
AIn environment variables only
BIn plain text files on the Jenkins server
CEncrypted in Jenkins internal credentials store
DOn the user's local machine
What is the main benefit of scoping credentials in Jenkins?
ATo limit credential access to specific jobs or folders
BTo speed up Jenkins builds
CTo make credentials available to all users
DTo store credentials in plain text
Which credential type is best for storing an API token in Jenkins?
AUsername and Password
BSecret Text
CSSH Username with Private Key
DCertificate
Can Jenkins credentials be shared between different pipelines?
AYes, if credentials are scoped globally or to a shared folder
BNo, credentials are always private to one pipeline
COnly if stored in environment variables
DOnly if manually copied
Explain the different types of credentials Jenkins supports and when to use each.
Think about what kind of secret you need to store and how Jenkins uses it.
You got /4 concepts.
    Describe how Jenkins stores credentials securely and how scoping affects their availability.
    Consider both storage and access control.
    You got /4 concepts.