SFCC Digital Developer Exam - Confirmed Topics

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

C; D

(Choose 2) Slot content types to configure a content slot with featured products. (A) Content Asset (B) HTML (C) Product (D) Recommendation

alphabetically; cache hit rate Note: To generally ensure better cache hit rates, which means better performance, we recommend to always build OCAPI URLs in client applications with the query parameters in alphabetic sorting order.

OCAPI self-generated URLs have the query parameters always sorted ________________. This deterministic sorting order ensures a better _________ ______________ _____________.

cache_time

The cache time (in seconds) is specified by integer property __________________.

loggableCategories

The category is used in ____________ config to turn on logging; see app/assets/config/main.js for information on using ___________ and categories

$url('Search-Show', 'cgid', 'mens-jeans')$

To add a link to a category page (ID is: `mens-jeans`) in a content asset. Which link function will generate the correct link? (A) $url('Search-Show', 'cgid', 'mens-jeans')$ (B) $httpUrl('Search-Show', 'cid', 'mens-jeans')$ (C) $include('Products-Show', 'cgid', 'mens-jeans')$ (D) $url('Products-Show', 'cid', 'mens-jeans')$

True

True or False: You can view generated logs by navigating in Business Manager to Administration > Site Development and clicking the link for Log files. The log file name for a web service always starts with "service" then the log prefix set in the web service profile, and then internal information. For example: service-logprefix-blade2-4-appserver-20150206.log.

Language; locale; Translation

_______________ is the spoken and written language in a geographical area, while ___________ is a specific geographical or cultural region. ______________ is the process of converting written text and spoken words into another language.

86400; 24 hours

he minimum configurable cache time is 0 seconds ( but this must be configured explicit); the maximum is ___________seconds (______ __________).

Yes

possible to query the current selections by calling getSelectedValue(ProductVariationAttribute) or isSelectedAttributeValue(ProductVariationAttribute, ProductVariationAttributeValue)?

util/modules

Where are SiteGenesis custom tags located?

The cache times are configured per resource in the Open Commerce API settings.

Where are the cache times with respect to OCAPI configured within Business Manager?

WebDAV, FTP, SFTP

Which are used for asynchronous file transfer to/from the Demandware platform?

Almost any JavaScript-related error gets logged in the ' customerror_* ' log files, including errors from Digital scripts and controllers

Which log file does an error from a javascript controller get logged to?

locale

A ____________represents a specific geographical, political or cultural region. Commerce Cloud Digital supports multiple locales for both the Business Manager user interface, and its underlying storefront site data.

A

A Developer is converting a site from using pipelines to using controllers. As a temporary fix, they call the Account-Login pipeline from a new controller and return to the new controller after login. The Account-Login pipeline has a login form. Choose one to accomplish this? (A) Convert the Account-Login pipeline to a controller. (B) Use the Pipeline.execute() method to call the Account-Login pipeline. (C) Use the Pipeline.call() method to call the Account-Login pipeline. (D) Add a URL Redirect to the Account-Login pipeline

locale

A _______________ is defined by the language and country and determines the settings for numbers, dates, time, and currency.

(1) Client (Browser) Application Caches (2) Proxy caches

As a REST API based on HTTP, the Open Commerce API enables developers to build / leverage what two types of caching?

Because they can't be disabled

Avoid use of Ti.API.info and Ti.API.debug. Why?

templates/resources/message.properties templates/resources/message_en.properties templates/resources/message_en_US.properties templates/resources/message_de_DE.properties

In Commerce Cloud Digital, resources are associated with the templates of a cartridge. These bundles consist of properties files with a common name defined in the template/resources directory of a site cartridge. What are four examples?

(1) Administrator: the administrator selects a preferred locale for the Business Manager display language. The interface shows a list of possible languages. The administrator can assign the preferred locale when creating a new user profile, or editing an existing profile. (2) User: to select a different Business Manager display language, the user edits their user profile. The new locale displays for that user until the user selects another language.

Business Manager supports multiple languages in both its user interface and in the underlying data that is created, edited, and displayed within it to be used in the storefront. You can configure locales separately for: Viewing the application Managing the data in a target language For example, a user could view English products and content using a Japanese Business Manager. There are two ways to select the Business Manager user interface locale: What are they?

Request time includes time spent on network, while processing time doesn't

In Site > Analytics > Technical Reports, what is the difference between request time and processing time?

Merchant Tools > Ordering > Payment Methods

Client is using apple pay and wants to remove the payment for locale de, where is this done in the BM?

(1) Identify which components of your storefront require localization, for example, content assets, products, product attributes and currency. (2) Determine how to architect localization for your business: processed using localized templates or properties files, depending on your approach. (3) Identify which languages you support and how they interrelate. For example, when creating US and Spanish storefront versions, you might want to use the same underlying business objects, so that when in the storefront, a user can select a location, which specifies to Digital the file set from which to select. Alternatively, when supporting multiple European languages, you might want to offer products that are unique for a particular country, thus requiring unique catalog data for each locale. (4) Configure locale settings in Business Manager at the organization and site level. There are some situations, however, where localization isn't possible. See Localization Considerations. .

Commerce Cloud Digital is localizable, from business objects (for example, catalogs, products, and attributes) to the storefront. To localize your Digital site, you need to do the following four things:

Functionality Enables you to use localize product descriptions, names, codes, and customer-facing documents, such as email, reports, pack sheets, and shipping labels Details Using Customer Service Center, a Customer Service Representative can change the language/locale that displays and prints.

Describe the functionality and details of the localization element Product Information?

lowest

In case of a single request utilizing the expand parameter the Open Commerce API populates the Cache-Control header with the _____________ caching time of the requested resources.

Library class which provides methods for retrieving messages from properties resource bundles which contain locale-specific strings. When your program needs a locale-specific String, it loads it from the resource bundle that is appropriate for the user's current locale. In this way, the program code is largely independent of the user's locale.

Describe the class Resource.

Functionality Enables you to configure the locale and time zone that was configured as the base locale. Details The combination of language and country is the base locale. For example, for the French language, you can specify the base locale as French - France, French - Belgium, and French - Canada, which allows for the locale-specific components associated with the French language. Note: If a base locale other than English, French, or German is selected, then English is the base language, however, the locale-specific components, such as numbers, dates, and currency are in the format of the selected locale.

Describe the functionality and details of the localization element Base Locale?

Functionality Supports localizing custom attributes, including attribute labels and their associated choice values. Details Order files imported from a Digital online storefront support localized item attribute choice values. Order Management web services retrieve localized choice value attributes and values when orders are created through Customer Service Center. Order Management displays localized custom choice value attributes on email templates, reports, and pack sheets.

Describe the functionality and details of the localization element Custom Attributes?

Functionality Generates localized customer-facing documents, such as email templates, reports, pack sheets, and labels, which are based on the specified locale in the customer's order. Details Non customer-facing documents, such as pick sheets, are viewed in the base locale or the user profile locale.

Describe the functionality and details of the localization element Customer-Facing Documents?

Functionality Enables you to select a country so the address format for that country displays when adding an address for a new customer, adding or changing a billing, payment, or shipping address on a order or invoice, or sending a catalog to a customer. Details Order Management provides global address support for customer billing, payment, and shipping addresses for multiple countries.

Describe the functionality and details of the localization element Global Addresses?

Functionality Supports all possible currencies for processing orders, reports, payments, and collections. Details Two- and three-character country codes as used per the ISO 4217 standard. Examples are USD for U.S. Dollars and EUR for European Euros. All item pricing, tax, and shipping method rates originate from Digital and are in the currency of the order in Order Management. Note: When viewing summary totals in the Queues in the Administration module, each order's currency is converted to the base system currency using the exchange rate lookup table.

Describe the functionality and details of the localization element Multiple Currencies Documents?

Functionality Set the time zone in a preferred locale using the Profile link on the Home page of Customer Service Center, Fulfillment Center, and Retail Center. This locale overrides the base locale. Universal Time Code (UTC) is the primary time standard by which the world regulates clocks and time. Details Order Management provides the time zone that is based on the base locale. Note: As of Release 4.1.13, Universal Time Code (UTC) is the standard for new clients. For existing clients, Eastern Time is the standard. Order Management's user interface (UI) converts dates and times for display according to the selected user locale. When accessing the database directly (via API calls or import/export), you must be aware of the system time format.

Describe the functionality and details of the localization element Time Zones and UTC?

Functionality Enables you to configure a preferred locale (language and country) and time zone in a user profile. Details This enables you to specify a locale or time zone that is different from the base locale. You can click the Profile link in Customer Service Center, Fulfillment Center, and Retail Center home pages.

Describe the functionality and details of the localization element User Profiles?

currency

Digital includes current world ___________ data. There is no need to add/edit/remove currencies through Business Manager. You can, however, define how a ______________ displays for a locale in Business Manager organization preferences.

SO 3166-1-alpha-2

Digital supports two-character country codes per I___________ only. Digital doesn't support other standards, such as 3-letter codes. Using them might result in some features no longer working correctly.

Customer address and order address Tax jurisdictions Store locator Rule evaluation of a dynamic customer group Shipping address exclusion Product lists Geolocations

Digital uses country codes for various features, such as:

No

Does ProductVariationModel have a constructor?

Avoid putting strings in images because these are not localized _L('Text String.') is what to use in controllers for any displayed strings to the user Avoid defining strings in the xml file, instead use tss file In tss files, use textid or titleid if available, if not then use L('_Text_String_'), can't use _L() in tss files log output doesn't need to be localized Don't concatenate localized strings in code: Strings should be full sentences; if you need to insert a code variable into the string use String.format like this (or use %s for strings):

Guidelines for localization include:

global preferences

Language-specific locales are included in Business Manager ___________ _________________.

In the Business Manager, you can configure maximum cache times (or max ages) for Open Commerce API resources. The max age determines how long (in seconds) a response document will remain in the cache. At runtime, the configured max age is used to calculate a value that is added to the cache control header of the HTTP response. For example, suppose you configure a max age of 900 seconds for the categories resource. After an initial GET request, the value added to the HTTP header would be 900. If a second GET request for the same document arrived 120 seconds later, the HTTP header value would be 780. Note: Response cache headers are only delivered for GET and HEAD requests of categories, content, content_search, folders, products, product_search, promotions, site and stores resources.

In Business Manager, you can configure maximum cache times (or max ages) for Open Commerce API resources.

D

Given the resource bundle files: 1.) hello.properties contains: greeting=Hello! 2.) hello_fr.properties contains: greeting=Bonjour! Which (choose one) sample code returns the value from the greeting key in hello_fr.properties? (A) dw.web.Resource.msg('greeting_fr', 'hello', null) (B) dw.web.Resource.msg('greeting', 'hello_fr', null) (C) dw.web.Resource.msg('greeting', 'hello', 'fr') (D) dw.web.Resource.msg('greeting', 'hello', null)

HTTP

The OCAPI delivers standard ______________ cache header information.

Resource bundle lookup generally follows the same rules as the Java ResourceBundle class, where the locale used for lookup is based on the current request. See method javadoc for additional details. Properties resource files are assumed to use the ISO 8859-1 character encoding; that is each byte is one Latin1 character. Characters not in Latin1, and certain special characters, are represented in keys and elements using Unicode escapes. NOTE: This class does not have a constructor, so you cannot create it directly.

How does the resource bundle look work?

Zero

How many methods will return useful values when the ProductVariationModel is constructed for a product that is neither a master nor a variant?

use aggregated images (Sprites), minify CSS + JS files

How to reduce HTTP requests?

It's also enabled for "product.import"

If Logging is enabled for "product" Then "________________________________________".

WARN and ERROR is logged for "product" and all its subcategories

If WARN logging is enabled for "product" Then "________________________________________".

WARN and ERROR is logged for "product" and all its subcategories, for the subcategory "product.import" also DEBUG and INFO is logged.

If WARN logging is enabled for "product" and DEBUG for "product.import" Then "________________________________________".

It's enabled for all custom log categories

If logging is enabled for the root logger Then "________________________________________".

60

If no cache time is configured, the default cache time is ___________ seconds.

(1) Customer Service Center (2) Fulfillment Center (3) Retail Center.

Order Management user interface page elements, such as text strings, menus, buttons, search headings, and labels, and the underlying data is translated into English, French, and German in what three places? Note: The Administration module is only available in English.

complete

The ProductVariationModel only considers variants which are ________ (i.e. the variant has a value for each variation attribute), and currently online. Incomplete or offline variants will not be returned by any method that returns Variants, and their attribute values will not be considered in any method that returns values.

Cache; Control

The API delivers the cache time as response __________-________________: max-age header

The variation attributes of the master product (e.g. size and color). Use getProductVariationAttributes(). The variation attribute values (e.g. size=Small, Medium, Large and color=Red, Blue). Use getAllValues(ProductVariationAttribute). The variation groups which may represent a subset of variants by defining a subset of the variation attribute values (e.g. color=Red, size=empty). Use getVariationGroups(). The variants themselves (e.g. the products representing Small Red, Large Red, Small Blue, Large Blue, etc). Use getVariants(). The variation attribute values of those variants. Use getVariationValue(Product, ProductVariationAttribute).

The class ProductVariationModel is representing the complete variation information for a master product in the system. An instance of this class provides methods to access the following five components of information:

True

The lookup/fallback sequence for all localizable resources (business object data, images, templates, messages) is consistent across Digital.

(1) If this model was constructed for a master product, it's possible to select and modify all variation attributes. (2) If this model was constructed for a variation group, it's possible to select and modify all variation attributes that are not defined by the variation group. (3) If this model was constructed for a variation product, it's not possible to select or modify any of the variation attributes.

The method setSelectedAttributeValue(String, String) can be used to modify the selected values. Depending on the product type, it's possible to select or modify which three variation attribute values:

Product Catalog Content Search Promotion rules Customers Custom objects Ordering Organization Site development

To set a locale as preselected for all Business Manager pages that include localized attributes, you define the preferred locale (language) in a user profile. This locale (language) must have been previously activated for the instance through Global Preferences. This sets locales for:

False

True or False

True

True or False: Across all Commerce Cloud Digital import feeds, xml:lang attributes for all localizable elements are processed the same way. The xml:lang attribute must specify a locale that is present on an instance, though the locale can be configured as active or inactive. If the xml:lang attribute specifies a locale that does not exist on the instance, the element isn't imported and a data error is logged to the import log.

True

True or False: Any time you add a new call to Ti.Network.createHTTPClient, add a logger.log('request', '<description>') for 'request' and logger.secureLog('<description>', 'request-response') for 'request-response' so you can see all calls made to server.

True

True or False: Commerce Cloud Digital logging supports log categories in a way that is similar to Log4J2 (a Java-based logging utility supported by Apache Software Foundation).

True

True or False: Commerce Cloud Digital provides you with a locale fallback mechanism to meet your site's multi-locale requirements. By default, the country locale (for example, en_US) inherits data from the respective language locale (en), and the language locale (en) inherits from the locale default. You can configure locale inheritance. For each locale you can configure the fallback to a different locale. For example, en_US can be configured to fallback to default instead of to en. If a locale is configured as the fallback for another locale, you can't delete it: an error message displays.

True

True or False: For controllers, filepath can be: getFullControllerPath($.__controllerPath), otherwise provide a path to the js file including the app directory, for example, 'app/lib/EAUtils'

True

True or False: Log Center is an application that enables you to find error messages quickly. You can search for specific messages or search by date, instance, or other attributes. There is one Log Center application per point of delivery (POD) per cylinder. To find specific messages, you can combine filters, such as severity, time period, and issue type, as well as searching for issues that contain specific text. For Secondary Instance Groups (SIGs), logs are available for 2 days. For Primary Instance Groups (PIGs), logs are available for 5 days. You can't change this setting.

True

True or False: Message formatting supports a simple '{}' for inserting an argument. The method is tolerant if more argument placeholders are provided then arguments exist. In that case, the placeholder isn't replaced but remains a '{}'. For backwards compatibility, Digital also supports Java message formatting.

False - Is this really false? Might be unclear question DWRE OCAPI response is only in JSON or XML You can "send the response" in JSON, XML, or javascript But REST is language independent for invoking

True or False: REST must use XML or JSON to process correctly.

True

True or False: The ProductVariationModel provides helper methods to generate URLs for selecting and unselecting variation attribute values.

True

True or False: The methods in this class which access the currently selected variation attribute values can be used on product detail pages to render information about which combinations are available or unavailable. The methods getFilteredValues(ProductVariationAttribute) and hasOrderableVariants(ProductVariationAttribute, ProductVariationAttributeValue) can be used to determine this type of situation and render the appropriate message in the storefront. NOTE: Several methods in this class have a version taking a ProductVariationAttribute parameter, and another deprecated version accepting a ObjectAttributeDefinition parameter instead. The former should be strictly favored. The latter are historical leftovers from when object attributes were used directly as the basis for variation, and the value lists were stored directly on the ObjectAttributeDefinition. Every ProductVariationAttribute corresponds with exactly one ObjectAttributeDefinition, but values are now stored on the ProductVariationAttribute and not the ObjectAttributeDefinition.

True

True or False: There are some situations, however, where localization isn't possible. See Localization Considerations.

True

True or False: You can create locale-specific folders for image upload. When you create/manage language-specific image folders in Business Manager, the new locales display in the locale select box, enabling you to create language-specific image folders, as for any other locale.

True

True or False: You can disable the fallback behavior for each locale.

True

True or False: You can localize static files such as images and CSS.

To minimize network traffic and server CPU usage, the Open Commerce API sometimes uses a technique called expansion. This technique intentionally omits parts of a selected resource, reducing the size of the overall response. However, if you want to include the parts that are omitted by default, you can explicitly request the omitted parts by using the expand query parameter. This parameter specifies a comma-separated list of entities that you want expanded, identifying each of them by name.

What are OCAPI expansions?

uses search index, reduces database access

What are the benefits of using ProductSearchModel.orderableProductsOnly versus Category.onlineProducts?

(1)Payment method names (For example, Visa and American Express) (2) Shipping method names (For example. UPS, FedEX, and DHL) (3) System alerts (4) System and third-party error messages (5) System events

What are the five components that are not localized in Order Management with respect to all modules?

'request', 'request-response', 'storefront', 'storefront-response', 'ocapi', 'ocapi-response', 'all', 'trace'

What are the most commonly used loggableCategories?

(1) Activity history (2) Search criteria drop-down list options (for example, tags, catalogs, and site)

What are the two components that are not localized in Order Management with respect to Customer Service Center?

(1) Pick Station pages (2) Shipping Order Queue (3) Warehouse batches

What are the two components that are not localized in Order Management with respect to Fulfillment Center?

(1) If logging is enabled for a category, it is also enabled for all of its subcategories (2) If logging is enabled for a specific severity level, then it's also enabled for all the higher severity levels

What are the two rules used for categories with respect logging?

Set timeouts and use asynchronous processing

What can you do to improve performance of a job that integrates with external system?

logger.log('category', 'message')

What can you use to log in a category that is different from the one you specified when you defined the logger?

Open Commerce API

What does OCAPI stand for?

{ "_v":"17.8", "clients": [ { "client_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "resources": [ { "resource_id":"/categories/*", "methods":["get"], "read_attributes":"(**)", "write_attributes":"(**)", "cache_time":900 }, { "resource_id":"/products/*", "methods":["get"], "read_attributes":"(**)", "write_attributes":"(**)", "cache_time":900 }, { "resource_id":"/products/*/availability", "methods":["get"], "read_attributes":"(**)", "write_attributes":"(**)", "cache_time":60 }, { "resource_id":"/products/*/prices", "methods":["get"], "read_attributes":"(**)", "write_attributes":"(**)", "cache_time":300 }, ... ] } ] }

What does a cache time configuration look like with respect to syntax?

Example 1: Request product availability information REQUEST: GET /dw/shop/v17_8/products/123/availability HTTP/1.1 RESPONSE: HTTP/1.1 200 OK Content-Length: 67 Content-Type: application/json; charset=UTF-8 Cache-Control: max-age=48,must-revalidate { "id":"123", "name":"Shirt", "orderable":true } Example 2: Request product price information REQUEST: GET /dw/shop/v17_8/products/123/prices HTTP/1.1 RESPONSE: HTTP/1.1 200 OK Content-Length: 67 Content-Type: application/json; charset=UTF-8 Cache-Control: max-age=240,must-revalidate { "id":"123", "name":"Shirt", "price":100.00 } Example 3: Request product availability and price information utilizing expand parameter REQUEST: GET /dw/shop/v17_8/products/123?expand=availability,prices HTTP/1.1 RESPONSE: HTTP/1.1 200 OK Content-Length: 67 Content-Type: application/json; charset=UTF-8 Cache-Control: max-age=60,must-revalidate { "id":"123", "name":"Shirt", "price":100.00, "orderable":true }

What does a header look like with Cache-Control in the response?

var logger = require('logging')('category', 'filepath');

What does a logger variable get?

Selected variation attribute values, representing the selections that a customer makes in the storefront. If this model was constructed for a master product, then none of the attributes will have pre-selected values. If this model was constructed for a variant product, then all the attribute values of that variant will be pre-selected.

What does the ProductVariationModel maintain a collection of in addition to meta information?

http://<instance>-<realm>-<customer>.demandware.net/on/demandware.store/ <organization>-<sitename>-Site/<locale>/<pipeline name>-<startnode name>

What does the structure of a standard digital URL look like?

A log category is basically a name, where a dot in the name is interpreted as a hierarchical structure. For example, the log category "product.import" would be a subcategory of "product". All categories are subcategories of a "root" category.

What is a log category?

logger.secureLog('message', 'category')

What is known as the 'category' parameter which is optional and used if you want to log for another category? It only outputs when on the simulator and is meant for secure data (customer, password and payment information)

Localization is when software is adapted to meet linguistic, cultural, and technical requirements for a specific region or language by adding locale-specific components and translated text. The locale-specific component, such as numbers, dates, time, and currency, are available in all Order Management modules.

What is localization?

logger.trace('message')

What is similar to info, but also gives you information about elapsed time b/w trace calls Use 'trace' in loggableCategories to enable

logger.error('message')

What is used to log an error message (appears in red and is always displayed regardless of loggableCategories)?

The Pipeline is overridden by the Controller.

What occurs when a Controller has the same name as a Pipeline, regardless of the cartridge path?

dw.catalog

What package does the class ProductVariationModel live in?

dw.web

What package does the class Resource live in?

(1) system-level base locale (2) user profiles

What two places can the base locale be set within Order Management?

logger.info('message')

What would output a log message for the category you defined when creating the logger?

Use one template set, externalize localizable strings, and translate the strings in resource files (Salesforce recommends this as a best practice methodology (see Using One Template Set) Use a unique template set for each locale (see Using Multiple Template Sets) The advantage of the first approach is that templates (which can hold complex logic to visualize dynamic data) don't need to be modified as the storefront is localized. Also, the display logic exists in a single place (the non-language specific template) only. The externalized strings are stored in a simple file format that can be passed to translation service providers. The translation can be integrated back into Commerce Cloud Digital simply by copying the translated file into the cartridge, without potentially breaking the logic.

When developing your storefront application, there are two approaches to localizing templates:

function process() { Log.getNDC().push( "order.processing" ); try { ... } finally { Log.getNDC().pop(); } }

With Nested Diagnostic Context (NDC), the application can provide additional context information, which is associated with the current running thread. A simple string can be provided as NDC, which is organized like a stack. Both the NDC and log category are reported as a standard element of the actual log message. This is an example of how this feature is used:

base locale

You can configure Order Management to display in a ______________ ________________, which is based on the combination of language and country. If a base locale isn't specified, the default is English. If a language other than English, French, or German is selected, then English is used as the language, while the numbers, dates, and currency are in the format of the selected locale.


Kaugnay na mga set ng pag-aaral

Advanced Financial Reporting - Exam 2

View Set

Unit 3 Test: HIT, PCC, Healthcare Organizations

View Set

AP - correo electrónico - expresiones formales de gratitud / agradecimiento

View Set

NSG 330 Ch 21- Respiratory Care Modalities

View Set

Smoking Cessation - 5 Stages of Smoking Cessation

View Set

ANT 304 Classification and Material Culture - week 8

View Set

Counter-Terrorism in Central Eurasia

View Set

Introduction to Machine Learning

View Set

A&P 1, day one - directional terms

View Set