Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
 

VMware 2V0-72.22 Exam Actual Questions

The questions for 2V0-72.22 were last updated on July 3, 2024.
  • Viewing page 1 out of 23 pages.
  • Viewing questions 1-4 out of 90 questions

Topic 1 - Exam A

Question #1 Topic 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.
Reveal Solution Hide Solution   Discussion   5

Correct Answer: A 🗳️

Question #2 Topic 1

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}”)
Reveal Solution Hide Solution   Discussion   9

Correct Answer: BD 🗳️

Question #3 Topic 1

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.
Reveal Solution Hide Solution   Discussion   1

Correct Answer: AB 🗳️

Question #4 Topic 1

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.
Reveal Solution Hide Solution   Discussion   2

Correct Answer: A 🗳️

Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in