Exam(Latest Update ) Questions & Answers
with rationales | 100% Correct | Grade
Where do you map roles to permissions globally? - answer ;- Roles > Manage
Where do you set up the build tools? - answer ;- Global Tool Configuration
Where is a file type parameter uploaded in a parameterized build? - answer ;- In the workspace
- in the directory/filename specified in the build configuration
Which allows, but does not require going to production? continuous delivery or continuous
deployment - answer ;- continuous delivery
Which are the best two places to get the configuration: build, packaging, deployment,
startup/runtime - answer ;- deployment and startup/runtime
Which is the most general security realm in Jenkins? - answer ;- matrix based security
Which manages the operating system configuration, chef or puppet? - answer ;- Puppet
Which plugin introduces the docker variable? - answer ;- Docker pipeline
,Which security realm adds group/role links to jobs? - answer ;- role based matrix authorization
security
Which security realm adds the manage roles link? - answer ;- role based matrix authorization
security
Which security realm lets you configure permissions on the /configure screen in addition to the
manage security screen? - answer ;- project based matrix authorization security
Which two roles cannot be removed? - answer ;- anonymous and authenticated
Which two ways does Jenkins let you install a third party tool? - answer ;- Installing
automatically from the internet or from a local install
Why don't you see "Check file fingerprint" in a fresh Jenkins install? - answer ;- Even if the
plugin is present, you don't see the URL until you've run at least one build that generates a
fingerprint in a post build step
Even if the plugin is present, you don't see the URL until you've run at least one build that
generates a fingerprint in a post build step - answer ;- Locations and defaults can be assumed
based on Maven configurations
Why is it bad practice to have a checkpoint inside a node {}? - answer ;- Because the workspace
could change on resuming
Cobertura, can set thresholds for weather icons: - answer ;- - Sunny - % higher than threshold
- Stormy - % lower than threshold
- Unstable - % lower than threshold
,Testing for code coverage - answer ;- (1) In build, must create XML file with data
(2) Post Build Action to publish
(3) For Java: Cobertura and JaCoCo
(5) In Cobertura, can set thresholds for weather icons: sunny, stormy, unstable
(6) In Jacoco, can set thresholds for sunny and stormy
Test reports in Jenkins - answer ;- Publish JUnit or TestNG reports
In JUnit, can set amplification factor - 1.0 means 10% failure rate scores 90% health. .1 means
10% failure rate scores 99% health.
Displaying test results - answer ;- - Configure as Post Build Action
- Point to xml files: ex: reports/*.xml
- Can drill down to see details of tests runs and durations
Integrating with test automation tools - answer ;- Can run acceptance tests later in pipeline
than unit/component tests
Breaking builds - answer ;- JUnit allows choosing whether to fail builds on test failures - default
is "unstable" not failure
Setup and usage - answer ;- Setup in post build action section
Email notifications, instant messaging, build radiators - answer ;- (1) Email - Same recipient for
each one (except can add committers since passed)
(2) Email ext - lets you customize the message and tailor the recipients per trigger, can send on
failing, still failing, unstable, still unstable, successful, etc
(3) Jabber and IRC for instant messaging
, (4) Since build radiators are full screen, the only way to edit is to add /configure to the URL
Alarming on notifications - answer ;- Extreme notifications can have a video or audio cue in the
real world
Setting up and running builds in parallel - answer ;- (1) Builds run on different executors
(2) Multi-configuration jobs run the pieces in parallel
Setting up and using SSH slaves, JNLP slaves, cloud slaves - answer ;- Can launch local slaves
with SSH (blocking or non-blocking IO), Java Web Start, command line on master or Windows
service
Monitoring nodes - answer ;- (1) Monitoring page uses JMelody
(2) Memory/CPU/etc stats
(3) Can see heap dump/GC/etc
Setting up and using Plugin Manager - answer ;- (1) Can provide a HTTP proxy if needed
(2) Can specify alternate update center URL for JSON
(3) Listed installed plugins
(4) Can install/upgrade/uninstall plugin
(5) Can unpin plugin so doesn't use specific version of plugin
Finding and configuring required plugins - answer ;- (1) Updates tab - for upgrading plugin
already have
(2) Available tab - for downloading new plugins
(3) Installed
(4) Advanced tab - for uploading plugin hpi/jpi file from disk