Module 1 challenge :Configuration Management and the Cloud (Google IT Automation with Python Professional Certificate) Answers 2025
1. Idempotency
❌ Each run changes state
✔️ Operation can be repeated without unintended side effects
❌ Uses declarative language
❌ Keeps detailed logs
2. Scaling the gaming platform
❌ Optimize code only
❌ Queue system to limit players
✔️ Migrate to cloud + distributed architecture with load balancing
❌ Upgrade single server
3. Puppet ensure => directory
❌ Ensures directory is empty
✔️ Verifies directory exists or creates it
❌ Creates a file named /etc/sysctl.d with text “directory”
❌ Searches and renames existing directory
4. Puppet capabilities (select all that apply)
❌ Directly edit source code
✔️ Automatically install/manage software
✔️ Enable/disable/start/stop services
✔️ Add/remove/modify configuration files
5. Puppet DSL + facts
❌ DSL for manual commands + facts = GUI monitoring
✔️ DSL defines desired state; facts provide info about nodes for tailored configs
❌ DSL for reporting; facts for encryption
❌ DSL for custom resource types; facts define resource order
6. Purpose of grouping resources into a class
❌ Define order of resources
✔️ Organize related resources for maintainability
❌ Specify Puppet master
❌ Encrypt sensitive data
7. About the Puppet users class (select all that apply)
✔️ alice is a resource type within the class
✔️ ensure specifies a configuration setting
✔️ true is a value for managehome
✔️ Code defines a class called users
8. Puppet’s approach to configuration management (select all that apply)
❌ exec resource is inherently idempotent (it’s not guaranteed)
✔️ Most resources are idempotent
✔️ Puppet runs are stateless
✔️ Puppet uses a declarative approach
9. True statements about Puppet (select all that apply)
✔️ Determines package manager based on OS
✔️ Manages configuration files
✔️ Client-server architecture with agents + master
❌ Primarily for network routers with limited server config
10. Purpose of $facts
❌ Command-line tool
✔️ Built-in hash with node info; used to check is_virtual
❌ Deprecated feature
❌ User-defined variable storing Puppet master info
📌 Summary Table
| Q# | Correct Answer(s) |
|---|---|
| 1 | Operation can be repeated without unintended side effects ✔️ |
| 2 | Migrate to cloud + distributed architecture ✔️ |
| 3 | Verifies directory exists or creates it ✔️ |
| 4 | Install/manage software ✔️, Services ✔️, Config files ✔️ |
| 5 | DSL defines state; facts provide node info ✔️ |
| 6 | Organize resources for maintainability ✔️ |
| 7 | alice resource ✔️, ensure ✔️, true ✔️, class defined ✔️ |
| 8 | Most resources idempotent ✔️, stateless ✔️, declarative ✔️ |
| 9 | Package manager ✔️, config files ✔️, client-server ✔️ |
| 10 | Built-in hash with node info ✔️ |