Salesforce ccm-101 practice test

B2C Commerce Merchant Exam


Question 1

A merchant has asked their development team to add a new site.
Which two tasks are essential for correct site configuration prior to launch?
Choose 2 answers

  • A. Assign a default payment processor.
  • B. Assign a default payment method.
  • C. Assign a default currency.
  • D. Assign a default payment type.
  • E. Assign the appropriate taxation type.
Answer:

C, E

Explanation:
101/102
Questions & Answers PDF
P-
102/102

Discussions

Question 2

100/102
Questions & Answers PDF
P-
A developer uses the call() instance method of dw.svc.Service to invoke a web service and
implemented the callback methods defined by
the dw.avc.ServiceCaliback class.
Which callback method is required only when invoking a SOAP service?

  • A. initServiceClient
  • B. createRequeat
  • C. mockCall
  • D. parseResponse
Answer:

A

Discussions

Question 3

Which method is efficient and scalable because it uses the product search index rather than
searching the database?

  • A. ProducrlndexModel.getOrderableProductsOnly()
  • B. ProduccAvailabiliryModel.isOrderable()
  • C. ProductSearcbHodel().gerProductSearchHita()
  • D. ProductVanari.cnMcciel.aerVariams ()
Answer:

C

Discussions

Question 4

There are three logging categories: category1, category1.eu, and category1.us.
In Business Manager, category1 is enabled for WARN level and no other categories are configured.
All custom log targets are enabled.
The code segment below executes.
99/102

What is the result'

  • A. Logs will not be written.
  • B. Logs will be written to the log file with a prefix loggerFile.
  • C. Logs will be written to the log file with a prefix custom-loggerFile.
  • D. Logs will be written to the log file with a prefix customwarn.
Answer:

B

Discussions

Question 5

A merchant uploads an image using the Content Image Upload module of Business Manager.
Which three modules can the merchant or developer use to display the image on the Storefront7
Choose 3 answers

  • A. ISML templates
  • B. Content assets
  • C. Storefront catalogs
  • D. Content slots
  • E. Payment types
Answer:

B, C, D

Discussions

Question 6

Recent code changes to an existing cartridge do not appear correctly on a Storefront. The developer
confirms that the code is uploaded in the IDE and ensures that the cartridge is associated with the
sandbox.
Which two additional steps should the developer take to troubleshoot this problem?
Choose 2 answers

  • A. Check that the search index was recently rebuilt.
  • B. Check the Business Manager site cartridge path.
  • C. Check the Storefront site cartridge path. 98/102
  • D. Check that the correct code version is selected.
Answer:

A, C

Discussions

Question 7

A developer has a sandbox with code to log a message during execution, and the following code:

After the code executes, the developer does not see any log file with the message in the WebDAV
folder. Which two tasks does the developer need to perform to correct this issue?
Choose 2 answers

  • A. Request that the developer's account be given permission to the Log Center of the current realm.
  • B. Set the root log level to debug.
  • C. Check the box for Info under Log Files.
  • D. Set the logging global preference to true.
Answer:

A, C

Discussions

Question 8

Given the SFRA Controller below:

Why would a JavaScript debugger, that is stopped at line 06, fall to show the viewdata variable in the
inspection tool?

  • A. cache. applyDefauItCache is not a valid middleware.
  • B. viewdata is declared but not assigned.
  • C. viewdata is assigned but not declared.
  • D. viewdata is a B2C Script reserved name.
Answer:

C

Explanation:
97/102

Discussions

Question 9

In Log Center, a developer notes a number of Cross Site Request Forgery (CSRF) log entries. The
developer knows that this happens when a CSRF token is either not found or is invalid, and is
working to remedy the situation as soon as possible.
Which two courses of action might solve the problem?
Choose 2 answers
96/102

  • A. Add the token in the ISML template.
  • B. Extend the CSRF token validity to avoid timeouts.
  • C. Delete the existing CSRF whitelists in Business Manager.
  • D. Add csrfProtection.generateToken as a middleware step in the controller.
Answer:

B, C

Discussions

Question 10

A client has a requirement to render different content on the homepage based on if the customer is
logged in or guest user.
What should a developer implement to achieve this requirement?

  • A. Write specific custom code in the Content Asset for a customer that is a registered, versus unregistered, user.
  • B. Set the Content Slot configuration so it is based on the system customer group registered, versus unregistered.
  • C. Set the Content Asset configuration for a customer that is a registered, versus unregistered, user.
  • D. Add specific custom messages in Page Designer for a customer that is a registered, versus unregistered, user.
Answer:

B

Discussions
To page 2