热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

Terraform 面试题与答案

相关差异对比

Ansible vs TerraformPuppet vs Terraform

问题 16. How can you manage Terraform remote state locking?

Terraform provides a 'backend' configuration for state storage, and some backends support locking. By configuring the 'lock' option, Terraform can lock the state to prevent concurrent modifications.

这有帮助吗? 添加评论 查看评论
 

问题 17. What are Terraform workspaces used for?

Terraform workspaces allow you to manage multiple instances of the same infrastructure in a single configuration. Each workspace has its own state file, making it useful for environment separation.

这有帮助吗? 添加评论 查看评论
 

问题 18. How do you handle sensitive data like API keys in Terraform?

Sensitive data like API keys can be stored securely using Terraform's sensitive input variable type or by using a secret management tool. Avoid storing sensitive information directly in configuration files.

这有帮助吗? 添加评论 查看评论
 

问题 19. Explain the purpose of 'terraform refresh'.

'terraform refresh' is used to reconcile the Terraform state with the real-world infrastructure. It updates the state file with the current state of the resources.

这有帮助吗? 添加评论 查看评论
 

问题 20. What is the difference between 'provisioners' and 'null_resource' in Terraform?

Provisioners are used to execute scripts on a remote resource after creation, while 'null_resource' is a resource type that doesn't directly create infrastructure but can be used to trigger provisioners or other actions.

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。