0
0
Jenkinsdevops~5 mins

Script approval and sandbox in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of script approval in Jenkins?
Script approval in Jenkins ensures that only safe and trusted scripts run in the system, protecting it from harmful or untrusted code.
Click to reveal answer
beginner
What is the Jenkins sandbox for scripts?
The Jenkins sandbox is a safe environment where scripts run with limited permissions to prevent harmful actions on the system.
Click to reveal answer
intermediate
How does Jenkins handle a script that is not approved?
Jenkins blocks the execution of unapproved scripts and requires an administrator to review and approve them before they can run.
Click to reveal answer
beginner
Where can you find the list of scripts waiting for approval in Jenkins?
In Jenkins, the list of scripts waiting for approval is found under 'Manage Jenkins' > 'In-process Script Approval'.
Click to reveal answer
intermediate
Why is it important to use script approval and sandbox in Jenkins pipelines?
Using script approval and sandbox protects the Jenkins server from running unsafe scripts that could damage the system or leak sensitive data.
Click to reveal answer
What happens if a Jenkins pipeline script uses a method not yet approved?
AThe script runs without restrictions.
BThe script execution is blocked until approval.
CJenkins automatically approves the method.
DThe script is deleted.
Where do you approve scripts in Jenkins?
ADashboard > New Item
BManage Plugins
CManage Jenkins > In-process Script Approval
DBuild History
What is the Jenkins sandbox designed to do?
AAllow all scripts to run without checks.
BSpeed up script execution.
CStore backup scripts.
DRun scripts with limited permissions for safety.
Who can approve scripts in Jenkins?
AJenkins administrator
BAny user
COnly the script author
DExternal users
Why should you avoid disabling the Jenkins sandbox?
AIt protects the system from unsafe scripts.
BIt makes scripts run faster.
CIt is required for all plugins.
DIt automatically approves scripts.
Explain how Jenkins script approval and sandbox work together to keep your system safe.
Think about how Jenkins controls what scripts can do and who decides.
You got /4 concepts.
    Describe the steps to approve a new script method in Jenkins.
    Consider what happens from running the script to approval.
    You got /5 concepts.