CI CD Interview Questions and Answers
Question - 1 : - What is meant by CI-CD?
Answer - 1 : -
CI/CD is a method to frequently deliver apps to customers by introducing automation into the stages of app development. The main concepts attributed to CI/CD are continuous integration, continuous delivery, and continuous deployment. CI/CD is a solution to the problems integrating new code can cause for development and operations teams.It typically involves the creation of a largely automated pipeline that orchestrates the build, test and deployment of software across staged environments, ultimately leading to deployment in production.
Question - 2 : - What is Continuous Deployment (CD)?
Answer - 2 : -
Continuous Deployment (CD) is a software release process that uses automated testing to validate if changes to a codebase are correct and stable for immediate autonomous deployment to a production environment. The software release cycle has evolved over time.
Question - 3 : - What is Continuous Integration (CI)?
Answer - 3 : -
Continuous integration (CI) is the practice of automating the integration of code changes from multiple contributors into a single software project.The version control system is also supplemented with other checks like automated code quality tests, syntax style review tools, and more.
Question - 4 : - Why and When to use CICD Pipeline?
Answer - 4 : -
CI enables to detect the errors at early stage or when code is being integrated. CI is a set of principles that helps developers to manage code integrations and detect early stage bugs and rectify them.
CD ensures the automation of delivering new code with minimum efforts. Some extra checks are also performed during CD process such as performance test for production environment.
Continuous deployment is most critical stage in pipeline. In this process code changes are automatically deployed to production environment where end customers or users are using the application. It is achieved by taking the benefit of continuous delivery by automating new stage (Production) in the pipeline. There is very less human interaction at this stage and it helps to reduce delay in making code changes live.
Question - 5 : - What are the top DevOps tools?
Answer - 5 : -
- The Top DevOps Tools are as follows:
- Git used as Version Control System tool
- Jenkins used as Continuous Integration tool
- Selenium used as Continuous Testing tool
- Puppet, Chef, Ansible used as Configuration Management and Deployment tools
- Nagios used as Continuous Monitoring tool
- Docker used as Containerization tool
Question - 6 : - What is the need for DevOps?
Answer - 6 : -
DevOps is important because it's a software development and operations approach that enables faster development of new products and easier maintenance of existing deployments.This has many advantages like quick feedback from customers, better quality of software etc. which in turn leads to high customer satisfaction. To achieve this, companies are required to:
- Increase deployment frequency
- Lower failure rate of new releases
- Shortened lead time between fixes
- Faster mean time to recovery in the event of new release crashing.
Question - 7 : - Factors for Continuous Integration?
Answer - 7 : -
- Maintain a code repository
- Automate the build
- Make the build self-testing
- Everyone commits to the baseline every day
- Every commit (to baseline) should be built
- Keep the build fast
- Test in a clone of the production environment
- Make it easy to get the latest deliverables
Question - 8 : - What is CI CD in DevOps?
Answer - 8 : -
Continuous integration (CI) is a software engineering practice where members of a team integrate their work with increasing frequency and Continuous delivery (CD) is to packaging and deployment what CI is to build and test.
Question - 9 : - What is Hypervisor?
Answer - 9 : -
A hypervisor, also known as a virtual machine monitor or VMM, is software that creates and runs virtual machines (VMs). A hypervisor allows one host computer to support multiple guest VMs by virtually sharing its resources, such as memory and processing.
VMware and Hyper-V are two key examples of hypervisor.
Question - 10 : - What is Docker?
Answer - 10 : -
Docker is a containerization platform which packages your application and all its dependencies together in the form of containers so as to ensure that your application works seamlessly in any environment be it development or test or production.This guarantees that the software will always run the same, regardless of its environment.