0
0
Jenkinsdevops~20 mins

Installing on Linux in Jenkins - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Jenkins Linux Installation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Jenkins service status after installation
After installing Jenkins on a Linux system using the official package, you run the command sudo systemctl status jenkins. What output indicates Jenkins is running correctly?
AActive: active (running) since Wed 2024-06-05 10:00:00 UTC; 5min ago
BActive: inactive (dead) since Wed 2024-06-05 10:00:00 UTC; 5min ago
CFailed to start Jenkins.service: Unit Jenkins.service not found.
DActive: activating (start) since Wed 2024-06-05 10:00:00 UTC; 5min ago
Attempts:
2 left
💡 Hint
Look for the word 'active' and 'running' in the status output.
Configuration
intermediate
2:00remaining
Correct Jenkins repository setup on Debian-based Linux
Which of the following commands correctly adds the Jenkins repository key and source list for Debian-based Linux before installing Jenkins?
Asudo yum install jenkins && sudo systemctl enable jenkins
Bcurl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo rpm --import - && echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/yum.repos.d/jenkins.repo
Csudo apt-get install jenkins && sudo systemctl start jenkins
Dwget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - && echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
Attempts:
2 left
💡 Hint
Debian uses apt-key and sources.list.d for repositories.
🔀 Workflow
advanced
2:30remaining
Order of commands to install Jenkins on CentOS/RHEL
What is the correct order of commands to install Jenkins on CentOS or RHEL Linux?
A1,3,2,4
B3,1,2,4
C1,2,3,4
D3,2,1,4
Attempts:
2 left
💡 Hint
Java must be installed before Jenkins, then start and enable the service.
Troubleshoot
advanced
2:00remaining
Diagnosing Jenkins startup failure on Linux
You installed Jenkins on Linux and tried to start it, but sudo systemctl start jenkins fails silently. Which log file should you check first to find the cause?
A/var/log/messages
B/var/log/syslog
C/var/log/jenkins/jenkins.log
D/var/log/jenkins/error.log
Attempts:
2 left
💡 Hint
Jenkins writes its own logs in a specific directory.
Best Practice
expert
3:00remaining
Secure Jenkins installation on Linux
Which practice is best to secure Jenkins after installing it on a Linux server?
ARun Jenkins as root user to avoid permission issues
BConfigure Jenkins to run under a dedicated user with limited permissions
CDisable the firewall to allow all traffic to Jenkins
DOpen Jenkins port 8080 to the internet without authentication
Attempts:
2 left
💡 Hint
Running services with least privilege improves security.