Oracle
1Z0-899 · Question #66
1Z0-899 Question #66: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-899 to reveal the answer and full explanation for question #66. The question stem and answer options stay visible for context.
Question
Your company has a corporate policy that prohibits storing a customer's credit card number in any corporate database. However, users have complained that they do NOT want to re-enter their credit card number for each transaction. Your management has decided to use client-side cookies to record the user's credit card number for 120 days. Furthermore, they also want to protect this information during transit from the web browser to the web container; so the cookie must only be transmitted over HTTPS. Which code snippet creates the "creditCard" cookie and adds it to the out going response to be stored on the user's web browser?
Options
- A
- Cookie c = new Cookie("creditCard", usersCard);
- B
- Cookie c = new Cookie("creditCard", usersCard);
- C
- Cookie c = new Cookie("creditCard", usersCard);
- D
- Cookie c = new Cookie("creditCard", usersCard);
- E
- Cookie c = new Cookie("creditCard", usersCard);
Unlock 1Z0-899 to see the answer
You've previewed enough free 1Z0-899 questions. Unlock 1Z0-899 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.