• +91 9723535972
  • info@interviewmaterial.com

CI-CD Interview Questions and Answers

Related Subjects

CI CD Interview Questions and Answers

Question - 61 : - Is GitHub the same as GitLab?

Answer - 61 : -

Because both GitHub and GitLab are version control systems, it can be difficult to choose one of the two. The most significant difference between the two is that GitHub primarily focuses on collaboration and code review, whereas GitLab focuses on DevOps as well as continuous integration and continuous delivery (CI/CD).

Question - 62 : - Could you tell me the requirements for CI-CD?

Answer - 62 : -

Continuous integration (CI) requires developers to merge their changes to the main code branch many times per day. Each code merges trigger an automated build and test sequence so that developers can quickly detect problems early on in the software development lifecycle.

Question - 63 : - What are CI/CD pipeline stages?

Answer - 63 : -

There are four stages of a CI/CD pipeline: 

  • Source Stage
  • Build Stage
  • Test Stage
  • Deploy Stage

Question - 64 : - Could you explain how does a CI CD pipeline works?

Answer - 64 : -

A continuous integration/continuous delivery pipeline automates the software delivery process. The pipeline builds code, runs tests, and safely deploys a new version of the application. Automated pipelines remove manual errors, provide standardized feedback loops to developers, and enable fast product iterations.

Question - 65 : - How do you manage a CI/CD pipeline?

Answer - 65 : -

The main principles of CI are that you:

  • Check-in code infrequently.
  • Automate the build and test portion.
  • Always test the code locally before checking it in.
  • Never merge any failed branches to the main branch.
  • Return its status back to successful if you’re the developer who causes the failed build or test

Question - 66 : - What is the function of the CI system?

Answer - 66 : -

The objective of CI is to establish a dependable system for building, packaging, and testing software. This consistency provides an efficient environment for frequent code changes and collaboration, which leads to better software quality.

Question - 67 : - Could you explain the working of the GitLab CD?

Answer - 67 : -

GitLab CI/CD integrates seamlessly into an existing development workflow. You can set up a project by discussing a feature implementation in an issue and working locally on the proposed change, then pushing commits to a feature branch in a remote repository that’s hosted in GitLab. When you push your commits to the feature branch, the CI/CD pipeline for the project is triggered.

Question - 68 : - How would you set environment variables in GitLab CI?

Answer - 68 : -

When using variables there is no need to hard code values. In GitLab, CI/CD variables can be defined by going to Settings » CI/CD » Variables, or by simply defining them in the.gitlab-ci.yml file

Question - 69 : - How do you use variables in the GitLab pipeline?

Answer - 69 : -

GitLab variables can be used to pre-define the values. Go to your project page, Settings tab -> CI/CD, find Variables and click on the Expand button. Here you can define variable names and values, which will be automatically passed into the GitLab pipelines, and are available as environment variables there.

Question - 70 : - What is deployment in testing?

Answer - 70 : -

The deployment of new applications and modules, updates, and patches from developers to users depends on the methods used by developers to build, test, and deploy code. The speed with which a product responds to customer preferences or requirements depends on these methods. Deployment methods can also impact the quality of code changes.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners