Use Real 1Z0-900 - 100% Cover Real Exam Questions [Jun-2021]
Dumps Brief Outline Of The 1Z0-900 Exam - Test4Engine
NEW QUESTION 58
Given the code fragments:
What code should you add to the body of the updateEmployeemethod in order to save pending changes to the database?
- A. entityManager.merge(emp);
- B. Context. Ctx = new InitialContext();
UserTransaction utx = (UserTransaction)ctx.lookup("java:comp/
UserTransaction");
utx.begin();
entityManager.merge(emp);
utx.commit(); - C. entityManager.getTransaction().begin();
entityManager.merge(emp);
entityManager.getTransaction().commit(); - D. entityManager.lock(emp);
EntityManager.merge(emp);
Answer: B
NEW QUESTION 59
Which statement is true about the WS-Security standard?
- A. It provides message-level security.
- B. It relies on HTTP security mechanism to protect SOAP messages in transmit.
- C. It is a Java EE standard for protecting SOAP services.
- D. It defines protocol-specific ways of protecting SOAP messages.
Answer: A
Explanation:
Explanation/Reference: https://docs.oracle.com/cd/E19226-01/820-7627/gjiou/index.html
NEW QUESTION 60
Given:
You are creating an Alarm management system. When you create a new alarm, you want it to create an alert that is triggered once at the specified time.
Which method should you call on Line 9 to create the timer?
- A. timerService.createSingleActionTimer(alarmDate, config);
- B. timerService.createTimer(alarmDate, -l, config);
- C. timerService.createCalendarTimer(alarmDate, config);
- D. timerService.createIntervalTimer(alarmDate, -l, config);
Answer: B
Explanation:
Explanation
Reference https://docs.oracle.com/javaee/6/api/javax/ejb/TimerService.html
NEW QUESTION 61
How do you specify a default error page in your web.xml file?
- A. <on-error><error-code>*</error-code><location>/general-error.html</location></on-error>
- B. <error-page><location>/general-error.html</location></error-page>
- C. <error-page><error-code>*</error-code><location>/general-error.html</location></error-page>
- D. <on-error><location>/general-error.html<location></on-error>
Answer: C
Explanation:
Explanation
Reference
http://www.codejava.net/java-ee/servlet/how-to-handle-error-in-web-xml-for-java-web-applications
NEW QUESTION 62
Given an HttpServletRequestrequest and an EJB SessionContext ctx.
Which is a valid way to retrieve the Principal invoking either behavior?
- A. request.getUserPrincipal()and ctx.getUserPrincipal()
- B. request.getCallerPrincipal()and ctx.getCallerPrincipal()
- C. request.getCallerPrincipal() and ctx.getUserPrincipal()
- D. request.getUserPrincipal()and ctx.getCallerPrincipal()
Answer: B
NEW QUESTION 63
Given the code sample:
And:
And:
And the next fragment from beans.xml:
And this injection point:
@Inject GenericMessenger messageHandler;
Which type would be injected at run time and referenced by the messageHandlervariable?
- A. MsgHandler
- B. SmsHandler
- C. None of the above. An exception would be thrown due to ambiguous bean references.
- D. GenericMessenger
Answer: D
NEW QUESTION 64
Given:
What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated?
- A. @Stateless
- B. @Stateful @PassivationCapable
- C. @Stateless @PassivationCapable
- D. @Stateful
Answer: D
Explanation:
Explanation
Reference https://docs.oracle.com/javaee/6/tutorial/doc/giplj.html#gipln
NEW QUESTION 65
Given the code fragment:
Which code can be added to register both of these methods to receive BankEvent notifications only if an instance of BankActivityService is already instantiated in the current context?
- A. @Observes(notifyObserver=IF_EXISTS) on line 3 and line 6
- B. @Observes(during=AFTER_COMPLETION) on line 1
- C. @Observes(notifyObserver=IF_EXISTS) on line 4 and line 7 before method parameter declaration
- D. @Observes(during=IN_PROGRESS) on line 1
Answer: A
Explanation:
Explanation
Reference https://docs.oracle.com/javaee/7/tutorial/cdi-adv005.htm
NEW QUESTION 66
Your organization performs a restock via a transfer order between inventory organizations, using the following parameters for processing:
Transfer Type: In-transit transfer type
Receipt Routing: Standard
Transfer Order Required: Yes
During the process, the receiving organization wants to make a change to the transfer order line.
After which fulfillment stage will they no longer be able to change the transfer order?
- A. Closed
- B. Awaiting Billing
- C. Awaiting Fulfillment
- D. Ship Confirm
- E. Awaiting Receiving
Answer: A
Explanation:
Explanation
NEW QUESTION 67
Given the code fragments:
Which action completes this composite primary key implementation?
- A. Add @IdClass(ContactId.class) annotation at line 2.
- B. Add @Embeddable annotation at line 1 and @EmbeddedId(ContactId.class) at line 2.
- C. Add @Embeddable annotation at line 1 and replace both @Id annotations with @EmbeddedId annotations.
- D. Add @IdClass annotation at line 1.
Answer: B
NEW QUESTION 68
Given the set of navigation rules:
Which two define a valid flow of view IDs through the application? (Choose two.)
- A. dashboard > home > add-widget > list-widgets
- B. home > goodbye > list-widgets
- C. list-widgets > add-widget > home > dashboard > home
- D. home > list-widgets > add-widget > goodbye
Answer: C,D
NEW QUESTION 69
Given the code fragments:
What code should you add to the body of the updateEmployee method in order to save pending changes to the database?
- A. entityManager.merge(emp);
- B. Context. Ctx = new InitialContext();UserTransaction utx =
(UserTransaction)ctx.lookup("java:comp/UserTransaction");utx.begin();entityManager.merge(emp);utx.co entityManager.lock(emp);EntityManager.merge(emp); - C. entityManager.getTransaction().begin();entityManager.merge(emp);entityManager.getTransaction().comm
Answer: B
NEW QUESTION 70
Given:
You are creating an Alarm management system. When you create a new alarm, you want it to create an alert that is triggered once at the specified time.
Which method should you call on Line 9 to create the timer?
- A. timerService.createSingleActionTimer(alarmDate, config);
- B. timerService.createTimer(alarmDate, -l, config);
- C. timerService.createCalendarTimer(alarmDate, config);
- D. timerService.createIntervalTimer(alarmDate, -l, config);
Answer: B
Explanation:
Explanation/Reference: https://docs.oracle.com/javaee/6/api/javax/ejb/TimerService.html
NEW QUESTION 71
Given:
What will be the response to a HEAD request?
- A. No method will be invoked and a 404 error will be returned.
- B. The findAll() method will be called and the employee list will be returned.
- C. The findAll() method will be called and no employees will be returned.
- D. No method will be invoked and no error will be returned.
Answer: D
NEW QUESTION 72
Given the code fragment from a Facelet page:
On Line 1, you ae asked to insert a search box that displays the text "Search Here" via a placeholder.
Assume searchMB is a valid Managed Bean.
Which two options enable you to create a search box with a placeholder attribute on Line 1? (Choose two.)
- A. <input id="search" jsf:placeholder="Search Here" value="$(searchMB.query)"></input>
- B. <h:inputText value="#(searchMB.query)"><f:param name="placeholder" value="Search Here"/></h:inputText>
- C. <h:inputText value="#(searchMB.query)" placeholder="Search here"/>
- D. <input jsf:id="search" placeholder="Search here" jsf:value="# (searchMB.query)"></input>
- E. <h:inputText pt:placeholder="Search Here" value="#(searchMB.query)"/>
Answer: A,D
NEW QUESTION 73
You have a set up min-max planning at the subinventory level with the following to source item AS12312 for Organization: M1:
* Source Type: Organization
* Organization: M1
What type of supply request will be generated?
- A. Intraorganization transfer order
- B. Purchase Requisition
- C. Internal Requisition
- D. None; this is an invalid setup
- E. Movement request
Answer: A
NEW QUESTION 74
......
Certification Training for 1Z0-900 Exam Dumps Test Engine: https://www.test4engine.com/1Z0-900_exam-latest-braindumps.html