[2022年03月16日] 完全版には更新されたのはSalesforce Developers(B2C-Commerce-Developer)認定サンプル問題 [Q44-Q69]

Share

[2022年03月16日] 完全版には更新されたのはSalesforce Developers(B2C-Commerce-Developer)認定サンプル問題

最新のSalesforce B2C-Commerce-Developerリアル試験問題集PDF

質問 44
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?

  • A. Logger.debug('Unexpected service response')
  • B. Logger.error('Unexpected service response')
  • C. Logger.info('Unexpected service response')
  • D. Logger.warn('Unexpected service response')

正解: D

 

質問 45
Server.get('Show', consentTracking.consent, cache.applyDefaultCache, function (req,res,next){ Var Site = require('dw/system/Syte"); Var pageMetaHelpter = require('*/cartridge/scripts/helpers/pageMetaHelper'); pageMetaHelpter.setPageMetaTags(req.pageMetaData, Site.current); res.render('/home/homePage'); Missing code here
}, pageMetadata.computedPageMetadata);
The controller endpoint code snippet above does not work.
Which line of code should the developer use to replace line 6 and correct the problem?

  • A. next();
  • B. return res;C. res.next();
  • C. req.next();

正解: A

 

質問 46
Given the file structure below, which ISML method call renders the customLandingPage template?

  • A. ISML.renderTemplate('content/custom/customLandingPage');
  • B. ISML.renderTernplate('cartridge/ternplates/default/content/custom/customLandingPage');
  • C. ISML('content/custom/customLandingPage');
  • D. ISML.render('content/custom/customLandingPage');

正解: A

 

質問 47
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 rescurce_id value enables the appropriate resource?

  • A. /inventory_list_search
  • B. /inventory-lists/*
  • C. /products/*
  • D. /inventory_lists/**

正解: D

 

質問 48
A developer wants to create in Business Manager extension with the cartridge named plugin_vm_extension.
Which two steps should the developer take for the extension option to show up in Business Manager?Choose 2 answers:

  • A. Add plugin_bm_extension to the cartridge path under business manager cartridge site
  • B. Add the appropiate roles and permission to the user to view the business manager extension.
  • C. Activate a new code version for the Business Manager Site.
  • D. Add plugin_bm_extension to the cartridge path under Storefront cartridge site path.

正解: A,C

解説:

 

質問 49
A client uses tax tables in Business Manager to calculate tax. They recently started shipping to a new country, Italy, and the tax is not being calculated correctly on the Storefront.
What is the likely problem?

  • A. Tax Jurisdiction is missing
  • B. Tax Locale is configured wrong
  • C. Tax Region is configured wrong
  • D. Tax Country is missing

正解: B

 

質問 50
Universal Containers wants to give customers the ability to refine product search results by a product custom attribute, weightCapacity.
Which series of steps should a Digital Developer take to show this refinement on the storefront?

  • A. Define a search refinement for weightCapacity, then clear the page cache segment for Search-Show.
  • B. Define search-suggestion buckets for weightCapacity, then rebuild the product search index.
  • C. Define a sorting rule for weightCapacity, then rebuild the product search index.
  • D. Define a search refinement for weightCapacity, then rebuild the product search index.

正解: D

 

質問 51
Which three techniques improve client-side performance in production while following documented best practices? Choose 3 answers

  • A. Use inline Javascript.
  • B. Place CSS outside of templates.
  • C. Use one style sheet for each ISML decorator template.
  • D. Compress CSS.
  • E. Combine several images into a single image.

正解: A,D,E

 

質問 52
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. Custom Objects can only be created by Job scripts
  • B. The Custom Object creation is not wrapped in a Transaction.
  • C. The Subscribe route is missing the server.middleware.httpt middleware.
  • D. The CustomObjectMgr variable should be declare outside of the route.

正解: B

 

質問 53
A Digital Developer has a site export file on their computer that needs to be imported into their sandbox. How should the developer update their sandbox with the data in this file?

  • A. Upload and import the file using the local option within the Site Import & Export Business Manager module.
  • B. Upload the file to the Impex WebDAV directory and import using the Site Import tool within UX Studio.
  • C. Upload the file to the Static WebDAV directory and import using the Import & Export Business Manager module.
  • D. Connect and import the file using the remote option within the Site Import & Export Business Manager module.

正解: A

 

質問 54
Given a job step configured in the steptype.json, a developer needs to add a custom status code
"No_FILES_FOUND".
Which code snippet will complete the requirement?

  • A. return 'NO_FILES_FOUND
  • B. var status = {success: 'OK'. Message: 'NO_FILES_FOUND'};
    return status;
  • C. this.status = 'NO_FILES_FOUND'
    return this;
  • D. var status = require('dw/system/status');
    return new Status(Status.OK, 'NO_FILES_FOUND');

正解: D

解説:

 

質問 55
The following code ensures that an address ID CANNOT be used if it is already in use by another address in the customer's address book. There is a problem with the code. The error message for an invalid address ID is never shown to the user on the form field.

How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?

  • A. addressForm.invalidateFormElement(addressForm.addressid);
  • B. addressForm.addresssid.invalidateFormElement();
  • C. addressForm.invalidateFormElement("addressid");
  • D. addressForm.addresssid.invalidateFormElement = true;

正解: A

 

質問 56
A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.
Which snippet of code should be used?

  • A. Logger.warn('The current producto is ${myProduct.getID()} with name ${myProduct.getName()}');
  • B. Logger.warn('The current producto is {0} with name {1}', myProduct.getID(), myProduct.getName());
  • C. Logger.warn('The current producto is %s with name %s'), context(myProduct.getID(), myProduct.getName());
  • D. Logger.warn('The current producto is {0} with name {1}'), context(myProduct.getID(), myProduct.getName());

正解: B

 

質問 57
In order to build the SFRA code to a developer sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?

  • A. npm run compile:js, npm run compile:scss, npm run compile:fonts
  • B. npm run compile:js, npm run compile: scss, npm run compile:html
  • C. npm run compile:js, npm run compile:html, npm run clean
  • D. npm run compile:scss, npm run compile:html, npm run clean

正解: A

 

質問 58
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?

  • A. Option B
  • B. Option D
  • C. Option C
  • D. Option A

正解: A

 

質問 59
A merchant asks a developer to create a Cache Partition for the home page, so that when the home page is edited, only the home page is cleaned.
Given the above requirement, where should the developer create that partition in Business Manager?

  • A. Site > Site Preferences > Cache
  • B. Administration > Sites > Manage Sites > Site > Cache
  • C. Operations > Cache > Site
  • D. Operations > Site > Manage Sites > Cache

正解: B

 

質問 60
An instance has custom logging enabled. The log reaches the file size limit.
What happens in this situation?

  • A. The log file is deleted and a new log file is created.
  • B. Logging is suspended for the day
  • C. The log file Rolls over and the oldest log messages are overwritten
  • D. The current log file is archived and a new log file is created.

正解: B

 

質問 61
A Digital Developer is tasked with setting up a new Digital Server Connection using UX Studio in their sandbox.
Which three items are required to accomplish this task? Choose 3 answers

  • A. Business Manager Password
  • B. Instance Hostname
  • C. Keystore Password
  • D. Business Manager Username
  • E. Instance Version

正解: A,B,D

 

質問 62
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. custom-export
  • C. custominfo-blade
  • D. custom-xyz

正解: D

 

質問 63
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. custom-export
  • C. custominfo-blade
  • D. custom-xyz

正解: D

 

質問 64
Universal Containers recently completed updates to their storefront shopping cart page. A problem has been discovered since the update. Users are no longer able to submit coupon codes on this page. Additionally, authenticated users who try to add a coupon are logged out.
The following processing code is found in the Cart.js controller file:

What should the Developer verify to identify the issue?

  • A. The CSRF token is present in the form and is being submitted in the request.
  • B. The form group has the secure attribute set to true.
  • C. The CSRF settings in Business Manager are properly configured.
  • D. The CSRF cartridge is included in the site's cartridge path.

正解: A

 

質問 65
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. Change the slot's configuration content type to "products."
  • B. Delete the existing content asset.
  • C. Change the slot's configuration content type to "recommendations."
  • D. Change the slot's configuration template to the appropriate rendering template.

正解: C,D

 

質問 66
A developer needs to show only car accessories when shoppers use the search term car accessories and exclude technology accessories and household accessories.
Given the above requirement, what is the recommended approach using the Search Dictionaries Dashboard?

  • A. Create a Synonym Dictionary entry: car accessories, household, technology.
    Use search mode First Word.
  • B. Create a Common Phrase Dictionary entry: car accessories.
    Use search mode Exact Match.
  • C. Create a Synonym Dictionary entry: car accessories, household, technology.
    Use search mode Exact Match
  • D. Create a Common Phrase Dictionary entry: car accessories, NOT household, NOT technology.
    Use search mode Exact Match.

正解: B

 

質問 67
Given the file structure below, which ISML method call renders the customLandingPage template?

  • A. ISML.renderTemplate('content/custom/customLandingPage');
  • B. ISML('content/custom/customLandingPage');
  • C. ISML.render('content/custom/customLandingPage');
  • D. ISML.renderTamplate('cartridge/templates/default/content/custom/customLandingPage');

正解: A

 

質問 68
A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an unlimited number of these digital vouchers, this item should be available to sell at all items.
How can a developer use Business Manager to ensure that the gift vouchers are always available?

  • A. Check the perpetual flag in the product inventory record
  • B. Set StockLevel = maxAllocation for the producto.
  • C. Manually set the inventory to a high number.
  • D. Check the Available to Sell (ATS) flag dor the producto set

正解: A

 

質問 69
......

Salesforce B2C-Commerce-Developer問題集で一発合格を目指すならこれ!:https://www.goshiken.com/Salesforce/B2C-Commerce-Developer-mondaishu.html