Excellent B2C-Commerce-Developer Updated 2021 Dumps With 100% Exam Passing Guarantee
Best way to practice test for Salesforce B2C-Commerce-Developer
NEW QUESTION 29
A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.
An example request URL is:
Which resource_id value enables the appropriate resource?
- A. /inventory_lists/*
- B. /inventory_list_search
- C. /products/*
- D. /inventory_lists/**
Answer: C
NEW QUESTION 30
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 pounds.
- B. Your parcel weighs 10 kilos
- C. Your parcel weighs 10 stones.
- D. Your parcel weighs 10 undefined.
Answer: C
NEW QUESTION 31
A Digital Developer is implementing an Open Commerce API call to add products to a basket. Given the following resource configuration:
Which modification allows the requests to successfully execute?
- A. Change the "read_attributes" value to: "(items)".
- B. Change the "write_attributes" value to: "(+items)".
- C. Change the "methods" value to: ["get", "post"].
- D. Change the "resource_id" value to: "/baskets/*/items".
Answer: D
Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%
2Fcom.demandware.dochelp%2FOCAPI%2F15.6%2Fusage%2FOCAPISettings.html
NEW QUESTION 32
A Newsletter controller contains the following route:
Server.post('Subscribe', function (req,res,next){
var newsletterForm = server.forms.getForm('newsletter');var CustomObjectMgr = require('dw/object/CustomObjectMgr'); if(newsletterForm.valid){ try{ var CustomObject = CustomObjectMgr.createCustomObejct('NewsletterSubscription', newsletterform.email.value); CustomObject.custom.firstName = newsletterForm.fname.value; CustomObject.custom.lastName = newsletterForm.lname.value;-
} catch(e){
//Catch error here
}
}
next();
});
Assuming the Custom Object metadata exists, why does this route fail to render the newsletter template when the subscription form is correctly submitted?
- A. The Custom Object creation is not wrapped in a Transaction.
- B. The Subscribe route is missing the server.middleware.httpt middleware.
- C. The CustomObjectMgr variable should be declare outside of the route.
- D. Custom Objects can only be created by Job scripts
Answer: A
NEW QUESTION 33
A Digital Developer noticed that cartridges in their workspace are NOT executing. The Developer confirms that the cartridges are uploaded to the B2C Commerce server connection's target version directory.
Which action potentially solves this problem?
- A. Set the server connection's target version directory to the active code version.
- B. Set the active code version to use the latest compatibility mode.
- C. Remove invalid characters from the code version's name.
- D. Remove invalid characters from cartridge file and folder names.
Answer: A
NEW QUESTION 34
Given a customer environment configured with only the en_CA locale and the following new requirements:
* To add a new locale for fr_CA
* To localize the address form with the new locale
* To make the localization usable even for new possible French locales, such as fr_FR And given the portion of form XML definition contained in the form file cartridge/forms/default/ address.xml:
What is the right place to add the fr_CA translation for the country field label?
- A. /cartridge/templates/resources/address_fr_CA.properties
- B. /cartridge/forms/resources/address_fr.properties
- C. /cartridge/templates/resources/forms_fr.properties
- D. /cartridge/templates/resources/fr/forms.properties
Answer: A
Explanation:
Explanation/Reference:
NEW QUESTION 35
A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:
How should the Developer change the request?
- A. Change the HTTP method to GET.
- B. Change the URI to /dw/shop/vl8_3/products/creative-zen-v.
- C. Change the HTTP method to PUT.
- D. Include an authentication token in the request.
Answer: A
NEW QUESTION 36
Universal Containers wants to change a content slot that is currently configured to display a content asset. Now they want the slot to display the top five selling boxes for the week.
Which two changes need to be made for this to occur? (Choose two.)
- A. Delete the existing content asset.
- B. Change the slot's configuration template to the appropriate rendering template.
- C. Change the slot's configuration content type to "products."
- D. Change the slot's configuration content type to "recommendations."
Answer: B,D
NEW QUESTION 37
Universal Containers sells physical gift cards for the holidays.
What needs to occur to guarantee the cards will always be available?
- A. Create an inventory record with an unlimited Allocation value.
- B. Create an inventory record with Backorder Handling enabled.
- C. Create a perpetual inventory record.
- D. Create an inventory record with an extremely high Allocation value (i.e., 1 billion certificates).
Answer: B
NEW QUESTION 38
Once the Cache Information tool of the storefront toolkit is enabled, how can a Digital Developer view caching information for a particular component of the page?
- A. Hover over the caching icons now present on the storefront.
- B. Start a pipeline debugging session and view the caching information provided.
- C. Open the Request Logs to view the caching information.
- D. Right-click on the component in UX Studio and view the caching properties of the file.
Answer: C
NEW QUESTION 39
Universal Containers created a site export file from staging in the global export directory. How should the Digital Developer update their sandbox using this staging site export file?
- A. Use the Site Development > Site Import & Export Business Manager module.
- B. Use the Site Development > Import & Export Business Manager module.
- C. Perform a data replication from staging.
- D. Download the site export file and use UX Studio to transfer the data to the sandbox.
Answer: A
NEW QUESTION 40
A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.
An example request URL is:
Which resource_id value enables the appropriate resource?
- A. /inventory_lists/*
- B. /inventory_list_search
- C. /products/*
- D. /inventory_lists/**
Answer: C
NEW QUESTION 41
Given the following snippet:
* Server.append( 'Show' , function (req, res, next) )
According to SFRA, which two options shows a correct way to complete the code above in order to provide data to the response using a controller?
Choose 2 answers
- A. res.render('/content/myPage');
next();
}).append{(
Data:myDataObject
}); - B. res.setViewData ({
data: myDataObject
});
res.render('/content/myPage');
next();
}); - C. res.viewData = {
data: myDataObject
};
res.render('/content/myPage');
next();
}); - D. res.render('/content/myPage',{
data: myDataObject
});
next();
});
Answer: D
NEW QUESTION 42
Which method is efficient and scalable because it uses the product search index rather than searching the database?
- A. ProductVariationModel.getVariants()
- B. ProductAvailabilityModel.isOrderable()
- C. ProductIndexModel.getOrderableProductsOnly()
- D. ProductSearchModel().getProductSearchHits()
Answer: D
Explanation:
Explanation/Reference:
Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/topic/com.demandware.dochelp/ DWAPI/scriptapi/html/api/class_dw_catalog_ProductSearchModel.html
NEW QUESTION 43
A developer has a sandbox configured with a service and its profile and credential.. Now there is a requirement to allow changes to the service URL manually from the sandbox.
Which B2C feature should the developer use to achieve the request?
- A. Use the service status area, set the override URL checkbox, and then populate the URL field with the required one.
- B. Use the service credential URL field
- C. Use a Sitepreference dedicated for the service URL
- D. Use a Globalpreference dedicated for the service URL
Answer: B
NEW QUESTION 44
Which three techniques improve client-side performance in production while following documented best practices? Choose 3 answers
- A. Use inline Javascript.
- B. Combine several images into a single image.
- C. Use one style sheet for each ISML decorator template.
- D. Compress CSS.
- E. Place CSS outside of templates.
Answer: A,B,D
NEW QUESTION 45
When exporting a site catalog from an external system, which file format or formats should a developer use so it can be imported into a B2C Commerce site?
- A. XML only
- B. CSV only
- C. XML and JSON
- D. JSON only
Answer: A
Explanation:
Explanation/Reference: https://trailhead.salesforce.com/content/learn/modules/b2c-import-export/b2c-configure-import- export
NEW QUESTION 46
A Digital Developer must resolve a performance issue with product tiles. The Developer determines that the product tiles are NOT being cached for a long enough period.
Which two methods can the Developer use to verify the cache settings for the product tiles? Choose 2 answers
- A. View the product list page cache settings provided in the Administration > Manage Sites Business Manager module.
- B. Enable cache information in the storefront toolkit and view the cache information for the product tile.
- C. Enable the template debugger to verify the cache times for the producttile.isml template.
- D. View the cache information provided by the Merchant Tools > Technical Reports Business Manager module.
Answer: B,D
NEW QUESTION 47
......
Salesforce Certified B2C Commerce Developer Certification Sample Questions and Practice Exam: https://www.testsimulate.com/B2C-Commerce-Developer-study-materials.html
Real Exam Questions & Answers - Salesforce B2C-Commerce-Developer Dump is Ready: https://drive.google.com/open?id=10XVXKiWcqEH4peSQg9Ryi0UbdiP5JuZ3