Free CCD-102 Exam Braindumps (page: 28)

Page 28 of 52

Which two items are appropriate content of custom logs implemented at checkout? Choose 2 answers:

  1. Customer’s password at post-checkout sign up
  2. Order failure information
  3. Transaction’s credit card information
  4. Payment gateway service response code

Answer(s): B,D



A developer is writing a server side script that needs to maintain state across calls. The persistent information needed includes these items.

•The current customer
•Whether or not the customer is authenticated
•The privacy attributes (such as tracking consent or cookie policy)

Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?

  1. Use a non-replicable Custom Object to store the information temporarily.
  2. Use the Session class in the B2C Commerce api.
  3. Use an SFRA controller, because it runs server-side, the state is automatically maintained
  4. Use a client-side cookie to store the information for the session duration.

Answer(s): B



A developer working on a simple web service integration is asked to add appropriate logging to allow future troubleshooting. According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?

  1. Logger.info(‘Unexpected service response’)
  2. Logger.debug(‘Unexpected service response’)
  3. Logger.error(‘Unexpected service response’)
  4. Logger.warn(‘Unexpected service response’)

Answer(s): D



Which three operations should be done in a controller? Choose 3 answers

  1. Generate the response as JSON or HTML
  2. Use the Script API to generate data for the view.
  3. Use middleware functions when applicable
  4. Create a plain JavaScript object representing a system object
  5. Use the model needed for the view.

Answer(s): A,C,E



Page 28 of 52



Post your Comments and Discuss Salesforce CCD-102 exam with other Community members:

Fernando commented on November 04, 2024
Very cool and very helpful. Bought 2 exams with 50% discount.
Brazil
upvote