{"id":9039,"date":"2020-01-20T08:01:00","date_gmt":"2020-01-20T08:01:00","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=9039"},"modified":"2021-11-13T07:05:26","modified_gmt":"2021-11-13T07:05:26","slug":"ansible-interview-questions-and-answer-part-12","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/ansible-interview-questions-and-answer-part-12\/","title":{"rendered":"Ansible Interview Questions and Answer \u2013 Part 12"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Which is the right repository definition should be inserted in pom.xml for uploading snapshot artifactory?<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/cbf0e94fd30c5567a2763e2dab607920.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Which is the right repository definition should be inserted in pom.xml for uploading release artifactory?<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/5da5428de1bf75a63d8508a0e6d661e2.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Which is the right repository definition should be inserted in pom.xml which holds release and snapshot artifactory?<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/fca83e6ce81e6eb99c7f5d3b35dc46fe.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What maven elements should be added in setting.xml to add a artifactory credentials?<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/447d2dcfe9b6ec25edd0b700f5c28684.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Which is right maven goal to upload the package into Artifactory?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>mvn deploy (Ans)<\/strong><\/li><li>mvn upload<\/li><li>mvn install<\/li><li>mvn download<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is the right definition of Local Repository?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Local repositories are physical, locally-managed repositories into which you can deploy artifacts. (Ans)<\/strong><\/li><li>A Local repository serves as a caching proxy for a repository managed at a remote URL (which may itself be another Artifactory remote repository).  <\/li><li>A Local repository (or &#8220;repository group&#8221;) aggregates several repositories with the same package type under a common URL.<\/li><li>Local repositories are physical, remote-managed repositories into which you can deploy artifacts.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is the right definition of Remote Repository?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Remote repositories are physical, locally-managed repositories into which you can deploy artifacts.<\/li><li><strong>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) <\/strong><\/li><li>A Remote repository (or &#8220;repository group&#8221;) aggregates several repositories with the same package type under a common URL.<\/li><li>Remote repositories are physical, remote-managed repositories into which you can deploy artifacts.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is the right definition of Virtual Repository?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Virtual repositories are physical, locally-managed repositories into which you can deploy artifacts.<\/li><li>A Virtual repository serves as a caching proxy for a repository managed at a remote URL (which may itself be another Artifactory remote repository).  <\/li><li><strong>A Virtual repository (or &#8220;repository group&#8221;) aggregates several repositories with the same package type under a common URL. (Ans)<\/strong><\/li><li>Virtual repositories are physical, remote-managed repositories into which you can deploy artifacts.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is not the Basic Authentication supported in Artifactory?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>LDAP<\/li><li>Active Directory<\/li><li>Single Sign-On<\/li><li><strong>PAML (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is not the Basic Authentication supported in Artifactory?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>SAML<\/li><li>OAuth<\/li><li><strong>SCP (Ans)<\/strong><\/li><li>Atlassian Crowd Integration<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Which database is not supported for Artifactory installtion?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>MySQL v5.5 and above with InnoDB<\/li><li>Oracle version 10g and above<\/li><li>Microsoft SQL Server 2008 and above<\/li><li><strong>Sybase (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is not a right tool to manage Binary repository?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Artifactory<\/li><li>Nexus<\/li><li>Archiva<\/li><li><strong>git (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Are both right statement about downloading the artifact from Artifactory?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1.- Search:<br>\nPerform 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.<br>\n2.- the Maven way:<br>\nArtifactory generates a standard XML metadata that is to be consumed by Maven, because Maven is faced with the same problem &#8211; 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.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>YES (Ans)<\/strong><\/li><li>NO<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Which one is wrong statement of gradle.properties file location?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>In project build dir (that is where your build script is)<\/li><li>In sub-project dir<\/li><li>In gradle user home (defined by the GRADLE_USER_HOME environment variable, which if not set defaults to USER_HOME\/.gradle)<\/li><li><strong>C Drive (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Is it right plugins syntax to add in order to upload artifact in Artifactory?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>apply plugin: &#8216;artifactory-publish&#8217;<\/li><li>apply plugin: &#8216;artifactory-upload&#8217;<\/li><li>apply plugin: &#8216;artifactory-artifact&#8217;<\/li><li>apply plugin: &#8216;artifactory-push&#8217; <\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Is it right syntax to add in order to upload artifact in Artifactory?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">artifactory {<br>\n    contextUrl = &#8216;http:\/\/path.to.artifactory&#8217; \/\/ base artifactory url<br>\n  publish {<br>\n    repository {<br>\n      repoKey = &#8216;libs-releases&#8217;   \/\/The Artifactory repository key to publish to<br>\n      username = &#8216;publisher&#8217;      \/\/The publisher user name<br>\n      password = &#8221;       \/\/The publisher password<br>\n      maven = true<br>\n    }<br>\n  }<br>\n}<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>YES (Ans)<\/strong><\/li><li>False<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is the right statement for Snapshots repostory?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The repository from which to resolve releases<\/li><li><strong>The repository from which to resolve snapshots (Ans)<\/strong><\/li><li>The repository from which to resolve plugin releases<\/li><li>The repository from which to resolve plugin snapshots<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is the right statement for Releases repostory?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>The repository from which to resolve releases (Ans)<\/strong><\/li><li>The repository from which to resolve snapshots<\/li><li>The repository from which to resolve plugin releases<\/li><li>The repository from which to resolve plugin snapshots<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is the right statement for Plugin Releases repostory?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The repository from which to resolve releases<\/li><li>The repository from which to resolve snapshots<\/li><li><strong>The repository from which to resolve plugin releases (Ans)<\/strong><\/li><li>The repository from which to resolve plugin snapshots<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is the right statement for Plugin Snapshots repostory?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The repository from which to resolve releases<\/li><li>The repository from which to resolve snapshots<\/li><li>The repository from which to resolve plugin releases<\/li><li><strong>The repository from which to resolve plugin snapshots (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Which is a wrong statement of &#8220;Artifactory supports import and export of data at two levels:&#8221;<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>System level<\/li><li>Repository level<\/li><li>System and Repository level<\/li><li><strong>Artifactory level (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>All following statements are correct about Pro Features of Artifactory?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Artifactory Query Language<\/li><li>Black Duck Code Center integration<\/li><li>Filtered Resources<\/li><li>GPG Signing<\/li><li>JFrog CLI<\/li><li>LDAP Groups<\/li><li>Repository Layouts<\/li><li>Repository Replication<\/li><li>Smart Search<\/li><li><strong>YES (Ans)<\/strong><\/li><li>NO<\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_19336\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_24137\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_19336\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>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&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5038],"tags":[639,767,766,482],"class_list":["post-9039","post","type-post","status-publish","format-standard","hentry","category-ansible","tag-ansible","tag-answer","tag-interview","tag-questions"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=9039"}],"version-history":[{"count":6,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9039\/revisions"}],"predecessor-version":[{"id":25047,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9039\/revisions\/25047"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=9039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=9039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=9039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}