0
0
Jenkinsdevops~20 mins

Authorization strategies (Matrix, role-based) in Jenkins - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Authorization Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Matrix-based Authorization Strategy

In Jenkins, the Matrix-based security allows you to assign permissions to users or groups in a grid format. Which of the following best describes how permissions are assigned in this strategy?

APermissions are assigned individually to each user or group by checking boxes in a matrix grid.
BPermissions are assigned only through predefined roles that users inherit automatically.
CPermissions are assigned randomly by Jenkins based on user activity.
DPermissions are assigned by editing the Jenkins core source code.
Attempts:
2 left
💡 Hint

Think about how a grid or table might be used to assign permissions.

💻 Command Output
intermediate
2:00remaining
Role-based Authorization Plugin Output

After configuring the Role-based Authorization Strategy plugin in Jenkins, you run a command to list all roles. What is the expected output format when you run jenkins-cli list-roles?

AA list of roles with their names and assigned permissions in plain text.
BA JSON object containing user passwords and roles.
CAn error message saying 'Command not found'.
DA list of all Jenkins jobs with their build statuses.
Attempts:
2 left
💡 Hint

Think about what a role listing command should show.

🔀 Workflow
advanced
3:00remaining
Configuring Role-based Authorization for a New Team

You want to create a new role called 'dev-team' in Jenkins with permissions to build and read jobs but not to configure system settings. Which sequence of steps correctly achieves this using the Role-based Authorization Strategy plugin?

A3,1,2,4
B1,3,2,4
C2,1,3,4
D1,2,3,4
Attempts:
2 left
💡 Hint

Think about first creating the role, then assigning it.

Troubleshoot
advanced
2:00remaining
Troubleshooting Matrix Authorization Permission Denied

A user reports they cannot configure a job even though they are listed in the Matrix-based security with 'Job Configure' permission checked. What is the most likely cause?

AJenkins is offline and cannot apply permissions.
BThe user's browser cache is outdated.
CThe user is not part of the group assigned the permission in the matrix.
DThe Jenkins server needs a restart to apply matrix changes.
Attempts:
2 left
💡 Hint

Check if the user is actually included in the permission assignment.

Best Practice
expert
3:00remaining
Best Practice for Combining Matrix and Role-based Authorization

In a Jenkins environment with multiple teams and complex permission needs, what is the best practice for combining Matrix-based and Role-based Authorization strategies?

AAvoid using Role-based Authorization and rely only on Matrix-based for all permissions.
BUse Role-based Authorization for broad role definitions and Matrix-based for fine-grained permission tweaks within roles.
CUse both strategies simultaneously on the same Jenkins instance without restrictions.
DDisable all authorization and rely on external firewall rules.
Attempts:
2 left
💡 Hint

Think about how roles and detailed permissions complement each other.