wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Minigame

Total questions: 15

Worksheet time: 4mins

Name
Class
Date
1.

What are microservices ?

a)

A design pattern used primarily in functional programming and object-oriented programming

b)

Microservices are used to build monolithic architecture

c)

Microservices are a software architectural style in which a large application is built as a collection of small, independent, and scalable services.

d)

None of the above

2.

Find the cities name with the condition and temperature from table 'whether' where condition = sunny or cloudy but temperature >= 60.

a)
SELECT city_name FROM whether WHERE (condition = 'sunny' OR condition = 'cloudy') AND temperature >= 60
b)
SELECT city_name FROM whether WHERE condition = 'cloudy' AND temperature >= 60
c)
SELECT city_name FROM whether WHERE condition = 'sunny' OR temperature >= 60
d)
SELECT city_name FROM whether WHERE condition = 'sunny' AND temperature >= 60
3.

What are some benefits of using microservices ?

a)

Improved scalability, flexibility, resilience. and maintainability.

b)
Increased complexity, decreased performance, and higher costs.
c)
Limited scalability, reduced flexibility, and increased maintenance.
d)
Less efficient resource utilization, decreased modularity, and higher development time.
4.

What is the SQL stand for ?

a)
Structured Query Language
b)
System Query Language
c)
Structured Query Logic
d)
Sequential Query Language
5.

How many Primary keys and Foreign keys can have in a table?

a)
1 primary key, no foreign keys
b)
1 primary key, 1 foreign key
c)
multiple primary keys, 1 foreign key
d)
1 primary key, multiple foreign keys
6.

What is the benefit of using a message broker in a microservices architecture ?

a)
The benefit of using a message broker in a microservices architecture is to make communication between microservices less reliable.
b)
The benefit of using a message broker in a microservices architecture is to create tight coupling between microservices.
c)
The benefit of using a message broker in a microservices architecture is to provide reliable and scalable communication between microservices.
d)
The benefit of using a message broker in a microservices architecture is to increase latency and decrease performance.
7.

What is the difference between a service registry and a service discovery ?

a)
A service registry is a process of dynamically locating and connecting to available services, while service discovery is the process of registering services in a centralized database.
b)

A service registry keeps track of all microservices, while service discovery helps clients find the correct microservice.

c)
A service registry and a service discovery are the same thing.
d)

None of the above.

8.

What is the difference between database per service and shared database ?

a)
Database per service provides better performance and scalability, while shared database can cause bottlenecks and slow down the system.
b)
Database per service allows for easier maintenance and updates, while shared database can result in conflicts and compatibility issues.
c)
Database per service allows for better isolation and scalability, while shared database can lead to dependencies and performance issues.
d)
Database per service offers more flexibility and customization options, while shared database limits the ability to tailor the database to specific service requirements.
9.

What are the different levels of a testing pyramid?

a)
manual testing, automated testing, and performance testing
b)
white-box testing, black-box testing, and gray-box testing
c)
unit testing, integration testing, and end-to-end testing
d)
system testing, acceptance testing, and regression testing
10.

The ……………. key word eliminates duplicate rows from the result of a SELECT statement. ​



(a)  

11.

To increase reliability in microservices, which patterns do we use ?

a)
logging, monitoring, tracing
b)
circuit breaker, bulkhead, retry, timeout, and fallback
c)
load balancing, service discovery, rate limiting
d)
authentication, authorization, encryption
12.

Which situations should we use the Backend for Frontend pattern ?

a)
When there is only one front-end client with specific requirements and data needs.
b)
When there are no front-end clients and the backend handles all the data processing.
c)
When the front-end and backend have the same requirements and data needs.
d)
When there are multiple front-end clients with different requirements and data needs.
13.

Which patterns should we use the observability in microservices ?

a)

Distributed tracing

b)

All are correct

c)

Logging

d)

Health checks

e)

Load balancer

14.

Which of the following statement is correct to display all the cities with the condition, temperature, and humidity whose humidity is in the range of 60 to 75 from the 'whether' table

a)
  1. SELECT * FROM weather WHERE humidity IN (60 to 75)

b)
  1. SELECT * FROM weather WHERE humidity BETWEEN 60 AND 75

c)
  1. SELECT * FROM weather WHERE humidity NOT IN (60 AND 75)

d)
  1. SELECT * FROM weather WHERE humidity NOT BETWEEN 60 AND 75

15.

What is the difference between a monolithic and microservices architecture ?

a)
Monolithic architecture is a single, indivisible unit while microservices architecture is divided into small, loosely coupled services.
b)
Monolithic architecture is a distributed system while microservices architecture is a centralized system.
c)
Monolithic architecture is easier to maintain than microservices architecture.
d)
Monolithic architecture is more scalable than microservices architecture.