Skip to main content
MockAttempt App Icon

Install MockAttempt App

Launch full-screen from your iPhone / iPad Home Screen

  1. Step 1: Tap the Safari Share icon โ†‘ at the bottom of your screen.
  2. Step 2: Scroll down and tap โ€œAdd to Home Screenโ€, then tap Add.
๐ŸŽ™๏ธ SPOKEN MOCKATTEMPT AI INTERVIEW HUB Up to 2 Free AI Interviews / Topic / Day โœจ MockAttempt AI (MockAttempt-AI v2.5) Active

Spring Boot 3, Hibernate/JPA & REST API Development AI Mock Interview & Free Spoken Viva Practice

Experience realistic engineering interviews powered by our proprietary MockAttempt AI (MockAttempt-AI v2.5) model โ€” our AI Interviewer speaks questions aloud, transcribes your spoken answer via microphone, and evaluates your technical depth across a 4-axis rubric (up to 2 free sessions per topic daily).

MockAttempt AI Viva 2 / Topic / Day

Live Speech-to-Text + 4-axis technical readiness radar. Prefer timed MCQ screening practice?

Step 1 of 2 โ€ข Choose Course Track

Select Any IT Course (21 Courses โ€ข 100% Topics Covered)

Spring Boot 3, Hibernate/JPA & REST API Development Logo
SPBT Java Enterprise Backend & Microservices Engineering โ€ข Intermediate โ€ข Job-Ready Java Backend โ€ข 8 Weeks โ€ข Weekend Live (Satโ€“Sun โ€ข 2h/Day) (Weekend-Only Batch: Satโ€“Sun โ€ข 2 Hrs/Day (7:00 AM โ€“ 8:00 PM IST โ€ข Working Pro Trainers))

Spring Boot 3, Hibernate/JPA & REST API Development โ€” Topic-Wise Spoken MockAttempt AI Interviews

Expand any module below to launch a live spoken technical interview across 148 MockAttempt AI rounds (max 2 free sessions per topic per day).

Step 2 of 2 โ€ข Click Any Module to Expand & Enter AI Studio

All Modules & Topics in Spring Boot 3, Hibernate/JPA & REST API Development

โœ“ 100% Topic Coverage (148/148 Topics Active) Daily Quota Policy: Max 2 AI Interviews / Topic / Day
1.1 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JDBC Architecture and Workflow

`java.sql` / `javax.sql` interfaces vs vendor driver implementations (`org.postgresql:postgresql`), 6-step que...

1.2 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JDBC Drivers and Modern SPI Loading

Historical Driver Types 1โ€“4, why pure-Java Type-4 drivers dominate production, automatic `ServiceLoader` disco...

1.3 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Establishing Database Connections

`DriverManager.getConnection`, network TCP/TLS handshake cost, connection validation (`isValid`), and external...

1.4 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Statement Interface and Static DDL/SQL

`Connection.createStatement()`, `executeQuery` vs `executeUpdate` vs `execute`, and why `Statement` must NEVER...

1.5 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
PreparedStatement and Parameterized Queries

`?` positional placeholders (1-based index!), `setLong`, `setString`, `setBigDecimal`, `setObject`, server-sid...

1.6 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
CallableStatement (Calling Stored Procedures & Functions)

`prepareCall("CALL hr.give_department_hike(?, ?)")`, `IN` / `OUT` / `INOUT` parameters, `registerOutParameter`

1.7 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
ResultSet Navigation and Row Mapping

Forward-only cursor `rs.next()`, column-name getters (`getLong("id")`, `getBigDecimal("salary")`, `getObject("...

1.8 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JDBC CRUD Operations

Complete Create, Read-by-ID (`Optional<Employee>`), Read-All-Paginated, Update (checking affected row count),...

1.9 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JDBC Batch Processing

`addBatch()`, `executeBatch()`, PostgreSQL `reWriteBatchedInserts=true` driver flag, chunking batches of 500โ€“1...

1.10 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JDBC Transaction Management (Commit and Rollback)

`conn.setAutoCommit(false)`, executing multiple `PreparedStatement`s on the SAME `Connection`, `conn.commit()`...

1.11 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Connection Pooling Concepts and HikariCP

Why connection creation is expensive, pool sizing formula (`connections = (core_count * 2) + disk_spindles`),...

1.12 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
javax.sql.DataSource Abstraction

Injecting `DataSource` into DAOs instead of `DriverManager`, swapping H2/Testcontainers in tests vs HikariCP P...

1.13 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
SQL Injection Vulnerabilities and Prevention

How tautology (`' OR '1'='1`), UNION-based, and stacked-query injections work, bind-parameter separation of SQ...

1.14 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
DAO (Data Access Object) Design Pattern

Interface `EmployeeDao` + `JdbcEmployeeDao` implementation, separating SQL persistence from domain service rul...

1.15 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
SQLException Handling and SQLState Codes

`e.getSQLState()`, PostgreSQL unique violation (`23505`) & foreign-key violation (`23503`), wrapping checked `...

1.16 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Try-With-Resources in JDBC

Nested automatic closing order (`ResultSet` -> `PreparedStatement` -> `Connection` returned to pool), suppress...

2.1 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
ORM (Object-Relational Mapping) Concepts

Object graph vs relational tables impedance mismatch (granularity, inheritance, associations, navigation), pro...

2.2 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Hibernate 6 Architecture and Configuration

`SessionFactory` (`EntityManagerFactory`), `Session` (`EntityManager`), `Transaction`, JDBC/HikariCP integrati...

2.3 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Jakarta Persistence (JPA) Specification vs Hibernate

`jakarta.persistence.*` standard API vs Hibernate provider implementation, portability, and `javax` -> `jakart...

2.4 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Entity Classes and Entity Lifecycle

`@Entity` rules (protected/public no-arg constructor, non-final class), Transient -> Managed -> Detached -> Re...

2.5 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
EntityManager and Persistence Context Operations

`EntityManager` thread-unsafety (one per request/transaction), unit-of-work transactional write-behind, `flush...

2.6 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Persistence Operations (persist, find, merge, remove)

`persist` (new entity), `find` vs `getReference` (lazy proxy), `merge` (returns managed copy!), and `remove`

2.7 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Primary Key Identifier Generation Strategies

`GenerationType.IDENTITY`, `SEQUENCE` (`@SequenceGenerator` with `allocationSize` for JDBC batching!), `UUID`

2.8 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Entity Relationships (OneToOne, OneToMany, ManyToOne, ManyToMany)

Owning side (holds `@JoinColumn` FK) vs inverse `mappedBy` side, bidirectional helper methods (`addEmployee`),...

2.9 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Mapping Annotations (@Table, @Column, @JoinColumn, @Enumerated)

Schema/index metadata on `@Table`, `@Column(nullable, length, unique, precision, scale)`, `@Enumerated(EnumTyp...

2.10 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Fetching Strategies (Lazy vs Eager Loading)

JPA defaults (`@ManyToOne`/`@OneToOne` default to EAGER!; `@OneToMany`/`@ManyToMany` default to LAZY), why ALL...

2.11 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Cascading and Orphan Removal

`CascadeType.PERSIST`, `MERGE`, `REMOVE`, `ALL`, `orphanRemoval = true` on true parent-child aggregates (`Orde...

2.12 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JPQL (Java Persistence Query Language)

Entity/field-centric query syntax, named `:param` bindings, `JOIN` / `LEFT JOIN FETCH`, constructor DTO expres...

2.13 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Native SQL Queries through JPA

`createNativeQuery`, mapping scalar/tuple projections, when to drop down to PostgreSQL-specific SQL (window fu...

2.14 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Derived Repository Query Fundamentals

Method-name query derivation concepts (`findByEmailIgnoreCase`, `existsByCode`, `findByDepartmentIdAndActiveTr...

2.15 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JPA Transaction Boundaries

Read-write vs read-only transactions, why all writes require an active transaction, rollback on `RuntimeExcept...

2.16 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Persistence Context and First-Level (L1) Cache

Session-scoped identity map (`em.find(Emp, 1)` twice fires only ONE `SELECT`), repeatable entity reference ide...

2.17 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Second-Level (L2) Cache Fundamentals

SessionFactory-scoped shared cache vs L1 session cache, good candidates (rarely-mutated reference data like Co...

2.18 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
The N+1 Query Problem (Causes and Resolution)

Loading `1` list of `N` Employees then lazily accessing `emp.getDepartment().getName()` in a loop (`1 + N` SQL...

2.19 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Optimistic Locking (@Version)

`@Version private Long version;`, `WHERE id = ? AND version = ?`, `OptimisticLockException` on concurrent lost...

2.20 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Pagination and Sorting with JPA

`setFirstResult(offset)` + `setMaxResults(size)` + deterministic `ORDER BY`, separate `COUNT(e.id)` total quer...

3.1 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Spring Ecosystem and Architecture

Spring Framework 6 baseline (Java 17/21 + Jakarta EE 10), modular ecosystem (Boot, Data, Security, Cloud, Kafk...

3.2 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Spring Modules Overview (Core, Context, AOP, Web, Data, Security)

Responsibilities and dependency boundaries across Core Container, AOP/Instrumentation, Data Access/Transaction...

3.3 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Inversion of Control (IoC)

Hollywood Principle ("Donโ€™t call us, weโ€™ll call you"), delegating object graph creation and lifecycle manageme...

3.4 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Dependency Injection (DI)

Supplying dependencies via constructorcontracts, testability with mocks, loose coupling against interfaces

3.5 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Spring Beans

What qualifies as a Spring-managed Bean vs domain entities/DTOs, bean names, `BeanDefinition` metadata

3.6 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
BeanFactory Fundamentals

Root `BeanFactory` interface, lazy bean instantiation semantics vs eager `ApplicationContext` startup validati...

3.7 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
ApplicationContext Container

`AnnotationConfigApplicationContext`, `ConfigurableApplicationContext`, eager singleton pre-instantiation, `Ap...

3.8 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Bean Scopes (Singleton, Prototype, Request, Session)

Default `singleton` (one instance per Spring container, NOT JVM!), `prototype` (new instance per lookup), web...

3.9 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Bean Lifecycle (Initialization and Destruction)

Constructor -> DI -> BeanPostProcessors (AOP proxies) -> `@PostConstruct` -> Ready -> `@PreDestroy` / `AutoClo...

3.10 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Configuration Styles (Legacy XML vs Modern Java @Configuration)

Reading legacy `beans.xml` in brownfield banking apps vs type-safe `@Configuration` + `@Bean` factory methods...

3.11 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Component Scanning (@ComponentScan)

Base-package discovery rules, why placing `@SpringBootApplication` at root package `com.mockattempt.shop` scan...

3.12 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Stereotype Annotations (@Component, @Service, @Repository, @Controller)

Semantic specialization of `@Component`, automatic SQL/JPA persistence exception translation (`DataAccessExcep...

3.13 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Autowiring (Constructor vs Setter vs Field Injection)

Why single-constructor injection (no `@Autowired` annotation even needed!) is Springโ€™s official standard: `fin...

3.14 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
@Qualifier (Resolving Multiple Implementations)

`NoUniqueBeanDefinitionException`, disambiguating `RazorpayGateway` vs `StripeGateway` explicitly via `@Qualif...

3.15 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
@Primary (Default Bean Selection)

Marking the standard default implementation with `@Primary` while allowing specialized callers to override via...

3.16 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Spring Profiles (@Profile)

Environment-specific bean activation (`dev`, `test`, `prod`), `!prod` negation, `spring.profiles.active` via e...

3.17 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Externalized Properties (@Value and @PropertySource)

`@Value("${app.tax.gst-rate:18.0}")` safe defaults, `Environment`, and strongly-typed Java 21 `record` `@Confi...

3.18 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Spring AOP (Aspect, Advice, Pointcut and Join Point)

Cross-cutting concerns (latency logging, auditing, security, transactions), `@Aspect`, `@Around` `ProceedingJo...

3.19 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Spring MVC and DispatcherServlet Lifecycle

Front Controller pattern: `DispatcherServlet` -> `HandlerMapping` -> `HandlerInterceptor` -> `@Controller` ->...

4.1 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Spring Boot 3 Introduction and Architecture

Opinionated convention-over-configuration, standalone executable JARs, production-ready Actuator metrics/healt...

4.2 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Project Creation with Spring Initializr

Maven wrapper (`./mvnw`), `spring-boot-starter-parent` BOM, Java 21 target, choosing starters (`web`, `validat...

4.3 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Spring Boot Starters and BOM Dependency Management

Curated transitive dependency bundles (`spring-boot-starter-web`, `data-jpa`, `security`, `test`), Maven Bill...

4.4 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Auto-Configuration Internals

`AutoConfiguration.imports`, `@ConditionalOnClass`, `@ConditionalOnMissingBean`, `@ConditionalOnProperty`, `--...

4.5 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Embedded Tomcat Server Configuration

`server.port`, graceful shutdown (`server.shutdown=graceful`), Tomcat thread pool (`server.tomcat.threads.max`...

4.6 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Layered Application Package Structure

Clean separation across `controller`, `service`, `repository`, `domain`/`entity`, `dto`, `mapper`, `exception`...

4.7 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Configuration with application.properties and YAML

Hierarchical `application.yml`, `${ENV_VAR:default}` placeholders, external config precedence (CLI args > Env...

4.8 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Environment Profiles (dev, test, prod)

`application-dev.yml`, `application-test.yml`, `application-prod.yml`, hiding stack traces and disabling Swagg...

4.9 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
REST Architectural Principles and HTTP Semantics

Statelessness, plural noun resource URIs (`/api/v1/products/{id}`), representations, idempotency, safe methods...

4.10 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
HTTP Methods (GET, POST, PUT, PATCH, DELETE)

Safe & idempotent `GET`, non-idempotent `POST` (create/action), idempotent full replacement `PUT`, partial upd...

4.11 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
HTTP Status Codes (2xx, 3xx, 4xx, 5xx)

`200 OK`, `201 Created` (+ `Location` header!), `204 No Content`, `400 Bad Request`, `401 Unauthorized`, `403...

4.12 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
@RestController vs @Controller

`@RestController` (`@Controller` + `@ResponseBody`), automatic JSON message conversion vs view-template render...

4.13 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
@RequestMapping and Composed Method Mappings

Class-level `@RequestMapping("/api/v1/products")` + method-level `@GetMapping`, `@PostMapping`, `@PutMapping`,...

4.14 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Extracting @PathVariable, @RequestParam and @RequestHeader

Resource identifiers in `@PathVariable`, optional filtering/pagination in `@RequestParam(defaultValue = ...)`,...

4.15 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
@RequestBody Deserialization

Binding JSON request payloads into immutable Java 21 `record` request DTOs, handling malformed JSON (`HttpMess...

4.16 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
ResponseEntity (Status Codes, Headers and Envelopes)

`ResponseEntity.ok()`, `.created(uri)`, `.noContent().build()`, `.status(HttpStatus.ACCEPTED)`, custom `Cache-...

4.17 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
DTO Pattern (Separating API Contracts from JPA Entities)

Why exposing `@Entity` directly causes mass-assignment security flaws (`role: "ADMIN"`), infinite bidirectiona...

4.18 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JSON Serialization with Jackson

`ObjectMapper`, `JavaTimeModule` ISO-8601 dates (`WRITE_DATES_AS_TIMESTAMPS: false`), `@JsonProperty`, `@JsonI...

4.19 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
REST API Design Best Practices and Versioning

URI versioning (`/api/v1/...`), backward-compatible additive changes, filtering/sorting/pagination query conve...

4.20 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
API Testing with Postman

Postman Environments (`{{baseUrl}}`, `{{jwtToken}}`), Collection folders, automated post-response status/JSON...

4.21 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
OpenAPI 3 and Swagger Documentation (springdoc-openapi)

`springdoc-openapi-starter-webmvc-ui`, `@Tag`, `@Operation`, `@ApiResponses`, `@Schema`, Bearer JWT Authorize...

5.1 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Layered Backend Architecture (Controller, Service, Repository)

Thin HTTP Controller, transactional domain Service, persistence Repository, strict unidirectional layer contra...

5.2 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Spring Data JpaRepository and CRUD Layer

`JpaRepository<Product, Long>`, `save`, `findById`, `existsBySku`, custom `@Query` JPQL & projections, `open-i...

5.3 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Service Layer Business Logic Design

Orchestrating domain checks (stock availability, duplicate SKU guard, price computation), keeping entities ric...

5.4 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
DTO-to-Entity and Entity-to-DTO Mapping

Deterministic dedicated Mapper components / static factory methods (`ProductResponse.from(entity)`), MapStruct...

5.5 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Jakarta Bean Validation Fundamentals

`spring-boot-starter-validation` (Hibernate Validator), triggering validation via `@Valid` on `@RequestBody`,...

5.6 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Standard Validation Annotations (@NotNull, @NotBlank, @Size, @Email, @Min, @Max, @Positive)

Difference between `@NotNull`, `@NotEmpty`, and `@NotBlank` (trims whitespace!), `@DecimalMin`, `@Pattern`, ne...

5.7 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Custom Validation Annotations and ConstraintValidator

Defining `@ValidSku` or class-level `@DateRangeValid` + `ConstraintValidator<A, T>` for reusable domain/cross-...

5.8 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Controller-Scoped @ExceptionHandler

Handling specific exceptions locally inside a controller vs why cross-controller duplication leads to `@RestCo...

5.9 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Global Exception Handling (@ControllerAdvice and @RestControllerAdvice)

Centralized exception translation for `ResourceNotFoundException` (404), `DuplicateResourceException` (409), `...

5.10 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Standard Error Response Design (RFC 7807 ProblemDetail)

Spring 6 native `ProblemDetail` (`type`, `title`, `status`, `detail`, `instance`, custom `errors` field map &...

5.11 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Spring Data Pagination (Page, Slice, PageRequest and Pageable)

`PageRequest.of(page, Math.min(size, 100), sort)`, `Page<T>` (with total count) vs `Slice<T>` (no `COUNT(*)` q...

5.12 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Dynamic Sorting (Sort and Whitelisted Sort Fields)

`Sort.by(Sort.Order.desc("price"), Sort.Order.asc("id"))`, validating client `sortBy` strings against allowed...

5.13 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Dynamic Query Filtering with JPA Specifications

`JpaSpecificationExecutor<Product>`, composable `Specification<Product>` predicates (`hasCategory`, `priceBetw...

5.14 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Declarative Transactions (@Transactional)

`@Transactional` vs `@Transactional(readOnly = true)`, default rollback on unchecked `RuntimeException`/`Error...

5.15 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Transaction Propagation (REQUIRED, REQUIRES_NEW, MANDATORY)

`Propagation.REQUIRED` (join existing or start new), `REQUIRES_NEW` (suspend outer tx and commit independent t...

5.16 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Transaction Isolation Configuration in Spring

`@Transactional(isolation = Isolation.READ_COMMITTED / REPEATABLE_READ / SERIALIZABLE)`, combining with `@Lock...

5.17 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Structured Application Logging (SLF4J and Logback)

`LoggerFactory.getLogger`, parameterized placeholders `log.info("Order {} placed by user {}", orderId, userId)...

5.18 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Configuration Security and External Secrets

12-Factor App config via OS env vars (`DB_PASSWORD`, `JWT_SECRET`), `.env.example` template committed while `....

6.1 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Security Fundamentals (Authentication vs Authorization)

Principal identity verification (AuthN -> 401 when missing/invalid) vs privilege verification (AuthZ -> 403 wh...

6.2 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Spring Security 6 Filter Chain Architecture

`DelegatingFilterProxy` -> `FilterChainProxy` -> ordered `SecurityFilterChain` filters -> `SecurityContextHold...

6.3 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
SecurityFilterChain Configuration (Lambda DSL)

Modern Spring Security 6 `@Bean SecurityFilterChain` lambda DSL (`authorizeHttpRequests`, `requestMatchers`, `...

6.4 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Password Security (PasswordEncoder and BCrypt)

Why MD5/SHA-256 are broken for passwords, adaptive salted work-factor hashing with `BCryptPasswordEncoder(12)`...

6.5 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
UserDetails Identity Model

Implementing/adapting `UserDetails` (`getUsername`, `getPassword`, `getAuthorities`, `isEnabled`, `isAccountNo...

6.6 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
UserDetailsService Implementation

Loading user credentials & roles from PostgreSQL via `UserRepository.findByEmailIgnoreCase`, throwing `Usernam...

6.7 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
AuthenticationManager and DaoAuthenticationProvider Workflow

`AuthenticationConfiguration.getAuthenticationManager()`, `UsernamePasswordAuthenticationToken`, credential ve...

6.8 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Role-Based and Permission-Based Authorization (RBAC)

Coarse roles (`ROLE_ADMIN`, `ROLE_CUSTOMER`) vs fine-grained authorities (`product:write`, `order:refund`), `@...

6.9 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JWT Structure and Claims (Header, Payload, Signature)

Base64Url `header.payload.signature`, standard claims (`sub`, `iss`, `iat`, `exp`, `jti`), custom `roles`/`uid...

6.10 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JWT Creation and Cryptographic Validation

256-bit+ HMAC-SHA256 (`HS256`) / RSA (`RS256` in microservices) signing with `jjwt` or `spring-boot-starter-oa...

6.11 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Custom JWT OncePerRequestFilter

Extending `OncePerRequestFilter`, extracting `Authorization: Bearer <token>`, validating token, setting `Usern...

6.12 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Stateless Session Configuration

`SessionCreationPolicy.STATELESS`, ensuring zero `JSESSIONID` cookies or server-side `HttpSession` memory grow...

6.13 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
CORS (Cross-Origin Resource Sharing)

Browser Same-Origin Policy, `OPTIONS` preflight requests, configuring explicit `CorsConfigurationSource` (`all...

6.14 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
CSRF Protection and Stateless API Trade-offs

How Cross-Site Request Forgery exploits ambient browser cookies, why cookie-based web apps MUST keep CSRF enab...

6.15 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
OAuth2 and OpenID Connect (OIDC) Fundamentals

Authorization Code + PKCE flow, Client vs Authorization Server (Keycloak/Auth0/Google) vs Resource Server (`oa...

6.16 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Method-Level Security (@EnableMethodSecurity, @PreAuthorize)

`@EnableMethodSecurity`, SpEL expressions `@PreAuthorize("hasRole('ADMIN')")`, `@PreAuthorize("#userId == auth...

6.17 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Security Integration Testing (spring-security-test)

`@WithMockUser(roles = "ADMIN")`, testing unauthenticated `401`, wrong-role `403`, valid-JWT `200`/`201`, and...

7.1 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Software Testing Fundamentals (Unit, Integration and System Testing)

Deterministic fast unit tests vs component/DB integration tests vs end-to-end API contract tests, Arrange-Act-...

7.2 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
The Testing Pyramid in Spring Boot Backends

~70% fast Mockito/domain unit tests, ~20% `@WebMvcTest`/`@DataJpaTest`/`Testcontainers` slice & integration te...

7.3 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JUnit 5 (Jupiter) Architecture and Lifecycle

`@Test`, `@DisplayName`, `@BeforeEach`, `@AfterEach`, `@BeforeAll`, `@AfterAll`, `@Nested` grouped behavioral...

7.4 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
JUnit 5 Assertions and Exception Verification

`assertEquals`, `assertTrue`, `assertNotNull`, `assertAll` (reports ALL failures at once!), `assertThrows(Dupl...

7.5 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Parameterized Tests (@ParameterizedTest)

`@ValueSource`, `@CsvSource`, `@EnumSource`, `@MethodSource` for testing 10 boundary/invalid inputs with zero...

7.6 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Mockito Fundamentals (@ExtendWith(MockitoExtension.class))

Pure Java + Mockito unit tests (zero Spring context startup!), `@Mock`, `@InjectMocks`, stubbing `when(repo.fi...

7.7 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Test Doubles (Mock vs Stub vs Spy vs Fake)

Stubs (canned answers), Mocks (interaction verification), `@Spy` (partial real object โ€” use sparingly!), in-me...

7.8 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Interaction Verification (verify, ArgumentCaptor and Matchers)

`verify(kafkaTemplate).send(...)`, `verify(repo, never()).save(any())` on validation failure, `ArgumentCaptor<...

7.9 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Full Context Integration Testing (@SpringBootTest)

`WebEnvironment.RANDOM_PORT` vs `MOCK`, `TestRestTemplate` / `RestTestClient`, `@ActiveProfiles("test")`, mini...

7.10 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Web Layer Testing with MockMvc

`mockMvc.perform(post(...).contentType(APPLICATION_JSON).content(...))`, `status()`, `header()`, `jsonPath("$....

7.11 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Repository Slice Testing (@DataJpaTest)

Focused JPA/Hibernate slice, automatic per-test transaction rollback, `TestEntityManager` (`persistAndFlush` +...

7.12 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Controller Slice Testing (@WebMvcTest)

Loading ONLY web layer (`@RestController`, `@RestControllerAdvice`, Jackson, Bean Validation, Security) while...

7.13 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Database and API Integration Testing

End-to-end HTTP -> Service -> JPA -> PostgreSQL flow verification, test data isolation (`@Sql` / clean setup),...

7.14 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Testcontainers (Real PostgreSQL & Redis in Docker Tests)

`org.testcontainers:postgresql`, `@ServiceConnection` (Spring Boot 3.1+ zero-boilerplate wiring!), catching Po...

7.15 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Automated API Contract Testing with Postman / Newman

Chaining Postman requests (Register -> Login capture `token` -> Create Product capture `id` -> Place Order ->...

7.16 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
OpenAPI & Swagger Contract Verification

Verifying `/v3/api-docs` generates valid OpenAPI 3.0/3.1 JSON without schema conflicts, documenting `400`/`401...

7.17 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Clean Code, SOLID Principles and Maintainability

Single Responsibility, Dependency Inversion, small pure functions, guard clauses, meaningful domain naming, el...

7.18 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Code Coverage with JaCoCo

`jacoco-maven-plugin`, line vs branch coverage (`if/else` paths!), excluding auto-generated DTOs/Application m...

7.19 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Regression Testing Discipline (Bug -> Failing Test -> Fix)

Reproducing every reported bug as a failing automated test FIRST, fixing the code until green, and keeping tha...

8.1 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Environment Variables in Linux & Containers

`export KEY=VAL`, `env`/`printenv`, Spring Boot relaxed binding (`SPRING_DATASOURCE_URL` -> `spring.datasource...

8.2 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Docker and Containerization Fundamentals

Containers (shared Linux kernel + cgroups/namespaces isolation, MBs, sub-second start) vs traditional VMs (ful...

8.3 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Docker Images and Layer Caching

Read-only union filesystem layers, tags (`eclipse-temurin:21-jre-alpine` vs mutable `:latest`), layer cache in...

8.4 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Running and Managing Containers

Port publishing `-p 8080:8080` (`host:container`), detached `-d`, `--name`, `-e` / `--env-file`, restart polic...

8.5 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Authoring Production Java 21 Multi-Stage Dockerfiles

Stage 1 (`maven:3.9-eclipse-temurin-21` compiles JAR) -> Stage 2 (`eclipse-temurin:21-jre-alpine` copies only...

8.6 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Essential Docker CLI Commands (build, run, ps, logs, exec, stats, stop)

`docker build -t`, `docker ps -a`, `docker logs -f --tail 100`, `docker exec -it <container> sh`, `docker stat...

8.7 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Docker Volumes and Persistent Database Storage

Why container writable layers vanish on `docker rm`, named volumes (`pg_data:/var/lib/postgresql/data`) vs bin...

8.8 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Docker Container Networking

User-defined bridge networks, built-in Docker DNS resolution by service/container name (`jdbc:postgresql://pos...

8.9 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Docker Compose for Multi-Container Applications

`compose.yaml` (`services`, `networks`, `volumes`, `environment`, `healthcheck`, `depends_on: condition: servi...

8.10 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Containerized PostgreSQL Setup and Init Scripts

`postgres:16-alpine`, `POSTGRES_DB`/`USER`/`PASSWORD`, `pg_isready` healthcheck, `/docker-entrypoint-initdb.d/...

8.11 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Multi-Service Spring Boot + Kafka + Redis Compose Stack

Orchestrating Eureka, Gateway, Microservices, PostgreSQL, Redis (`redis-cli ping`), and KRaft Kafka (`KAFKA_AD...

8.12 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
CI/CD Fundamentals (Continuous Integration & Continuous Delivery)

Automated build + test + lint + container build on every PR (CI) vs automated staging/production release deplo...

8.13 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
GitHub Actions Workflow Fundamentals

`.github/workflows/ci.yml`, triggers (`on: [push, pull_request]`), Ubuntu runners, jobs, steps, `actions/check...

8.14 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Automated Build, Test and Package Pipeline

Running `./mvnw -B verify` in GitHub Actions (Docker is pre-installed on GitHub Ubuntu runners so Testcontaine...

8.15 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Maven Build Lifecycle Mastery (clean, compile, test, package, verify)

Standard Maven phases (`validate -> compile -> test -> package -> integration-test -> verify -> install`), Sur...

8.16 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Deploying a Spring Boot Backend Application

Deploying containerized Spring Boot + managed PostgreSQL/Redis to a cloud VM / container platform (Render/Rail...

8.17 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Production Profiles and Environment Configuration

`SPRING_PROFILES_ACTIVE=prod`, disabling `show-sql` & verbose debug logs, setting `ddl-auto: validate`, config...

8.18 1 AI Round โ€ข 4 Spoken Qs 0/2 Today
Secrets Management and Secure Configuration Practices

GitHub Actions Encrypted Secrets (`${{ secrets.DB_PASSWORD }}`), Docker Compose `.env` + `.env.example`, rotat...

๐ŸŽ“ Free 1st Live Demo + Study & Interview Pack โ€ข Instant Email OTP Access

Want Unlimited Spoken SPBT AI Vivas + Live Weekend Mentorship With Working IT Pros?

Train live on weekends with active Working IT Professionals โ€ข All-Inclusive Fee: $37 USD All-Incl. (Includes 30-Day 100% Upgrade Credit)

โšก Free 1st Live Demo โ€ข All-Inclusive Fees (Incl. 18% GST)

Book Free Live Demo or Reserve Batch Seat

+ Add Background, Location or Questions (Optional)