Continuous Integration Flashcards

1
Q

Continuous integration is ____.
Select one:
a. The process of integrating builds with another build in the cloud
b. The process of integrating code daily and verifying changes with incremental builds
c. All of these
d. The process of integrating builds just before going live into production

A

d. The process of integrating builds just before going live into production

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A \_\_\_\_\_\_\_ is the term used for a Jenkins build workflow that you configure for a project.
Select one:
a. Pipe 
b. Job
c. Workflow
d. Build
A

b. Job

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A \_\_\_\_\_\_ defines when a Jenkins will begin a build.
Select one:
a. Build step
b. Build configuration
c. Build trigger 
d. Build automation
A

c. Build trigger

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In what order are the phases of the default lifecycle executed?
Select one:
a. validate, test, compile, package, integration-test, verify, install, deploy
b. validate, compile, package, test, integration-test, verify, deploy, install
c. validate, compile, test, package, integration-test, verify, install, deploy
d. validate, compile, test, package, integration-test, deploy, install, verify

A

c. validate, compile, test, package, integration-test, verify, install, deploy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True or False. Jenkins is usually combined with a source code management system like Git and a build agent like Maven.
Select one:
a. True
b. False

A

a. True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
What are the elements of a project's coordinates?
Select one:
a. project, version
b. group, artifact, version
c. groupId, artifactId, version 
d. company, project, versionNumber
A

c. groupId, artifactId, version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a dependency?
Select one:
a. Another name for the POM file
b. An artifact that must be included in the build for the application to function properly
c. A collection of unit tests that must pass before the build is allowed to complete
d. A dependent or subordinate thing, especially a country or province controlled by another

A

b. An artifact that must be included in the build for the application to function properly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a Maven goal?
Select one:
a. A project dependency that is resolved during compilation
b. To manage project resources, such as documents, developers, and source code
c. A task bound to zero or more build phases which contributes to the building and managing of a project
d. A directory structure template for building Maven applications

A

c. A task bound to zero or more build phases which contributes to the building and managing of a project

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an archetype?
Select one:
a. A task bound to zero or more build phases which contributes to the building and managing of a project
b. A project structure based on a template
c. None of the above
d. A JAR file required to build the project

A

b. A project structure based on a template

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Maven?
Select one:
a. None of the above
b. A build automation and project management tool
c. A unit testing framework
d. A database connectivity framework for Java

A

b. A build automation and project management tool

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
What is the command to create a new project based on an archetype?
Select one:
a. mvn archetype:quickstart 
b. mvn archetype:create
c. mvn archetype:generate
d. mvn archetype:new
A

c. mvn archetype:generate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
What is the default location of your local repository?
Select one:
a. C:/.m2/repository
b. All of the above
c. userhome/.m2/repository 
d. userhome/m2/repository
A

c. userhome/.m2/repository

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the difference between the local and central repositories?
Select one:
a. The central repo is on your computer, whereas the local repo is an online repo of uploaded dependencies
b. The local repo is on your computer, whereas the central repo is an online repo of uploaded dependencies

A

b. The local repo is on your computer, whereas the central repo is an online repo of uploaded dependencies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the POM?
Select one:
a. A Maven project template, including source and test directories
b. A representation of a Maven project held in a file named pom.txt
c. An XML representation of a Maven project held in a file named pom.xml
d. All of the above

A

c. An XML representation of a Maven project held in a file named pom.xml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What would the command mvn clean do?
Select one:
a. None of the above
b. Both of the above
c. Removes the target directory with all the build data before starting the build process
d. Removes the source directory with all the build data before starting the build process

A

c. Removes the target directory with all the build data before starting the build process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
Which command is used to install a JAR file to your local repository?
Select one:
a. mvn install:install-file
b. mvn install:install-jar 
c. mvn install
d. mvn clean
A

a. mvn install:install-file

17
Q
Which is NOT a Maven build lifecycle?
Select one:
a. Default 
b. Clean
c. Integrate
d. Site
A

c. Integrate