Disclaimer:
Educational Use Only:
The website links provided are to be used strictly for educational and knowledge-gaining purposes only.
No Misuse:
Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.
Respect for Websites and Businesses:
Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.
Acknowledge Value of Knowledge:
Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.
No Endorsement:
The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.
User Responsibility:
By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.
- What is Infrastructure as Code (IaC)?
a. The practice of managing and provisioning infrastructure through code
b. Manual configuration of hardware only
c. Automating application deployments
d. Setting up network devices manually
Answer: a. The practice of managing and provisioning infrastructure through coderazorops+2 - Which of the following is NOT a benefit of IaC?
a. Increased efficiency
b. Repeatability
c. Risk of human error
d. Manual configuration
Answer: d. Manual configurationhpe+2 - Declarative IaC is best described as:
a. Telling the system how to achieve a result step-by-step
b. Defining the desired end state of infrastructure
c. Coding only networking resources
d. Manual server provisioning
Answer: b. Defining the desired end state of infrastructureatlassian+2 - Which of the following is NOT a popular IaC tool?
a. Terraform
b. Puppet
c. Chef
d. MySQL
Answer: d. MySQLinterviewquizz+2 - How does IaC improve DevOps?
a. By making infrastructure unchangeable
b. By speeding up deployment times and promoting consistency
c. By prohibiting automation
d. By increasing hardware requirements
Answer: b. By speeding up deployment times and promoting consistencycrossasyst+2 - IaC allows infrastructure to be:
a. Version-controlled
b. Managed only through physical devices
c. Deployed once and never updated
d. Ignored by developers
Answer: a. Version-controlledlearn.microsoft+2 - Which language is commonly used for writing Terraform scripts?
a. Python
b. HCL (HashiCorp Configuration Language)
c. JavaScript
d. Bash
Answer: b. HCL (HashiCorp Configuration Language)cloudinfrastructureservices+2 - What is the main purpose of AWS CloudFormation?
a. To automate network device configuration
b. To provision AWS infrastructure using templates
c. To monitor CPU usage
d. To provide security policies
Answer: b. To provision AWS infrastructure using templatesspacelift+2 - Mutability in IaC refers to:
a. Infrastructures that can be changed easily
b. Infrastructures that remain unchanged
c. Lack of versioning support
d. Automation of manual tasks
Answer: a. Infrastructures that can be changed easilyhpe+2 - Which method does Ansible use for configuration management?
a. Push
b. Pull
c. Hybrid
d. None
Answer: a. Pushsentinelone+2 - IaC is especially important for:
a. Manual configuration of small-scale infrastructure
b. Managing complex infrastructure in cloud environments
c. Isolating applications from infrastructure
d. Disabling automation
Answer: b. Managing complex infrastructure in cloud environmentsredhat+2 - What does ‘idempotent’ mean in the context of IaC?
a. Always producing different outcomes
b. Producing the same outcome every time it is run
c. Running tasks manually
d. None of the above
Answer: b. Producing the same outcome every time it is runrazorops+2 - Which of the following is an imperative IaC approach?
a. Describes only the desired end state
b. Specifies each step needed to achieve desired configuration
c. Avoids scripting
d. Ignores state management
Answer: b. Specifies each step needed to achieve desired configurationatlassian+2 - What type of files do configuration management tools like Chef and Puppet use?
a. JSON and YAML
b. Binary files only
c. Executable files only
d. TXT files only
Answer: a. JSON and YAMLlegitsecurity+2 - IaC can help reduce which of the following?
a. Human error
b. Automation
c. Testing environments
d. Version control
Answer: a. Human errorcrossasyst+2 - What is Pulumi’s main distinction in the IaC ecosystem?
a. Uses proprietary configuration language
b. Enables infrastructure definition using general purpose programming languages
c. Only works for networking devices
d. No integration with CI/CD
Answer: b. Enables infrastructure definition using general purpose programming languagessentinelone+2 - CI/CD integration with IaC enables:
a. Manual deployment
b. Automated testing and deployment of infrastructure changes
c. Version control removal
d. Physical device configuration
Answer: b. Automated testing and deployment of infrastructure changesredhat+2 - Which of these is NOT a recommended practice for IaC?
a. Manual change to cloud resources
b. Keeping configuration files in version control
c. Automation of infrastructure deployment
d. Use of templates
Answer: a. Manual change to cloud resourceslearn.microsoft+2 - Immutable infrastructure in IaC means:
a. Can be changed at any time
b. Once deployed, cannot be altered
c. Manually managed only
d. Always requires manual intervention
Answer: b. Once deployed, cannot be alteredatlassian+2 - Which cloud providers support infrastructure as code?
a. Only AWS
b. Only Google Cloud
c. AWS, Azure, Google Cloud Platform
d. None
Answer: c. AWS, Azure, Google Cloud Platformcloudinfrastructureservices+2 - IaC files are typically stored in:
a. Local storage only
b. Version control systems like Git
c. External hard drives
d. Temporary memory
Answer: b. Version control systems like Gitredhat+2 - Which platform uses Resource Manager as an IaC tool?
a. AWS
b. Microsoft Azure
c. Google Cloud Platform
d. VMware
Answer: b. Microsoft Azurelegitsecurity+2 - Key benefit of using templates in IaC?
a. Manual configuration
b. Repeatability and consistency
c. Increased error rate
d. No automation
Answer: b. Repeatability and consistencyspacelift+2 - Which of the following is NOT a principle of Infrastructure as Code?
a. Automation
b. Repeatability
c. Manual management
d. Versioning
Answer: c. Manual managementhpe+2 - What role do “state files” play in IaC?
a. Store infrastructure state to track changes
b. Store temporary files only
c. Have no relation to IaC
d. Maintain application logs only
Answer: a. Store infrastructure state to track changesrazorops+2 - Chef uses a ____ language for writing its configurations?
a. Ruby-based DSL
b. Python
c. JavaScript
d. HCL
Answer: a. Ruby-based DSLsentinelone+2 - What is the main feature of declarative IaC?
a. Focuses on desired end state
b. Focuses on the detailed execution steps
c. Always manual
d. Uses binary files
Answer: a. Focuses on desired end statelearn.microsoft+2 - IaC helps IT teams achieve which goal more efficiently?
a. Manual server configuration
b. Fast, repeatable infrastructure deployments
c. Disconnected network management
d. None of the above
Answer: b. Fast, repeatable infrastructure deploymentsatlassian+2 - Which IaC tool is designed natively for AWS?
a. AWS CloudFormation
b. Chef
c. Ansible
d. Pulumi
Answer: a. AWS CloudFormationcloudinfrastructureservices+2 - What is the main advantage of using Ansible?
a. Push-based configuration and agentless architecture
b. Manual setup of resources
c. Supports only Linux
d. No integration with cloud providers
Answer: a. Push-based configuration and agentless architecturespacelift+2 - What is ‘infrastructure drift’ in IaC context?
a. Untracked manual changes to infrastructure
b. Automatic rollback of changes
c. Temporary storage
d. Versioning of code
Answer: a. Untracked manual changes to infrastructurerazorops+2 - IaC allows infrastructure to be:
a. Tested before deployment
b. Only manually configured
c. Deployed without any verification
d. Changed randomly
Answer: a. Tested before deploymenthpe+2 - What does ‘policy as code’ mean in the context of IaC?
a. Enforcement of infrastructure policies using code
b. Manual policy enforcement
c. Ignoring organizational policies
d. Only tracking infrastructure state
Answer: a. Enforcement of infrastructure policies using codecrossasyst+2 - IaC is related to which software development practice?
a. CI/CD (Continuous Integration/Continuous Deployment)
b. Manual deployment
c. Waterfall model only
d. Manual coding
Answer: a. CI/CD (Continuous Integration/Continuous Deployment)crossasyst+2 - Which IaC tool supports agentless architecture?
a. Ansible
b. Puppet
c. Chef
d. SaltStack
Answer: a. Ansiblelegitsecurity+2 - What is the advantage of modular infrastructure code?
a. Reusability and maintainability
b. Increased manual work
c. Reduced readability
d. None
Answer: a. Reusability and maintainabilitysentinelone+2 - Which feature is crucial for disaster recovery in IaC?
a. Infrastructure versioning and code-based backups
b. Manual backup copying
c. Ignoring backups
d. Only hardware-based recovery
Answer: a. Infrastructure versioning and code-based backupsredhat+2 - IaC provisions resources using:
a. Machine-readable definition files
b. Physical setup teams
c. Only by manual input
d. None of the above
Answer: a. Machine-readable definition filesinterviewquizz+2 - Which of these platforms is NOT focused on cloud-based IaC?
a. Docker
b. VMware Workstation
c. AWS
d. Azure
Answer: b. VMware Workstationcloudinfrastructureservices+2 - What is the purpose of infrastructure ‘templating’ in IaC?
a. Automate repetitive infrastructure provisioning
b. Slow down deployments
c. Only facilitate manual changes
d. Make versioning harder
Answer: a. Automate repetitive infrastructure provisioningspacelift+2 - Configuration drift can best be controlled by:
a. Using code to define infrastructure
b. Manual tracking of every change
c. Disabling automation
d. None
Answer: a. Using code to define infrastructurerazorops+2 - Which tool integrates strongly with Azure DevOps for IaC?
a. Azure Resource Manager
b. Chef
c. Puppet
d. SaltStack
Answer: a. Azure Resource Managerlegitsecurity+2 - IaC is most beneficial for:
a. Large-scale, automated deployments
b. Manual, small server installations
c. Disjointed network management
d. None
Answer: a. Large-scale, automated deploymentsatlassian+2 - Which of the following makes infrastructure provisioning consistent in IaC?
a. Templates and configuration files
b. Manual updates only
c. No versioning
d. Ignoring automation
Answer: a. Templates and configuration fileshpe+2 - Which of these is true about Puppet?
a. Pull-based configuration tool
b. Push-based only
c. No cloud support
d. Not suitable for automation
Answer: a. Pull-based configuration toolsentinelone+2 - IaC can provision which types of infrastructure?
a. Virtual machines, networks, databases
b. Only physical servers
c. Only storage devices
d. Only routers
Answer: a. Virtual machines, networks, databasesredhat+2 - Advantages of using Git for IaC include:
a. Version control and collaboration
b. Slower deployments
c. Manual error tracking
d. No history tracking
Answer: a. Version control and collaborationlearn.microsoft+2 - IaC can help organizations:
a. Scale resources dynamically
b. Only statically configure servers
c. Avoid automation
d. Ignore cloud platforms
Answer: a. Scale resources dynamicallyatlassian+2 - What is the role of ‘Blue/Green Deployment’ in IaC?
a. Minimize downtime during updates by switching between two environments
b. Only update one environment
c. Ignore updates
d. Automate error introduction
Answer: a. Minimize downtime during updates by switching between two environmentscrossasyst+2 - IaC is considered a key enabler for which practice?
a. DevOps automation
b. Manual network management
c. Ignoring disaster recovery
d. Disabling collaboration
Answer: a. DevOps automationlearn.microsoft+2
- https://razorops.com/blog/top-50-infrastructure-as-code-iac-interview-question-and-answers/
- https://www.interviewquizz.com/infrastructure-as-code-iac-interview-question-answer
- https://www.redhat.com/en/topics/automation/what-is-infrastructure-as-code-iac
- https://www.hpe.com/in/en/what-is/infrastructure-as-code.html
- https://crossasyst.com/blog/infrastructure-as-code-importance/
- https://www.atlassian.com/microservices/cloud-computing/infrastructure-as-code
- https://learn.microsoft.com/en-us/devops/deliver/what-is-infrastructure-as-code
- https://spacelift.io/blog/infrastructure-as-code-tools
- https://cloudinfrastructureservices.co.uk/best-infrastructure-as-code-tools-for-the-cloud-aws-azure-gcp/
- https://www.legitsecurity.com/aspm-knowledge-base/best-iac-tools
- https://www.sentinelone.com/cybersecurity-101/cloud-security/infrastructure-as-code-platforms/
- https://www.sanfoundry.com/1000-cloud-computing-questions-answers/
- https://www.interviewbit.com/cloud-computing-mcq/
- https://www.placementpreparation.io/mcq/cloud-computing/
- https://interviewkickstart.com/blogs/interview-questions/cloud-computing-mcqs-it-professionals
- https://www.geeksforgeeks.org/devops/what-is-infrastructure-as-code-iac/
- https://www.scribd.com/document/798168434/Cloud-Computing-Multiple-Choice-Questions-accenture
- https://testbook.com/objective-questions/mcq-on-cloud-technology–5eea6a0d39140f30f369e30f
- https://www.scribd.com/document/541792862/Cloud-Computing-MCQ-Questions-and-Answers-PDF-Tutorial
- https://www.uninets.com/blog/cloud-computing-interview-questions-answers