Interview Quizz Logo

 
  • Home
  • About Us
  • Electronics
  • Computer Science
  • Physics
  • History
  • Contact Us
  • ☰
  1. Computer Science
  2. Cloud Computing
  3. Popular IaC Tools (Terraform, CloudFormation) Interview Question with Answer

Popular IaC Tools (Terraform, CloudFormation) Questions and Answers for Viva

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.




Interview Question and Answer of Popular IaC Tools (Terraform, CloudFormation)


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.




Tags

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

FAQ Questions Sidebar

Related Topics


  • Introduction to Cloud Computing
  • Cloud Service Models (IaaS, PaaS, SaaS)
  • Public vs Private vs Hybrid Clouds
  • Cloud Deployment Models
  • Cloud Computing Benefits
  • Virtualization in Cloud Computing
  • Cloud Infrastructure Components
  • Hypervisors (Type 1 and Type 2)
  • Cloud Service Providers (AWS, Azure, Google Cloud)
  • Cloud Resource Management
  • Elasticity and Scalability in Cloud Computing
  • Serverless Computing Concepts
  • Microservices Architecture in Cloud
  • Containerization (Docker, Kubernetes)
  • Cloud Load Balancing
  • Auto-scaling in Cloud Environments
  • Cloud Storage Services (S3, Azure Blob, Google Cloud Storage)
  • Cloud Databases (DynamoDB, Cloud SQL, Cosmos DB)
  • Networking in Cloud (VPC, Subnets, Firewalls)
  • Identity and Access Management (IAM)
  • Cloud Security Best Practices
  • Data Encryption in the Cloud
  • Multi-Tenancy in Cloud Computing
  • Disaster Recovery and Business Continuity
  • Cloud Backup Solutions
  • Cloud Monitoring and Performance Management
  • Cost Management in Cloud Computing
  • Service Level Agreements (SLAs) in Cloud
  • Cloud Migration Strategies
  • Common Cloud Migration Challenges
  • Cloud-Native Application Development
  • APIs and SDKs in Cloud Services
  • Infrastructure as Code (IaC)
  • Popular IaC Tools (Terraform, CloudFormation)
  • Cloud Automation Tools
  • Compliance Standards (ISO 27001, HIPAA, GDPR)
  • Cloud Security Posture Management (CSPM)
  • Networking Protocols in Cloud Computing
  • High Availability and Redundancy in Cloud
  • Edge Computing and Its Integration with Cloud
  • Cloud-Based Machine Learning Services (SageMaker, AI Platform)
  • Cloud Data Warehousing (Redshift, BigQuery, Snowflake)
  • Cloud Orchestration
  • Cloud CI/CD Pipelines (Jenkins, GitLab CI, Azure DevOps)
  • Containers vs Virtual Machines
  • Hybrid Cloud Management Tools
  • Serverless Frameworks (AWS Lambda, Azure Functions)
  • Load Testing in Cloud
  • Cloud Logging and Monitoring Tools (CloudWatch, Stackdriver)
  • Multi-Cloud Strategy and Management
  • Networking Components (Gateways, Routers)
  • Cloud VPN Services
  • Content Delivery Networks (CDNs)
  • Cloud Firewall and Security Groups
  • Shared Responsibility Model in Cloud
  • Cloud Authentication Mechanisms (OAuth, SSO)
  • Access Control in Cloud Computing
  • Role-Based Access Control (RBAC)
  • Data Lifecycle Management in Cloud
  • Big Data Solutions in Cloud (EMR, Dataflow)
  • API Gateways (AWS API Gateway, Azure API Management)
  • Event-Driven Architecture in Cloud
  • Service Mesh (Istio, Linkerd)
  • Cloud Databases: SQL vs NoSQL
  • Streaming Data in the Cloud (Kinesis, Pub/Sub)
  • DevOps Practices in Cloud Computing
  • Monitoring Tools (Prometheus, Grafana)
  • Cloud Cost Optimization Techniques
  • Security Compliance Automation in Cloud
  • Networking Best Practices for Cloud Deployments
  • VPN Peering and Cross-Region Networking
  • Security Groups vs Network Access Control Lists (NACLs)
  • Storage Types (Block, File, Object Storage)
  • Data Replication and Redundancy Strategies
  • Cloud Architecture Patterns (Monolithic, Microservices)
  • Data Archiving Solutions in Cloud
  • Cloud-Based DevOps Tools (CircleCI, Travis CI)
  • Container Orchestration with Kubernetes
  • Persistent Storage in Containers
  • Cloud Development Environments
  • Serverless vs Containers: Use Cases
  • Managed Services vs Self-Managed Services
  • Service Mesh Benefits
  • Cloud-Based Disaster Recovery Plans
  • Data Center Locations and Impact on Latency
  • Compliance Frameworks for Financial Services in Cloud
  • Incident Response in Cloud Environments
  • Cloud Governance and Best Practices
  • Federated Identity Management
  • Cloud Encryption Keys Management (KMS)
  • Application Security in the Cloud
  • Data Masking and Obfuscation
  • Cloud DevOps Pipelines (AWS CodePipeline, Azure Pipelines)
  • Cloud Penetration Testing
  • Application Deployment Strategies (Blue/Green, Canary)
  • API Rate Limiting and Throttling
  • Security Information and Event Management (SIEM)
  • Data Consistency Models in Distributed Systems
  • Network Latency and Optimization Techniques
  • Cloud-Based Analytics Platforms (Power BI, AWS QuickSight)
  • Automated Backups in Cloud
  • Integrating On-Premise with Cloud (Hybrid Solutions)
  • SaaS Integrations and Customizations
  • Service Mesh Monitoring and Security
  • Kubernetes Deployment Strategies
  • Stateful vs Stateless Applications
  • AI and ML Integration in Cloud Computing
  • Data Pipelines and ETL in Cloud Services
  • Cloud Robotics and Automation
  • Cloud Testing Environments
  • Quantum Computing in Cloud
  • IoT Integration with Cloud Platforms
  • Container Security Best Practices
  • Scaling Databases in the Cloud
  • End-to-End Encryption for Cloud Services
  • Log Aggregation in Cloud Environments
  • Data Partitioning and Sharding
  • Virtual Private Cloud (VPC) Design
  • Kubernetes Security Features
  • Cloud-Based Middleware Services
  • Elastic IPs and Elastic Load Balancers
  • Compliance Reporting in Cloud
  • Multi-Factor Authentication in Cloud Environments
  • Data Sovereignty and Jurisdiction Issues
  • Serverless Security Concerns
  • Event Hub Services (Azure Event Hub)
  • Data Mesh Architecture
  • Content Management Systems (CMS) on Cloud
  • Role of AI in Cloud Automation
  • Orchestration vs Automation in Cloud Services
  • Dynamic Resource Allocation
  • Compliance-as-a-Service Solutions
  • Cloud IDEs (Replit, Cloud9)
  • High-Performance Computing (HPC) in Cloud
  • Edge Computing vs Cloud Computing
  • Cloud-Based Dev Environments
  • Web Application Firewalls (WAF)
  • Data Governance in Cloud Computing
  • Service-Oriented Architecture (SOA)
  • Compliance Automation Tools (AWS Config, Azure Policy)
  • Load Balancers (Application, Network, Global)
  • Fault Tolerance in Cloud Infrastructure
  • Secrets Management Services
  • Data Lakes vs Data Warehouses
  • Dynamic Scaling Policies
  • Observability in Cloud (Logs, Metrics, Tracing)
  • Network Security in Cloud
  • API Management Best Practices
  • Hybrid and Multi-Cloud Security
  • Networking Peering and Cloud Gateways
  • WebSocket Management in Cloud

More Subjects


  • Computer Fundamentals
  • Data Structure
  • Programming Technologies
  • Software Engineering
  • Artificial Intelligence and Machine Learning
  • Cloud Computing

All Categories


  • Physics
  • Electronics Engineering
  • Electrical Engineering
  • General Knowledge
  • NCERT CBSE
  • Kids
  • History
  • Industry
  • World
  • Computer Science
  • Chemistry

Can't Find Your Question?

If you cannot find a question and answer in the knowledge base, then we request you to share details of your queries to us Suggest a Question for further help and we will add it shortly in our education database.
© 2025 Copyright InterviewQuizz. Developed by Techgadgetpro.com
Privacy Policy