{"id":8817,"date":"2020-01-16T05:50:43","date_gmt":"2020-01-16T05:50:43","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=8817"},"modified":"2021-11-13T11:01:24","modified_gmt":"2021-11-13T11:01:24","slug":"puppet-interview-questions-and-answer-part-3","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/puppet-interview-questions-and-answer-part-3\/","title":{"rendered":"Puppet Interview Questions and Answer Part \u2013 3"},"content":{"rendered":"\n<p><strong>To which parameter do you assign PHP.INI configurations when declaring the mayflower-php class?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>settings (Ans)<\/strong><\/li><li>config<\/li><li>ini<\/li><li>php<\/li><\/ul>\n\n\n\n<p><strong>When dealing with a large number of ephemeral nodes that consume licenses, how would you remove those nodes from Puppet Enterprise?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Delete the node<\/li><li><strong>Purge the node (Ans)<\/strong><\/li><li>Erase the node<\/li><\/ul>\n\n\n\n<p><strong>Under which node in the dashboard can you run the puppet agent remotely on an agent system?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Nodes (Ans)<\/strong><\/li><li>Configuration<\/li><li>Orchestrator<\/li><li>Access Control<\/li><\/ul>\n\n\n\n<p><strong>Consider the following site.pp:<br> File { backup =&gt; false }<br> node &#8216;centos7&#8217; { include motd }<br> Which nodes can make use of this file?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>All nodes<\/li><li>CentOS 7 and any node with a file resource<\/li><li><strong>CentOS 7 only (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which is the default fall-back file if no match is found in the defined hierachy?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>shared<\/li><li><strong>common (Ans)<\/strong><\/li><li>hiera<\/li><li>data<\/li><\/ul>\n\n\n\n<p><strong>What is the minimum required RAM for Puppet Enterprise and Puppet Server?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>16GB<\/li><li>2GB<\/li><li>8GB<\/li><li><strong>4GB (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which agents packages are available on the Puppet Enterprise Server by default?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>The matching package to the Server Platform (Ans)<\/strong><\/li><li>Ubuntu and Red Hat packages<\/li><li>All Red Hat packages<\/li><li>SUSE and Red Hat Packages<\/li><\/ul>\n\n\n\n<p><strong>Which command can be used to set the hostname on systemd based Linux distributions?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>hostnamed<\/li><li><strong>hostnamectl (Ans)<\/strong><\/li><li>host<\/li><\/ul>\n\n\n\n<p><strong>What port is used by the web-based installer?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>8120<\/li><li>443<\/li><li><strong>3000 (Ans)<\/strong><\/li><li>8080<\/li><\/ul>\n\n\n\n<p><strong>In the Dashboard, what type of Puppet code to be assign to agent groups?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Manifests<\/li><li>Modules<\/li><li><strong>Classes (Ans)<\/strong><\/li><li>Resources<\/li><\/ul>\n\n\n\n<p><strong>What do you need to select first before you can run the Puppet agent remotely?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The Node from Configuration<\/li><li><strong>The Node from Inventory (Ans)<\/strong><\/li><li>The Node from Classification<\/li><\/ul>\n\n\n\n<p><strong>Which keyword should be used when declaring classes within roles?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>declare<\/li><li><strong>include (Ans)<\/strong><\/li><li>class<\/li><li>define<\/li><\/ul>\n\n\n\n<p><strong>On which device or devices do you install puppet modules when using the Puppet Enterprise?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Server and Agents<\/li><li>All Nodes<\/li><li><strong>Puppet Server (Ans)<\/strong><\/li><li>CentOS Nodes<\/li><li>Ubuntu Nodes<\/li><\/ul>\n\n\n\n<p><strong>How can you include all nodes from the example.com domain only in a node definition?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>node \/example.com$\/ (Ans)<\/strong><\/li><li>node \/example.com\/<\/li><li>node \/example.com\/<\/li><li>node example.com<\/li><\/ul>\n\n\n\n<p><strong>Which key is used to locate the directory in which backend files are located?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>json<\/li><li><strong>datadir (Ans)<\/strong><\/li><li>yaml<\/li><li>hierarchy<\/li><\/ul>\n\n\n\n<p><strong>Where in the Dashboard do you find node groups?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Inventory &gt; Groups<\/li><li>Inventory &gt; Classification<\/li><li>Nodes &gt; Groups<\/li><li><strong>Nodes &gt; Classification (Ans)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>Which manifest file is used to assign work by default to nodes on the Puppet Server?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>site.pp (Ans)<\/strong><\/li><li>resource.pp<\/li><li>global.pp<\/li><li>hiera.yaml<\/li><\/ul>\n\n\n\n<p><strong>In the \/etc\/hosts file what is the format of each entry?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>IP FQDN ALIAS (Ans)<\/strong><\/li><li>FQDN IP ALIAS<\/li><li>IP ALIAS FQDN<\/li><\/ul>\n\n\n\n<p><strong>Which Linux command can be used to read the installation script for the Puppet Agent?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>wget<\/li><li><strong>curl (Ans)<\/strong><\/li><li>put<\/li><li>ftp<\/li><\/ul>\n\n\n\n<p><strong>Which role may be useful for auditors of Puppet?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>View-only<\/li><li>Read-only <\/li><li><strong>Viewers (Ans)<\/strong><\/li><li>Audit<\/li><li>Operators<\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_29676\"><iframe loading=\"lazy\"  id=\"_ytid_69854\"  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_29676\"  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>To which parameter do you assign PHP.INI configurations when declaring the mayflower-php class? settings (Ans) config ini php When dealing with a large number of ephemeral nodes that consume licenses,&#8230; <\/p>\n","protected":false},"author":1,"featured_media":8971,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[89],"tags":[5682,159,5681,5680],"class_list":["post-8817","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-puppet","tag-node-group","tag-puppet","tag-puppet-agent","tag-puppet-enterprise"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8817","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=8817"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8817\/revisions"}],"predecessor-version":[{"id":25111,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8817\/revisions\/25111"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8971"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=8817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=8817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=8817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}