0
0
Jenkinsdevops~5 mins

Master-agent architecture in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the role of the Jenkins master in the master-agent architecture?
The Jenkins master controls the system, manages jobs, schedules builds, and distributes tasks to agents. It also provides the user interface and stores build results.
Click to reveal answer
beginner
What is a Jenkins agent and why is it used?
A Jenkins agent is a machine that runs build jobs delegated by the master. It helps distribute workload and allows builds to run on different environments or platforms.
Click to reveal answer
intermediate
How do Jenkins master and agents communicate?
They communicate over a network using protocols like JNLP or SSH. The master sends build tasks to agents, and agents report back the results.
Click to reveal answer
beginner
Why is using agents beneficial in Jenkins?
Agents allow parallel execution of builds, reduce load on the master, and enable running jobs on different operating systems or hardware setups.
Click to reveal answer
intermediate
What happens if the Jenkins master goes down in a master-agent setup?
If the master goes down, agents cannot receive new tasks or report results. The whole system becomes inactive until the master is restored.
Click to reveal answer
What component schedules and manages build jobs in Jenkins master-agent architecture?
AJenkins master
BJenkins agent
CBuild executor
DSource code repository
Which protocol is commonly used for communication between Jenkins master and agents?
AJNLP
BFTP
CHTTP
DSMTP
What is a key advantage of using Jenkins agents?
AThey replace the master
BThey allow parallel builds
CThey store build results
DThey manage user access
If the Jenkins master is down, what happens to the agents?
AThey become new masters
BThey continue running builds independently
CThey cannot receive new tasks
DThey shut down automatically
Which of these is NOT a function of the Jenkins master?
AScheduling builds
BProviding the user interface
CDistributing tasks to agents
DRunning build jobs directly
Explain the roles of Jenkins master and agents in the master-agent architecture.
Think about who controls and who executes.
You got /4 concepts.
    Describe the benefits of using agents in Jenkins.
    Why not run all builds on the master?
    You got /4 concepts.