Sep 18, 2023 Updated CCM-101 Dumps Questions For Salesforce Exam
Best Value Available Preparation Guide for CCM-101 Exam
NEW QUESTION # 99
A Digital Developer needs to store information temporarily and decides to create a custom object.
Which code creates a custom object?
- A. CustomObjectMgr.createCustomObject(CustomObjectType,primaryKey)
- B. CustomObjectMgr.createCustomObject(primaryKey);
- C. CustomObject.createCustomObject(primaryKey,CustomObjectType);
- D. CustomObject.createCustomObject(CustomObjectType,primaryKey);
Answer: D
NEW QUESTION # 100
Given the customer basket described below:
* A customer has an existing basket that consists of multiple items.
* One of the items is identified as a gift item by an attribute at the product line item.
The developer needs to write custom code to fetch the customer basket and then modify the basket based upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate shipment for the gift item.
Four hooks are required to make the modification, beginning with modifyGETRespone and ending with validatebasket.
* Dw.ocapi.shop.basket.modifyGETResponse
* -- missing hook -
* -- missing hook --
* dw.ocapi.shop.basket.validateBasket
What are the two missing hooks in the middle?
- A. dw.ocapi.shop.basket.shipment.beforeDELETE
- B. dw.ocapi.shop.basket.shipment.beforePATCH
- C. dw.ocapi.shop.baskep.shopment.beforePOST
- D. dw.ocapi.shop.basket.shipment.afterDELETE
Answer: B,C
Explanation:
Estos indican antes de actualizar y antes de introducir
NEW QUESTION # 101
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?
- A. Option D
- B. Option C
- C. Option B
- D. Option A
Answer: C
NEW QUESTION # 102
During a load test the storefront shows steady but slow performance on all the paces being tested. The Architect opens Pipeline Profiler and sorts the data by *total time" column. The following come as the top Ave items:
Which controller should the Architect focus on to further investigate the performance issue?
- A. Search Show as this Is one of the key controllers that the customer uses
- B. Product-HitTile as it has the highest hits during the load test.
- C. Home-IncludeHeaderMenu as It has highest average time.
- D. Product-Detail as It has the highest total time and highest maximum time.
Answer: C
NEW QUESTION # 103
What happens if the log file size limit is reached in custom logging?
- A. The log file is deleted and recreated from scratch.
- B. Logging is suspended for the day.
- C. Logging is suspended for two hours.
- D. The log file rolls over and the last used log is overwritten.
Answer: B
NEW QUESTION # 104
A Digital Developer suspects a logical error in a script.
Which action will help locate the error?
- A. Submit a support ticket to B2C Commerce.
- B. Put breakpoints in the code, debug, and examine variable values.
- C. Check request logs for evidence of the logical error.
- D. Print all values in the script node called before the current script.
Answer: C
NEW QUESTION # 105
A company that is a shoe-producer is doing Salesforce B2C Commerce implementation. In their Enterprise Resource Warning (ERP) system, the products are marked as being one of three types: boots, sandals, and sneakers. The business requirements based on the type are:
* The messaging on Product Detail page is different
* Customers are able to filler their Product Search Results
The customer's operations team asks about the format in which to send this value in the catalog.
Which data type should the Architect specify for this attribute In the Data Mapping document?
- A. A custom attribute type set-of-string containing multiple values.
- B. A custom attribute of type string containing comma separated values.
- C. A custom attribute of type enum-of-string (multiselect able value).
- D. A custom attribute of type enum-of-string (single selectable value)
Answer: D
NEW QUESTION # 106
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?
- A. Use a non-replicable Custom Object to store the information temporarily.
- B. Use an SFRA controller, because it runs server-side, the state is automatically maintained
- C. Use a client-side cookie to store the information for the session duration.
- D. Use the Session class in the B2C Commerce api.
Answer: D
NEW QUESTION # 107
A developer is asked to create a controller endpoint that will be used in a client-side AJAX request. Its purposes is to display updated information to the user when the request is completed, without otherwise modifying the appearance of the current page.
According to SFRA practices, which method best supports this objective?
- A. res.json()
- B. res.render()
- C. res.print()
Answer: A
NEW QUESTION # 108
A developer wants to import the data or different instances.
Which two types of data should the developer consider importing?
Choose 2 answers
- A. Metadata
- B. Customers
- C. Services
- D. Sites configurations
- E. Catalog
Answer: A,D
NEW QUESTION # 109
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.
What could the developer do to correct this issue?
- A. Set the logging global preference to true AND check the box for Info under Log Files
- B. Set the logging global preference to true AND set the root log level to debug.
- C. Set the root log level to debug AND check the box for info under Log Files.
Answer: A
NEW QUESTION # 110
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. Set the root log level to debug.
- B. Set the logging global preference to true.
- C. Request that the developer's account be given permission to the Log Center of the current realm.
- D. Check the box for Info under Log Files.
Answer: C,D
NEW QUESTION # 111
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. Set the Content Asset configuration for a customer that is a registered, versus unregistered, user.
- B. Write specific custom code in the Content Asset for a customer that is a registered, versus unregistered, user.
- C. Set the Content Slot configuration so it is based on the system customer group registered, versus unregistered.
- D. Add specific custom messages in Page Designer for a customer that is a registered, versus unregistered, user.
Answer: C
NEW QUESTION # 112
A developer has the following files in template/resources:
account.proierties
weight.unit=kilos
account_en.propierties
weight.unit=stones
account_en_US.propierties
weight.unit= pounds
Using the default locale configuration, what is the current outcome of the page that renders the account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale= Your parcel weighs 10 ${Resource.msg('weight.unit','account')}
- A. Your parcel weighs 10 kilos
- B. Your parcel weighs 10 stones.
- C. Your parcel weighs 10 pounds.
- D. Your parcel weighs 10 undefined.
Answer: B
NEW QUESTION # 113
A Digital Developer is working in a sandbox on a site named test-site using the domain test.demandware.net. The Developer needs to compile a url to make an Open Commerce API (OCAPI) request that returns product information.
By default, which URL format is a proper Open Commerce API for Sandbox?
- A. https://www.test.com/s/test-site/sfc/shop/products/M1355?client_id=aaa...
- B. https://test.demandware.com/dw/shop/products/M1355?client_id=aaa...
- C. https://www.test.com/dw/shop/v18_3/products/M1355?client_id=aaa...
- D. https://test.demandware.net/s/test-site/dw/shop/v18_3/products/M1355?client_id=aaa...
Answer: D
NEW QUESTION # 114
A company manages its regional operations as separate businesses. The regional sites (Site A and Site B) operate with:
* Separate realms
* Deferent code bates
* Different category navigation menus
* Frequent updates on category structure
The requirement from the business is to provide hreflang link tags on category pages pointing to the same category on the other regional site. Example MTML for one of these links as displayed on Site A is:
Which solution should the Architect choose while keeping performance in mind?
- A. Create a new custom attribute on the Category. Populate the attribute with the other entire site URLs corresponding to locales In JSON Format. Use the attribute to display the hreflang link tag.
- B. Create additional locales in al realms create a new custom attribute on the category that is localized. Populate the attribute with the other site URLs and use it to display the hreflang tag.
- C. Create a new custom object type Populate the hreflang mapping for each category and locale in this custom object. Use the custom object to display the hreflang link tag.
- D. Create a custom Business Manager module. Ask the business to maintain the hreflang link tags for each regional site in this Business Manager module.
Answer: A
NEW QUESTION # 115
There is a business requirement that a custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw, order calculateTex hook that is defined in app_storefront_base. How can the developer implement this call?
A)
B)
C)
- A. Option C
- B. Option B
- C. Option A
Answer: B
NEW QUESTION # 116
A business user wants to add a link to a content page from within the body of another content asset. The target content asset ID is: terms-and-conditions.
Which link function generates the correct link?
- A. $url('Page-Show', 'cid', 'terms-and-conditions')$
- B. $httpUrl('Content-Show', 'cid', 'terms-and-conditions')$
- C. $http('Content-Page', 'cid', 'terms-and-conditions')$
- D. $include('Page-Include', 'cid', 'terms-and-conditions')$
Answer: B
NEW QUESTION # 117
Assume the code below is executing:
Business Manager has the configuration:
Active Log category is "root" with log level of "info."
Given this information, what is the beginning of the filename in which the log will be written?
- A. xyz
- B. custominfo-blade
- C. custom-xyz
- D. custom-export
Answer: C
NEW QUESTION # 118
A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.
Which action should the developer take to resolve the problem?
- A. Set the attributes to site-specific replicable.
- B. Change the data type of the attributes.
- C. Create an Attnbute Group with the desired attributes in it.
Answer: C
NEW QUESTION # 119
The Client wishes to implement a third party integration that allows for free shipping If the customer Is a member of the third party service. When the customer's order is exported to the Order Management System (OMS) it also creates a custom object in order to track additional data before sending that order data to the third-party service as well.
What technical concern should the Architect raise to protect performance and stability of the site1?
- A. The custom object quota and related retention or deletion needs.
- B. The customer's order data sent to a third-party and related security needs.
- C. The customer order quota and related retention or deletion needs.
- D. The OMS having order data sent to a thud party and related security needs.
Answer: A
NEW QUESTION # 120
The developer has been given the following business requirement:
The shipping method, Free Standard Ground Shipping' has an exclusion for products *lth category equals or is child of electronics-televisions.' The marketing department has scheduled a sale offering a "Free Standard Ground Shipping" method for brand XyzTv televisions for the next 3 months.
What method accomplishes this while following best practices?
- A. Create an allow list for the existing shipping method by adding a product exclusion for 'brand equals XyzTV" to the exclusion list for "Free Standard Ground Shipping."
- B. Extend the CheckoutShippingservices controller using module.superModule and add an exception for the specified brand
- C. Extend the code in cartridge/models/shipping/shippingMethod.js using module, super Module and add an exception for the specified brand.
Answer: A
NEW QUESTION # 121
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. viewdata is assigned but not declared.
- B. viewdata is a B2C Script reserved name.
- C. viewdata is declared but not assigned.
- D. cache. applyDefauItCache is not a valid middleware.
Answer: A
NEW QUESTION # 122
A client has a single site with multiple domains, locales, and languages. After launch, there is a need for the client to perform offline maintenance. The client would like to show the same maintenance page for each locale.
Which version of aliases,Json file below will accomplish this task?
A)
B)

D)
- A. Option C
- B. Option D
- C. Option A
- D. Option B
Answer: B
NEW QUESTION # 123
......
Full CCM-101 Practice Test and 208 Unique Questions, Get it Now!: https://www.2pass4sure.com/B2C-Commerce-Developer/CCM-101-actual-exam-braindumps.html
The Best CCM-101 Exam Study Material Premium Files and Preparation Tool: https://drive.google.com/open?id=1RgZ7UWao_smTUpUm0ns8GucxI6TsOFpc