49/60 = 82%, against a 76% pass mark. Three marks over. After #21's 41 and
the whole revision cycle that followed it, Spring Core went from 57% to 86%: three misses, where #21 had
thirteen. Testing and Security were both 100%.
The marks this time were lost in Spring Boot (4) and Data Management (3). Three of the 11 were
questions you've missed before, word for word, and two of those three you got wrong in the same way as last
time.
The first fourteen papers averaged 40.3. The last eight average 47.4, and six of those eight passed. #21 was the low point of that run, and the paper straight after its revision cycle is back at 49.
How the sizes come out. MVC at 67% with one miss is 2/3. Data at 73% with three misses is 8/11. Boot at 73% with four misses is 11/15. Core at 86% with three misses is 18/21. That's 50 questions, so Testing and Security shared the other 10 between them, all correct. Data's drop looks big, but it's three marks on an 11-question section. Two of the three were repeats.
| If you had… | Score | Result |
|---|---|---|
| What actually happened | 49 | 82% — pass |
| …and not missed the three questions you'd already missed, word for word, on an earlier paper | 52 | 87% |
| …and ticked every true option on the other two "select all" questions (Q4, Q9) | 54 | 90% |
| …and not made the six wrong picks (Q19, Q28, Q34, Q42, Q50, Q57) | 60 | 100% |
Four of the eleven misses were stopping short: every option you ticked was right, but you left a true one out. Two of those four had all four options true. That's the cheapest pattern to fix, and it's covered in the first block.
| Attempt #21 | Attempt #22 | Result | |
|---|---|---|---|
| Score | 41/60 (68%) | 49/60 (82%) | +8 · passed |
| Misses | 19 | 11 | −8 |
| Spring Core misses | 13 | 3 | −10 · the revision cycle worked |
| Questions with a wrong tick | 16 | 7 | −9 |
| Stopped short (no wrong tick) | 3 | 4 | +1 · two were "all four true" |
| Data Management misses | 0 | 3 | +3 · two of them repeats |
| Word-for-word repeats | 5 of 19 | 3 of 11 | Still there |
| Left blank | 0 | 0 | Held — tenth paper running |
| Time | 57m 57s | 41m 15s | −17 min |
Core is no longer the problem. The weak spots now are smaller and spread out: Actuator facts, transaction propagation, and the habit of stopping at two or three options on "select all" questions.
| Q | Topic | Already on this site | Then → now |
|---|---|---|---|
| Q12 | Enabling @Transactional | #12 Q16 and #20 Q7 | Third paper with this question. #20: stopped short. Now: ticked the invented @Configuration(enableTransactions=true) |
| Q43 | JPA finder keywords | #16 Q30 | All four options true. Stopped short both times |
| Q55 | Ways to add a bean definition | #4 Q25 | Three of four true. Stopped short both times |
Q43 and Q55 were missed the same way as before: every true option needed ticking, and you didn't tick them all. The facts are on earlier pages. What needs to change is believing that four of four can be true. The first drill block has all three as they appeared, plus a reworded version of each.
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 before the next paper, and redo the repeats block on a different day from the first try.
| Drill block | Qs | Last | Best | Runs | Last done |
|---|---|---|---|---|---|
| Loading… | |||||
| Q | Topic | What went wrong | The answer |
|---|---|---|---|
| Q4 | What Spring Cloud provides | Stopped short — 3 were true | Service discovery · config server · Netflix OSS integration |
| Q9 | Web-only Actuator endpoints | Stopped short — all 4 were true | jolokia · httptrace · heapdump · mappings |
| Q12 | Enabling @Transactional | + @Configuration(enableTransactions=true) · 3rd paper | @EnableTransactionManagement · nothing under Boot |
| Q19 | Class-level @RequestMapping | + "overwritten by the methods' mappings" | Prefixes the paths · narrows the HTTP verbs |
| Q28 | Default Actuator metrics | + "number of user sessions" | Memory · HTTP response time · GC |
| Q34 | SpEL syntax | Picked ${bean.property} | #{bean.property} |
| Q42 | Where @Profile goes | + "on a constructor" | @Bean method · meta-annotation |
| Q43 | Finder method keywords | Stopped short — all 4 were true · same as #16 | Is · LessThan · GreaterThan · Null |
| Q50 | "Non-tx, throws if a tx exists" | Picked NOT_SUPPORTED | NEVER |
| Q55 | Adding a bean definition | Stopped short — 3 were true · same as #4 | XML · @Bean · registerBeanDefinition |
| Q57 | Is @EnableAutoConfiguration required? | Picked True | False — @SpringBootApplication includes it |
| Q | True options | The one most likely left out, and why it's true |
|---|---|---|
| Q43 | 4 of 4 | Null looks incomplete next to IsNull, but findByEmailNull() is valid. "Is" is optional on every keyword |
| Q9 | 4 of 4 | httptrace / mappings sound general, but both are about HTTP: request traces and @RequestMapping paths |
| Q55 | 3 of 4 | DefaultListableBeanFactory.registerBeanDefinition sounds internal, but it's the API every other route ends up calling |
| Q4 | 3 of 4 | "Netflix OSS integration" sounds dated, but Spring Cloud Netflix is a real Spring Cloud project (Eureka) |
The test for each option is: can I name a reason it's false? Examples: the name doesn't exist
(@BeanComponent), it's a different tool (a Dockerfile isn't Spring Cloud), or the docs say otherwise.
If you can't name a reason, tick it. "It sounds odd" or "I already have enough" isn't a reason.
@Transactional ticked a false option 3rd paper with this question@Configuration has no transaction switch. The switch is a separate @Enable… annotation@Configuration(enableTransactions=true). On #20 you stopped
short on the same question.Two options were true. @EnableTransactionManagement is the plain-Spring switch.
"None of the above if you use Spring Auto-Configuration" is also true, because Boot's
TransactionAutoConfiguration applies it for you. @Configuration's only attributes are
value (the bean name) and proxyBeanMethods. Spring never turns features on through a
@Configuration attribute. Every feature switch is its own @Enable… annotation:
@EnableTransactionManagement, @EnableCaching, @EnableAsync,
@EnableScheduling, @EnableAspectJAutoProxy.
@Enable…. @Configuration
has just value and proxyBeanMethods.@EnableAutoConfiguration picked the wrong answer@SpringBootApplication already includes @EnableAutoConfiguration@EnableAutoConfiguration is required".@SpringBootApplication = @SpringBootConfiguration (which is a
@Configuration) + @EnableAutoConfiguration + @ComponentScan. Every
app that uses it has auto-configuration switched on already. You'd write @EnableAutoConfiguration
yourself only if you put those three annotations on separately, instead of using
@SpringBootApplication.
@SpringBootApplication = Config + Auto-config + Scan.| Out of the box | Metric name |
|---|---|
| Memory (heap, non-heap) | jvm.memory.used, jvm.memory.max |
| Garbage collection | jvm.gc.pause, jvm.gc.memory.promoted |
| Threads, classes loaded | jvm.threads.live, jvm.classes.loaded |
| CPU, uptime | system.cpu.usage, process.uptime |
| HTTP requests (count, timing, status) | http.server.requests |
| User sessions | Not by default. Needs Spring Session, or Tomcat's MBean registry switched on |
jolokia, httptrace, heapdump, mappingsThe common thread is that each one is about HTTP or only makes sense over HTTP.
jolokia is a JMX-over-HTTP bridge. httptrace records HTTP exchanges.
heapdump returns a binary file download. mappings lists @RequestMapping
paths.
A caution. The Spring Boot 2.x reference docs list the web-only endpoints as
heapdump, jolokia, logfile and prometheus. That's the version
#12 taught you. This question bank also counts httptrace and
mappings. For this exam, tick anything that is about HTTP or returns a file. Leave out
threaddump, beans, env and health, which also work over JMX.
Spring Cloud is a family of projects for microservice plumbing. Spring Cloud Config is a
Git-backed config server. Spring Cloud Netflix provides Eureka discovery (Hystrix and Zuul are now
retired). Spring Cloud Gateway is the API gateway. Distributed tracing used to be Sleuth.
The false option was the Dockerfile. Containers are built by Docker, or by Boot's own
spring-boot:build-image, not by Spring Cloud.
Q12 and Q43 are explained in block ⓪. That leaves propagation.
NEVER throws. NOT_SUPPORTED just steps asideNOT_SUPPORTED. The sentence was "executes
non-transactionally, throws an exception if a transaction exists".| Propagation | A transaction already exists | No transaction exists |
|---|---|---|
REQUIRED (default) | Join it | Start one |
REQUIRES_NEW | Suspend it, start a new one | Start one |
NESTED | Savepoint inside it | Start one |
SUPPORTS | Join it | Run without |
MANDATORY | Join it | Throw |
NOT_SUPPORTED | Suspend it, run without | Run without |
NEVER | Throw | Run without |
Only two types throw: MANDATORY when there is no transaction, and
NEVER when there is one. They're opposites. The exception in both cases is
IllegalTransactionStateException.
Q55 is explained in block ⓪. The other two are below.
#{…} is SpEL. ${…} is a property placeholder${bean.property}.| Syntax | What it is | Reads from | Example |
|---|---|---|---|
#{…} | SpEL expression | Beans, methods, operators, T(Type) | #{orderService.status} |
${…} | Property placeholder | The Environment: properties files, env vars, system properties | ${app.timeout} |
The question says "accessing a bean property", and only SpEL can reach a bean. Inside
@Value, #{orderService.status} and #{@orderService.status} both work: a
bare name is looked up as a bean, and @ makes the bean reference explicit. You can also nest them:
#{${app.factor} * 2} resolves the placeholder first, then evaluates the SpEL.
$ = settings (properties). # = code (expressions on
beans).@Profile placement ticked a false option@Profile decides whether a bean definition is registered, so it goes where definitions come from@Profile's @Target is TYPE and METHOD. That
gives four useful places: a @Component class, a @Configuration class, a
@Bean method, and another annotation (a composed annotation like @Production). A
constructor isn't in the @Target, so it won't compile there. A setter compiles, because it's a
method, but it has no effect, because a setter doesn't define a bean.
@Profile goes where beans are defined: classes,
@Bean methods, and annotations that carry it.@RequestMapping ticked a false option@RequestMapping
annotation".| Class level | Method level | Result |
|---|---|---|
@RequestMapping("/api") | @GetMapping("/users") | GET /api/users — path prefixed |
method = GET | @RequestMapping("/report") (no method) | Only GET — verbs narrowed |
produces = "application/json" | no produces | Method inherits JSON |
The two true options were "prefixes the methods' paths" and "narrows the HTTP verbs". The class level sets shared defaults, and each method adds to them.
One detail the exam's explanation gets wrong: if
the class says method = GET and a method says @PostMapping, Spring takes the
union, so that method accepts both GET and POST. "Narrows" is accurate for methods that don't name a
verb, and that's what the exam means.
| Q | Rule |
|---|---|
| Q4 | Spring Cloud = discovery (Eureka), Config Server, Gateway, Netflix OSS, resilience, tracing. Not Docker images |
| Q9 | Web-only endpoints are HTTP-shaped or file-shaped: heapdump, logfile, prometheus, jolokia (+ httptrace, mappings in this bank) |
| Q12 | @EnableTransactionManagement in plain Spring; nothing under Boot. @Configuration has no feature switches |
| Q19 | Class + method @RequestMapping are combined: prefix + narrowed verbs |
| Q28 | Default metrics: JVM memory, GC, threads, CPU, http.server.requests. No user sessions |
| Q34 | #{} = SpEL (beans, code). ${} = placeholder (properties) |
| Q42 | @Profile: component/config class, @Bean method, meta-annotation. Not a constructor |
| Q43 | Is, LessThan, GreaterThan, Null — all valid. "Is" is optional everywhere |
| Q50 | NEVER throws if a transaction exists. NOT_SUPPORTED suspends it. MANDATORY throws if none exists |
| Q55 | XML <bean/>, @Bean, @Component + scan, @Import, registerBeanDefinition. No @BeanComponent |
| Q57 | @SpringBootApplication = @SpringBootConfiguration + @EnableAutoConfiguration + @ComponentScan |
New wording on every question. Do this one last, or on another day.
@EnableTransactionManagement has been on three papers, and the finder keywords and bean-definition
question have each been missed twice in the same way. Say "drill the repeats" for one page made of every
question you've missed on more than one paper.