Advanced CI/CD Practices MCQs

  1. Which of the following best describes Blue-Green deployment?
    a) Running two environments, switching traffic between them
    b) Deploying only to staging
    c) Deploying only to production manually
    d) Deploying only to test environments
    View Answer

    Correct answer: A — Running two environments, switching traffic between them

  2. Canary deployment strategy involves:
    a) Gradually rolling out changes to a subset of users
    b) Deploying all changes at once
    c) Deploying only to staging
    d) Deploying only manually
    View Answer

    Correct answer: A — Gradually rolling out changes to a subset of users

  3. Rolling deployment strategy means:
    a) Updating servers gradually one by one
    b) Updating all servers simultaneously
    c) Updating only staging servers
    d) Updating only test servers
    View Answer

    Correct answer: A — Updating servers gradually one by one

  4. Shadow deployment strategy involves:
    a) Sending traffic to a new version without exposing it to users
    b) Deploying only to production
    c) Deploying only to staging
    d) Deploying only manually
    View Answer

    Correct answer: A — Sending traffic to a new version without exposing it to users

  5. Which of the following is true about GitHub Actions matrix builds?
    a) They run jobs across multiple environments
    b) They run jobs sequentially only
    c) They run jobs manually only
    d) They run jobs interactively only
    View Answer

    Correct answer: A — They run jobs across multiple environments

  6. GitLab CI/CD caching is used to:
    a) Speed up pipeline execution by reusing dependencies
    b) Validate performance only
    c) Validate usability only
    d) Validate integration only
    View Answer

    Correct answer: A — Speed up pipeline execution by reusing dependencies

  7. Jenkins supports pipeline scripting using:
    a) Groovy DSL
    b) JSON
    c) XML
    d) TXT
    View Answer

    Correct answer: A — Groovy DSL

  8. 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

  9. 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

  10. 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

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

    Correct answer: A — Eduinq Advanced CI/CD Test

  12. 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

  13. Which of the following is true about Jenkins distributed builds?
    a) They use master-agent architecture
    b) They run only on a single machine
    c) They run only in the cloud
    d) They run only manually
    View Answer

    Correct answer: A — They use master-agent architecture

  14. GitHub Actions supports environment variables defined in:
    a) Workflow YAML files
    b) JSON files
    c) XML files
    d) TXT files
    View Answer

    Correct answer: A — Workflow YAML files

  15. Which of the following is true about CI/CD rollback strategies?
    a) They revert deployments when failures occur
    b) They validate performance only
    c) They validate usability only
    d) They validate integration only
    View Answer

    Correct answer: A — They revert deployments when failures occur

  16. 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

  17. GitLab CI/CD supports parallel jobs to:
    a) Run multiple jobs concurrently
    b) Run jobs sequentially only
    c) Run jobs manually only
    d) Run jobs interactively only
    View Answer

    Correct answer: A — Run multiple jobs concurrently

  18. 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

  19. GitHub Actions supports reusable workflows to:
    a) Share workflow logic across repositories
    b) Validate performance only
    c) Validate usability only
    d) Validate integration only
    View Answer

    Correct answer: A — Share workflow logic across repositories

  20. Which of the following is true about advanced CI/CD deployment strategies?
    a) They include Blue-Green, Canary, Rolling, Shadow
    b) They include only Blue-Green
    c) They include only Canary
    d) They include only Rolling
    View Answer

    Correct answer: A — They include Blue-Green, Canary, Rolling, Shadow

  21. Which of the following is true about CI/CD pipeline optimization?
    a) Using caching and parallel jobs
    b) Running jobs sequentially only
    c) Running jobs manually only
    d) Running jobs interactively only
    View Answer

    Correct answer: A — Using caching and parallel jobs

  22. GitHub Actions supports reusable workflows defined in:
    a) Separate YAML files
    b) JSON files
    c) XML files
    d) TXT files
    View Answer

    Correct answer: A — Separate YAML files

  23. Which of the following is true about GitLab CI/CD stages?
    a) They define build, test, deploy phases
    b) They define only build phase
    c) They define only test phase
    d) They define only deploy phase
    View Answer

    Correct answer: A — They define build, test, deploy phases

  24. Jenkins pipelines can be written in:
    a) Declarative or scripted syntax
    b) Only declarative syntax
    c) Only scripted syntax
    d) Only JSON syntax
    View Answer

    Correct answer: A — Declarative or scripted syntax

  25. Which of the following is true about CI/CD artifact retention?
    a) Artifacts can be stored for a defined duration
    b) Artifacts are always deleted immediately
    c) Artifacts are never stored
    d) Artifacts are stored only manually
    View Answer

    Correct answer: A — Artifacts can be stored for a defined duration

  26. GitHub Actions supports concurrency to:
    a) Prevent duplicate workflow runs
    b) Run jobs sequentially only
    c) Run jobs manually only
    d) Run jobs interactively only
    View Answer

    Correct answer: A — Prevent duplicate workflow runs

  27. Which of the following is true about CI/CD deployment approvals?
    a) Manual approvals can be required before production deployment
    b) Approvals are never required
    c) Approvals are only required for testing
    d) Approvals are only required for integration
    View Answer

    Correct answer: A — Manual approvals can be required before production deployment

  28. GitLab CI/CD supports environments to:
    a) Define deployment targets like staging and production
    b) Define only build targets
    c) Define only test targets
    d) Define only integration targets
    View Answer

    Correct answer: A — Define deployment targets like staging and production

  29. Which of the following is true about Jenkins shared libraries?
    a) They allow reuse of pipeline code across projects
    b) They validate performance only
    c) They validate usability only
    d) They validate integration only
    View Answer

    Correct answer: A — They allow reuse of pipeline code across projects

  30. GitHub Actions supports secrets stored in:
    a) Repository or organization settings
    b) JSON files
    c) XML files
    d) TXT files
    View Answer

    Correct answer: A — Repository or organization settings

  31. What will be printed?
    1 System.out.println("Eduinq Advanced Deployment Strategy");
    a) Eduinq Advanced Deployment Strategy
    b) Advanced Deployment Strategy
    c) No output
    d) Error
    View Answer

    Correct answer: A — Eduinq Advanced Deployment Strategy

  32. Which of the following is true about CI/CD pipeline triggers?
    a) They can be based on code commits, schedules, or manual actions
    b) They can only be based on code commits
    c) They can only be based on schedules
    d) They can only be based on manual actions
    View Answer

    Correct answer: A — They can be based on code commits, schedules, or manual actions

  33. GitLab CI/CD supports job dependencies using:
    a) needs keyword
    b) requires keyword
    c) depends keyword
    d) links keyword
    View Answer

    Correct answer: A — needs keyword

  34. Which of the following is true about Jenkins declarative pipelines?
    a) They use a structured syntax for readability
    b) They use only scripted syntax
    c) They use only JSON syntax
    d) They use only XML syntax
    View Answer

    Correct answer: A — They use a structured syntax for readability

  35. GitHub Actions supports workflow templates to:
    a) Provide reusable starter configurations
    b) Validate performance only
    c) Validate usability only
    d) Validate integration only
    View Answer

    Correct answer: A — Provide reusable starter configurations

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

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

  37. Jenkins supports pipeline visualization using:
    a) Blue Ocean plugin
    b) Only JSON viewer
    c) Only XML viewer
    d) Only TXT viewer
    View Answer

    Correct answer: A — Blue Ocean plugin

  38. Which of the following is true about GitLab CI/CD variables?
    a) They allow dynamic configuration of jobs
    b) They validate performance only
    c) They validate usability only
    d) They validate integration only
    View Answer

    Correct answer: A — They allow dynamic configuration of jobs

  39. GitHub Actions supports job outputs to:
    a) Pass data between jobs
    b) Validate performance only
    c) Validate usability only
    d) Validate integration only
    View Answer

    Correct answer: A — Pass data between jobs

  40. Which of the following is true about CI/CD pipeline security?
    a) Secrets must be encrypted and access controlled
    b) Secrets are always public
    c) Secrets are stored in plain text
    d) Secrets are never used
    View Answer

    Correct answer: A — Secrets must be encrypted and access controlled

  41. Which of the following is true about Jenkins scripted pipelines?
    a) They provide flexibility with Groovy scripting
    b) They provide only declarative syntax
    c) They provide only JSON syntax
    d) They provide only XML syntax
    View Answer

    Correct answer: A — They provide flexibility with Groovy scripting

  42. GitLab CI/CD supports job artifacts to:
    a) Share files between jobs
    b) Validate performance only
    c) Validate usability only
    d) Validate integration only
    View Answer

    Correct answer: A — Share files between jobs

  43. Which of the following is true about CI/CD pipeline 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

  44. GitHub Actions supports conditional job execution using:
    a) if keyword
    b) when keyword
    c) condition keyword
    d) case keyword
    View Answer

    Correct answer: A — if keyword

  45. Which of the following is true about Jenkins pipeline libraries?
    a) They allow sharing of reusable functions across pipelines
    b) They validate performance only
    c) They validate usability only
    d) They validate integration only
    View Answer

    Correct answer: A — They allow sharing of reusable functions across pipelines

  46. GitLab CI/CD supports manual jobs to:
    a) Allow human intervention in pipelines
    b) Validate performance only
    c) Validate usability only
    d) Validate integration only
    View Answer

    Correct answer: A — Allow human intervention in pipelines

  47. Which of the following is true about CI/CD pipeline failures?
    a) They provide feedback to developers for quick fixes
    b) They validate performance only
    c) They validate usability only
    d) They validate integration only
    View Answer

    Correct answer: A — They provide feedback to developers for quick fixes

  48. GitHub Actions supports workflow dispatch to:
    a) Trigger workflows manually
    b) Trigger workflows only automatically
    c) Trigger workflows only on schedule
    d) Trigger workflows only on pull requests
    View Answer

    Correct answer: A — Trigger workflows manually

  49. Which of the following is true about Jenkins pipeline parameters?
    a) They allow customization of pipeline runs
    b) They validate performance only
    c) They validate usability only
    d) They validate integration only
    View Answer

    Correct answer: A — They allow customization of pipeline runs

  50. Which of the following best describes advanced CI/CD practices overall?
    a) Optimizing pipelines with caching, parallelism, secrets, and deployment strategies
    b) Ensuring only performance correctness
    c) Ensuring only usability correctness
    d) Ensuring only integration correctness
    View Answer

    Correct answer: A — Optimizing pipelines with caching, parallelism, secrets, and deployment strategies

Quick Links to Explore