☑ MCQ PRACTICE

DevOps Unit 2

Practice objective questions for quick revision and examination preparation. Try answering each question before revealing the answer.

📚 DevOps
📖 Unit 2
🎯 MCQs

DevOps - Unit-2

1
Which phase follows 'Code' in the DevOps lifecycle?
AMonitor
BPlan
COperate
DBuild
Correct Answer Build
2
Continuous testing means
Arunning automated tests throughout the delivery pipeline for rapid feedback
Btesting only after release
Ctesting only manually at the end
Dskipping tests to save time
Correct Answer running automated tests throughout the delivery pipeline for rapid feedback
3
A monolithic architecture is one in which
Athe whole application is built and deployed as a single unit
Bevery feature is a separate service
Cthe application has no database
Dcode is never changed after release
Correct Answer the whole application is built and deployed as a single unit
4
Microservices are
Asmall, independently deployable services
Bone large deployable package
Conly database tables
Dhardware servers
Correct Answer small, independently deployable services
5
A major drawback of a monolith for DevOps is that
Asmall changes require redeploying the whole application
Bit cannot store data
Cit needs no testing
Dit can never be scaled
Correct Answer small changes require redeploying the whole application
6
Separation of concerns means
Awriting all code in one file
Bseparating developers from testers
Ckeeping the database away from the application
Ddividing a system into parts, each with a distinct responsibility
Correct Answer dividing a system into parts, each with a distinct responsibility
7
Database migrations are
Abackups of the database
Bcopies of the application server
Cuser login records
Dscripted, versioned changes to the database schema
Correct Answer scripted, versioned changes to the database schema
8
Which of the following is a tool for managing database migrations?
ASelenium
BFlyway
CGerrit
DJasmine
Correct Answer Flyway
9
In a microservices architecture, the recommended approach to data is that
Aall services share one table
Beach service owns its own data
Cno service stores data
Ddata is kept only on the client
Correct Answer each service owns its own data
10
Conway's Law states that
Aall systems must be monolithic
Btests must be written first
Corganisations design systems that mirror their communication structure
Ddatabases must be normalised
Correct Answer organisations design systems that mirror their communication structure
11
Resilience of a system is its ability to
Arun without any code
Brecover from failures and keep working
Cavoid being tested
Duse less memory only
Correct Answer recover from failures and keep working
12
Chaos Monkey is a resilience testing tool created by
AGoogle
BNetflix
CMicrosoft
DOracle
Correct Answer Netflix
13
Which design guideline is generally recommended for components?
ALoose coupling and high cohesion
BHigh coupling and low cohesion
CTight coupling and tight cohesion
DNo separation between components
Correct Answer Loose coupling and high cohesion
14
Continuous testing helps DevOps teams mainly by
Adelaying releases
Bremoving the need for developers
Celiminating monitoring
Dfinding defects early
Correct Answer finding defects early
15
The typical layers of a layered architecture are
Acompiler, linker and loader
Bplan, code and release
Cpresentation, business logic and data access
Dmaster, slave and agent
Correct Answer presentation, business logic and data access
16
'Shift-left' testing means
Atesting earlier in the development lifecycle
Btesting only after deployment
Cmoving tests to the operations team
Dstopping testing altogether
Correct Answer testing earlier in the development lifecycle
17
An API gateway in a microservices system acts as
Aa database server
Ba source code repository
Ca build server
Da single entry point that routes requests to services
Correct Answer a single entry point that routes requests to services
18
The circuit breaker pattern
Aencrypts all network traffic
Bstops calls to a failing service to prevent cascading failures
Cbuilds the application
Dschedules database backups
Correct Answer stops calls to a failing service to prevent cascading failures
19
Business agility in DevOps refers to
Aincreasing the number of servers
Bthe ability to respond quickly to market and customer changes
Cavoiding any change to software
Dreducing the team size
Correct Answer the ability to respond quickly to market and customer changes
20
Backward-compatible database migrations are important because
Adatabases cannot be changed
Bold and new application versions may run against the same schema during a rollout
Cmigrations never need testing
Dapplications never change
Correct Answer old and new application versions may run against the same schema during a rollout
21
Which architecture style best supports scaling components independently?
AMonolithic
BMicroservices
CSingle-tier
DBatch-only
Correct Answer Microservices
22
In the test pyramid, the largest number of tests should be
Amanual UI tests
Bexploratory tests
Cload tests
Dunit tests
Correct Answer unit tests
23
Running several instances of a service to avoid a single point of failure is an example of
Amigration
Bcompilation
Credundancy
Drefactoring
Correct Answer redundancy
24
A message queue is commonly used in architecture to
Acompile the source code
Bstore passwords
Crender web pages
Dprovide asynchronous communication and decouple components
Correct Answer provide asynchronous communication and decouple components
25
Smaller, more frequent releases mainly reduce
Athe need for version control
Bthe need for automation
Cthe number of tests
Dthe risk of each release
Correct Answer the risk of each release

Fill in the Blanks

26 A __________ architecture packages all functionality into a single deployable unit.
Correct Answer monolithic
27 Microservices commonly communicate using lightweight protocols such as HTTP/__________.
Correct Answer REST
28 __________ of concerns is the principle of dividing a program into parts with distinct responsibilities.
Correct Answer Separation
29 Scripted, versioned changes to a database schema are called database __________.
Correct Answer migrations
30 In a microservices architecture each service owns its own __________ tier.
Correct Answer data
31 Netflix's __________ Monkey randomly terminates instances to test resilience.
Correct Answer Chaos
32 __________ testing is the automated testing carried out throughout the delivery pipeline.
Correct Answer Continuous
33 Testing earlier in the lifecycle is known as __________-left testing.
Correct Answer shift
34 The __________ breaker pattern stops calls to a failing service.
Correct Answer circuit
35 'Organisations design systems that mirror their communication structure' is known as __________'s Law.
Correct Answer Conway
36 The ability of a system to recover from failures is called __________.
Correct Answer resilience
37 An API __________ is a single entry point to a set of microservices.
Correct Answer gateway
38 The test __________ shows many unit tests, fewer integration tests and very few UI tests.
Correct Answer pyramid
39 Flyway and __________ are tools used for database migrations.
Correct Answer Liquibase
40 Components should have low coupling and high __________.
Correct Answer cohesion
← Back to All MCQs