VMware 2V0-72.22 Exam Practice Questions (P. 1)
- Full Access (90 questions)
 - Six months of Premium Access
 - Access to one million comments
 - Seamless ChatGPT Integration
 
- Ability to download PDF files
 - Anki Flashcard files for revision
 - No Captcha & No AdSense
 - Advanced Exam Configuration
 
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.)
                                
                              - AEnsure a valid bean name in the @Component annotation is specified.
 - BEnsure a valid @ComponentScan annotation in the Java configuration is specified.Most Voted
 - CEnsure a valid @Scope for the class is specified.
 - DEnsure a valid @Bean for the class is specified.
 
                                        Correct Answer:
A
                                        
                                        
                                            
                                        
                                    
                                   
                                    A
          
          send
        
        
          light_mode
          delete
      
    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)”)Most Voted
 - C@Value(“$(daily.limit)”)
 - D@Value(“#{systemProperties[‘daily.limit’]}”)Most Voted
 - E@Value(“#{systemProperties.daily.limit}”)
 
                                        Correct Answer:
BD
                                        
                                        
                                            
                                        
                                    
                                   
                                    BD
          
          send
        
        
          light_mode
          delete
      
    Question #3
                                    Which two options are REST principles? (Choose two.)
                                
                              - ARESTful applications use a stateless architecture.Most Voted
 - BRESTful application use HTTP headers and status codes as a contract with the clients.Most Voted
 - CRESTful applications cannot use caching.
 - DRESTful application servers keep track of the client state.
 - ERESTful applications favor tight coupling between the clients and the servers.
 
                                        Correct Answer:
AB
                                        
                                        
                                            
                                        
                                    
                                   
                                    AB
          
          send
        
        
          light_mode
          delete
      
    Question #4
                                    Which option is true about use of mocks in a Spring Boot web slice test? (Choose the best answer.)
                                
                              - AMocking a Spring Bean requires annotating it with @MockBean annotation.
 - BIf a Spring Bean already exists in the web slice test spring context, it cannot be mocked.
 - CMocks cannot be used in a Spring Boot web slice test.
 - DMocking a Spring Bean requires annotating it with @Mock annotation.
 
                                        Correct Answer:
A
                                        
                                        
                                            
                                        
                                    
                                   
                                    A
          
          send
        
        
          light_mode
          delete
      
    Question #5
                                    Which two statements are true regarding Spring Security? (Choose two.)
                                
                              - AAccess control can be configured at the method level.Most Voted
 - BA special Java Authentication and Authorization Service (JAAS) policy file needs to be configured.
 - CAuthentication data can be accessed using a variety of different mechanisms, including databases and LDAP.Most Voted
 - DIn the authorization configuration, the usage of permitAll () allows bypassing Spring security completely.
 - EIt provides a strict implementation of the Java EE Security specification.
 
                                        Correct Answer:
AD
                                        
                                        
                                            
                                        
                                    
                                   
                                    AD
          
          send
        
        
          light_mode
          delete
      
    All Pages
