Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

How Is Attenuation Happens From Jenkins To Remote Server?

Answer»

we have ALREADY like PASSWORD less log in enable, so from Jenkins server any ONE login to the remote the Linux server and all without ASKING the password the key exchange is already done.

we have already like password less log in enable, so from Jenkins server any one login to the remote the Linux server and all without asking the password the key exchange is already done.

2.

What Is The Purpose Of Continuous Integration For A Development Team?

Answer»
  • The primary purpose of CI is to provide regular, fast feedback to developers as they commit changes to the SHARED CODE repository (VCS).
  • The idea being that we’re always integrating our code on commit, so that when CONFLICTS arise, they can be ADDRESSED more quickly and easily than if the changes had been MADE days, week, or even months ago.

3.

What Is Maven’s Order Of Inheritance?

Answer»

4.

How Can I Change The Default Location Of The Generated Jar When I Command “mvn Package”?

Answer»

By default, the location of the GENERATED jar is in ${project.build.DIRECTORY} or in your TARGET directory. We can CHANGE this by configuring the outputDirectory of maven-jar-plugin.

By default, the location of the generated jar is in ${project.build.directory} or in your target directory. We can change this by configuring the outputDirectory of maven-jar-plugin.

5.

What Is The Best Practice Configuration Usage For Files – Pom.xml Or Settings.xml?

Answer»

The BEST PRACTICE guideline between settings.xml and pom.xml is that CONFIGURATIONS in settings.xml MUST be specific to the current user and that pom.xml configurations are specific to the project.

The best practice guideline between settings.xml and pom.xml is that configurations in settings.xml must be specific to the current user and that pom.xml configurations are specific to the project.

6.

What Factors Influence The Opening Of A Feature Branch?

Answer»

Typically, feature branches are created in cases where the new feature or enhancement has broad-sweeping CHANGES to the code base such that introducing them in the TRUNK may be too disruptive. ALSO, feature branches may be used for prototyping or proof-of-concept for code that may never END up in trunk.

Typically, feature branches are created in cases where the new feature or enhancement has broad-sweeping changes to the code base such that introducing them in the trunk may be too disruptive. Also, feature branches may be used for prototyping or proof-of-concept for code that may never end up in trunk.

7.

What Is The Use Of !! Command? Can I Use It With Conjunction To Some Other String To Complete A Command?

Answer»

It’s USED to EXECUTE last command. Yes, this can be used with other string to execute new command. For EG – if ls was the last command, we can execute !! -l for having the LONG listing.

It’s used to execute last command. Yes, this can be used with other string to execute new command. For eg – if ls was the last command, we can execute !! -l for having the long listing.

8.

What Is A Transitive Dependency? Can We Override Transitive Dependency Version And If Yes, How?

Answer»
  • TRANSITIVE dependency is the dependencies not DEFINED DIRECTLY in the current POM but the POM of the DEPENDENT PROJECTS.
  • Yes, we can override transitive dependency version by specifying the dependency in the current POM.

9.

What Are The Various Ways In Which Build Can Be Scheduled In Jenkins ?

Answer»
  • Builds can be TRIGGERED by source code management commits.
  • Can be triggered after completion of other builds.
  • Can be SCHEDULED to RUN at SPECIFIED time ( crons )
  • Manual Build Requests

10.

Which Scm Tools Jenkins Supports ?

Answer»

AccuRev, CVS, SUBVERSION, Git, Mercurial, PERFORCE, CLEARCASE and RTC

AccuRev, CVS, Subversion, Git, Mercurial, Perforce, Clearcase and RTC

11.

What Is The Difference Between Maven, Ant And Jenkins ?

Answer»

MAVEN and ANT are Build Technologies whereas Jenkins is a CONTINUOUS integration tool.

Maven and Ant are Build Technologies whereas Jenkins is a continuous integration tool.

12.

What Is Jenkins ?

Answer»

It is a CONTINUOUS INTEGRATION TOOL WRITTEN in JAVA.

It is a continuous integration tool written in Java.

13.

What Is Repository ?

Answer»

Repository is the heart of any version control system. It is CENTRAL PLACE where developers store all their work. Repository not only stores files but also history. Repository is accessed over a network, with repository acting as a SERVER and version control tool acting as a CLIENT. Client can CONNECT to repository, and then they can store/retrieve their changes to/from repository.

Repository is the heart of any version control system. It is central place where developers store all their work. Repository not only stores files but also history. Repository is accessed over a network, with repository acting as a server and version control tool acting as a client. Client can connect to repository, and then they can store/retrieve their changes to/from repository.

14.

Which Version Control System You Are Using In Your Current Project ?

Answer»

We are USING SVN and GIT HUB.

We are using SVN and Git Hub.

15.

Difference Between Jar , War And Ear ?

Answer»
  • Jar is Java ARCHIVE i.s compressed Class or Class / Java files.
  • War comprises of compressed Servlet class files,JSP FIles,SUPPORTING files, GIF and HTML files.
  • Ear comprise of compressed Java and web module files ( was files ).

16.

Have You Created Any Build Script Yourself ?

Answer»

YES, I have worked on many build SCRIPTS in LAST few years.

Yes, I have worked on many build scripts in last few years.

17.

What Technologies Have You Worked With For Build Management ?

Answer»

ANT and MAVEN

Ant and Maven

18.

What Is A Cyclic Dependency ?

Answer»
  • A has DEPENDENCY of B, B has dependency of C and C has dependency of A,architecture,technical LEAD
  • With Maven 2 , came transitive dependency wherein in above scenario, C will acts as a dependency of A as if this dependency has been DEFINED directly in A but the NEGATIVE side is that if it leads to cyclic dependency , it creates problems.

19.

What Are The Benefits Of Transitive Dependency In Maven ?

Answer»

TRANSITIVE dependencies allows to avoid specifying the LIBRARIES that are required by the PROJECT which are specified in other dependent projects - REMOTE or Local.

Transitive dependencies allows to avoid specifying the libraries that are required by the project which are specified in other dependent projects - Remote or Local.

20.

What Is A Transitive Dependency ? Can We Override Transitive Dependency Version And If Yes, How ?

Answer»

Transitive DEPENDENCY is the dependencies not defined DIRECTLY in the current POM but the POM of the dependent projects. 

Yes we can override transitive dependency VERSION by SPECIFYING the dependency in the current POM.

Transitive dependency is the dependencies not defined directly in the current POM but the POM of the dependent projects. 

Yes we can override transitive dependency version by specifying the dependency in the current POM.

21.

Which Version Control (vc) Or Software Configuration Management (scm) Systems Work With Merge?

Answer»

You can USE TORTOISE SVN,which has Merge UTILITY embedded in it.

You can use Tortoise SVN,which has Merge Utility embedded in it.

22.

What Is The Use Of !! Command ? Can I Use It With Conjunction To Some Other String To Complete A Command ?

Answer»

Its USED to execute LAST command. Yes this can be used with other STRING to execute new command. For eg - if LS was the last command, We can execute !! -l for having the LONG listing.

Its used to execute last command. Yes this can be used with other string to execute new command. For eg - if ls was the last command, We can execute !! -l for having the long listing.

23.

What Is The Difference Between Compile And Install ?

Answer»
  • Compile compiles the source CODE of the PROJECT 
  • whereas
  • INSTALL installs the package into the LOCAL repository, for USE as a dependency in other projects locally

24.

How Do I Determine Which Pom Contains Missing Transitive Dependency?

Answer»

RUN MVN -X

run mvn -X

25.

What Is Maven's Order Of Inheritance?

Answer»
  1. PARENT POM
  2. PROJECT pom
  3. settings
  4. CLI parameters

26.

How Can I Change The Default Location Of The Generated Jar When I Command "mvn Package"?

Answer»

By default, the location of the generated jar is in ${project.build.DIRECTORY} or in your TARGET directory. We can CHANGE this by CONFIGURING the outputDirectory of maven-jar-plugin.

By default, the location of the generated jar is in ${project.build.directory} or in your target directory. We can change this by configuring the outputDirectory of maven-jar-plugin.

27.

What Is The Best Practice Configuration Usage For Files - Pom.xml Or Settings.xml ?

Answer»

The BEST PRACTICE guideline between settings.xml and pom.xml is that configurations in settings.xml must be specific to the current USER and that pom.xml configurations are specific to the PROJECT.

The best practice guideline between settings.xml and pom.xml is that configurations in settings.xml must be specific to the current user and that pom.xml configurations are specific to the project.