Ansible Interview Questions and Answer – Part 12

Which is the right repository definition should be inserted in pom.xml for uploading snapshot artifactory?

Which is the right repository definition should be inserted in pom.xml for uploading release artifactory?

Which is the right repository definition should be inserted in pom.xml which holds release and snapshot artifactory?

What maven elements should be added in setting.xml to add a artifactory credentials?

Which is right maven goal to upload the package into Artifactory?

  • mvn deploy (Ans)
  • mvn upload
  • mvn install
  • mvn download

What is the right definition of Local Repository?

  • Local repositories are physical, locally-managed repositories into which you can deploy artifacts. (Ans)
  • A Local repository serves as a caching proxy for a repository managed at a remote URL (which may itself be another Artifactory remote repository).
  • A Local repository (or “repository group”) aggregates several repositories with the same package type under a common URL.
  • Local repositories are physical, remote-managed repositories into which you can deploy artifacts.

What is the right definition of Remote Repository?

  • Remote repositories are physical, locally-managed repositories into which you can deploy artifacts.
  • A Remote repository serves as a caching proxy for a repository managed at a remote URL (which may itself be another Artifactory remote repository). (Ans)
  • A Remote repository (or “repository group”) aggregates several repositories with the same package type under a common URL.
  • Remote repositories are physical, remote-managed repositories into which you can deploy artifacts.

What is the right definition of Virtual Repository?

  • Virtual repositories are physical, locally-managed repositories into which you can deploy artifacts.
  • A Virtual repository serves as a caching proxy for a repository managed at a remote URL (which may itself be another Artifactory remote repository).
  • A Virtual repository (or “repository group”) aggregates several repositories with the same package type under a common URL. (Ans)
  • Virtual repositories are physical, remote-managed repositories into which you can deploy artifacts.

What is not the Basic Authentication supported in Artifactory?

  • LDAP
  • Active Directory
  • Single Sign-On
  • PAML (Ans)

What is not the Basic Authentication supported in Artifactory?

  • SAML
  • OAuth
  • SCP (Ans)
  • Atlassian Crowd Integration

Which database is not supported for Artifactory installtion?

  • MySQL v5.5 and above with InnoDB
  • Oracle version 10g and above
  • Microsoft SQL Server 2008 and above
  • Sybase (Ans)

What is not a right tool to manage Binary repository?

  • Artifactory
  • Nexus
  • Archiva
  • git (Ans)

Are both right statement about downloading the artifact from Artifactory?

1.- Search:
Perform a GAVC search on a set of group ID and artifact ID coordinates to retrieve all existing versions of that set; then you can use any version string comparison algorithm to determine the latest version.
2.- the Maven way:
Artifactory generates a standard XML metadata that is to be consumed by Maven, because Maven is faced with the same problem – determining the latest version; The metadata lists all available versions of an artifact and is generated for every artifact level folder; with a simple GET request and some XML parsing, you can discover the latest version.

  • YES (Ans)
  • NO

Which one is wrong statement of gradle.properties file location?

  • In project build dir (that is where your build script is)
  • In sub-project dir
  • In gradle user home (defined by the GRADLE_USER_HOME environment variable, which if not set defaults to USER_HOME/.gradle)
  • C Drive (Ans)

Is it right plugins syntax to add in order to upload artifact in Artifactory?

  • apply plugin: ‘artifactory-publish’
  • apply plugin: ‘artifactory-upload’
  • apply plugin: ‘artifactory-artifact’
  • apply plugin: ‘artifactory-push’

Is it right syntax to add in order to upload artifact in Artifactory?

artifactory {
contextUrl = ‘http://path.to.artifactory’ // base artifactory url
publish {
repository {
repoKey = ‘libs-releases’ //The Artifactory repository key to publish to
username = ‘publisher’ //The publisher user name
password = ” //The publisher password
maven = true
}
}
}

  • YES (Ans)
  • False

What is the right statement for Snapshots repostory?

  • The repository from which to resolve releases
  • The repository from which to resolve snapshots (Ans)
  • The repository from which to resolve plugin releases
  • The repository from which to resolve plugin snapshots

What is the right statement for Releases repostory?

  • The repository from which to resolve releases (Ans)
  • The repository from which to resolve snapshots
  • The repository from which to resolve plugin releases
  • The repository from which to resolve plugin snapshots

What is the right statement for Plugin Releases repostory?

  • The repository from which to resolve releases
  • The repository from which to resolve snapshots
  • The repository from which to resolve plugin releases (Ans)
  • The repository from which to resolve plugin snapshots

What is the right statement for Plugin Snapshots repostory?

  • The repository from which to resolve releases
  • The repository from which to resolve snapshots
  • The repository from which to resolve plugin releases
  • The repository from which to resolve plugin snapshots (Ans)

Which is a wrong statement of “Artifactory supports import and export of data at two levels:”

  • System level
  • Repository level
  • System and Repository level
  • Artifactory level (Ans)

All following statements are correct about Pro Features of Artifactory?

  • Artifactory Query Language
  • Black Duck Code Center integration
  • Filtered Resources
  • GPG Signing
  • JFrog CLI
  • LDAP Groups
  • Repository Layouts
  • Repository Replication
  • Smart Search
  • YES (Ans)
  • NO
Rajesh Kumar
Total Page Visits: 768 - Today Page Visits: 2