Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)

Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)A . The default embedded servlet container can be replaced with Undertow.B . Jetty is the default servlet container.C . Spring Boot starts up an embedded servlet container by default.D . The default port of the embedded...

February 26, 2025 No Comments READ MORE +

Which two statements correctly describe the code behavior?

Refer to the exhibit. The above code shows a conditional @Bean method for the creation of a JdbcTemplate bean. Which two statements correctly describe the code behavior? (Choose two.)A . @ConditionalOnBean(name= “dataSource”) should be replaced with @ConditionalOnBean (DataSource.class) for greater flexibility.B . @ConditionalOnBean(name= “dataSource”) should be replaced with @ConditionalOnMissingBean (DataSource.class)...

February 18, 2025 No Comments READ MORE +

Spring Boot will find and load property files in which of the following? (Choose the best answer.)

Spring Boot will find and load property files in which of the following? (Choose the best answer.)A . A *.properties file matching the name of the class annotated with @SpringBootApplication.B . config.properties or config.yml, usually located in the classpath root.C . application.properties or application.yml, usually located in the classpath root.D...

February 12, 2025 No Comments READ MORE +

Which strategy is correct for configuring Spring Security to intercept particular URLs? (Choose the best answer.)

Which strategy is correct for configuring Spring Security to intercept particular URLs? (Choose the best answer.)A . The URLs can be specified via configuration (using authorizeRequests () and request matchers), with the most specific rule first and the least specific last.B . Spring Security can obtain URLs from Spring MVC...

February 4, 2025 No Comments READ MORE +

Which option is a valid way to retrieve the account id?

Refer to the exhibit. Which option is a valid way to retrieve the account id? (Choose the best answer.)A . Add @PathVariable(“id”) String accountId argument to the update() handler method.B . Add @PathVariable long accountId argument to the update() handler method.C . Add @RequestParam long accountId argument to the update()...

February 4, 2025 No Comments READ MORE +

Which three dependencies are provided by the spring-boot-starter-test? (Choose three.)

Which three dependencies are provided by the spring-boot-starter-test? (Choose three.)A . CucumberB . HamcrestC . spring-testD . JunitE . EasyMockF . PowerMockView AnswerAnswer: BDE Explanation: Reference: https://www.baeldung.com/spring-boot-testing

February 2, 2025 No Comments READ MORE +

Which two statements are true concerning constructor injection? (Choose two.)

Which two statements are true concerning constructor injection? (Choose two.)A . If there is only one constructor the @Autowired annotation is not required.B . Constructor injection only allows one value to be injected.C . Constructor injection is preferred over field injection to support unit testing.D . Construction injection can be...

February 1, 2025 No Comments READ MORE +

Which two statements about the @Autowired annotation are true? (Choose two.)

Which two statements about the @Autowired annotation are true? (Choose two.)A . @Autowired fields are injected after any config methods are invoked.B . Multiple arguments can be injected into a single method using @Autowired.C . By default, if a dependency cannot be satisfied with @Autowired, Spring throws a RuntimeException.D ....

January 23, 2025 No Comments READ MORE +

Which statement is true? (Choose the best answer.)

Which statement is true? (Choose the best answer.)A . @ActiveProfiles is a class-level annotation that is used to instruct the Spring TestContext Framework to record all application events that are published in the ApplicationContext during the execution of a single test.B . @ActiveProfiles is a class-level annotation that you can...

January 19, 2025 No Comments READ MORE +