nerdexam
Oracle

1Z0-899 · Question #66

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…

The correct answer is C. 10. Cookie c = new Cookie("creditCard", usersCard). See the full explanation below for the reasoning.

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
    1. Cookie c = new Cookie("creditCard", usersCard);
  • B
    1. Cookie c = new Cookie("creditCard", usersCard);
  • C
    1. Cookie c = new Cookie("creditCard", usersCard);
  • D
    1. Cookie c = new Cookie("creditCard", usersCard);
  • E
    1. Cookie c = new Cookie("creditCard", usersCard);

How the community answered

(69 responses)
  • A
    1% (1)
  • B
    7% (5)
  • C
    72% (50)
  • D
    4% (3)
  • E
    14% (10)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice