A permanent agent is a Jenkins node that is always available and manually configured. It runs on a fixed machine and stays connected to the Jenkins master unless manually disconnected.
Click to reveal answer
beginner
What defines a cloud agent in Jenkins?
A cloud agent is a temporary Jenkins node created dynamically on cloud infrastructure. It spins up when needed for a job and is destroyed after the job finishes.
Click to reveal answer
intermediate
How does a cloud agent help optimize resources?
Cloud agents only run when jobs need them, so they save resources by not running all the time. This reduces costs and improves scalability.
Click to reveal answer
beginner
Name one key difference between permanent and cloud agents.
Permanent agents are always running and connected, while cloud agents are created and destroyed dynamically based on job demand.
Click to reveal answer
intermediate
Why might a team choose permanent agents over cloud agents?
Teams might choose permanent agents for stable, long-running environments or when cloud infrastructure is not available or too costly.
Click to reveal answer
What happens to a cloud agent after a Jenkins job finishes?
AIt disconnects but stays on the machine
BIt stays running indefinitely
CIt becomes a permanent agent
DIt is destroyed to save resources
✗ Incorrect
Cloud agents are temporary and are destroyed after the job completes to optimize resource use.
Which agent type requires manual setup and stays connected to Jenkins?
APermanent agent
BDynamic agent
CEphemeral agent
DCloud agent
✗ Incorrect
Permanent agents are manually configured and remain connected to Jenkins until manually disconnected.
What is a main benefit of using cloud agents in Jenkins?
AThey reduce infrastructure costs by running only when needed
BThey provide permanent storage for builds
CThey require no network connection
DThey run on the Jenkins master machine
✗ Incorrect
Cloud agents spin up on demand and shut down after use, saving infrastructure costs.
Which Jenkins agent type is best for long-running, stable workloads?
ACloud agent
BPermanent agent
CTemporary agent
DServerless agent
✗ Incorrect
Permanent agents are suited for stable workloads because they stay connected and ready.
How does Jenkins typically create cloud agents?
ABy cloning permanent agents
BManually by the admin
CAutomatically via cloud plugins when jobs start
DBy running on the Jenkins master
✗ Incorrect
Jenkins uses cloud plugins to automatically provision cloud agents when jobs require them.
Explain the differences between permanent and cloud agents in Jenkins.
Think about availability and resource management.
You got /4 concepts.
Describe a scenario where using a cloud agent is better than a permanent agent.
Consider cost and scalability benefits.
You got /4 concepts.
Practice
(1/5)
1. What is a key characteristic of a permanent agent in Jenkins?
easy
A. It runs only on cloud platforms like AWS or Azure.
B. It is always connected and ready to run jobs.
C. It starts only when a job is triggered and stops afterward.
D. It automatically scales based on job demand.
Solution
Step 1: Understand permanent agent behavior
Permanent agents are set up to be always online and ready to accept jobs without delay.
Step 2: Compare with cloud agents
Cloud agents start and stop dynamically, unlike permanent agents which stay connected.
Final Answer:
It is always connected and ready to run jobs. -> Option B
Hint: Label 'cloud' usually means dynamic cloud agent [OK]
Common Mistakes:
Assuming label 'cloud' means permanent agent
Thinking label usage causes failure
Assuming master node runs all jobs
4. You configured a cloud agent in Jenkins, but jobs never run on it and stay queued. What is the most likely cause?
medium
A. The cloud agent label is missing or mismatched in the job configuration.
B. The permanent agent is offline, so cloud agents cannot start.
C. The Jenkins master node is overloaded and blocking all agents.
D. The cloud agent plugin is not installed, causing syntax errors.
Solution
Step 1: Check label matching
Jobs must specify the correct label matching the cloud agent to run on it.
Step 2: Understand job-agent assignment
If labels don't match, Jenkins queues jobs waiting for suitable agents.
Final Answer:
The cloud agent label is missing or mismatched in the job configuration. -> Option A
Quick Check:
Label mismatch causes jobs to queue [OK]
Hint: Always match job label with agent label [OK]
Common Mistakes:
Assuming permanent agent status affects cloud agents
Blaming Jenkins master overload without evidence
Confusing plugin absence with job queuing
5. You want to optimize Jenkins to save resources by using cloud agents for most jobs but keep a permanent agent for critical builds. How should you configure labels and agents?
hard
A. Assign label 'critical' to the permanent agent and 'cloud' to cloud agents; assign jobs accordingly.
B. Use only permanent agents with label 'all' and avoid cloud agents to reduce complexity.
C. Assign all jobs to label 'cloud' and disable the permanent agent to save resources.
D. Configure cloud agents without labels and assign all jobs to the permanent agent.
Solution
Step 1: Separate job types by labels
Use distinct labels like 'critical' for permanent agent and 'cloud' for cloud agents to control job assignment.
Step 2: Assign jobs to matching labels
Critical builds use the permanent agent with 'critical' label; other jobs use cloud agents with 'cloud' label.
Final Answer:
Assign label 'critical' to the permanent agent and 'cloud' to cloud agents; assign jobs accordingly. -> Option A
Quick Check:
Use labels to separate permanent and cloud jobs [OK]
Hint: Label agents and jobs to control resource use [OK]
Common Mistakes:
Using only one label for all agents
Disabling permanent agent when critical builds exist
Not assigning labels to cloud agents
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.