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

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

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy