SFCC Developer Certification Cartes - Quizlet

Download as pdf or txt
Download as pdf or txt
You are on page 1of 60

13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer Certification S'abonner


Étudier Imag

SFCC Developer Certification


Laisser la première évaluation

Définition
Terme 12 / 68

A developer wants to add a link to the My Account page. What is the correct code to
accomplish this?

B) <a href="${URLUtils.url('Account-Show')}">
A) <a href="${URLUtils('Account-Show')}">

${Resource.msg('myaccount','account',null)}</a>
ResourceMgr.getProperties ('myaccount','account',null) </a>

B) <a href="${URLUtils.url('Account-Show')}"> ${Resource.msg('myaccount','account',null)}</a>

C) <a href="${url('Account-Show')}">${Resource.msg('myaccount')}</a>

Consultez gratuitement des solutions tirées de manuels


Affrontez les problèmes les plus difficiles dans vos manuels scolaires à l'aide de solutions
élaborées par des experts.

Rechercher sur Quizlet

Termes dans cette liste (68)

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 1/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer Certification
is importing edits A) Search Settings
Étudier
for a two different sites into D) Promotions
the same sandbox, and is
provided with four different
files.

Which two XML files should


the developer import using
the site-specific Merchant
Tools modules, instead of the
Administration. Choose two
answers:

A) Search Settings

B) Site Jobs
C) System type extensions

D) Promotions

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 2/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer is given a taskCertification
to C) Add component_type_exclusions in the Étudier
layout
implement a new Page json configuration.
Designer layout component
that doesn't accept certain
asset components. How
should the developer achieve
the above task?

A) Add layout_type_exclusion
in the other asset
components json
configuration.
B) Add layout_type_inclusion
in the target components json
configurations.

C) Add
component_type_exclusions
in the layout json
configuration.
D) Add
component_type_inclusion in
the layout json configuration.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 3/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
a form Developer
definition snippet fromCertification
the A) server.forms.getForm('newsletter') Étudier
er.xml file

rsion="1.0"?>

p://www.demandware.com/xml/form/2008-

mid="email" label="Email:" type="string"


ry="true" max-lenght="50" />

e of code creates a JSON object to contain


data?

r.forms.getForm('newsletter')

.forms.getForm('dwfrm_newsletter')

r.form.getForm('newsletter')

r.form.getForm('dwfrm_newsletter')

A developer has a C) HTTP form


specification to integrate with
REST API for retrieving traffic
conditions. The service
expects parameters to be
form encoded. Which service
should the developer
register?

A) POST form

B) SOAP form

C) HTTP form

D) HTML form

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 4/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
Which two items are Certification
B) Payment gateway service response code

Étudier
appropriate content of C) Order failure information
custom logs implement
checkout? Choose 2 answers

A) Customer's password at
post-checkout sing up

B) Payment gateway service


response code

C) Order failure information

D) Transaction's credit card


information

A developer working on a B) Logger.warn('Unexpected service response.')


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 and unexpected
outcome that may produce
side effects?

A)
Logger.debug('Unexpected
service response.')

B) Logger.warn('Unexpected
service response.')

C) Logger.info('Unexpected
service response.')

D) Logger.error('Unexpected
service response.')

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 5/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A merchant requires that anCertification
C) Only content slot configurations can beÉtudier
tied to
existing section of the Site campaigns.
becomes editable from the
Business Manager, so that
they can modify it. Which of
these is an important factor
for a developer to consider
when choosing the
appropriate solution between
a content slot and a Page
Designer component?

A) Only Page Designer


components can be tied to
campaigns.

B) Only content slot


configurations can be
localized for different
languages.

C) Only content slot


configurations can be tied to
campaigns.

D) Only Page Designer


components can be localized
for different languages.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 6/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
Which three configurationsCertification
B) The product is online and searchable.
Étudier
does a developer need to D) The search index is built.

ensure to have a new product E) The Storefront catalog that contains the
visible in the StoreFront? product is assigned to a site.
Choose 3 answers

A) The product has a price.

B) The product is online and


searchable.

C) The product has a master


product.

D) The search index is built.

E) The Storefront catalog that


contains the product is
assigned to a site.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 7/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

he SFCC
customerDeveloper
basket describedCertification
below:
C) Étudier
omer has an existing basket that consists of``dw.ocapi.shop.basket.shipment.beforePATCH``

e items.
D)
f the items is identified as a gift item by an ``dw.ocapi.shop.basket.shipment.beforePOST``
e at the product line item.

veloper needs to write custom code to


e customer basket and then modify the
based upon the items in the cart. If the
contains any gift items, modify the basket
ate a separate shipment for the gift item.

oks are required to make the modification,


ng with ``modifyGETResponse`` and
with ``validateBasket``.

ocapi.shop.basket.modifyGETResponse``

missing hook --``

missing hook -``

w.ocapi.shop.basket.validateBasket``

e the two missing hooks in the middle?


2 answers

capi.shop.basket.shipment.afterDELETE``

capi.shop.basket.shipment.beforeDELETE``

capi.shop.basket.shipment.beforePATCH``

capi.shop.basket.shipment.beforePOST``

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 8/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
are Developer
three logging categories:Certification
D) Logs will not be written. Étudier
ory1, category1.eu, and category1.us. In
ess Manager, category1 is enabled for
N level and no other categories are
gured. All custom log targets are
ed. The code segment below executes.

gger =
er.getLogger("loggerFile","category1.eu");

er.warn("This is a log message");

is the result?

gs will be written to the log file with a


x custom-loggerFile.

gs will be written to the log file with a


x loggerFile.

gs will be written to the log file with a


x customwarn.

gs will not be written.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 9/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer implements anCertification
C) Change the ``"methods" ``value to: ``"["get",
Étudier
Open Commerce API call to "post"]``.
add products to a basket.
Given the following resource
configuration:
json

"resource_id":"/baskets/**",
"methods":["get"],

"read_attributes":"(**)",

"write_attributes":"(**)"

Which modification allows the


request to successfully
execute?

A) Change the
``"write_attributes"`` value
to: ``("items")``.

B) Change the ``"methods"``


value to: ``"["get",
"options"]``.

C) Change the ``"methods"


``value to: ``"["get",
"post"]``.

D) Change the
``"write_attributes"`` value
to: ``("+items")``.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 10/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

perSFCC
wants to Developer Certification
add a link to the My Account B) <a href="${URLUtils.url('Account-Show')}">
Étudier
at is the correct code to accomplish this?
${Resource.msg('myaccount','account',null)}</a>

="${URLUtils('Account-Show')}">

Mgr.getProperties ('myaccount','account',null)

"${URLUtils.url('Account-Show')}">
e.msg('myaccount','account',null)}</a>

="${url('Account-
{Resource.msg('myaccount')}</a>

="${URLUtils.get('Account-Show')}">

e.msg('myaccount','account',request.locale())}

When inspecting the weekly A) Increase the web service time out.

service status report for a C) Update the service to have a faster response
critical internally hosted web time.
service used in the
application, a developer
notices that there are too
many instances of
unavailability. Which two
solutions can reduce the
unavailability of the service?
Choose 2 answers

A) Increase the web service


time out.

B) Modify the code that


makes the request to the
external service to be
wrapped in a try/catch block.

C) Update the service to have


a faster response time.

D) Change the code that sets


the throwOnError attribute of
the service to be true.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 11/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A client sell its product in Certification
D) Add a Boolean custom attribute to the Store
Étudier
single-brand stores as well as system object.
in multi-brand stores. When
shown in the store locator list,
the client wants single-brand
store to have a particular
background colour to
highlight them. Which
Business Manager action
should be completed to allow
the developer to apply
different styling to the single-
brand stores?

A) Create a new
SingleBrandStore custom
object configuration.

B) Adjust the relevant Site


Preference in the Stores
group.

C) Configure the existing


Store custom object type
definition.

D) Add a Boolean custom


attribute to the Store system
object.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 12/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
A Developer
developer Certification
is asked to write a B) Logger.warn('The current product is {0} with
Étudier
log containing the ID and name {1},myProduct.getID(),
name of the product with a myProduct.getName());
variable named myProduct.
Which snippet of code should
be use?

A) Logger.warn('The current
product is %s with name
%s').context(myProduct.getID(),
myProduct.getName());

B) Logger.warn('The current
product is {0} with name
{1},myProduct.getID(),
myProduct.getName());

C) Logger.warn('The current
product is {0} with name
{1}').context(myProduct.getID(),
myProduct.getName());

D) Logger.warn('The current
product is
${myProduct.getID()} with
name
${myProduct.getName()}');

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 13/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A client uses tax tables in Certification
B) Tax Jurisdiction is missing. Étudier
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 Locale is configured


wrong.

B) Tax Jurisdiction is missing.

C) Tax Region is configured


wrong.

D) Tax Country is missing.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 14/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCCcontains
Controller Developer Certification
the following route:
C) The Custom Object creation is not wrapped in
Étudier
a Transaction.
ubscribe', function(req, res, next){

rForm = server.forms.getForm('newsletter');

bjectMgr =
bject/CustomObjectMgr');

orm.valid){

bject =
tMgr.createCustomObject('NesletterSubscription',
m.email.value);

bjectMgr.custom.firstName =
m.fname.value;

bjectMgr.custom.lastName =
m.lname.value;

ewsletter/newslettersuccess');

here

Custom Object metadata exist, why does this


ersist the data submitted in the form beyond the
er lifecycle?

bjectMgr variable should be declared outside of

jects can only be created by Job scripts.

m Object creation is not wrapped in a Transaction.

be route is missing the server.middleware.http

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 15/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer Certification


D) next(); Étudier
get('Show', consentTracking.consent,
plyDefaultCache, function(req, res, next ){

e = require('dw/system/Site');

geMetaHelper =
cartridge/scripts/helpers/pageMetaHelper');

aHelper.setPageMetaTags(req.pageMetaData,
nt);

der('/home/homePage');

ing code here

MetaData.computedPageMetaData);

oller endpoint code snippet above does not


ch line of code should the developer use to
ne 6 and correct the problem?

res;

t();

t();

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 16/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer is working on Certification
a C) Create a new sub-folder in the forms folder.
Étudier
new site for the U.S. based on Name it en_US. Copy existing "address.xml" file in
an existing Canadian Site. the new folder.
One of the requirements is a
change to the address form.
The current Canadian form
has an <options> list with the
correct two-letter
abbreviation for the
provinces, The U.S.
requirements are to:

· Have an <options> list with


the correct two-letter
abbreviation for the states in
place of the province field.

· Set U.S. site locale.

· Add the option list field


definition to the XML file.

How should the developer


set up the files before making
the required edits?

A) Create a copy of existing


``address.xml`` file in the
``default`` folder. Rename
that file to
``address_US.xml``.

B) Create a new sub-folder in


the forms folder. Name it
``US``. Copy existing
``address.xml`` file in the
new folder.

C) Create a new sub-folder in


the forms folder. Name it
en_US. Copy existing
"address.xml" file in the new
folder.

D) Create a copy of existing

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 17/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

"address.xml" file in the


SFCC Developer
default "folder". Certification
Rename that Étudier

file to "address_en_US.xml"

A Storefront is designed so D) <isdecorate> ... </isdecorate>


that multiple pages share a
common header and footer
layout. Which ISML tag should
a developer use on the
templates for these pages to
avoid code repetition in the
most effective way?

A) <isreplace> ... </isreplace>

B) <iscontent> ... </iscontent>

C) <isinclude> ... </isinclude>

D) <isdecorate> ...
</isdecorate>

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 18/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer needs to showCertification
A) Create a Common Phrase Dictionary entry: "car
Étudier
only "car accessories" when accessories". Use search mode "Exact Match".
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 Common Phrase


Dictionary entry: "car
accessories". Use search
mode "Exact Match".

B) Create a Common Phrase


Dictionary entry: "car
accessories, NOT household,
NOT technology". Use search
mode "Exact Match".

C) Create a Synonym
Dictionary entry: "car
accessories, household,
technology". Use search
mode "First Word".

D) Create a Synonym
Dictionary entry: "car
accessories, !household,
!technology". Use search
mode "Exact Match".

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 19/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer is asked to Certification
C) Use local templates includes.
Étudier
improve the maintainability of D) Implement template decorators paired with
a page by reducing its code replace tags.
repletion.

What are two techniques the


developer should implement
to achieve this? Choose 2
answers.

A) Embed partial files using


ISML expressions

B) Required and render


template with <isscript> tags.

C) Use local templates


includes.

D) Implement template
decorators paired with
replace tags.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 20/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer Certification


C) module.exports = server.exports(); Étudier
nder (context) {

d code here

_headline = content.text_headline;

text_subline) {

_subline = content.text_subline;

_alignment=content.text_alignment=='Left' ?
er';

related code

experience/components/assests/categorytile').
del).text;

code snippet above, what should be added


ode so it can be used for page component

nder = render;

exports.render = render;
exports = server.exports();

exports = render;

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 21/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer Certification
must configure A) client_id
Étudier
permissions for an Open B) resource_id
Commerce API resource on a
sandbox instance that
currently does not have any
permissions configured.
Which two configurations
properties are required to
enable access to the
resource? Choose 2 answers

A) client_id

B) resource_id

C) read_attributes

D) version_range

In order to build the SFRA A) npm run compile:js, npm run compile:scss, npm
code to a developer sandbox run compile:fonts
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

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 22/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer Certification
has the following A) Your parcel weighs 10 stones. Étudier
files in "template/resources":

account.properties

weight.unit=kilos

account_en.properties

weight.unit=stones

account_en_US.properties

weight.unit=pounds

Using the default locale


configuration, what is the
current outcome of the page
that render the "account.isml"
template snippet below when
visiting the Storefront with the
English for Canada (en_CA)
locale?

Your parcel weighs 10


${Resource.mgs('weight.unit',
'account')}.

A) Your parcel weighs 10


stones.

B) Your parcel weighs 10 kilos.

C) Your parcel weighs 10


pounds.

D) Your parcel weighs 10


undefined.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 23/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer Certification
wants to create a A) Add plugin_bm_extension to the cartridge path
Étudier
Business Manager extension under business manager cartridge site path
with the cartridge name B) Add the appropriate roles and permission to
"plugin_bm_extension". Which the user to view the business manager extension.
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 path

B) Add the appropriate roles


and permission to the user to
view the business manager
extension.

C) Add plugin_bm_extension
to the cartridge path under
Storefront cartridge site path.

D) Active a new code version


for the Business Manager site.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 24/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer Certification
wants to use an D) A POST request to the Stores Data OCAPI
Étudier
external application to
manage their stores
information (such as opening
hour, and so on) changes in
their B2C Commerce Staging
instance as soon as they are
saved. What is the
appropriate technique the
developer should perform to
allow the merchant to create
a new store in this scenario?

A) An UPDATE request to the


Stores Data OCAPI

B) A PUT request to the Stores


Data OCAPI

C) A PATCH request to the


Stores Data OCAPI

D) A POST request to the


Stores Data OCAPI

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 25/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
Consider Developer
the following Certification
C) The Search Refinement definition is not Étudier
set up
information:
for the Root category.
· A merchant has this three-tier
category structure setup in
the Storefront catalog.

New Arrivals > Women >


Clothing

· The category name Clothing


has all the clothing items for
Women and is merchandised.

· A Search Refinement named


Newness is correctly
configured for the Clothing
category.

When a merchandiser views


the Clothing category, the
Search Refinement appears
and works as expected not
see the Search Refinement
when searching for Clothing
via the Storefront search.
What is the reason?

A) The Search Refinement


definition is not set up for the
New Arrivals category.

B) The Search Refinement


definition is not set up for the
Women category.

C) The Search Refinement


definition is not set up for the
Root category.

D) There are conflicting


Search Refinement definitions
for Clothing and one of its
parent categories.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 26/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A client has two B2C Certification
D) Add a Site-specific custom attribute to the
Étudier
Commerce site in the same Product system object type.
instance: one for the U.S.
market, the other for the
European market. The
products they make are sold
with different safety
certificates based on the
world location. For example,
they sell a smartphone with
certificate A in the U.S. and
certificate B in Europe, a
hairdryer with certificate C in
the U.S. and certificate D in
Europe, and more. How
should a developer allow the
merchant to display the
appropriate certification logo
in the product details page,
depending on the customer's
location?

A) Add an Image custom


preference to the
SitePreference system object
type.

B) Add a Localizable custom


attribute to the Certificate
system object type.

C) Add a Localizable custom


preference to the
SitePreference system object
type.

D) Add a Site-specific custom


attribute to the Product
system object type.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 27/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
Recent code changes to anCertification
C) Check that the correct code version is Étudier
existing cartridge do not selected.

appear correctly on a D) Check the Storefront site cartridge path.


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 the Business


Manager site cartridge path.

B) Check that the search


index was recently rebuilt.

C) Check that the correct


code version is selected.

D) Check the Storefront site


cartridge path.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 28/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
Given a file Developer Certification
in a plug-in cartridge D) A middleware script Étudier
with the following code:

js

'use strict';

var base = module.superModule;

function applyCustomCache(req,
res, next){

res.cachePeriod = 6;

// eslint-disable-line no-param-
reassign

res.cachePeriodUnit = 'hours';

// eslint-disable-line no-param-
reassign

next();

module.exports = base;

module.export.applyCustomCache
= applyCustomCache;

What does this code extend?

A) A controller

B) A model

C) A decorator

D) A middleware script

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 29/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A client has Certification
a custom object C) Create the custom object definition in staging
Étudier
definition and the as Replicable.
requirement that occasional
data changes in staging also
need to exist in production.
Which task should the
developer perform to meet
this requirement when setting
up the custom object?

A) Create two copies of the


custom object in staging and
set Sharing = True.

B) Create the custom object


definition in production as
Replicable.

C) Create the custom object


definition in staging as
Replicable.

D) Create the custom object


definition in staging as
Shared.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 30/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
lient Developer
wants to Certification
differentiate their D) Pass the "Store" system object to the template,
Étudier
nobrand stores with a especial icon so that custom properties are available.
en shown in the store locator. The
ormation is saved in a true/false
tom attribute for each Store object in
rchant Tools. How should the
veloper follow SFRA best practices to
pose this data for rendering?

Extend the existing "Stores-Find"


ntroller with a new middleware
ction that performs the query.

Use the "module.superModule"


ctionality and the "call" method to add
ew property to the Store model.

Add an <isscript> tag to the template,


d call
oreMgr.searchStgoresByCoordinates()".

Pass the "Store" system object to the


mplate, so that custom properties are
ilable.

A merchant has a requirement A) Slot Configuration

to render personalized D) Rendering Template


content on a category page
via a Content Slot that targets
VIP high-spending customers
during a specific promotional
period. Which two items
should the developer create
to achieve the specified
requirements? Choose 2
answers

A) Slot Configuration

B) Page Template

C) VIP Customer Group

D) Rendering Template

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 31/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
Which three operations Certification
A) Use the script API to generate data for the
Étudier
should be done in a view.

controller? Choose 3 answers


B) Use a middleware functions when applicable.

D) Use the model needed for the view.


A) Use the script API to
generate data for the view.

B) Use a middleware functions


when applicable.

C) Create a plain JavaScript


object representing a system
object.

D) Use the model needed for


the view.

E) Generate the response as


JSON on HTML.

A retailer notices that the C) Storefront Toolkit


Account Addresses page is
showing the wrong shopper's
address. Which tool should
the developer start with to
identify the issue?

A) Code Profiler

B) Pipeline Profiler

C) Storefront Toolkit

D) Reports and Dashboard


module

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 32/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A client that Certification
sells to multiple A) Apple Pay Étudier
countries in Europe needs to
disable Apple Pay for
Denmark. Which Business
Manager module is used to
achieve this requirement?

A) Apple Pay

B) Locale Payments

C) Payment Processors

D) Payment Methods

Business Manager has the A) custom-products


configuration:
· Active Log category is "root"

· Log level of INFO

The code below executes

js

val log =
Logger.getLogger("products",
"export");

log.info("This is important
information");

Using this information, what is


the beginning of the filename
in which the log will be
written?

A) custom-products

B) info-export

C) products

D) custom-export

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 33/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
Given theDeveloper
requirements:
Certification
B) Create a custom attribute on the product
Étudier
· To show the washing system object and set it as localizable.
instructions for a clothing
product on a dedicated
section on the detail page

· Washing instructions come


from the product information
manager (PIM)

· To have this attribute


available to localize in the
Storefront

Which actions meets these


requirements?

A) Add a custom attribute for


each locale.

B) Create a custom attribute


on the product system object
and set it as localizable.

C) Add a resource file for


every locale for which the
attribute needs to be
translated.

D) Set the product system


object type as localizable.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 34/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer Certification
set up a new site C) Create a new site with Taxation set to Gross,
Étudier
with Taxation: Net. However, then delete the old site.
the business requirements
changed, and the site now
needs to be Taxation: Gross.
The Business Manager
interface does not give this
option. Which sequence of
steps is necessary to change
the site to gross taxation?

A) Unlock the site


preferences and the change
the Taxation setting to Gross.

B) Make sure that the


developer has "Administrator"
access, then change the
Taxation setting to Gross.

C) Create a new site with


Taxation set to Gross, then
delete the old site.

D) Change the global setting,


"Enable Taxation Methods" to
true, then change Taxation
setting to Gross.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 35/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer cannot createCertification
a D) Create an Attribute Group with the desired
Étudier
custom object in Business attributes in it.
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) Change the data type of


the attributes.

B) Set the attributes to site-


specific replicable.

C) Sort the attributes in the


custom object type.

D) Create an Attribute Group


with the desired attributes in
it.

A merchant asks a developer D) Administration > Sites > Manage Site > Site >
to create a Cache Partition for Cache
the home page, so that when
the home page is edited, only
the home page cache is
cleaned. Given the above
requirement, where should
the developer create that
partition in Business
Manager?

A) Operations > Cache > Site

B) Site > Site Preferences >


Cache

C) Operations > Site >


Manage Sites > Cache

D) Administration > Sites >


Manage Site > Site > Cache

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 36/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
Which three Certification
object types can C) Images and other static assets
Étudier
a developer import using the D) Folders

Merchant Tools > Content > E) Content assets


Import & Export module in
Business Manager? Choose 3
answers

A) Content Slots

B) Products

C) Images and other static


assets

D) Folders

E) Content assets

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 37/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer is writing a Certification
B) Use the Session class, and its additional Étudier
class
server side script that needs references and attributes, in the B2C Commerce
to maintain state across call. API.
The persistent information
needed include 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 the Session class, and
its additional class references
and attributes, in the B2C
Commerce API.

C) Use a client-side cookie to


store the information for the
session duration.

D) Use a SFRA controller.


Because it runs server-side,
the state is automatically
maintained.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 38/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
re SFRA bestDeveloper Certification
practices and protect againstB) In the middleware chain on the controller post
Étudier
forgery, the developer introduce CSRF route.
eneration in the customer to the address

action="submit">

{dw.web.CSRFProtection.getTokenName()}"

{dw.web.CSRFProtection.generateToken()}">

t of the Form fields>

ement CSFR protection when the form is


ed, the developer needs to introduce the
lidation using one or both of these
s as applicable:

eRequest

eAjaxRequest

n the code does the developer need to


CSRF validation check?

e model function that persist the form data.

middleware chain on the controller post

e controller function that displays the form.

e controller function that hands the


ed form.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 39/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
Given a job Certification
step configured in D) var Status = require('dw/system/Status');
Étudier
the steptype.json that calls a return new Status(Status.OK, 'NO_FILES_FOUND');
script module, a developer
needs to add a custom status
code "NO_FILES_FOUND" in
the script. The status does not
represent an error condition.
Which code snippet will
complete the requirement?

A) this.status =
'NO_FILES_FOUND';

return this;

B) var status = {success: 'OK',


message:
'NO_FILES_FOUND'};

return status;

C) return 'NO_FILES_FOUND';

D) var Status =
require('dw/system/Status');

return new Status(Status.OK,


'NO_FILES_FOUND');

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 40/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A merchant Certification
wants customers A) Check the perpetual flag in the productÉtudier
to be able to order gift inventory record.
vouchers via their site. Since
they can issue an unlimited
number of these digital
vouchers, this item should be
available to sell at all time.
How can a developer use
Business Manager to unsure
that the gift vouchers are
always available?

A) Check the perpetual flag in


the product inventory record.

B) Check the Available to Sell


(ATS) flag for the product set.

C) Set StockLevel =
maxAllocation for the
product.

D) Manually set the inventory


to a high number.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 41/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
Given Developer
the following ISML Certification
D) products Étudier
example, how should a
developer reference the product
object in the current iteration of
the basket?

js

<isloop
items="${pdict.Basket.products}"
var="products"
status="loopstatus">

...

</isloop>

A)
pdict.Basket.products[loopstatus]

B) loopstatus.product

C) pdict.product

D) products

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 42/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A merchant Certification
has a requirement B) Create a unique product called "Our TopÉtudier
to sell a combination of four Combo" and add the four products into the
existing products with a Product Bundles tab.
unique product ID. This
collection will be know as
"Our Top Combo" and is
based on the merchant's
trading information that
shows this combination to be
in high demand.

What does the developer


need to do next to fulfil this
requirement?

A) Create a Product Set


called "Our Top Combo" and
add the products into the set.

B) Create a unique product


called "Our Top Combo" and
add the four products into the
Product Bundles tab.

C) Create a Content Slot with


Content Type = Product and
add the four component
products into the that slot.

D) Create a recommendation
rule associating the four
products as a
recommendation group.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 43/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
A Developer
developer Certification
needs to update B) { "hooks": "./cartridge/scripts/hooks.json"Étudier
}
the package.json file that it
points to the hook file for a
cartridge, using the hooks
keyword. Which snippets work
correctly when added to the
file?

A) { hooks:
./cartridge/scripts/hooks.json
}

B) { "hooks":
"./cartridge/scripts/hooks.json"
}

C) { "hooks":
"./scripts/hooks.json" }

D) { hooks:
./scripts/hooks.json }

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 44/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
Given theDeveloper
following Certification
D) Task B, then A, then C Étudier
conditions:

· Site export file with a copy


of the Storefront data for a
custom site

· Sandbox with the custom


site code, but no Storefront
data

· Requirement for a working


copy of SFRA for a
development reference

A developer is assigned the


following Business Manager
Task:

· A. Import the custom Site


using Site Import/Export

· B. Import the SFRA Demo


Sites using Site Import/Export

· C. Rebuild the custom Site


search indexes

In what sequence should the


developer perform the tasks,
so that the custom Site
displays the products as
intended?

A) Task A, then C, then B

B) Task A, then B, then C

C) Task B, then C, then A

D) Task B, then A, then C

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 45/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
An instance has custom Certification
A) Logging is suspended for the day. Étudier
logging enabled. The log
reaches the file size limit.
What happens in this
situation?

A) Logging is suspended for


the day.

B) The log file is deleted and


a new log file is created.

C) The current log file is


archived and new log file is
created.

D) The log file rolls over and


the oldest log messages are
overwritten.

ubscription custom object that has a key attribute


A) var CustomObject
name =
what is the correct syntax to create the dw.object.CustomObjectMgr.createCustomObject
on custom object?
('NewsletterSubscription',
newsletterForm.email.value);
=
jectMgr.createCustomObject('NewsletterSubscription',
l.value);
=
jectMgr.createNewsletterSubscription('email',
l.value);
=
jectMgr.createCustomObject(newletterForm.email.value,
on');

=
jectMgr.createCustomObject('NewsletterSubscription',
m.email.value);

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 46/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer has a sandboxCertification
B) Use the service credential URL field. Étudier
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 the 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.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 47/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A merchant Certification
has a content slot C) Change the content type for the slot Étudier
on a page that currently configuration.
displays products based on
the top sellers for the current
week. They wish to change
this functionality and, instead,
have the slot render a specific
content assets so that the
content experience is more
personalized to the visitors.
Which two actions are
necessary to make this
change? Choose 2 answers

A) Delete the existing content


slot and create a new one.

B) Change the rendering


template in the slot
configuration.
C) Change the content type
for the slot configuration.

D) Change the default setting


in the slot configuration.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 48/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
Given theDeveloper Certification
following snippet:
B) js
Étudier
js
res.render('/content/myPage ', {

server.append('Show ', data: myDataObject

function (req, res, next) {


});

next();

According to SFRA, which });

two options show a correct


way to complete the code C) js

above in order to provide res.setViewData({

data to the response using a data: myDataObject

controller? Choose 2 });

answers.
res.render('/content/myPage ');

next();

A) js
});
res.render('/content/myPage
');

next();

}).append({

data: myDataObject

});

B) js

res.render('/content/myPage ',
{

data: myDataObject

});

next();

});

C) js

res.setViewData({

data: myDataObject

});

res.render('/content/myPage
');

next();

});

D) js

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 49/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

res.viewData = {

SFCC Developer Certification


data: myDataObject
Étudier

};

res.render('/content/myPage
');

next();

});

A developer has custom A) In Custom Log Setting, check the DEBUG box
debug statements in a script, for Select Log Levels Written to Files.
but the messages are not
showing up in the StoreFront
Toolkit Request Log. Which
step needs to be completed
to get the messages to
appear in the Request Log?

A) In Custom Log Setting,


check the DEBUG box for
Select Log Levels Written to
Files.

B) In Site Preferences, check


the box for Enabled custom
logging in Request Log.

C) In Custom Log Setting,


activate the logging category
at DEBUG level.

D) In Global Preferences,
check the box for Enable
custom logging in Request
Log.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 50/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
The developer Certification
created a new B) The category is offline.
Étudier
Storefront category in D) The category does not contain available
storefront-catalog-m-en, but products.
when viewing the Storefront
site, the category is not
visible. What are two possible
reasons? Choose 2 answers

A) The category is not sorted.

B) The category is offline.

C) The Storefront catalog is


offline.

D) The category does not


contain available products.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 51/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
Given theDeveloper
requirements:
Certification
D) Create a service and implement the mockFull
Étudier
· To integrate with an external callback and set the service mode to mock.
web service using HTTP
requests.

· To create a service for this


purpose with the Service
framework using the
LocalServiceRegistry class.

· To test the service before


the external service provider
makes the API available.

Which solution allows the


developer to satisfy the
requirements?

A) Create two services, one


mock and the real one, and a
Sitepreference that enable
the mock or the real one.

B) Create a service and


implement the mockFull
callback and a
sistepreference to enable or
disable the mock response.

C) Create a service and a


Sitepreference that induce
the service to respond with a
mock response using a
conditional.

D) Create a service and


implement the mockFull
callback and set the service
mode to mock.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 52/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
method Developer
is efficient Certification
and scalable because D) ProductSearchModel().getProductSearchHits()
Étudier
the product search index rather than
ng the database?

ductAvailabilityModel.isOrderable()

ductVariationModel.getVariants()

tIndexModel.getOrderableProductsOnly()

ductSearchModel().getProductSearchHits()

{
A) Allows external application to update coupons.
"resource_id":
"/sites//coupons/",

"methods": [

"put"

],

"read_attributes": "(**)",

"write_attributes": "(**)"

Given the above OCAPI


definitions, which permissions
apply?

A) Allows external application


to update coupons.

B) Allows external
applications to create,
update, and delete coupons.

C) Allows external
applications to create
coupons

D) Allow external applications


to create, update, and delete
both coupons and coupon
codes.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 53/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

edsSFCC
to checkDeveloper Certification
for product inventory in all inventory
B) resource_id Étudier
pen Commerce API. An example request URL is:

emandware.net/dw/data/v18_3/inventory_lists/ecom-
ct_invntory_records/00883408601

should the developer check in the OCAPI settings


ppropriate resource is enabled?

ory

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 54/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer working on a Certification
B) Create a replicable, site-specific CustomÉtudier
multi-country site is asked to Object with the custom data for each country.
store country-specific data
that drives the creation of a
country selector. Examples of
the data stored are:

· Pricebook to be used.

· Images URL for country flag.

The data used in staging also


applies in production, but
only for this site. Which
approach should the
developer take to implement
these requirements?

A) Extend the Locale System


Object to contain the custom
data for each country.

B) Create a replicable, site-


specific Custom Object with
the custom data for each
country.

C) Create a replicable,
organization scope Custom
Object with the custom data
for each country.

D) Create site-specific
content assets to store the
data for each country.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 55/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC
stomer Developer
environment Certification
configured with only the
A) Étudier
le and the following new requirements:
/cartridge/templates/resources/address_fr_CA.pr
new locale for fr_CA
operties
e the address form with the new locale

e localization usable even for new possible


ales, such as fr_FR

the portion of form XML definition contained


file cartridge/forms/default/address.xml:

on"1.0"?>

p://www.demandware.com/xml/form/2008-

d="country" label="label.input.country"
g" mandatory="true"/>

right place to add the fr_CA translation for


y filed label?

templates/resources/address_fr_CA.properties

e/templates/resources/forms_fr.properties

ge/forms/resources/address_fr.properties

ge/templates/resources/fr/forms.properties

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 56/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Manager
Business Developer
has the Certification
A) log.warn("This is a warn message");
Étudier
configuration:
B) log.error("This is a error message");
· Active Log category is "root"

· Log level of WARN

The code below is executing:

var log =
Logger.getLogger("products");

Using this information, which


two logs will be written?
(Choose two)

A) log.warn("This is a warn
message");

B) log.error("This is a error
message");

C) log.info("This is an info
message");

log.debug("This is a debug
message");

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 57/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer Certification
customized the C) Replace the Cart-Show controller routeÉtudier
in
Cart-Show controller route client cartridge and add dataLayer object to the
with a LINK cartridge that viewData variable. Ensure that the client cartridge
adds social media data. There is on the left of the LINK cartridge in cartridge
is a new requirement to add a path.
dataLayer object to the Cart-
Show controller route. How
should the developer achieve
this to ensure that no code
change will be needed if the
client decides to remove the
LINK cartridge?

A) Replace the existing


viewData variable with the
dataLayer object in the Cart-
Show controller route.

B) Replace the Cart-Show


controller route in client
cartridge and add dataLayer
object to the viewData
variable.

C) Replace the Cart-Show


controller route in client
cartridge and add dataLayer
object to the viewData
variable. Ensure that the client
cartridge is on the left of the
LINK cartridge in cartridge
path.

D) Append Cart-Show
controller route in the client
cartridge and add dataLayer
object to the viewData
variable.

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 58/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

SFCC Developer
A developer configures theCertification
A) Username/Password
Étudier
dw.json file and needs to fill in B) Code Version

the necessary parameters to E) Hostname


complete the task. Which
three parameters are required
when using npm scripts?
(Choose three)

A) Username/Password

B) Code Version

C) Site ID

D) CSRF Token

E) Hostname

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 59/60
13/09/2022 12:09 SFCC Developer Certification Cartes | Quizlet

https://quizlet.com/mx/659256103/sfcc-developer-certification-flash-cards/ 60/60

You might also like