An auditor asks you to prove the Jenkins configuration in production equals what is in Git. How?
IntermediateScenarioPlatform: plugins, JCasC & Kubernetes agents
Answer
Situation read → Drift detection.
What I'd do →
- A scheduled job exports
/configuration-as-code/viewExport(admin token) and diffs it against the rendered YAML in Git, ignoring generated fields. - Compare installed plugins (
pluginManager/api/json) withplugins.txt. - Use Job Configuration History to show any UI changes with authors.
- Alert on drift and enforce read-only by restricting admin rights.
Why → Continuous drift detection is the evidence auditors want.
Interview tip → Mention the image digest in the running pod as evidence for core and plugin versions.
More on Platform: plugins, JCasC & Kubernetes agents
You inherit a controller with 230 plugins, half unused, on a version two LTS lines behind. Plan the cleanup and upgrade.AdvancedAn admin changes a cloud setting in the UI, and it reverts after the next controller restart. Developers are confused. What is your policy?BeginnerYou must stand up a new Jenkins controller for a team in under an hour, identical to the existing ones. How?IntermediateBuilds wait 2–3 minutes before starting because new agent pods are slow to schedule. How do you speed up agent startup?AdvancedDevelopers need Docker image builds in Kubernetes agents, but the cluster runs containerd and security forbids privileged pods. What do you choose?AdvancedThe controller needs to provision agents in three Kubernetes clusters in different regions. How do you configure it?Advanced