{"id":8790,"date":"2020-01-15T08:28:52","date_gmt":"2020-01-15T08:28:52","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=8790"},"modified":"2021-11-13T11:04:42","modified_gmt":"2021-11-13T11:04:42","slug":"puppet-interview-questions-and-answer-part-2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/puppet-interview-questions-and-answer-part-2\/","title":{"rendered":"Puppet Interview Questions and Answer Part \u2013 2"},"content":{"rendered":"\n<p><strong>Where is the Puppet configuration file stored?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\/etc\/puppet\/puppet.conf (Ans)<\/strong><\/li><li>\/var\/lib\/puppet\/puppet.conf<\/li><li>\/usr\/share\/puppet\/puppetmaster.conf<\/li><\/ul>\n\n\n\n<p><strong>Puppet can manage all of following operating systems except\u2026<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Mac OS X<\/li><li>Windows<\/li><li>Unix<\/li><li>Solaris<\/li><li>FreeBSD<\/li><li><strong>None of these. Puppet can manage all of them. (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which is true about resource parameters\/attributes?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>They are variable declarations<\/li><li>They are attribute\/value pairs separated by a colon<\/li><li><strong>They are attribute\/value pairs separated by a &#8220;fat comma&#8221; (=&gt;) (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>In the Roles &amp; Profiles pattern, what is a profile?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>A non-technical description of what a server does or what its purpose is<\/li><li>An abstraction that contains specifics about a server&#8217;s packages and other settings<\/li><li><strong>A technical description of a server&#8217;s packages, files, services, and other settings (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>In a resource declaration, attributes with a boolean (true\/false) value must\u2026<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>be in single quotes<\/li><li>be in double quotes<\/li><li><strong>not be in any quotes (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which of the following is the beginning of a valid node definition?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>define node &#8220;server7&#8221;: {<\/li><li>{ node &#8216;server7&#8217;:<\/li><li><strong>node &#8216;server7&#8217; { (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>After installing the Puppet server for the first time, what command should be used to generate SSL certificates?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>sudo puppet master &#8211;verbose &#8211;no-daemonize (Ans)<\/strong><\/li><li>sudo puppet &#8211;verbose &#8211;no-daemonize<\/li><li>sudo puppet master &#8211;generate &#8211;no-daemonize<\/li><\/ul>\n\n\n\n<p><strong>You&#8217;ve modified the \/etc\/sysconfig\/iptables file. What command will ensure your changes take effect?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>sudo iptables reload<\/li><li>sudo service iptables stop<\/li><li>sudo chkconfig iptables on<\/li><li><strong>sudo service iptables restart (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>What are some disadvantages of using scripts?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>They&#8217;re not powerful enough for configuration management<\/li><li><strong>They&#8217;re inherently complex (Ans)<\/strong><\/li><li>They&#8217;re declarative instead of procedural<\/li><\/ul>\n\n\n\n<p><strong>Given a selector variable named $ntppackage, which would be a valid resource declaration that makes use of this variable?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>package { $ntppackage: ensure =&gt; &#8216;installed&#8217;, } (Ans)<\/strong><\/li><li>package { &#8220;$ntppackage&#8221;: ensure =&gt; true, }<\/li><li>package { &#8216;$ntppackage&#8217;: ensure =&gt; &#8216;installed&#8217;, }<\/li><\/ul>\n\n\n\n<p><strong>When creating a new role, why do you not create the init.pp manifest?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>You never use sub-classes.<\/li><li><strong>You never use the role class directly. (Ans)<\/strong><\/li><li>The init.pp is for modules.<\/li><\/ul>\n\n\n\n<p><strong>The configuration history can be viewed by Node, Class, and which other object?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Module<\/li><li><strong>Resource (Ans)<\/strong><\/li><li>Agent<\/li><\/ul>\n\n\n\n<p><strong>On which port does the Puppet Fileserver run as standard?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>8080<\/li><li>443<\/li><li>80<\/li><li><strong>8140 (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>With which command can you locate the hiera.yaml file that is in use?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>puppet config print hiera_yaml<\/li><li>puppet config print hiera_config<\/li><li><strong>puppet config print hiera (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>How can you install a module from the Puppet Forge?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>sudo install puppet module <\/li><li>sudo puppet install module <\/li><li><strong>sudo puppet module install  (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>How many nodes can be used without charge with Puppet Enterprise?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>15<\/li><li>5<\/li><li>50<\/li><li><strong>10 (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which product includes the web dashboard? <\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Puppet DB<\/li><li>Puppet Agent<\/li><li><strong>Puppet Enterprise (Ans)<\/strong><\/li><li>Puppet Server <\/li><\/ul>\n\n\n\n<p><strong>Why must time be accurate before installing Puppet Enterprise or Server?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The Server hosts a web front-end<\/li><li><strong>The Server acts as Certifcate Authority (Ans)<\/strong><\/li><li>This is required by the Puppet-Agent<\/li><li>The Server hosts a database<\/li><\/ul>\n\n\n\n<p><strong>Which default user account is created for the web dashboard during the installation?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>root<\/li><li>administrator<\/li><li>webmin<\/li><li><strong>admin (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which node in the Dashboard can show you groups of agents?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Groups<\/li><li><strong>Classification (Ans)<\/strong><\/li><li>Inventory<\/li><li>Access Control <\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_32014\"><iframe loading=\"lazy\"  id=\"_ytid_93340\"  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_32014\"  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 class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Where is the Puppet configuration file stored? \/etc\/puppet\/puppet.conf (Ans) \/var\/lib\/puppet\/puppet.conf \/usr\/share\/puppet\/puppetmaster.conf Puppet can manage all of following operating systems except\u2026 Mac OS X Windows Unix Solaris FreeBSD None of these&#8230;. <\/p>\n","protected":false},"author":1,"featured_media":8932,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[89],"tags":[641,766,159,482],"class_list":["post-8790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-puppet","tag-answers","tag-interview","tag-puppet","tag-questions"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8790","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=8790"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8790\/revisions"}],"predecessor-version":[{"id":25115,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8790\/revisions\/25115"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8932"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=8790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=8790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=8790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}