In Jenkins master-agent architecture, what is the primary role of the agent?
Think about which component actually runs the build tasks.
The agent is responsible for running the build jobs sent by the master. The master coordinates and schedules jobs but does not execute them directly.
What is the output of the following Jenkins CLI command when the agent is connected and online?
java -jar jenkins-cli.jar -s http://jenkins.example.com list-agents
Look for the status that indicates the agent is connected and ready.
The 'Online' status means the agent is connected and ready. 'Idle' means it is not currently running a job.
Which configuration snippet correctly sets a Jenkins agent to launch via SSH with the hostname 'agent-host' and user 'jenkins-user'?
Check the XML tags and attribute names for SSHLauncher configuration.
Option A uses the correct XML structure and tag names for SSHLauncher in Jenkins agent configuration.
A Jenkins agent fails to connect to the master and shows 'Disconnected' status. Which of the following is the most likely cause?
Consider what is required for secure agent authentication.
The JNLP secret key is used to authenticate the agent to the master. If it is wrong or missing, the agent cannot connect.
Arrange the following steps in the correct order for a Jenkins job executed on an agent:
Think about the logical flow from scheduling to execution to reporting.
The master first schedules and sends the job, the agent runs it, then reports status, and finally the master updates the job record.