100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PUPPET EXAM QUESTIONS AND ANSWERS $13.49   Add to cart

Exam (elaborations)

PUPPET EXAM QUESTIONS AND ANSWERS

 9 views  0 purchase
  • Course
  • PUPPET
  • Institution
  • PUPPET

PUPPET EXAM QUESTIONS AND ANSWERS

Preview 4 out of 32  pages

  • September 18, 2024
  • 32
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • PUPPET
  • PUPPET
avatar-seller
GEEKA
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"?:

$hostname = "webhead01"
node "www01" {
$hostname = "webserver01"
include welcome
}

,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?:

$confdir/hiera.yaml file
--
:backends:
- yaml
:yaml:
:datadir: /etc/puppet/hieradata
:hierarchy:
- "%{certname}"
- common

Given the following Hiera data

#common.yaml
url: www.mydomain.com

#dev.yaml
url: dev.mydomain.com

#production.yaml
url: mydomain.com

#webserver01.mylabserver.com.yaml
url: webserver.mydomain.com

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',
}

# File: Original /etc/hosts

127.0.0.1 localhost
10.20.1.62 sles11a zypper # primary mirror
10.20.1.74 centos64c # decomissioned
10.20.1.80 server2008r2b
10.20.1.77 sles11a.puppetlabs.com


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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller GEEKA. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67163 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.49
  • (0)
  Add to cart