Search Header Logo

Spring Certified Professional #1

Authored by Yohana Gracia Naomi

Computers

Professional Development

Used 2+ times

Spring Certified Professional #1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following definitions is correct about Principal interface?

Principal interface is a Java interface used to define the behavior of an aspect-oriented programming (AOP) advice.
Principal interface is an abstraction for representing the currently authenticated user.
Principal interface is a class used to configure the application's security settings.
Principal interface is a database table used to store user authentication information.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which annotation is used to define a query for a method in a Spring Data JPA Repository?

@Query
@TemplateQuery
@DataQuery
@JpaQuery

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_____ is the default scope for Spring beans.

request
singleton
application
websocket

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the meaning of the term "aspect" in Spring AOP?

An aspect in Spring AOP is a way to define data models for database access.
An aspect in Spring AOP is a class that represents a specific point in the execution of a program.
An aspect in Spring AOP is a design pattern that helps developers structure their code.
An aspect in Spring AOP is a module that encapsulates a cross-cutting concern, such as logging or security.

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following libraries are provided by the spring-boot-starter-test ? (select 3)

JUnit
PowerMock
Hamcrest
Mockito

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the purpose of the @MockBean annotation in a Spring Boot web slice test? (select 3)

It adds mock objects to the Spring application context.
It does the same as @Mock , it is just from another library.
It is used to define a new Spring Bean in the test context.
Can be used as a class-level annotation or on fields.

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What are the limitations of JDK dynamic proxies in Spring AOP? (select 2)

JDK dynamic proxies can intercept both public and private methods.
JDK dynamic proxies can be used to proxy both interfaces and classes.
JDK dynamic proxies can only intercept public methods.
JDK dynamic proxies can only be used to proxy interfaces, not classes.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?