Frequently asked questions and answers of Popular IaC Tools (Terraform, CloudFormation) in Cloud Computing of Computer Science to enhance your skills, knowledge on the selected topic. We have compiled the best Popular IaC Tools (Terraform, CloudFormation) Interview question and answer, trivia quiz, mcq questions, viva question, quizzes to prepare. Download Popular IaC Tools (Terraform, CloudFormation) FAQs in PDF form online for academic course, jobs preparations and for certification exams .
Intervew Quizz is an online portal with frequently asked interview, viva and trivia questions and answers on various subjects, topics of kids, school, engineering students, medical aspirants, business management academics and software professionals.
Question-1. What is Terraform?
Answer-1: Terraform is an open-source Infrastructure as Code tool by HashiCorp used to build, change, and version infrastructure safely and efficiently.
Question-2. What is AWS CloudFormation?
Answer-2: AWS CloudFormation is a service that helps you model and set up AWS resources using templates in JSON or YAML.
Question-3. How does Terraform manage infrastructure?
Answer-3: Terraform uses declarative configuration files to describe infrastructure and applies changes using its execution plan.
Question-4. How does CloudFormation deploy infrastructure?
Answer-4: CloudFormation uses templates to create and manage AWS resources as stacks, ensuring dependencies and ordering.
Question-5. What language does Terraform use for configuration?
Answer-5: Terraform uses HashiCorp Configuration Language (HCL), which is human-readable and JSON-compatible.
Question-6. What languages are used for CloudFormation templates?
Answer-6: CloudFormation supports JSON and YAML for writing templates.
Question-7. Can Terraform manage multi-cloud environments?
Answer-7: Yes, Terraform supports multiple providers including AWS, Azure, Google Cloud, and more.
Question-8. Is CloudFormation limited to AWS?
Answer-8: Yes, CloudFormation is specific to AWS resources.
Question-9. What is a Terraform provider?
Answer-9: A provider is a plugin that allows Terraform to interact with APIs of cloud platforms or services.
Question-10. What is a CloudFormation stack?
Answer-10: A stack is a collection of AWS resources managed as a single unit by CloudFormation.
Question-11. How does Terraform handle state management?
Answer-11: Terraform keeps a state file that tracks infrastructure resources to map real-world resources to configuration.
Question-12. How does CloudFormation track infrastructure?
Answer-12: CloudFormation tracks resources within a stack and their statuses internally without an external state file.
Question-13. What are Terraform modules?
Answer-13: Modules are reusable configurations that group resources and can be called multiple times to avoid duplication.
Question-14. Does CloudFormation support reusable components?
Answer-14: Yes, via nested stacks, you can reuse templates inside other templates.
Question-15. What is the Terraform CLI command to preview changes?
Answer-15: terraform plan shows the changes Terraform will apply before execution.
Question-16. What CloudFormation feature shows changes before deployment?
Answer-16: Change Sets allow you to preview changes before updating a stack.
Question-17. Can Terraform manage on-premises infrastructure?
Answer-17: With certain providers, Terraform can manage on-premises and hybrid infrastructures.
Question-18. Is CloudFormation capable of managing on-premises resources?
Answer-18: No, CloudFormation is focused solely on AWS cloud resources.
Question-19. What are Terraform workspaces?
Answer-19: Workspaces allow multiple state files for the same configuration, useful for managing environments.
Question-20. Does CloudFormation have a similar environment isolation feature?
Answer-20: CloudFormation uses separate stacks or accounts for environment separation.
Question-21. How do Terraform and CloudFormation handle resource dependencies?
Answer-21: Both automatically manage dependencies by analyzing resource references.
Question-22. What are some advantages of Terraform over CloudFormation?
Answer-22: Terraform is multi-cloud, supports more providers, has a simpler syntax, and strong community support.
Question-23. What are CloudFormation?s advantages?
Answer-23: Deep AWS integration, native AWS support, and no additional installation.
Question-24. Can Terraform templates be version controlled?
Answer-24: Yes, Terraform files are plain text and easily managed in version control systems.
Question-25. What about CloudFormation templates?
Answer-25: CloudFormation templates are also text files and can be version controlled.
Question-26. How does Terraform handle infrastructure rollback?
Answer-26: Terraform can roll back changes if an apply fails, but explicit rollback requires reapplying previous configurations.
Question-27. How does CloudFormation manage rollbacks?
Answer-27: CloudFormation automatically rolls back stack updates on failure.
Question-28. Does Terraform support secret management?
Answer-28: Terraform integrates with secret managers like HashiCorp Vault and cloud-native services.
Question-29. How does CloudFormation handle sensitive data?
Answer-29: CloudFormation uses AWS Secrets Manager or Systems Manager Parameter Store to manage secrets.
Question-30. What is the significance of Terraform state locking?
Answer-30: State locking prevents simultaneous conflicting updates to infrastructure.
Question-31. Does CloudFormation provide state locking?
Answer-31: CloudFormation manages stack state internally, handling concurrency automatically.
Question-32. How do Terraform and CloudFormation handle drift detection?
Answer-32: Terraform requires manual commands or third-party tools; CloudFormation has built-in drift detection.
Question-33. What is the learning curve difference between Terraform and CloudFormation?
Answer-33: Terraform?s HCL is considered easier to learn and more readable than CloudFormation?s JSON/YAML templates.
Question-34. How can you test Terraform configurations?
Answer-34: Using tools like terraform validate, terratest, and kitchen-terraform.
Question-35. What testing options exist for CloudFormation?
Answer-35: CloudFormation templates can be validated using AWS CLI and tested with AWS CloudFormation Guard.
Question-36. Can Terraform be used for CI/CD pipelines?
Answer-36: Yes, Terraform integrates well with CI/CD tools like Jenkins, GitLab CI, and GitHub Actions.
Question-37. Is CloudFormation used in CI/CD?
Answer-37: Yes, CloudFormation integrates with AWS CodePipeline and other CI/CD tools.
Question-38. What is a Terraform provisioner?
Answer-38: Provisioners run scripts or commands on a resource after it is created or updated.
Question-39. Does CloudFormation support provisioning scripts?
Answer-39: CloudFormation uses AWS::CloudFormation::Init and cfn-init scripts to configure instances.
Question-40. Can Terraform manage resource tagging?
Answer-40: Yes, tagging resources is straightforward in Terraform configuration.
Question-41. How does CloudFormation manage tagging?
Answer-41: Tags can be applied at resource or stack level in CloudFormation templates.
Question-42. What is the Terraform Registry?
Answer-42: A public repository of reusable Terraform modules and providers.
Question-43. Does AWS CloudFormation have a module repository?
Answer-43: CloudFormation uses the AWS Serverless Application Repository for serverless components.
Question-44. How do Terraform and CloudFormation handle updates?
Answer-44: Terraform applies incremental changes based on plan; CloudFormation updates stacks by changing resource properties.
Question-45. What is the pricing model for Terraform?
Answer-45: Terraform Open Source is free; Terraform Enterprise offers paid features.
Question-46. Is CloudFormation free to use?
Answer-46: CloudFormation is free; you only pay for AWS resources created.
Question-47. Can Terraform manage Kubernetes clusters?
Answer-47: Yes, via providers like the Kubernetes provider or EKS module.
Question-48. Does CloudFormation support Kubernetes?
Answer-48: CloudFormation supports Amazon EKS clusters via AWS resources.
Question-49. What logging and auditing features exist in Terraform?
Answer-49: Terraform Cloud offers audit logs; open-source logs are user-managed.
Question-50. How does CloudFormation handle auditing?
Answer-50: CloudFormation integrates with AWS CloudTrail for resource and API call auditing.
Frequently Asked Question and Answer on Popular IaC Tools (Terraform, CloudFormation)
Popular IaC Tools (Terraform, CloudFormation) Interview Questions and Answers in PDF form Online
Popular IaC Tools (Terraform, CloudFormation) Questions with Answers
Popular IaC Tools (Terraform, CloudFormation) Trivia MCQ Quiz