Question 1 of 29
In a B2C Commerce implementation, a developer is tasked with creating a custom layout for a product detail page that needs to dynamically adjust based on the product category. The layout should include a specific template for electronics that features a comparison table, while clothing items should display a size guide. The developer decides to use the `ISML` templating language to achieve this. What is the most effective way to implement this dynamic layout while ensuring that the correct template is rendered based on the product category?
Utilize conditional statements within the ISML template to check the product category and render the appropriate layout accordingly.
Create separate ISML files for each product category and include them statically in the main template.
Use a single ISML template with hardcoded HTML for all categories, modifying it with JavaScript after page load.
Implement a server-side script that pre-processes the product data and determines the layout before rendering the ISML template.

Preparing for SalesForce Certified B2C Commerce Architect Certified B2C Commerce Architect? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free