Download Professional Develop VMware Spring.VCEPlus.2V0-72.22.2022-06-07.1e.30q.vcex

Download Exam

File Info

Exam Professional Develop VMware Spring
Number 2V0-72.22
File Name Professional Develop VMware Spring.VCEPlus.2V0-72.22.2022-06-07.1e.30q.vcex
Size 215 Kb
Posted June 07, 2022
Downloads 4

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.


With discount: 20%


Demo Questions

Question 1
If a class is annotated with @Component, what should be done to have Spring automatically detect the annotated class and load it as a bean? (Choose the best answer.)

  • A: Ensure a valid bean name in the @Component annotation is specified.
  • B: Ensure a valid @ComponentScan annotation in the Java configuration is specified.
  • C: Ensure a valid @Scope for the class is specified.
  • D: Ensure a valid @Bean for the class is specified.

Question 2
Which two options will inject the value of the daily.limit system property? (Choose two.)

  • A: @Value("#{daily.limit}")
  • B: @Value("$(systemProperties.daily.limit)")
  • C: @Value("$(daily.limit)")
  • D: @Value("#{systemProperties[`daily.limit']}")
  • E: @Value("#{systemProperties.daily.limit}")

Question 3
Which two options are REST principles? (Choose two.)

  • A: RESTful applications use a stateless architecture.
  • B: RESTful application use HTTP headers and status codes as a contract with the clients.
  • C: RESTful applications cannot use caching.
  • D: RESTful application servers keep track of the client state.
  • E: RESTful applications favor tight coupling between the clients and the servers.

Question 4
Which option is true about use of mocks in a Spring Boot web slice test? (Choose the best answer.)

  • A: Mocking a Spring Bean requires annotating it with @MockBean annotation.
  • B: If a Spring Bean already exists in the web slice test spring context, it cannot be mocked.
  • C: Mocks cannot be used in a Spring Boot web slice test.
  • D: Mocking a Spring Bean requires annotating it with @Mock annotation. 

Question 5
Which two statements are true regarding Spring Security? (Choose two.)

  • A: Access control can be configured at the method level.
  • B: A special Java Authentication and Authorization Service (JAAS) policy file needs to be configured.
  • C: Authentication data can be accessed using a variety of different mechanisms, including databases and LDAP.
  • D: In the authorization configuration, the usage of permitAll () allows bypassing Spring security completely.
  • E: It provides a strict implementation of the Java EE Security specification.

Question 6
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 servlet container is 8088.
  • E: Spring MVC starts up an in-memory database by default.

Question 7
Which two statements are true regarding Spring and Spring Boot Testing? (Choose two.)

  • A: EasyMock is supported out of the box.
  • B: @SpringBootTest or @SpringJUnitConfig can be used for creating an ApplicationContext.
  • C: Mockito spy is not supported in Spring Boot testing by default.
  • D: The spring-test dependency provides annotations such as @Mock and @MockBean.
  • E: Integration and slice testing are both supported.

Question 8
Refer to the exhibit.


Assume that the application is using Spring transaction management which uses Spring AOP internally.
Choose the statement that describes what is happening when the update1 method is called?
(Choose the best answer.)

  • A: There are 2 transactions because REQUIRES_NEW always runs in a new transaction.
  • B: An exception is thrown as another transaction cannot be started within an existing transaction.
  • C: There is only one transaction because REQUIRES_NEW will use an active transaction if one already exists.
  • D: There is only one transaction initiated by update1() because the call to update2() does not go through the proxy.

Question 9
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 used with multiple constructors without @Autowired annotation.
  • E: Field injection is preferred over constructor injection from a unit testing standpoint.

Question 10
Given an ApplicationContext containing three bean definitions of type Foo with bean ids foo1, foo2, and foo3, which three @Autowired scenarios are valid and will allow the ApplicationContext to initialize successfully? (Choose three.)

  • A: @Autowired public void setFoo (Foo foo) {...}
  • B: @Autowired @Qualifier ("foo3") Foo foo;
  • C: @Autowired public void setFoo (@Qualifier ("foo1") Foo foo) {...}
  • D: @Autowired private Foo foo;
  • E: @Autowired private Foo foo2;
  • F: @Autowired public void setFoo(Foo foo2) {...}


You can buy ProfExam with a 20% discount..

Get Now!


Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen


Use VCE Exam Simulator to open VCE files