wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Core Spring 5 - Test 2

Total questions: 50

Worksheet time: 3hrs 30mins

Name
Class
Date
1.
a)

Metrics

b)

Management

c)

Monitoring

d)

Auditing

2.
a)

Slf4j2

b)

LogBack

c)

Log4j2

d)

TinyLog

3.
a)

Weblogic

b)

Undertow

c)

Jetty

d)

Glassfish

4.
a)

YML file

b)

Java based configuration file

c)

XML file

d)

Properties file

5.
a)

By using an annotation @ServerPort in Main class.

b)

By creating a file named server.port in classpath.

c)

application.properties

d)

pom.xml

6.
a)

Application Metrics

b)

Auditing

c)

Application health monitoring

d)

Management

7.
a)

@DataJpaTest

b)

@DataTest

c)

@JpaDataTest

d)

@JpaTest

8.
a)

@EnableGlobalSecurity

b)

@EnableGlobalMethodSecurity

c)

@EnableMethodSecurity

9.
a)

UserService

b)

UserServiceDetails

c)

UserDetailsService

10.
a)

DelegatingProxy

b)

FilterChainProxy

c)

DelegatingFilterProxy

11.
a)

management.endpoints.enable=true

b)

management.endpoints.web.include=*

c)

management.endpoints.enable-by-default=true

d)

management.endpoints.web.expose.include=*

12.
a)

Servlet Wrappers

b)

Servlet Filters

c)

Servlet Listeners

13.
a)

http://localhost:8080/endpoint/actuator

b)

http://localhost:8080/actuator

c)

http://localhost:8080/boot/actuator

d)

http://localhost:8080/bootactuator

14.
a)

UserDetailsService

b)

GrantedAuthority

c)

UserDetails

d)

Authentication

15.
a)

Repeatable reads

b)

Read committed

c)

Read uncommitted

d)

Serializable

16.
a)

It provides set of managed dependencies and plugins like maven or gradle.

b)

It reduces boiler plate code for developing applications

c)

It allows easy customizations for the developer

d)

It produces an executable jar which can be run using command like interface.

17.
a)

Spring Boot Starter

b)

Spring Boot Actuator

c)

Spring Boot Initializer

d)

Spring Boot Devtools

18.
a)

Customize el environment or application context prior to the Spring Boot application has started up.

b)

Locate autoconfiguration candidates in, for instance, your own starter module.

c)

Register application event listeners regardless of how the spring boot application is created

d)

Register a filter to limit the auto-configuration classes considered.

19.
a)

It is implemented using Spring AOP.

b)

It follows ACID properties

c)

It is not a cross cutting concern

20.
a)

FilterChain

b)

SecurityFilterChain

c)

FilterSecurityChain

21.
a)

Local Transactions

b)

Internal Transactions

c)

Confined Transactions

22.
a)

Spring Security

b)

Spring Rest

c)

Spring Boot

d)

Spring Web

23.
a)

Read uncommitted

b)

Read committed

c)

Serializable

d)

Repeatable reads

24.
a)

@PreFilter

b)

@PostFilter

c)

@PreAuthorize

d)

@RolesAllowed

25.
a)

It helps in alerting for anamolous behaviour of an application

b)

It helps in monitoring the stats of an application

c)

It helps in gathering information from multiple applications in a single place

d)

It allows visualization of monitoring data of an application

26.
a)

health and info

b)

beans and info

c)

metrics and mappings

d)

env and health

27.
a)

@EnableAutoConfiguration

b)

@EnableConfiguration

c)

@Configuration

d)

@AutoConfiguration

28.
a)

Global transactions

b)

General transactions

c)

Universal transactions

29.
a)

ORM

b)

AOP

c)

Transactions

d)

OXM

30.
a)

Spring Security's Web infrastructure using Filters

b)

Spring AOP proxies

c)

Both A and B

31.
a)

@EnableTransaction

b)

@Transactional

c)

@Transaction

32.
a)

logging.level.root=WARN

b)

logging.level.configure=WARN

c)

logging.level.property=WARN

d)

logging.level.base=WARN

33.
a)

UP

b)

KNOWN

c)

DOWN

d)

OUT_OF_SERVICE

34.
a)

@PostAuthorize

b)

@Authorize

c)

@PreAuthorize

35.
a)

DAO layer

b)

Service layer

c)

Controller layer

36.
a)

@Import

b)

@Primary

c)

@Value

d)

@PropertyResource

37.
a)

database password

b)

database URL

c)

driver class name

d)

database username

38.
a)

self JAR

b)

fat JAR

c)

application JAR

d)

dependency JAR

39.
a)

appsetting.properties

b)

setting.properties

c)

application.properties

d)

app.properties

40.
a)

It is a cross cutting concern

b)

It is used for securing Spring Web applications.

c)

It provides support for both Authentication and Authorization

d)

All of the above.

41.
a)

WARN

b)

DEBUG

c)

INFO

d)

ERROR

42.
a)

UserDetailsService

b)

Authentication

c)

UserDetails

d)

GrantedAuthority

43.
a)

POM.xml

b)

spring.factories

c)

A class annotated with @EnableAutoConfiguration

d)

application.properties

44.
a)

spring.main.allow-bean-overriding=true

b)

spring.allow-bean-definition-overriding=true

c)

spring.main.bean-definition-overriding=true

d)

spring.main.allow-bean-definition-overriding=true

45.
a)

JMX

b)

HTTP

c)

HTTPS

d)

FTP

46.
a)

Serializable

b)

Repeatable reads

c)

Read committed

d)

Read uncommitted

47.
a)

@PreAuthorize

b)

@RolesAllowed

c)

@Secured

d)

@PreFilter

48.
a)

@TestWebMvc

b)

@WebMvcTest

c)

@WebTest

d)

@MvcTest

49.
a)
b)
c)
d)
50.
a)

AuthorityGranted

b)

GrantedAuthority

c)

AuthorityPrincipal

d)

PrincipalAuthority