Advanced IaC Practices MCQs

  1. Which of the following best describes advanced IaC practices?
    a) Using automation, testing, and modularization for infrastructure code
    b) Manual server configuration
    c) Monitoring logs only
    d) Running CI/CD pipelines only
    View Answer

    Correct answer: A — Using automation, testing, and modularization for infrastructure code

  2. Which of the following is true about Terraform workspaces?
    a) They run pods directly
    b) They manage multiple environments with separate state files
    c) They store secrets only
    d) They monitor logs only
    View Answer

    Correct answer: B — They manage multiple environments with separate state files

  3. Which of the following is true about Ansible dynamic inventory?
    a) It runs pods directly
    b) It discovers hosts automatically from cloud providers
    c) It stores secrets only
    d) It monitors logs only
    View Answer

    Correct answer: B — It discovers hosts automatically from cloud providers

  4. Puppet environments allow:
    a) Pods run manually
    b) Separate configurations for dev, test, and prod
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Separate configurations for dev, test, and prod

  5. Which of the following is true about Chef policyfiles?
    a) Pods run manually
    b) They define node configurations in a single file
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — They define node configurations in a single file

  6. Terraform remote backends are used to:
    a) Pods run manually
    b) Store state files in remote storage systems
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Store state files in remote storage systems

  7. Which of the following is true about Ansible Vault?
    a) Pods run manually
    b) Encrypt sensitive data in playbooks
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Encrypt sensitive data in playbooks

  8. Puppet Hiera provides:
    a) Pods run manually
    b) Hierarchical configuration data management
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Hierarchical configuration data management

  9. Which of the following is true about Chef environments?
    a) Pods run manually
    b) Define settings for dev, test, and prod
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Define settings for dev, test, and prod

  10. Terraform provisioners are used to:
    a) Pods run manually
    b) Execute scripts after resource creation
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Execute scripts after resource creation

  11. Which of the following is true about Ansible handlers?
    a) Pods run manually
    b) Triggered by notifications when changes occur
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Triggered by notifications when changes occur

  12. Puppet catalogs contain:
    a) Pods run manually
    b) Compiled configuration applied to nodes
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Compiled configuration applied to nodes

  13. Which of the following is true about Chef cookbooks?
    a) Pods run manually
    b) Package recipes and resources for reuse
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Package recipes and resources for reuse

  14. Terraform modules allow:
    a) Pods run manually
    b) Reuse of infrastructure code across projects
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Reuse of infrastructure code across projects

  15. Which of the following is true about Ansible roles?
    a) Pods run manually
    b) Organize playbooks into reusable components
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Organize playbooks into reusable components

  16. Chef knife tool is used to:
    a) Pods run manually
    b) Manage nodes, cookbooks, and data bags
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Manage nodes, cookbooks, and data bags

  17. Which of the following is true about Terraform variables?
    a) Pods run manually
    b) Parameterize configurations for flexibility
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Parameterize configurations for flexibility

  18. Ansible templates use:
    a) Pods run manually
    b) Jinja2 for dynamic file generation
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Jinja2 for dynamic file generation

  19. Which of the following is true about Puppet modules?
    a) Pods run manually
    b) Package manifests and resources for reuse
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Package manifests and resources for reuse

  20. Chef roles define:
    a) Pods run manually
    b) Sets of configurations applied to nodes
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Sets of configurations applied to nodes

  21. Which of the following is true about Terraform outputs?
    a) Pods run manually
    b) Display values after resource creation
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Display values after resource creation

  22. Ansible tags allow:
    a) Pods run manually
    b) Selectively run specific tasks in playbooks
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Selectively run specific tasks in playbooks

  23. Which of the following is true about Puppet reports?
    a) Pods run manually
    b) Provide information about node runs and status
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Provide information about node runs and status

  24. Chef data bags are used to:
    a) Pods run manually
    b) Store global variables and configuration data
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Store global variables and configuration data

  25. Which of the following is true about Terraform plan command?
    a) Pods run manually
    b) Shows execution plan before applying changes
    c) Secrets storage only
    d) Logs monitoring only
    View Answer

    Correct answer: B — Shows execution plan before applying changes

  26. Which of the following is true about Terraform state locking?
    a) Prevents concurrent modifications to state files
    b) Runs pods directly
    c) Stores secrets only
    d) Monitors logs only
    View Answer

    Correct answer: A — Prevents concurrent modifications to state files

  27. Which of the following is true about Ansible Galaxy roles?
    a) Pods run manually
    b) Secrets storage only
    c) Community-provided reusable automation components
    d) Logs monitoring only
    View Answer

    Correct answer: C — Community-provided reusable automation components

  28. Puppet node definitions specify:
    a) Pods run manually
    b) Secrets storage only
    c) Configurations applied to specific nodes
    d) Logs monitoring only
    View Answer

    Correct answer: C — Configurations applied to specific nodes

  29. Which of the following is true about Chef Supermarket?
    a) Pods run manually
    b) Secrets storage only
    c) Repository for community cookbooks
    d) Logs monitoring only
    View Answer

    Correct answer: C — Repository for community cookbooks

  30. Terraform backend configuration defines:
    a) Pods run manually
    b) Secrets storage only
    c) Where state files are stored and managed
    d) Logs monitoring only
    View Answer

    Correct answer: C — Where state files are stored and managed

  31. Which of the following is true about Ansible dynamic inventory plugins?
    a) Pods run manually
    b) Secrets storage only
    c) Automatically fetch hosts from cloud providers
    d) Logs monitoring only
    View Answer

    Correct answer: C — Automatically fetch hosts from cloud providers

  32. Puppet manifests are written in:
    a) Pods run manually
    b) Secrets storage only
    c) Puppet DSL for resource definitions
    d) Logs monitoring only
    View Answer

    Correct answer: C — Puppet DSL for resource definitions

  33. Which of the following is true about Chef knife bootstrap?
    a) Pods run manually
    b) Secrets storage only
    c) Registers and configures new nodes with Chef server
    d) Logs monitoring only
    View Answer

    Correct answer: C — Registers and configures new nodes with Chef server

  34. Terraform output values are used to:
    a) Pods run manually
    b) Secrets storage only
    c) Display information after resource creation
    d) Logs monitoring only
    View Answer

    Correct answer: C — Display information after resource creation

  35. Which of the following is true about Ansible conditionals?
    a) Pods run manually
    b) Secrets storage only
    c) Execute tasks based on specific conditions
    d) Logs monitoring only
    View Answer

    Correct answer: C — Execute tasks based on specific conditions

  36. Puppet classes are used to:
    a) Pods run manually
    b) Secrets storage only
    c) Group resources for reuse and organization
    d) Logs monitoring only
    View Answer

    Correct answer: C — Group resources for reuse and organization

  37. Which of the following is true about Chef environments?
    a) Pods run manually
    b) Secrets storage only
    c) Define settings for dev, test, and prod
    d) Logs monitoring only
    View Answer

    Correct answer: C — Define settings for dev, test, and prod

  38. Terraform provisioners can:
    a) Pods run manually
    b) Secrets storage only
    c) Execute scripts or commands after resource creation
    d) Logs monitoring only
    View Answer

    Correct answer: C — Execute scripts or commands after resource creation

  39. Which of the following is true about Ansible loops?
    a) Pods run manually
    b) Secrets storage only
    c) Repeat tasks for multiple items
    d) Logs monitoring only
    View Answer

    Correct answer: C — Repeat tasks for multiple items

  40. Puppet resources define:
    a) Pods run manually
    b) Secrets storage only
    c) Desired state of system components
    d) Logs monitoring only
    View Answer

    Correct answer: C — Desired state of system components

  41. Which of the following is true about Chef cookbooks?
    a) Pods run manually
    b) Secrets storage only
    c) Package recipes and configuration resources
    d) Logs monitoring only
    View Answer

    Correct answer: C — Package recipes and configuration resources

  42. Terraform plan command provides:
    a) Pods run manually
    b) Secrets storage only
    c) Execution plan showing proposed changes
    d) Logs monitoring only
    View Answer

    Correct answer: C — Execution plan showing proposed changes

  43. Which of the following is true about Ansible variables?
    a) Pods run manually
    b) Secrets storage only
    c) Parameterize playbooks for flexibility
    d) Logs monitoring only
    View Answer

    Correct answer: C — Parameterize playbooks for flexibility

  44. Puppet reports provide:
    a) Pods run manually
    b) Secrets storage only
    c) Information about node runs and status
    d) Logs monitoring only
    View Answer

    Correct answer: C — Information about node runs and status

  45. Which of the following is true about Chef roles?
    a) Pods run manually
    b) Secrets storage only
    c) Define sets of configurations applied to nodes
    d) Logs monitoring only
    View Answer

    Correct answer: C — Define sets of configurations applied to nodes

  46. Terraform modules enable:
    a) Pods run manually
    b) Secrets storage only
    c) Reuse of infrastructure code across projects
    d) Logs monitoring only
    View Answer

    Correct answer: C — Reuse of infrastructure code across projects

  47. Which of the following is true about Ansible tags?
    a) Pods run manually
    b) Secrets storage only
    c) Selectively run specific tasks in playbooks
    d) Logs monitoring only
    View Answer

    Correct answer: C — Selectively run specific tasks in playbooks

  48. Puppet environments separate:
    a) Pods run manually
    b) Secrets storage only
    c) Configurations for dev, test, and prod
    d) Logs monitoring only
    View Answer

    Correct answer: C — Configurations for dev, test, and prod

  49. Which of the following is true about Chef data bags?
    a) Pods run manually
    b) Secrets storage only
    c) Store global variables and configuration data
    d) Logs monitoring only
    View Answer

    Correct answer: C — Store global variables and configuration data

  50. Which of the following best describes Advanced IaC Practices overall?
    a) Manual configuration of servers
    b) Secrets storage only
    c) Applying modularization, testing, automation, and security to IaC workflows
    d) Logs monitoring only
    View Answer

    Correct answer: C — Applying modularization, testing, automation, and security to IaC workflows

Quick Links to Explore