Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 4 MCQs Core concepts of Continuous Delivery (CD), Deployment & Automation

INT331 — Fundamentals Of Devops 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Introduction Continuous Delivery & Continuous Deployment Easy

    What is the main difference between Continuous Delivery and Continuous Deployment?

  2. Question 2 of 60 Introduction Continuous Delivery & Continuous Deployment Easy

    Which of the following is a key goal of Continuous Delivery?

  3. Question 3 of 60 Jenkins Plugins for CD Easy

    Which Jenkins plugin is commonly used to define pipelines as code?

  4. Question 4 of 60 Jenkins Plugins for CD Easy

    What is the primary purpose of Jenkins plugins?

  5. Question 5 of 60 Deployment Strategies: Rolling, Blue-Green, Canary Easy

    In a Blue-Green deployment, what do the two environments represent?

  6. Question 6 of 60 Deployment Strategies: Rolling, Blue-Green, Canary Easy

    What best describes a Canary deployment?

  7. Question 7 of 60 Deployment Strategies: Rolling, Blue-Green, Canary Easy

    How does a Rolling deployment update an application?

  8. Question 8 of 60 Deployment Strategies: Rolling, Blue-Green, Canary Easy

    Which deployment strategy allows near-instant rollback by simply switching traffic back to the old environment?

  9. Question 9 of 60 Configuration Management Basics: Terraform / Puppet / Ansible Easy

    Which tool is primarily used as an Infrastructure as Code (IaC) provisioning tool?

  10. Question 10 of 60 Configuration Management Basics: Terraform / Puppet / Ansible Easy

    Which configuration management tool is known for being agentless and using SSH?

  11. Question 11 of 60 Configuration Management Basics: Terraform / Puppet / Ansible Easy

    What file format does Ansible primarily use to write playbooks?

  12. Question 12 of 60 Infrastructure Automation with Ansible and Terraform Easy

    What language does Terraform use to define infrastructure configurations?

  13. Question 13 of 60 Infrastructure Automation with Ansible and Terraform Easy

    Which command is used to preview the changes Terraform will make before applying them?

  14. Question 14 of 60 Infrastructure Automation with Ansible and Terraform Easy

    In Ansible, what is a group of hosts defined in an inventory file called?

  15. Question 15 of 60 Containerization Introduction Easy

    What is the main benefit of containerization?

  16. Question 16 of 60 Containerization Introduction Easy

    How do containers differ from traditional virtual machines?

  17. Question 17 of 60 Docker Architecture & Workflow Easy

    Which component is the background service that manages Docker objects like images and containers?

  18. Question 18 of 60 Docker Architecture & Workflow Easy

    What is Docker Hub primarily used for?

  19. Question 19 of 60 Writing Dockerfiles Easy

    Which Dockerfile instruction specifies the base image to build upon?

  20. Question 20 of 60 Building Images Easy

    Which command is used to build a Docker image from a Dockerfile?

  21. Question 21 of 60 Introduction Continuous Delivery & Continuous Deployment Medium

    A team has an automated pipeline that builds, tests, and stages every commit, but a human must click Approve before code reaches production. Which practice does this describe?

  22. Question 22 of 60 Introduction Continuous Delivery & Continuous Deployment Medium

    Which statement best distinguishes Continuous Deployment from Continuous Delivery?

  23. Question 23 of 60 Jenkins Plugins for CD Medium

    In Jenkins, which plugin lets you define an entire delivery workflow as code using a Jenkinsfile?

  24. Question 24 of 60 Jenkins Plugins for CD Medium

    A DevOps engineer wants Jenkins to visualize the flow of a change through build, test, and deploy stages as connected boxes. Which plugin is most appropriate?

  25. Question 25 of 60 Deployment Strategies: Rolling, Blue-Green, Canary Medium

    A company keeps two identical production environments and switches all traffic from the old one to the new one at once after validation. Which strategy is this?

  26. Question 26 of 60 Deployment Strategies: Rolling, Blue-Green, Canary Medium

    A team releases a new version to only 5% of users first, monitors error rates, then gradually increases the percentage. Which strategy is used?

  27. Question 27 of 60 Deployment Strategies: Rolling, Blue-Green, Canary Medium

    In a rolling deployment across 10 instances, what is the main advantage compared to a big-bang release?

  28. Question 28 of 60 Deployment Strategies: Rolling, Blue-Green, Canary Medium

    Which deployment strategy provides the fastest rollback because the previous version remains fully running in a separate environment?

  29. Question 29 of 60 Configuration Management Basics: Terraform / Puppet / Ansible Medium

    Which characteristic best describes Ansible's default operating model?

  30. Question 30 of 60 Configuration Management Basics: Terraform / Puppet / Ansible Medium

    Puppet typically follows which architecture for applying configuration?

  31. Question 31 of 60 Configuration Management Basics: Terraform / Puppet / Ansible Medium

    Which tool is primarily designed for provisioning infrastructure declaratively and maintains a state file to track resources?

  32. Question 32 of 60 Infrastructure Automation with Ansible and Terraform Medium

    In Terraform, which command shows the actions Terraform will take without actually applying them?

  33. Question 33 of 60 Infrastructure Automation with Ansible and Terraform Medium

    An Ansible file that lists the target hosts and groups the automation will run against is called the:

  34. Question 34 of 60 Infrastructure Automation with Ansible and Terraform Medium

    Why is Ansible said to be idempotent when running a playbook multiple times?

  35. Question 35 of 60 Containerization Introduction Medium

    Which statement correctly contrasts containers with virtual machines?

  36. Question 36 of 60 Docker Architecture & Workflow Medium

    In Docker's architecture, which component is the persistent background service that builds, runs, and manages containers?

  37. Question 37 of 60 Docker Architecture & Workflow Medium

    When you run docker pull nginx, where does Docker fetch the image from by default?

  38. Question 38 of 60 Writing Dockerfiles Medium

    In a Dockerfile, what is the key difference between the CMD and ENTRYPOINT instructions?

  39. Question 39 of 60 Writing Dockerfiles Medium

    To reduce cache invalidation and speed up rebuilds when only source code changes, where should COPY package.json and dependency installation be placed in a Dockerfile?

  40. Question 40 of 60 Building Images Medium

    What does the -t flag do in the command docker build -t myapp:1.0 .?

  41. Question 41 of 60 Introduction Continuous Delivery & Continuous Deployment Hard

    A team practices Continuous Delivery but insists on a manual approval gate before the production release. Which statement correctly distinguishes their practice from Continuous Deployment?

  42. Question 42 of 60 Introduction Continuous Delivery & Continuous Deployment Hard

    An organization has a mature CI pipeline but frequent production incidents traced to configuration drift between staging and production. Which CD principle most directly addresses this?

  43. Question 43 of 60 Jenkins Plugins for CD Hard

    In a Jenkins declarative pipeline, you need to pause execution for a manual production approval that times out and aborts after one hour. Which construct achieves this?

  44. Question 44 of 60 Jenkins Plugins for CD Hard

    A team wants Jenkins pipeline definitions versioned alongside application source and automatically discovered per branch. Which plugin combination best supports this?

  45. Question 45 of 60 Deployment Strategies: Rolling, Blue-Green, Canary Hard

    A service must maintain full capacity during deployment, requires instant rollback, but the team can afford double the infrastructure temporarily. Which strategy fits best?

  46. Question 46 of 60 Deployment Strategies: Rolling, Blue-Green, Canary Hard

    During a canary release, 5% of traffic goes to the new version. Error rate on the canary is versus on the stable version. What is the correct automated response?

  47. Question 47 of 60 Deployment Strategies: Rolling, Blue-Green, Canary Hard

    A rolling update with maxSurge=1 and maxUnavailable=0 is applied to a 4-replica deployment. What is the maximum number of pods that can exist simultaneously during the update?

  48. Question 48 of 60 Configuration Management Basics: Terraform / Puppet / Ansible Hard

    Which statement correctly contrasts Terraform's and Ansible's operational models?

  49. Question 49 of 60 Configuration Management Basics: Terraform / Puppet / Ansible Hard

    Puppet is described as enforcing 'idempotent' and 'eventual consistency' behavior. Which scenario best illustrates this?

  50. Question 50 of 60 Infrastructure Automation with Ansible and Terraform Hard

    A Terraform configuration hardcodes a resource that was later created manually in the cloud console. Running terraform apply tries to create a duplicate. What is the correct remediation?

  51. Question 51 of 60 Infrastructure Automation with Ansible and Terraform Hard

    In an Ansible playbook, a task must run only once on a single host even when targeting many hosts. Which directive achieves this?

  52. Question 52 of 60 Infrastructure Automation with Ansible and Terraform Hard

    Two engineers run terraform apply concurrently against the same remote backend without locking configured. What is the primary risk?

  53. Question 53 of 60 Containerization Introduction Hard

    Which statement most accurately explains why containers are more lightweight than traditional virtual machines?

  54. Question 54 of 60 Containerization Introduction Hard

    A stateless microservice scaled to 50 containers loses all in-memory session data when any container restarts. What architectural principle explains the correct handling?

  55. Question 55 of 60 Docker Architecture & Workflow Hard

    When you run docker run nginx, which component is ultimately responsible for creating and running the container process?

  56. Question 56 of 60 Docker Architecture & Workflow Hard

    A developer notices that changing one line in application code invalidates the Docker build cache for all subsequent layers, causing slow rebuilds. What is the root cause?

  57. Question 57 of 60 Writing Dockerfiles Hard

    Consider a Dockerfile ending with ENTRYPOINT ["python"] and CMD ["app.py"]. What happens when you run docker run myimg script.py?

  58. Question 58 of 60 Writing Dockerfiles Hard

    Which Dockerfile technique most effectively reduces final image size for a compiled Go application?

  59. Question 59 of 60 Building Images Hard

    During docker build, you want to inject a secret token needed only at build time without it persisting in any image layer. What is the recommended approach?

  60. Question 60 of 60 Building Images Hard

    Two images built from identical Dockerfiles on different machines produce different image digests despite no source changes. What is the most likely cause?

That's unit 4

Answer a few questions and your score shows up here.