Unit 5: DevOps Trends - Practice Quiz

INT331 — Fundamentals Of Devops 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 Which of the following best describes the DevSecOps trend?

A. Replacing the operations team with security engineers
B. Separating the security team from the development and operations teams completely
C. Integrating security practices within the DevOps process from the start
D. Adding security checks only at the end of the development lifecycle

2 In the context of DevOps market trends, what does the concept of 'NoOps' imply?

A. A strategy where no operational tools are used
B. An IT environment so automated that the underlying infrastructure is abstracted from developers
C. The total elimination of software developers
D. An environment where operations are completely manual

3 Which skill is NOT typically considered a core technical skill for a DevOps Engineer?

A. Knowledge of CI/CD pipelines
B. Understanding of Containerization (Docker/Kubernetes)
C. Proficiency in Scripting languages (Python/Bash)
D. Deep expertise in graphic design and UI/UX prototyping

4 What is the primary goal of the DevOps Delivery Pipeline?

A. To strictly separate development and operations tasks
B. To enable continuous delivery of value to the end user through automation
C. To slow down development to ensure 100% bug-free code
D. To increase the number of manual approval gates

5 In the DevOps ecosystem, which tool is primarily associated with Source Code Management (SCM)?

A. Jenkins
B. Docker
C. Nagios
D. Git

6 Which command is used in Git to download a repository from a remote source to your local machine for the first time?

A. git clone
B. git commit
C. git fork
D. git push

7 What is the function of git staging area (index)?

A. It stores the commit history
B. It permanently deletes files
C. It is an intermediate area where commits can be formatted and reviewed before completing the commit
D. It pushes code to the remote server

8 Which of the following is an XML file used by Maven to manage project dependencies and build configuration?

A. maven.yaml
B. pom.xml
C. build.xml
D. package.json

9 In Maven, what does the command mvn clean install do?

A. Cleans the project and installs the Maven software
B. Cleans the code syntax only
C. Removes the target directory, compiles, tests, packages, and installs the artifact into the local repository
D. Installs the application on a remote server

10 Which of the following best describes Jenkins?

A. A configuration management tool
B. An open-source automation server used for Continuous Integration and Continuous Delivery
C. A virtualization hypervisor
D. A container orchestration platform

11 In Jenkins, what is a 'Pipeline'?

A. A suite of plugins which supports implementing and integrating continuous delivery pipelines
B. The graphical user interface for administration
C. A physical cable connecting servers
D. A database for storing user credentials

12 Which file is typically used to define a Jenkins Pipeline as code?

A. Pipeline.xml
B. Jenkinsfile
C. Dockerfile
D. Playbook.yaml

13 What is the primary function of Selenium in the DevOps toolchain?

A. Automated web browser testing
B. Infrastructure provisioning
C. Log monitoring
D. Container management

14 Which component of Selenium is responsible for executing tests against different browsers?

A. Selenium IDE
B. Selenium WebDriver
C. Selenium Grid
D. Selenium Server

15 What is the core difference between a Virtual Machine (VM) and a Docker Container?

A. Containers require a full OS per instance; VMs share the host OS kernel
B. Docker cannot run on Linux
C. VMs are faster to boot than containers
D. Containers share the host OS kernel and are lightweight; VMs include a full Guest OS

16 Which file is used to assemble a Docker image?

A. docker-compose.yml
B. Container.txt
C. Dockerfile
D. Imagefile

17 Which command starts a container from a Docker image?

A. docker commit
B. docker run
C. docker pull
D. docker build

18 What is Kubernetes primarily used for?

A. Automating deployment, scaling, and management of containerized applications
B. Managing physical hardware racks
C. Writing source code
D. Scanning code for security vulnerabilities

19 In Kubernetes, what is the smallest deployable unit of computing that can be created and managed?

A. Pod
B. Cluster
C. Namespace
D. Node

20 What is the role of the Kubelet in Kubernetes?

A. It balances load across the internet
B. It is an agent that runs on each node to ensure containers are running in a Pod
C. It is the database storing cluster state
D. It is the command line tool for users

21 Which tool is known as an 'Agentless' configuration management tool?

A. Nagios
B. Puppet
C. Chef
D. Ansible

22 What format does Ansible use for its Playbooks?

A. XML
B. HTML
C. YAML
D. JSON

23 Which term describes the architecture of Puppet?

A. Peer-to-Peer
B. Master-Slave (or Server-Agent)
C. Agentless
D. Monolithic

24 In Puppet, the files containing the configuration details for a specific node or class of nodes are called:

A. Manifests
B. Blueprints
C. Playbooks
D. Recipes

25 What is Nagios primarily used for?

A. Continuous Integration
B. Continuous Monitoring of Infrastructure
C. Container Orchestration
D. Source Code Management

26 In Nagios, what is NRPE?

A. Network Routing Protocol Engine
B. New Relic Process Engine
C. Nagios Remote Plugin Executor
D. Nagios Real-time Processing Event

27 Which of the following describes the 'Shift Left' strategy in testing?

A. Testing is performed earlier in the software development lifecycle
B. Testing is performed only after deployment to production
C. Developers write code with their left hand
D. Testing is moved to the left side of the screen

28 What is Infrastructure as Code (IaC)?

A. Physically building servers using code
B. Managing and provisioning infrastructure through machine-readable definition files
C. Writing code to document hardware inventory manually
D. Installing operating systems via CD-ROM

29 Which Git command is used to combine changes from one branch into the current branch?

A. git tag
B. git status
C. git merge
D. git config

30 In the context of Maven, what are 'Transitive Dependencies'?

A. Dependencies that must be manually downloaded
B. Dependencies of your direct dependencies that are automatically included
C. Dependencies that are removed during the build
D. Dependencies used only for testing

31 Which Jenkins feature allows it to distribute loads across multiple computers?

A. Master/Agent (Slave) architecture
B. Pipeline syntax
C. Plugin Manager
D. Blue Ocean

32 What is Docker Hub?

A. A networking tool for Docker
B. A local storage for containers
C. The kernel of the Docker engine
D. A cloud-based registry service for sharing and storing Docker images

33 In Kubernetes, what is a Service?

A. A physical server
B. The billing component of K8s
C. An abstraction which defines a logical set of Pods and a policy by which to access them
D. A background process in Linux

34 Which concept in Ansible describes the list of managed nodes (servers)?

A. Manifest
B. Inventory
C. Library
D. Catalog

35 Puppet uses a Declarative language. What does this mean?

A. You must write raw shell scripts
B. You describe the desired final state, and the tool figures out how to achieve it
C. You describe the steps to achieve a state
D. You must manually compile the code

36 Which monitoring state in Nagios indicates a critical problem?

A. UNKNOWN
B. OK
C. WARNING
D. CRITICAL

37 What is the role of 'Headless Mode' in Selenium testing?

A. Running tests without an internet connection
B. Running tests without a hard drive
C. Running tests without a visible browser UI
D. Running tests without a monitor attached to the server

38 Which of the following is a key cultural aspect of DevOps?

A. Manual handoffs
B. Blame culture
C. Shared responsibility and collaboration
D. Silos between teams

39 What is a 'Commit Hash' in Git?

A. A command to delete a file
B. A password to login to GitHub
C. The size of the repository
D. A unique SHA-1 checksum that identifies a specific commit

40 In Maven, the standard directory layout places source code in:

A. root/java
B. app/src
C. code/source
D. src/main/java

41 Which command allows you to view the logs of a Docker container?

A. docker view
B. docker trace
C. docker logs [container_id]
D. docker history

42 What is the 'kubectl' command?

A. A Docker image builder
B. A database tool
C. A specialized Linux kernel
D. The Kubernetes command-line tool for communicating with the cluster API

43 In Ansible, what is a Module?

A. The main configuration file
B. A unit of code that Ansible executes on the target node
C. A hardware component
D. A distinct server in the inventory

44 What is the primary function of a Version Control System?

A. To deploy code to production
B. To compiling code
C. To track changes to files over time
D. To monitor server health

45 Which of the following is a benefit of Microservices architecture in DevOps?

A. Easier management of monolithic codebases
B. Independent deployment and scaling of services
C. Single point of failure
D. Increased coupling between components

46 What does CI stand for in CI/CD?

A. Continuous Integration
B. Continuous Improvement
C. Cloud Infrastructure
D. Code Inspection

47 If a Jenkins build fails, what is the most appropriate immediate action for a DevOps engineer?

A. Investigate the console output/logs to identify the error
B. Restart the Jenkins server immediately
C. Ignore it and wait for the next build
D. Deploy the failed build to production

48 Which Puppet component is responsible for collecting details about a node (OS, IP address, uptime)?

A. Hiera
B. Mcollective
C. Catalog
D. Facter

49 In a Dockerfile, which instruction specifies the base image?

A. CMD
B. RUN
C. FROM
D. COPY

50 What is the difference between git pull and git fetch?

A. git pull uploads changes; git fetch downloads changes
B. There is no difference
C. git fetch downloads changes and merges them; git pull only downloads
D. git pull downloads changes and merges them; git fetch only downloads changes