Exam Drill #23 · 26 Oct 2026 · 8 to fix · 47 drills

Twenty-third attempt — 52/60, your best score yet

52/60 = 87%, against a 76% pass mark. Six marks over. That beats #17's 51 by one mark. Spring Core was 96% (one miss in 25). MVC and Testing were both 100%.
Half the misses were in Data Management (4 of 11): propagation, isolation levels, the JNDI DataSource and @Query. Two of the 8 were questions you'd missed before, word for word, and you made the same wrong tick both times.

87%
Pass mark 76% ✓
52
Best of 23 papers
8
Misses — was 11
1
Stopped short — was 4
2
Repeats, same wrong tick
Progress · every attempt

Twenty-three papers, out of 60

Hover a bar for the date and score. The dashed line is 46/60, the lowest pass.

Passed (46+) Below the pass

The first fourteen papers averaged 40.3. The last nine average 47.9, and seven of those nine passed. Two passes in a row now, and this one has the biggest margin so far.

Official result · practice exam

87% — passed

76% required to pass · 60/60 answered · 52 correct · time used 39m 42s
Spring MVC 100%▲ 330 misses Testing 100%held0 misses Spring Core 96%▲ 101 miss / 25 Spring Security 80%▼ 201 miss / 5 Spring Boot 75%▲ 22 misses / 8 Data Management 64%▼ 94 misses / 11

How the sizes come out. Core at 96% with one miss is 24/25. Data at 64% with four misses is 7/11. Boot at 75% with two misses is 6/8. Security at 80% with one miss is 4/5. That's 49 questions, so MVC and Testing shared the other 11 between them, all correct. Security's drop is one question on a five-question section, and it was a repeat.

Where the next marks are

If you had…ScoreResult
What actually happened5287% — pass
…and not repeated the two wrong ticks from earlier papers (Q5, Q24)5490%
…and read "can not occur" the right way round on Q365592%
…and ticked @Named on Q65693%
…and not made the other four wrong picks (Q1, Q40, Q43, Q46)60100%

Stopping short is nearly gone: one question this time, down from four. Seven of the eight misses had a wrong tick, so on this paper the marks went on ticking an option that sounds plausible.

What moved between #22 and #23

Attempt #22Attempt #23Result
Score49/60 (82%)52/60 (87%)+3 · best ever
Misses118−3
Spring Core misses3 of 211 of 2596%, held and improved
Stopped short (no wrong tick)41−3
Questions with a wrong tick77Flat
Data Management misses34+1 · the weakest section now
Word-for-word repeats3 of 112 of 8Both with the same wrong tick as before
Time41m 15s39m 42s−1.5 min

Two questions were word-for-word repeats, with the same wrong tick

QTopicAlready on this siteThen → now
Q24jsr250Enabled = true#19Ticked "All of the above" both times
Q5Default health indicators#8 Q15Ticked ApplicationHealthIndicator both times

Q1 isn't a word-for-word repeat, but it's the third paper running where a propagation question cost a mark: #12 (REQUIRED), #22 (NEVER), now #23 (REQUIRED again, and you picked MANDATORY). The Data block has the full table.

My drill progress on this page

Each time you finish a drill block (every question answered), it's recorded here in this browser. Reload the page to retake a block. Questions and options reshuffle every time. Aim for a full score on every block, and redo the repeats block on a different day from the first try.

Drill blockQsLastBestRunsLast done
Loading…

All 8, at a glance

QTopicWhat went wrongThe answer
Q1Creates a tx if none existsPicked MANDATORYREQUIRED
Q5Default health indicators+ ApplicationHealthIndicator · same as #8DiskSpaceHealthIndicator · ElasticsearchRestHealthIndicator
Q6Overriding the bean idStopped short — 3 were true@Bean(name="x") · @Bean(name={"a","b"}) · @Named("x")
Q24jsr250Enabled = true+ "All of the above" · same as #19@RolesAllowed only
Q36Non-repeatable reads can not occurTicked Read Committed + Read Uncommitted — the reverseRepeatable Read · Serializable
Q40DistributionSummary+ "increments by the value, like a counter"Captures count, total, mean, max
Q43DataSource on an app server+ @Bean returning BasicDataSourceJNDI lookup via JndiDataSourceLookup
Q46@Query statements+ "@Query is mandatory for hand-written queries"Defines JPQL · redundant on derivable names · @Param binds :name

A note on what you ticked

The exported results show an icon instead of a letter for any option that was correct or ticked. So an option with no letter that's marked "Incorrect" is a definite wrong tick. Seven of the eight misses have one. Q6 has none, so it can only be under-selection. The export can't show which true option you left out, but @Named is the likely one. On Q36 both wrong options have no letter. The likeliest reading is that you ticked those two and not the right two, which means the question was read as "can occur".

Jump to a section

⓪ The two repeats (Q24, Q5) — 9 drills ① Data Management — 4 misses (64%) · 17 drills ② Spring Boot metrics — Q40 · 6 drills ③ Spring Core — Q6 · 6 drills Every rule from this paper on one screen Mixed drill — new wordings, no headings · 9 drills

⓪ The two repeats Q24 · Q5 · Security + Boot

Q24 · @EnableGlobalMethodSecurity(jsr250Enabled = true) ticked a false option 2nd paper, same tick

Each attribute switches on one family of annotations. Only that family

You ticked "All of the above", here and on #19.
AttributeSwitches onWhere the annotation comes from
jsr250Enabled = true@RolesAllowed (+ @PermitAll, @DenyAll)JSR-250, the Java standard. 250 → Roles
securedEnabled = true@SecuredSpring's own. secured → @Secured, same word
prePostEnabled = true@PreAuthorize, @PostAuthorize (+ filters)Spring, SpEL-based. prePost → Pre/Post, same word

Two of the three names give it away: securedEnabled → @Secured, prePostEnabled → @Pre…/@Post…. So jsr250Enabled can't also switch those on, and "All of the above" is out as soon as you've ruled out one option. In Spring Security 6, @EnableMethodSecurity replaces it with the same three attributes, but prePostEnabled defaults to true and the other two default to false.

Memory hook: The attribute name is the annotation name. 250 is the odd one out, and it means Roles.
Q5 · Default Actuator health indicators ticked a false option 2nd paper, same tick

Health indicators are named after the thing they check: a disk, a database, a broker

You ticked ApplicationHealthIndicator, here and on #8.

The true pair was DiskSpaceHealthIndicator (always on) and ElasticsearchRestHealthIndicator (when an Elasticsearch client bean is present). Every built-in indicator checks one external dependency: DataSource, Redis, Mongo, Rabbit, Elasticsearch, Cassandra, Neo4j, disk space, plus ping. The application's overall health isn't an indicator. Actuator aggregates all the indicators into it. ConnectionHealthIndicator is too vague: there's no single "connection" to check.

Footnote: older Boot versions did have a class called ApplicationHealthIndicator. It was a fallback that always said UP when no other indicator existed. It's not one of the defaults this question means, and the bank marks it wrong both times.

Memory hook: An indicator checks a thing you depend on. "Application" is the result, not an indicator.

① Data Management 4 misses · 11 questions · 64%, down from 73%

Q1 · Propagation picked the wrong answer 3rd paper with a propagation miss

"Creates a new transaction if none exists" is REQUIRED, the default

You picked MANDATORY. MANDATORY requires a transaction but never creates one. If none exists, it throws.
PropagationTx already existsNo tx exists
REQUIRED (default)Joins itCreates one
REQUIRES_NEWSuspends it, creates a new oneCreates one
NESTEDSavepoint inside itCreates one (like REQUIRED)
SUPPORTSJoins itRuns without
NOT_SUPPORTEDSuspends it, runs withoutRuns without
MANDATORYJoins itThrows
NEVERThrowsRuns without

Only three create a transaction: REQUIRED, REQUIRES_NEW, NESTED. The two that throw are opposites: MANDATORY throws when there's no transaction, NEVER throws when there is one.

Memory hook: MANDATORY demands one, it doesn't make one. Only the REQUIRE… pair and NESTED create.
Q36 · Isolation levels read the question in reverse

"Can not occur" → the two levels at the top of the table

The two options with no letter in your export were Read Committed and Read Uncommitted, both wrong. Those are exactly the levels where non-repeatable reads can occur.
Level (weakest → strongest)Dirty readNon-repeatable readPhantom read
READ_UNCOMMITTEDpossiblepossiblepossible
READ_COMMITTEDpreventedpossiblepossible
REPEATABLE_READpreventedpreventedpossible
SERIALIZABLEpreventedpreventedprevented

Each level fixes one more problem, in order: dirty → non-repeatable → phantom. The level's name tells you what it fixes: Read Committed stops reading uncommitted (dirty) data; Repeatable Read makes reads repeatable. Before answering a "not" question, say the question back with the "not" in it.

Memory hook: The name says what it fixes. Repeatable Read fixes non-repeatable reads, and everything above it keeps the fix.
Q43 · DataSource on an application server ticked a false option

On an app server, the server owns the pool. Spring looks it up in JNDI

You ticked a @Bean method returning a BasicDataSource. That builds a second pool inside your app, next to the one the server already has.

The question's key words are "deployed on top of an Application Server". The server (WebLogic, WildFly, WebSphere) has a DataSource configured under a JNDI name, with pooling, credentials and XA. Spring's job is to fetch it: JndiDataSourceLookup in a @Bean, <jee:jndi-lookup> in XML, or spring.datasource.jndi-name in Boot. A BasicDataSource/Hikari bean or spring.datasource.url is right for a standalone app with an embedded server.

@Bean
public DataSource dataSource() {
    return new JndiDataSourceLookup().getDataSource("java:comp/env/jdbc/AppDB");
}
Memory hook: App server → JNDI lookup. Standalone → build your own pool.
Q46 · @Query statements ticked a false option

@Query is one way to hand-write a query. It isn't the only way

You ticked "The @Query annotation is mandatory for defining any hand-written query".

A JPA named query also works with no @Query: put @NamedQuery(name = "Product.findProductByName", query = "…") on the entity (or in orm.xml), and Spring Data matches it to the repository method by name. A custom repository implementation can also run any query through the EntityManager. Words like "mandatory", "any" and "only" need just one counterexample to be false, and named queries are that counterexample.

The three true statements: @Query defines custom JPQL for the method; @Param("name") binds to :name; and @Query is redundant when the name is already derivable (findByName). The two false ones you rightly left alone: @Query can run native SQL (nativeQuery = true), and JPQL @Query methods do accept Pageable and Sort.

Memory hook: Three places a query can live: the method name, @Query, or a @NamedQuery on the entity.

② Spring Boot metrics Q40 · Boot 75%

Q40 · Micrometer DistributionSummary ticked a false option

A DistributionSummary describes the values you record. A Counter only adds them up

You ticked "The metric increments by the recorded value each time recordValue is called, similar to a counter".

Recording 3, 10 and 5 into a summary gives count = 3, total = 18, max = 10, and the mean (6) follows from those. You can also turn on percentiles. A counter only goes up by an amount. It has no max, mean or distribution. The option sounds half-right because total does go up by each value, but "like a counter" is the wrong description: the point of a summary is the distribution.

MeterMeasuresExample
CounterA count that only goes upRequests served, errors
GaugeA current value that goes up and downQueue size, active sessions
TimerHow long things take: count, total time, maxRequest latency
DistributionSummarySame as Timer, for non-time values: count, total, maxPayload size in bytes, batch size
Memory hook: A DistributionSummary is a Timer for things that aren't time.

③ Spring Core Q6 · 1 miss · 25 questions · 96%

Q6 · Overriding the default bean id stopped short

Three ways were true, and the JSR-330 one is the easy one to leave out

No wrong ticks, so you left out at least one true option. The likely one is @Named("someName").
How the bean is declaredDefault nameOverride
@Bean methodThe method name@Bean("x") or @Bean(name = {"x", "alias"}). The first name is primary, the rest are aliases
@Component / @Service classClass name, first letter lower-case@Component("x"), @Service("x")
JSR-330 classClass name, first letter lower-case@Named("x"), which counts as a component and sets its name
XML <bean>Generatedid="x", name="a,b"

Spring supports the JSR-330 annotations as standard equivalents: @Inject ≈ @Autowired, @Named ≈ @Component (on a class) or @Qualifier (on an injection point). So @Named("someName") on a scanned class sets its bean id. The only false option was "it's not possible to override".

Memory hook: @Named is the standard's @Component, and it takes a name the same way.

Every rule from this paper on one screen

QRule
Q24jsr250Enabled → @RolesAllowed · securedEnabled → @Secured · prePostEnabled → @PreAuthorize/@PostAuthorize. One family each
Q5Health indicators check one dependency (disk, DataSource, Redis, Elasticsearch…). "Application" health is the aggregate, not an indicator
Q1Only REQUIRED, REQUIRES_NEW and NESTED create a transaction. MANDATORY throws if none exists, NEVER throws if one does
Q36Each level fixes one more problem: Read Committed → no dirty, Repeatable Read → no non-repeatable, Serializable → no phantom. Read "not" questions twice
Q43App server → look the DataSource up in JNDI (JndiDataSourceLookup, <jee:jndi-lookup>, spring.datasource.jndi-name). Standalone → build a pool
Q46Queries come from the method name, @Query, or a @NamedQuery. So @Query is never mandatory
Q40DistributionSummary = a Timer for non-time values: count, total, max (mean). Not a counter
Q6Bean names: @Bean("x"), @Bean(name={"x","alias"}), @Component("x"), @Named("x")

Mixed drill — new wordings, no headings

Every question here is a new wording of a fact from this paper. Do it last, or on another day.

I'm your teacher — ask me anything. 52 is your best score, and stopping short is almost gone. The two repeats were missed with the same tick as before, so do the repeats block today and again in a few days. Data Management is the weakest section now. Say "drill Data Management" for a page that covers the whole section.
← Dashboard ← Review #22 (propagation Q50) Review #19 (Q24 before) Review #8 (Q5 before) Review #12 (propagation)