PUPPET EXAM QUESTIONS AND ANSWERS
puppet-enterprise-installer -s ./install-answers.txt
Given the following command, which two parameters should be substituted to have the
installer consume the answers in the install-answers file? (Choose two.)
puppet-enterprise-installer ./install-answers.txt * - Answers --A or -a
Which of the following are acceptable module names?
Choose the 2 correct answers:
- main_module
- module14
- 14module
- main - Answers -* module_14
* main_module
You've noticed an increase in the number of background tasks left inside the Puppet
Enterprise console. This caused because a background task might have died and left
invalid PID files. How might you resolve this issue? - Answers -service pe-puppet-
dashboard-workers restart
Given the following code, what key should be added to the YAML data source in order
for automatic parameter lookup to apply to this class?:
class ntp ($ntp = "default") {
} - Answers -ntp::ntp: server.com
classname::variablename::value
The Puppet master event inspector is reporting a "change" event on the httpd package
resource type in your Puppet module. What most likely has occurred with the resource
type? (Choose 4 correct answers)
- The httpd package was not installed and the Puppet configuration installed the httpd
package
- The httpd configuration was incorrect and the Puppet configuration updated the correct
configuration
- A requirement for this resource was not met. Thus Puppet does not compare its
current state to the desired state
- The httpd package was not installed but Puppet was not instructed to install the
package - Answers -- The httpd package was not installed and the Puppet configuration
installed the httpd package.
- The httpd configuration was incorrect and the Puppet configuration updated the correct
configuration.
,- The httpd package was not installed but Puppet was not instructed to install the
package, a requirement for this resource was not met.
A change event occurs when a property is out-of-sync and Puppet made a change to
enforce the desired configuration and put the property in the desired state.
When does a failure event occur in the event inspector?
- If a property is out of sync, when Puppet attempt to make changes, the changes failed.
- If a property is out of sync but a metaparameter is used to call the property and force
changes
- A requirement for this resource was not met. Thus Puppet does not compare its
current state to the desired state. This will occur when the schedule metaparemter is set
and the time interval does not meet the requirements or it is a general failure of the
resource type being enforced
- If a property is in sync and the Puppet master attempts to make a change anyway -
Answers -If a property is out of sync, when Puppet attempts to make changes, the
changes failed
What are two ways to access the value of the ipaddress fact inside a manifest? -
Answers -$ipaddress, $::ipaddress
When using Facter, which parameter will load additional facts distributed by Puppet? -
Answers -facter -p
The event inspector, which is how Puppet manages configurations and what is
happening when events occur, provides insights into our environment from what
perspective? - Answers -Classes, nodes, and resources
Which of the following is an acceptable class names?
Choose the correct answer:
- Main
- var_test
- Ntp
- Settings - Answers -var_test
Main is a reserved word in Puppet; class names cannot begin with capital letters
Given the following code, what will the variable $0 output for a host with a hostname of
"www01"?:
,class welcome {
if $::hostname =~ /^www(\d+)/ {
notice("you have arrived at server $0 ")
}
} - Answers -you have arrived at server www01
True or False:
Hiera data files are case sensitive to what they are matching. For example if the
osfamily is RedHat the data file needs to match RedHat.yaml and not just redhat.yaml -
Answers -True
Given the following code and a node running the environment name "dev" and a
hostname of webserver01.mylabserver.com what will the URL value be?:
class show_url {
$url = hiera('url')
} - Answers -webserver.mydomain.com
Even though we have the node running in the development environment, notice in our
hierarchy all we have is certname and common. Therefore, we automatically will use the
certname lookup since it is the highest in the hierarchy. The returned value is just
webserver.mydomain.com because we are using just the hiera() function.
, It is 12:05 am. Given the following resource type definition what would you expect to
happen during the 12:05 Puppet agent run?:
schedule { 'maint':
range => "2 - 4",
period => daily,
repeat => 1,
}
exec { 'yum update -y':
schedule => 'maint',
} - Answers -The yum update -y would not be executed on the system
host { 'sles11a':
name => 'sles11a.puppetlabs.com',
ip => '10.20.1.77',
host_aliases => ['zypper'],
}
host { 'centos64c':
ip => '10.20.1.74',
}
host { 'server2008r2b':
ip => '10.20.1.80',
comment => 'windows',
}
After using Puppet to apply the manifest shown above, which two entries in the
/etc/hosts file will remain unchanged? - Answers -10.20.1.62 sles11a zypper # primary
mirror
10.20.1.74 centos64c
The Puppet installation process fails due to a configuration error. How might you
recover from the failed install? - Answers -Fix the configuration error and execute the
script ./puppet-enterprise-uninstaller
Voordelen van het kopen van samenvattingen bij Stuvia op een rij:
Verzekerd van kwaliteit door reviews
Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!
Snel en makkelijk kopen
Je betaalt supersnel en eenmalig met iDeal, creditcard of Stuvia-tegoed voor de samenvatting. Zonder lidmaatschap.
Focus op de essentie
Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!
Veelgestelde vragen
Wat krijg ik als ik dit document koop?
Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.
Tevredenheidsgarantie: hoe werkt dat?
Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.
Van wie koop ik deze samenvatting?
Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper GEEKA. Stuvia faciliteert de betaling aan de verkoper.
Zit ik meteen vast aan een abonnement?
Nee, je koopt alleen deze samenvatting voor €13,25. Je zit daarna nergens aan vast.