Module 2 challenge :Configuration Management and the Cloud (Google IT Automation with Python Professional Certificate) Answers 2025
1. File extension for Puppet manifest
✔️ .pp
❌ .mf
❌ .txt
❌ .pup
2. Purpose of require and notify
❌ Not about absence or emails
❌ Not about usernames/passwords
❌ Not about logging levels
✔️ Create dependencies and ensure correct order; notify refreshes service
3. Puppet module file locations
-
init.pp→ manifests/ (defines a class with the same name as the module) -
vhost.conf.erb→ templates/ (contains placeholders for agent-specific data) -
ntp.conf→ files/ (copied to agent as-is)
4. Avoid duplicating common configurations
❌ Not avoiding multiple node definitions
❌ base.pp in top-level folder only
❌ Copy/paste classes in each node
✔️ Define a global base class in site.pp and include it in node definitions
5. Cryptographic security for node authentication
❌ FQDN
❌ Token authentication
❌ SSO
✔️ PKI (Public Key Infrastructure)
6. Puppet agent auto-check configuration
❌ sudo puppet update --auto
❌ sudo puppet config --enable/start
❌ sudo systemctl puppet
✔️ sudo systemctl enable puppet + sudo systemctl start puppet
7. Purpose of --noop parameter
❌ Not defining operations to avoid
❌ Not adding conditional rules
✔️ Simulates manifest evaluation without taking action
❌ Not passing a variable
8. Capabilities & limitations of testing approaches (select all that apply)
❌ Running on test machines eliminates other testing
❌ --noop perfectly substitutes for test machines
✔️ RSpec verifies catalog resources & attributes
✔️ puppet parser validate checks syntax but not logical correctness
9. Recommended way to apply updates to a fleet
❌ Don’t update existing services
❌ Wait for many changes before updating
✔️ Apply smaller changes incrementally
❌ Notify users to decide
10. Importance of default node (select all that apply)
✔️ Acts as a catch-all for unmatched nodes
❌ Not mandatory only for Puppet master
✔️ Ensures basic config for new nodes
❌ Puppet master can generate catalog without default node
📌 Summary Table
| Q# | Correct Answer(s) |
|---|---|
| 1 | .pp ✔️ |
| 2 | Dependencies + refresh service ✔️ |
| 3 | init.pp → manifests, vhost.conf.erb → templates, ntp.conf → files ✔️ |
| 4 | Global base class in site.pp ✔️ |
| 5 | PKI ✔️ |
| 6 | systemctl enable/start puppet ✔️ |
| 7 | Simulate evaluation (--noop) ✔️ |
| 8 | RSpec checks catalog ✔️, parser validate syntax ✔️ |
| 9 | Apply smaller changes incrementally ✔️ |
| 10 | Catch-all ✔️, ensures basic config ✔️ |