Browse all practice questions for the Puppet Certified Professional Practice Exam. Search by topic, open any question and review its full explanation, then test yourself in the practice quiz.

Puppet Certified Professional Practice Exam course image
More practice questions

These questions are part of the practice quiz. Start practicing

  • Which command generates an empty skeleton of directories required to create a new Puppet module?
  • What is the purpose of the notify metaparameter in Puppet?
  • In which class is the prune_upto parameter located for setting the pruning database cronjob?
  • Which classes will be executed on the node "webserver01.mylabserver.com" based on the provided node definitions?
  • True or False: Classes must first be added to the enterprise console before they can be assigned to a node.
  • What is the expected result of the exec resource "echo tests1 >> /etc/motd" when the condition is onlyif "test -f /etc/motd"?
  • What variable value will be displayed in the notify resource when the node’s certificate name is webserver01.mylabserver.com?
  • What is the primary function of the Puppet Agent?
  • Do you need a network connection to a puppet master to run puppet apply on an agent?
  • How can you trigger a Puppet agent run on nodes running Red Hat Enterprise Linux using live management?
  • Which command displays all signed certificates on the Puppet master?
  • Where will the autoloader look for the class definition for ssh::server::keys?
  • What does the 'report' step in Puppet allow administrators to do?
  • After applying the shown Puppet manifest, which two entries in the /etc/hosts file will remain unchanged?
  • Which strategy does NOT support class-based ordering in Puppet?
  • Which file type is typically used for Puppet module metadata?
  • What is true about class declarations in Puppet?
  • What is one method for modifying a Puppet class to include dynamic parameters?
  • How does Puppet handle resources managed with capitalized references?
  • Which two actions might be taken using only the core types?
  • What parameters can be passed to the puppet module install command?
  • What action should be taken to reduce the console database size caused by increased reports from new nodes?
  • Puppet manifests should always have which file extension?
  • What will the value of $server be in the notify resource after executing the node declaration for "webserver.mylabserver.com"?
  • Which of the following would be the output of a notify resource that references an undeclared variable?
  • Which statements are true regarding module and class names?
  • Based on the provided information, which class would be declared on the given node certname "webserver1.mylabserver.com"?
  • What command can be used to restart the service responsible for background tasks in Puppet Enterprise?
  • What is the outcome if a class name starts with an underscore?
  • For a node running the environment name "dev", what will the URL value be based on the Hiera data provided?
  • What setting should be in the Puppet agent's puppet.conf [agent] section to submit agent report logs to a Puppet master?
  • Puppet classes are primarily composed of which of the following?
  • Which of the following classes will be executed on the node "webserver01.mylabserver.com" based on the provided code?
  • Which statement is true regarding class and variable naming conventions?
  • What happens when Hiera looks up a key that does not exist at the top level?
  • A class with the same name as the module goes into which file?
  • Which of the following are types of events found in the event inspector? Choose the 2 correct answers.
  • True or False: One should always use the same module to manage all aspects of an application or technology stack.
  • What should you ensure is open and accessible on the Puppet master during the installation process?
  • When is the onlyif attribute of the exec type useful?
  • True or False: If the onlyif attribute is set, then the exec will only run if the command associated to the onlyif attribute has an exit code of 0.
  • Where does a Puppet agent run start from?
  • What will happen if a node is included in more than one role?
  • Can class definitions contain class declarations?
  • Is the following statement a valid legal statement in Puppet code: package { 'resource-title' : name => $::operatingsystem ? { 'redhat' => $::memory ? { 512 => 'httpd', 128 => 'http', } 'debian' => 'apache2', }, ensure => installed, }?
  • Which two actions does a puppet agent command complete?
  • True or False: Modules in Puppet are self-contained bundles.
  • True or False: Resource titles in Puppet classes are case sensitive.
  • Which two settings in puppet.conf are required to connect the Puppet master to an external node classifier?
  • Which classes will be executed for the node "webserver01.mylabserver.com" based on the given declaration?
  • The event inspector reports on data from which storage?
  • True or False: Metaparameters are parameters that work with any resource type.
  • If a class is inherited but not declared, what happens in Puppet?
  • In which module sub-directory should custom facts be placed to allow for synchronization using plugin sync?
  • What does the $:: in Puppet signify when used in a variable?
  • Which puppet module command will prepare a local module for release on the Puppet Forge?
  • What will be the value of the variable $title if the node's certificate name is webserver01.mylabserver.com?
  • If a Puppet configuration has a false condition in it, what is the expected behavior?
  • What kind of resource does the exec type represent in Puppet?
  • What is the main purpose of the Puppet master?
  • What does the parameter `--noop` do when used with Puppet commands?
  • Reports available from within the console provide which of the following information? Choose the 3 correct answers.
  • How many lookup functions does Hiera provide?
  • True or False: If the unless attribute is set, then the exec will run unless the command has an exit code of 0.
  • Which command will display all installed modules from the Puppet Forge?
  • Which constructs can you use in a Puppet module for varying service resource behavior based on memory?
  • Which command would properly clean a certificate associated with a specific node?
  • From what perspective does the Puppet event inspector provide insights?
  • What is a core benefit of using Puppet for infrastructure management?
  • What key should be added to the YAML data source for automatic parameter lookup?
  • What is a possible solution when a certificate retrieved from the master does not match the agent's private key?
  • In puppet manifests, what does the 'contain' function do?
  • Why might a Puppet run fail to install a package?
  • What URL value will be returned for a node in the "dev" environment with the hostname "webserver01.mylabserver.com" when using the provided Hiera hierarchy?
  • What configuration file is used to configure Puppet report processors?
  • Which command should be executed to recover from a Puppet installation failure due to a configuration error?
  • In Puppet, which directive allows you to include other classes in your manifests?
  • True or False: Hiera data file names must match the case-sensitive format according to their matching values.
  • Which command will load additional facts when using Facter?
  • Which command would you use to ensure that the latest Puppet modules are installed?
  • Which phrase describes the purpose of the 'source' attribute in a file resource?
  • What file in a module serves as the entry point for Puppet class definitions?
  • What will be the value of $title for the node named "webserver01.mylabserver.com"?
  • What kind of variable is used to hold the output of a class or manifest in Puppet?
  • If the operating system of the node is SUSE, what is likely to happen with the provided Puppet code?
  • What occurs when a class is included after being declared?
  • Which two commands would you use to install the logstash module from the elasticsearch user on the Puppet Forge?
  • Which parameters can be used with the puppet module install command?
  • True or False: Case statements in Puppet require a default match.
  • Can the manifests directory in a Puppet module contain usable sub-directories?
  • What will puppet parser output when a file resource type with the same resource title/name is declared twice?
  • What functionality does the Puppet Enterprise console's Event Inspector provide?
  • If a specific node is classified in both a node group and site.pp, what is the expected behavior during a Puppet agent run?
  • What is the function of a Puppet fact in the context of node classification?
  • True or False: When installing the Puppet master and Console on separate servers, installing the console before the Puppet master could cause Puppet master installation to fail.
  • If the exec command receives a refresh event after it has already run, what will happen?
  • Which command would you utilize to install a Puppet module with a specific version?
  • True or False: The event inspector will fetch the data once while loading and use the same data until it is closed or the data is reloaded.
  • Which of the following functions can be used to declare a class?
  • When deactivating an enterprise Puppet agent, what does the command puppet node deactivate do?
  • Which command is used to restart the Puppet Enterprise dashboard worker service?
  • What is the location of the answer file created by the Puppet Enterprise installer?
  • What does the provided Puppet exec code do regarding idempotence?
  • What does the notify resource demonstrate in Puppet?
  • Given the Puppet code, what value would you expect $server to have when executed in the notify resource?
  • Which designation is not a valid directory for storing configuration components in a Puppet module?
  • Which attribute would you include in an exec resource to ensure it runs only when notified?
  • Which two scenarios would result in an error during catalog compilation?
  • Is the given exec code idempotent and can it be made so?
  • What is the function of the 'unless' attribute in an exec resource?
  • Which metaparameter applied to a Puppet resource type would cause the resource type to be ignored?
  • True or False: If site.pp contains at least one node definition, it must have one for every node.
  • How do you create a custom function in Puppet?
  • Which of the following puppet module commands will create a boiler plate template for new modules?
  • Do templates with the .erb extension cause errors during catalog compilation?
  • What does Puppet generally use to pull in configuration from external resources?
  • What does the metaparameter notify imply in terms of resource relationships?
  • How can you access the value of the ipaddress fact within a manifest?
  • Which of the following is not an acceptable class name in Puppet?
  • In which scenario would you expect $server to have the value of "localhost"?
  • What is the purpose of the 'manage' action within Puppet?
  • What is one reason to use a custom function in Puppet?
  • What does Hiera primarily manage in Puppet?
  • What must be done before running the puppet agent again after a node has been rebuilt?
  • Assuming the Puppet agent run happens at 12:05 am, what is expected with the defined resource during this time?
  • What does the error 'ERROR: Could not find a suitable provider for package' indicate when installing the zsh package?
  • If the refreshonly attribute is set to true in an exec resource, what does it imply about the execution behavior?
  • Given specific Hiera data, what will the URL value be for a node with the hostname webserver01 in the development environment?
  • What is the default node name for Puppet agents?
  • Which command would you execute to remove all certificate information for a node from the Puppet master?
  • True or False: Best practice dictates always including a default match when using conditional expressions.
  • What is the value of the local $vhost_file variable when defined as $vhost_file = template("${module_name}/vhost.erb")?
  • How can MCollective be used to trigger a Puppet run on all CentOS nodes?
  • True or False: Variables assigned to a node group within the console are considered top scope variables.
  • True or False: The resource type exec has the ability to listen for relationship notifications such as subscribe and notify.
  • What happens if a required condition for a Puppet resource is not met?
  • Which syntax is used to declare a package resource in Puppet?
  • In a Puppet class, which variable holds information specific to the node's operating system?
  • In the given Puppet class example, what error occurs due to resource title duplication?
  • In Puppet, what is the purpose of the refreshonly attribute?
  • What does a "change" event indicate regarding a Puppet resource type?
  • Which of the following are acceptable module names?
  • What happens to '/etc/motd.txt' during Puppet enforcement with the provided resource type definition?
  • Which of the following is NOT a benefit of using Hiera with Puppet?
  • What will occur if a variable is reassigned at the same scope in Puppet?
  • In a setup with Hiera, what URL value would a redhat OS family node in the "dev" environment return?
  • What aspect does the Puppet Enterprise event inspector display from?
  • In Puppet, what does the term “resource” refer to?
  • What is the expected result when the Puppet agent runs and executes the command "echo tests >> /etc/motd"?
  • What is the purpose of specifying the owner attribute in a file resource declaration?
  • Which of the following are valid parameters for the Puppet module install command?
  • What is a common method of ensuring configurations for nodes are met in Puppet?
  • Why is Puppet considered idempotent?
  • Which of the following is a fundamental part of Puppet's event management?
  • What character is used in Puppet to separate modules and classes in a path notation?
  • Based on given node definitions, which class is included for "webserver1.mylabserver.com"?
  • What would the notify message output during the puppet run in the given class code?
  • If webserver01 is defined in both a node group and site.pp, what would happen during a Puppet agent run?
  • What is the role of a Puppet manifest?
  • True or False: If a resource receives multiple refresh events, they will combine and refresh only once.
  • True or False: Resource Collectors can only search on attributes which are present in the manifests and cannot read the state of the target system.
  • Using Puppet, what is the correct syntax to declare a variable?
  • What happens when the exec's onlyif condition fails?
  • True or False: If a node matches multiple node definitions, Puppet will use one of them without guarantee which one.
  • What is the primary purpose of integrating a CMDB with Puppet?
  • True or False: The contain() function should always be called when using the anchor pattern.
  • Which of the following is NOT a step in the iterative Model Based Approach used by Puppet?
  • Which method can be used to supply the $backends variable to a Puppet template?
  • Which attributes make the exec resource type idempotent?
  • In Puppet, which file extension is commonly used for class definition files?
  • What happens if you use a class that is not defined in the manifests directory?
  • Which of the following describes Hiera's role in Puppet?
  • Which parameter of the exec resource allows execution only if a specific condition is true?
  • Static files that serve as the content for files managed by Puppet should be placed in which of the directories in a module?
  • In Puppet Enterprise, where is the SSL directory located?
  • What can the exec command in Puppet perform?
  • What is the purpose of the 'hiera_array' function in Puppet?
  • Which type of resource would you use to ensure a service is restarted after a configuration file change?
  • Where are functions executed as part of Puppet's catalog compilation process?
  • What is the expected result of the provided package and service code?
  • Which method would help in debugging Puppet runs effectively?
  • Identify an acceptable variable name in Puppet.
  • Which files are required to publish a module to the Puppet Forge?
  • Which class will run for the certname "webserver.mylabserver.com"?
  • What parameter in Puppet allows you to specify custom settings for a resource?
  • When troubleshooting communication errors between nodes and the Puppet master, which is a recommended step?
  • In Puppet, what is the primary role of the 'node' declaration?
  • Which command is primarily used to execute Puppet manifests?
  • What parameter would you change if you want to modify the pruning of old Puppet data from default 30 days?
  • Which command will show what files in a Puppet Forge module have been modified since installation?
  • True or False: The exec resource type is idempotent by default.
  • What two types of information does PuppetDB store?
  • What is the function of the autovacuum setting in PostgreSQL concerning performance?
  • Which two parameters must be substituted to have the installer consume the answers in the install-answers file?
  • What does enabling storeconfigs with PuppetDB allow you to do?
  • How can you resolve the issue of background tasks left inside the Puppet Enterprise console?
  • What insight does live management provide when browsing resources managed with Puppet? Choose the 3 correct answers.
  • In the example provided, what will be the value displayed in the notify resource if the certificate name is webserver01.mylabserver.com?
  • What Puppet function can ensure a resource is managed only once?
  • What will the output of variable $0 be for a host with a hostname of "www01" in the given code?
  • In the given code, what type of error arises when running puppet parser validate?
  • Can Puppet manifests be stored in the 'manifests' or 'manifest' directory?
  • Which of the following is NOT included in a Puppet agent run report?
  • Which of the following is NOT a built-in report processor with Puppet?
  • True or False: Selector expressions can be nested within another selector statement in Puppet.
  • Given the provided Puppet code, what will happen with the exec resource?
  • True or False: You cannot add any other directories to a module besides the pre-defined ones.
  • Which command lists usage instructions for each puppet resource type?
  • Under which condition does a failure event occur in the event inspector?
  • True or False: Any Puppet setting that's valid in the configuration file is also a valid long argument.
  • Which resource metaparameter should be used to trigger the restart of a service after a configuration file change?
  • What is the expected value of the resource named centos64c in the provided hosts?
  • If a variable is accessed by top scope, which value will be displayed in the notify resource for webserver01.mylabserver.com?
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy