LPI
117-303 · Question #27
What is the syntax error in the following simple Puppet configuration file? class test_class { file { "/tmp/test.txt": mode => 600, owner => root, group => root } } # Define the node node testclient…
The correct answer is D. isa should be include. See the full explanation below for the reasoning.
Question
What is the syntax error in the following simple Puppet configuration file? class test_class { file { "/tmp/test.txt": mode => 600, owner => root, group => root } } # Define the node node testclient { isa test_class }
Options
- AComments begin with // character and not a #.
- BThe colon (:) after /tmp/test.txt should be a semicolon (;).
- Cclass, node and file sections require a semicolon (;) at the end of their definitions.
- Disa should be include.
How the community answered
(63 responses)- A6% (4)
- B5% (3)
- C14% (9)
- D75% (47)
Community Discussion
No community discussion yet for this question.