0
0
Jenkinsdevops~20 mins

Artifact fingerprinting in Jenkins - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Artifact Fingerprinting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary purpose of artifact fingerprinting in Jenkins?

Artifact fingerprinting helps Jenkins track files across builds. What is its main benefit?

ATo uniquely identify and track artifacts across different builds and jobs
BTo compress artifacts to save disk space on the Jenkins server
CTo encrypt artifacts for secure storage
DTo automatically deploy artifacts to production servers
Attempts:
2 left
💡 Hint

Think about how Jenkins knows if the same file was used in multiple builds.

💻 Command Output
intermediate
1:30remaining
What output does Jenkins show after fingerprinting an artifact?

After enabling fingerprinting on a file in a Jenkins job, what information will Jenkins display about the artifact?

AThe artifact's source code content
BThe file size and last modified date only
CA unique hash value and a list of builds where the artifact was used
DThe Jenkins server's IP address
Attempts:
2 left
💡 Hint

Fingerprinting is about tracking usage, not file details like size or content.

Configuration
advanced
2:00remaining
How to configure artifact fingerprinting in a Jenkins Pipeline script?

Which snippet correctly fingerprints an artifact file named app.jar in a Jenkins Pipeline?

Afingerprint 'app.jar'
BarchiveArtifacts fingerprint: true, artifacts: 'app.jar'
Cfingerprint artifacts: 'app.jar'
DarchiveArtifacts 'app.jar', fingerprint: true
Attempts:
2 left
💡 Hint

Look for the correct syntax to archive and fingerprint artifacts in Pipeline.

Troubleshoot
advanced
2:00remaining
Why does Jenkins fail to fingerprint an artifact in a freestyle job?

You enabled fingerprinting on a file in a freestyle job, but Jenkins does not show any fingerprint data after the build. What is the most likely cause?

AThe artifact file was not archived during the build
BThe Jenkins server is offline
CFingerprinting is only supported in Pipeline jobs
DThe artifact file is too large to fingerprint
Attempts:
2 left
💡 Hint

Fingerprinting requires the artifact to be saved by Jenkins first.

🔀 Workflow
expert
2:30remaining
In a multi-job Jenkins workflow, how does artifact fingerprinting help with traceability?

Consider a workflow where Job A builds an artifact, and Job B uses it. How does fingerprinting improve traceability between these jobs?

AFingerprinting deletes old artifacts after Job B completes
BFingerprinting links the artifact's unique hash from Job A to Job B, showing artifact usage across jobs
CFingerprinting automatically copies the artifact from Job A to Job B's workspace
DFingerprinting encrypts the artifact to prevent unauthorized access between jobs
Attempts:
2 left
💡 Hint

Think about how Jenkins tracks the same file used in different jobs.