Continuous Integration and Continuous Delivery (CI/CD) Quiz Answers

Get All Weeks Continuous Integration and Continuous Delivery (CI/CD) Quiz Answers

Continuous Integration and Continuous Delivery (CI/CD) Quiz Answers

Module 1 – Graded Quiz: Introduction to CI/CD week 1 quiz answer

Q1. What is Continuous Delivery (CD)?

[expand title=View Answer] An automation process with which you can continuously push changes to production[/expand]

Q2. Which component of a DevOps pipeline consists exclusively of the Release, Deploy, and Operate phases?

[expand title=View Answer] Continuous Delivery [/expand]

Q3. Which aspect of development is reduced by using Continuous Integration and Continuous Delivery (CI/CD)?

[expand title=View Answer] Integration risk [/expand]

Q4. What is an important consideration when using DevOps pipeline tools?

[expand title=View Answer]That the tools automate processes[/expand]

Q5. Which tool is a hosted Continuous Integration (CI) service that helps developers build and test software projects hosted on GitHub and Bitbucket?

[expand title=View Answer] Provide instructions in a textual format like YAML.[/expand]

Q6. Which Infrastructure as Code (IaC) approach requires you to define the specific order of commands needed to achieve the desired state?

[expand title=View Answer] Imperative [/expand]

Q7. Which file type contains a list of servers or devices that an Infrastructure as Code (IaC) tool uses to provision infrastructure?

[expand title=View Answer] Inventory [/expand]

Q8. What is the benefit of Infrastructure as Code (IaC)?

[expand title=View Answer] Improved use of developers’ time [/expand]

Q9. Which Infrastructure as Code (IaC) tool uses a declarative, or automatic, approach with a pre-execution check to ensure that the tool achieves the desired result?

[expand title=View Answer] Terraform [/expand]

Module 2 – Graded Quiz: Continuous Integration (CI)

Q1. What is one benefit of Continuous Integration (CI)?

[expand title=View Answer] CI ensures that the main branch is always deployable. [/expand]

Q2. Why does Continuous Integration (CI) reduce code integration risk?

[expand title=View Answer] CI involves smaller code changes that are easier to review.[/expand]

Q3. What is the first step of social coding?

[expand title=View Answer] Fork the repo, create a branch, and make changes. [/expand]

Q4. Why is Git valuable for DevOps?

[expand title=View Answer] It enables non-linear collaboration.[/expand]

Q5. When starting development on a new feature for a Git project, what should you do first?

[expand title=View Answer] Check out the main branch. [/expand]

Q6. In the pull request workflow, what should you do after pulling changes from the main branch to your local workspace?

[expand title=View Answer] Merge the changes into the local branch. [/expand]

Q7. With Travis CI, what type of file must you use to define the instructions for your Continuous Integration (CI) pipeline?

[expand title=View Answer] YAML [/expand]

Q8. What does a job do in a GitHub Actions workflow?

[expand title=View Answer] It performs a single low-level task. [/expand]

Q9. What is one keyword you can use to set up a GitHub Actions event?

[expand title=View Answer] release[/expand]

Q10. In GitHub Actions, what does the ‘needs’ keyword do?

[expand title=View Answer] It lists jobs that must run before the job with this keyword. [/expand]

Module 3 – Graded Quiz: Continuous Delivery (CD)

Q1. What is the benefit of Continuous Delivery (CD)?

[expand title=View Answer]Reduces deployment time [/expand]

Q2. According to the key principles of Continuous Delivery (CD), what should you do if a build breaks?

[expand title=View Answer] Determine how the system failed. [/expand]

Q3. What is a best practice for Continuous Delivery (CD)?

[expand title=View Answer] Use long-lived repository branches when possible. [/expand]

Q4. Which scanning capability should you have within your Continuous Delivery (CD) pipeline?

[expand title=View Answer] Secret[/expand]

Q5. In Tekton, what does TaskRun do?

[expand title=View Answer] Creates a Kubernetes pod for each task [/expand]

Q6. In a Tekton task manifest, what syntax must you use to pass a parameter into a step?

[expand title=View Answer] $() [/expand]

Q7. Which subfield must you include within the spec field of a Tekton EventListener definition?

[expand title=View Answer] podTemplate [/expand]

Q8. Assume you want to use the git-clone task from the Tekton Catalog. You have a Tekton PersistentVolumeClaim named pipelinerun-vc and a PipelineRun defined as follows:

[expand title=View Answer]
1.apiVersion: tekton.dev/v1beta1kind: PipelineRun
2.metadata: generateName: pipeline-mn-
3.spec: pipelineRef: name: ab-pipeline
4.workspaces: – name: pipeline-xy persistentVolumeClaim: claimName: pipelinerun-vc
5.params: – name: repo-url value: “$(tt.params.repo)”
[/expand]

Q9. In the pipeline’s spec section, what name must you give the workspace so that any tasks that need it can use it?

[expand title=View Answer] pipeline-xy [/expand]

Q10. Where should you define an environment property that you want to add to a Tekton task?

[expand title=View Answer]Task’s steps field [/expand]

Q11. How can you deploy an application to an environment when using Tekton?

[expand title=View Answer] Apply manifests in YAML format. [/expand]

Final Exam

Q1. Which component of a DevOps pipeline consists exclusively of the Plan, Code, Build, and Test phases?

[expand title=View Answer] Continuous Integration [/expand]

Q2. Which tool is a Continuous Integration and Continuous Delivery (CI/CD) platform that performs CD deployments and contains workflow definitions inside a YAML file?

[expand title=View Answer] CircleCI[/expand]

Q3. What is one benefit of Infrastructure as Code (IaC)?

[expand title=View Answer] Quicker time to production [/expand]

Q4. Why does Continuous Integration (CI) lead to higher-quality code?

[expand title=View Answer] Constant review and testing [/expand]

Q5. What is social coding?

[expand title=View Answer] An open-source approach to enterprise code [/expand]

Q6. Which Git command should you use to undo a commit to your local repository but keep the changes in the staging area?

[expand title=View Answer] git reset –soft [/expand]

Q7. Assume you are working on a Git project and want to develop a new feature. After pulling all the repository’s latest code to your local workspace, what should you do next?

[expand title=View Answer] Create a new branch. [/expand]

Q8. What does an event do in a GitHub Actions workflow?

[expand title=View Answer] Triggers a workflow run [/expand]

Q9. In GitHub Actions, which keyword is helpful for using the output of one step as the input for another step?

[expand title=View Answer] needs [/expand]

Q10. What is the benefit of Continuous Delivery (CD)?

[expand title=View Answer]It reduces the drift between the feature and main branches. [/expand]

Q11. According to the key principles of Continuous Delivery (CD), what should developers spend their time on?

[expand title=View Answer] Solving coding problems[/expand]

Q12. What is the best practice for Continuous Delivery (CD)?

[expand title=View Answer] Release at the granularity of the test. [/expand]

Q13. In Tekton, what does TriggerBinding do?

[expand title=View Answer] It captures the required event parameters for running the pipeline. [/expand]

Q14. In a Tekton task manifest, what is one way to pass a parameter to a task?

[expand title=View Answer] List the parameter name as a step argument. [/expand]

Q15. Assume you have four Tekton tasks within a pipeline: task-a, task-b, task-c, and task-d. How could you make task-a and task-b run in parallel?

[expand title=View Answer]Include the runAfter field in both tasks and then specify task-c as the value for both runAfter fields. [/expand]

Get All Course Quiz Answers of IBM DevOps and Software Engineering Professional Certificate

Introduction to DevOps Coursera Quiz Answers

Introduction to Cloud Computing Coursera Quiz Answers

Introduction to Agile Development and Scrum Quiz Answers

Hands-on Introduction to Linux Commands and Shell Scripting Quiz Answers

Python for Data Science, AI & Development Quiz Answers

Share your love

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *