The Client has requested an Architect's help in documenting the architectural approach to a new home page. The requirements provided by the business are:
* Multiple areas of static image content, some may need text shown at well
* The content page must be Realizable
* A carousel of featured products must be shown below a banner 101191
* Recommended categories will be featured based on the time of year
Which two solutions would fulfil these requirements?
Choose 2 answers
Answer : C, D
To fulfill the requirements of having multiple static image content areas, a carousel of featured products, and dynamic content adjustments based on the time of year:
Option C (Leverage B2C Commerce content slots and assets): This solution allows for dynamic content management where different assets and slots can be used to manage and display static images, text overlays, and other content variations effectively.
Option D (Leverage B2C Commerce Page Designer with a dynamic layout): Using the Page Designer with a dynamic layout enables the easy assembly of complex page designs, including carousels and responsive elements that adjust based on viewing device or other criteria like time of year. This tool provides the flexibility required for real-time customization and resizability of page elements.
These solutions provide robust and flexible management of site content that meets the business's needs for a visually engaging and adaptable homepage.
An ecommerce site has dynamic shipping cost calculation. it allows the customers to see their potential shipping costs on the Product Detail Page before adding an item to the cart.
For this feature, shipping touts are calculated using the following logic:
* Set the shipping method on the Basket
* Add the item to the basket, calculate the basket total and get the shipping cost for this method
* Remove the item from the Basket to restore the original state
* The above process is repeated for each shipping method
During the testing it was discovered that the above code violates the spi.basket.addResolveInSameResquest quota.
What should the Architect do to resolve this issue and maintain the business requirement?
Answer : D
To resolve the issue of violating the spi.basket.addResolveInSameRequest quota and to maintain the functionality of dynamically calculating shipping costs for items before they are added to the basket, the best approach is:
Option D: Wrapping the adding of product and shipping cost calculation in a transaction, which is then rolled back to restore the original state. This method ensures that the system can calculate potential shipping costs without permanently altering the state of the basket. This approach keeps the basket's original state intact while allowing for multiple shipping calculations, effectively managing the load on system resources and adhering to platform quotas.
A developer is checking for Cross Site Scripting (XSS) and found that the quick search is not escaped (allows inclusion of Javascript) in the following script:

How would the developer resolve this issue?
Answer : B
To resolve the issue of Cross Site Scripting (XSS) where the quick search is not escaped, the developer should use the <isprint> tag with the 'jshtml' encoding option (Answer B). This method ensures that any JavaScript included in the search phrase is properly escaped, preventing the execution of potentially malicious scripts. The 'jshtml' encoding is specifically designed to encode text for HTML contexts where JavaScript is embedded, providing a secure way to handle user input in Salesforce B2C Commerce.
An Architect to notify by the Business that order conversion dramatically dropped a few hours after go live. Further investigation points out that customers cannot proceed to checkout anymore. The Architect is aware that a custom inventory checks with a third-party API is enforced at the beginning of checkout, and that customers are redirected to the basket page when items are no longer in stock
Which tool can dearly confirm that the problem is indeed caused by the inventory check?
Answer : C
The appropriate tool to verify that the problem is indeed caused by the inventory check at the beginning of checkout is the Pipeline Profiler in Business Manager. This tool allows an architect to analyze the performance of specific code execution paths, including those involving third-party API calls. It helps identify bottlenecks and inefficiencies in the pipeline execution, particularly useful in situations where custom code like inventory checks may impact site functionality. The use of the Pipeline Profiler would enable the architect to pinpoint if the custom inventory check is causing the checkout process to fail or redirect users inappropriately.
The Client wants to offer custom made container products on its new B2C Commerce storefront. TheClient provided two business requirements.
* Customer can specify container length, width, and height.
* Customer can specify the material that the container is made of.
The Client also provided the Architect a current data schema (shown below) for reference while preparing the technical documentation.

Which two gaps between the requirements and the data schema should the Architect discuss with the Client?
Choose 2 answers
Answer : A, D
The provided data schema includes several fields that do not match the stated business requirements, which focus on the custom dimensions and materials of the containers:
Option A: The inclusion of unique identifiers for materials and color fields in the data schema suggests a level of detail and structure around these attributes that is not reflected in the business requirements. If the business does not require tracking or differentiating materials beyond just naming them, this might be unnecessarily complex.
Option D: The data schema includes a Color_ID field, which implies the ability to specify the color of the container. However, the business requirements do not mention color as a customization option available to customers. This discrepancy needs to be addressed to ensure that the database design aligns with actual business needs.
There Is an Issue with the site when the domain Is opened from Google search results. After researching the problem. It turns out that the site returns * 404 page error when accessedwith a parameter in the URL.
What should the Architect recommend to fix that issue?
Answer : A
To address the issue of the site returning a 404 error when accessed with a parameter from Google search results, a dynamic catch-all rule to redirect such requests to the homepage is an effective solution (Answer A). This approach ensures that users landing from external links with appended parameters, which might not match any configured route or alias, are redirected to a valid page instead of seeing an error page. This improves the user experience and minimizes potential bounce rates caused by broken links or outdated URLs.
An integration cartridge implements communication between the B2C Commerce Storefront and a third-party service provider. The cartridge contains the localServiceRegistry code:

How does this code sample accomplish authentication to the service provider?
Answer : D
The code sample shows the creation of a service request to a third-party service provider, where the authentication method is explicitly set to 'NONE' using the line svc.setAuthentication('NONE');. This configuration implies that the request does not use Basic Authentication or any embedded credentials like client ID and secret in the HTTP headers for authentication purposes. Instead, it builds the authentication details into the request body, which suggests that the service expects credentials as part of the payload rather than as part of the standard authentication headers, thus effectively disabling Basic Auth for this transaction.