Continuous Integration and Delivery MCQs

  1. Which of the following best describes Continuous Integration (CI)?
    a) Merging code changes frequently into a shared repository
    b) Deploying applications manually
    c) Monitoring production logs
    d) Running usability tests
    View Answer

    Correct answer: A — Merging code changes frequently into a shared repository

  2. Continuous Delivery (CD) focuses on:
    a) Automating deployment to production environments
    b) Manual deployment only
    c) Integration testing only
    d) Security testing only
    View Answer

    Correct answer: A — Automating deployment to production environments

  3. Jenkins is primarily used for:
    a) CI/CD automation
    b) Database management
    c) Usability testing
    d) Security scanning
    View Answer

    Correct answer: A — CI/CD automation

  4. Which of the following is NOT a CI/CD tool?
    a) Travis CI
    b) CircleCI
    c) JMeter
    d) GitHub Actions
    View Answer

    Correct answer: C — JMeter

  5. GitHub Actions workflows are defined in:
    a) YAML files
    b) JSON files
    c) XML files
    d) TXT files
    View Answer

    Correct answer: A — YAML files

  6. Which of the following is true about CI pipelines?
    a) They automate build and test processes
    b) They only automate deployments
    c) They only automate usability tests
    d) They only automate monitoring
    View Answer

    Correct answer: A — They automate build and test processes

  7. Continuous Deployment differs from Continuous Delivery by:
    a) Automatically deploying every change to production
    b) Requiring manual approval for deployment
    c) Running only integration tests
    d) Running only security tests
    View Answer

    Correct answer: A — Automatically deploying every change to production

  8. Which of the following is a cloud-based CI/CD tool?
    a) CircleCI
    b) JUnit
    c) Selenium
    d) PyTest
    View Answer

    Correct answer: A — CircleCI

  9. Jenkins pipelines can be defined using:
    a) Jenkinsfile
    b) JSON file
    c) XML file
    d) TXT file
    View Answer

    Correct answer: A — Jenkinsfile

  10. Which of the following is true about CI/CD benefits?
    a) Faster feedback and reduced integration issues
    b) Only performance improvements
    c) Only usability improvements
    d) Only security improvements
    View Answer

    Correct answer: A — Faster feedback and reduced integration issues

  11. What will be printed?
    1 System.out.println("Eduinq CI/CD Test");
    a) Eduinq CI/CD Test
    b) CI/CD Test
    c) No output
    d) Error
    View Answer

    Correct answer: A — Eduinq CI/CD Test

  12. Travis CI configuration files are written in:
    a) YAML
    b) JSON
    c) XML
    d) TXT
    View Answer

    Correct answer: A — YAML

  13. Which of the following is true about Continuous Delivery?
    a) Ensures software is always deployable
    b) Ensures only performance correctness
    c) Ensures only usability correctness
    d) Ensures only integration correctness
    View Answer

    Correct answer: A — Ensures software is always deployable

  14. CircleCI integrates with:
    a) GitHub and Bitbucket
    b) Only GitHub
    c) Only Bitbucket
    d) Only GitLab
    View Answer

    Correct answer: A — GitHub and Bitbucket

  15. Which of the following is true about GitHub Actions?
    a) It automates workflows directly in GitHub
    b) It validates performance only
    c) It validates usability only
    d) It validates integration only
    View Answer

    Correct answer: A — It automates workflows directly in GitHub

  16. Jenkins supports plugins for:
    a) Extending CI/CD functionality
    b) Only performance monitoring
    c) Only usability testing
    d) Only integration testing
    View Answer

    Correct answer: A — Extending CI/CD functionality

  17. Which of the following is true about CI/CD pipelines?
    a) They include build, test, and deploy stages
    b) They include only build stage
    c) They include only test stage
    d) They include only deploy stage
    View Answer

    Correct answer: A — They include build, test, and deploy stages

  18. GitLab CI/CD configuration is defined in:
    a) .gitlab-ci.yml
    b) .gitlab-ci.json
    c) .gitlab-ci.xml
    d) .gitlab-ci.txt
    View Answer

    Correct answer: A — .gitlab-ci.yml

  19. Which of the following is true about Continuous Deployment?
    a) Every change is automatically deployed to production
    b) Only manual deployment is supported
    c) Only integration testing is supported
    d) Only security testing is supported
    View Answer

    Correct answer: A — Every change is automatically deployed to production

  20. Bamboo is a CI/CD tool developed by:
    a) Atlassian
    b) Microsoft
    c) Google
    d) Amazon
    View Answer

    Correct answer: A — Atlassian

  21. Which of the following is true about CI/CD pipelines in Jenkins?
    a) They can be scripted using Groovy DSL
    b) They can only be written in JSON
    c) They can only be written in XML
    d) They can only be written in TXT
    View Answer

    Correct answer: A — They can be scripted using Groovy DSL

  22. Which of the following is true about CI/CD automation?
    a) It reduces manual errors and speeds up delivery
    b) It validates performance only
    c) It validates usability only
    d) It validates integration only
    View Answer

    Correct answer: A — It reduces manual errors and speeds up delivery

  23. GitHub Actions runners are used to:
    a) Execute workflows
    b) Deploy applications manually
    c) Monitor logs only
    d) Run usability tests only
    View Answer

    Correct answer: A — Execute workflows

  24. Which of the following is true about CI/CD in DevOps?
    a) It bridges development and operations through automation
    b) It validates performance only
    c) It validates usability only
    d) It validates integration only
    View Answer

    Correct answer: A — It bridges development and operations through automation

  25. Jenkins supports pipeline stages like:
    a) Build, Test, Deploy
    b) Only Build
    c) Only Test
    d) Only Deploy
    View Answer

    Correct answer: A — Build, Test, Deploy

  26. Which of the following is true about CI/CD feedback loops?
    a) They provide rapid feedback to developers
    b) They validate performance only
    c) They validate usability only
    d) They validate integration only
    View Answer

    Correct answer: A — They provide rapid feedback to developers

  27. GitLab CI/CD supports runners for:
    a) Executing jobs
    b) Deploying applications manually
    c) Monitoring logs only
    d) Running usability tests only
    View Answer

    Correct answer: A — Executing jobs

  28. Which of the following is true about CI/CD pipelines in CircleCI?
    a) They are defined in .circleci/config.yml
    b) They are defined in JSON files
    c) They are defined in XML files
    d) They are defined in TXT files
    View Answer

    Correct answer: A — They are defined in .circleci/config.yml

  29. Which of the following is true about CI/CD deployment strategies?
    a) Blue-Green, Canary, Rolling
    b) Only Blue-Green
    c) Only Canary
    d) Only Rolling
    View Answer

    Correct answer: A — Blue-Green, Canary, Rolling

  30. Which of the following is true about Jenkins agents?
    a) They execute pipeline jobs
    b) They validate performance only
    c) They validate usability only
    d) They validate integration only
    View Answer

    Correct answer: A — They execute pipeline jobs

  31. What will be printed?
    1 print("Eduinq Continuous Integration Test")
    a) Eduinq Continuous Integration Test
    b) Continuous Integration Test
    c) No output
    d) Error
    View Answer

    Correct answer: A — Eduinq Continuous Integration Test

  32. Which of the following is true about CI/CD monitoring?
    a) It tracks pipeline health and failures
    b) It validates performance only
    c) It validates usability only
    d) It validates integration only
    View Answer

    Correct answer: A — It tracks pipeline health and failures

  33. GitHub Actions supports triggers like:
    a) push, pull_request, schedule
    b) Only push
    c) Only pull_request
    d) Only schedule
    View Answer

    Correct answer: A — push, pull_request, schedule

  34. Which of the following is true about CI/CD rollback strategies?
    a) They revert deployments in case of failure
    b) They validate performance only
    c) They validate usability only
    d) They validate integration only
    View Answer

    Correct answer: A — They revert deployments in case of failure

  35. Jenkins supports declarative pipelines defined in:
    a) Jenkinsfile with declarative syntax
    b) JSON file
    c) XML file
    d) TXT file
    View Answer

    Correct answer: A — Jenkinsfile with declarative syntax

  36. Which of the following is true about CI/CD scalability?
    a) Pipelines can run on multiple agents in parallel
    b) Pipelines run only on one agent
    c) Pipelines run only sequentially
    d) Pipelines run only manually
    View Answer

    Correct answer: A — Pipelines can run on multiple agents in parallel

  37. GitLab CI/CD supports caching to:
    a) Speed up pipeline execution
    b) Validate performance only
    c) Validate usability only
    d) Validate integration only
    View Answer

    Correct answer: A — Speed up pipeline execution

  38. Which of the following is true about CI/CD secrets management?
    a) Secrets are stored securely and injected into pipelines
    b) Secrets validate performance only
    c) Secrets validate usability only
    d) Secrets validate integration only
    View Answer

    Correct answer: A — Secrets are stored securely and injected into pipelines

  39. CircleCI supports parallelism to:
    a) Run jobs concurrently
    b) Run jobs sequentially only
    c) Run jobs manually only
    d) Run jobs interactively only
    View Answer

    Correct answer: A — Run jobs concurrently

  40. Which of the following is true about CI/CD artifact repositories?
    a) They store build outputs for reuse
    b) They validate performance only
    c) They validate usability only
    d) They validate integration only
    View Answer

    Correct answer: A — They store build outputs for reuse

  41. Which of the following is a popular artifact repository tool?
    a) Nexus
    b) Selenium
    c) JUnit
    d) PyTest
    View Answer

    Correct answer: A — Nexus

  42. Which of the following is true about CI/CD notifications?
    a) They inform teams about pipeline status
    b) They validate performance only
    c) They validate usability only
    d) They validate integration only
    View Answer

    Correct answer: A — They inform teams about pipeline status

  43. Jenkins supports distributed builds using:
    a) Master-agent architecture
    b) Only single machine
    c) Only cloud execution
    d) Only manual execution
    View Answer

    Correct answer: A — Master-agent architecture

  44. Which of the following is true about CI/CD caching?
    a) It reduces build times by reusing dependencies
    b) It validates performance only
    c) It validates usability only
    d) It validates integration only
    View Answer

    Correct answer: A — It reduces build times by reusing dependencies

  45. GitHub Actions supports matrix builds to:
    a) Run jobs across multiple environments
    b) Run jobs sequentially only
    c) Run jobs manually only
    d) Run jobs interactively only
    View Answer

    Correct answer: A — Run jobs across multiple environments

  46. Which of the following is true about CI/CD deployment strategies?
    a) Canary releases gradually roll out changes
    b) Blue-Green releases deploy all changes at once
    c) Rolling releases deploy only to staging
    d) Manual releases deploy without automation
    View Answer

    Correct answer: A — Canary releases gradually roll out changes

  47. GitLab CI/CD supports artifacts to:
    a) Pass build outputs between jobs
    b) Validate performance only
    c) Validate usability only
    d) Validate integration only
    View Answer

    Correct answer: A — Pass build outputs between jobs

  48. Which of the following is true about CI/CD rollback?
    a) It reverts deployments when failures occur
    b) It validates performance only
    c) It validates usability only
    d) It validates integration only
    View Answer

    Correct answer: A — It reverts deployments when failures occur

  49. Jenkins pipelines can be triggered by:
    a) SCM changes, scheduled jobs, manual triggers
    b) Only SCM changes
    c) Only scheduled jobs
    d) Only manual triggers
    View Answer

    Correct answer: A — SCM changes, scheduled jobs, manual triggers

  50. Which of the following best describes CI/CD overall?
    a) Automates build, test, and deployment to deliver software faster
    b) Ensures only performance correctness
    c) Ensures only usability correctness
    d) Ensures only integration correctness
    View Answer

    Correct answer: A — Automates build, test, and deployment to deliver software faster

Quick Links to Explore