Exam style questions across every Comm-Dev-101 domain
Last Update 2 days ago
Total Questions : 154
Start with our free Comm-Dev-101 practice questions, carefully crafted to mirror the domains, phrasing, and difficulty of the real Developers exam. Each Comm-Dev-101 exam question comes with a detailed rationale that explains not just which answer is correct but why the others fall short. That's how concepts stick. Use the free set to benchmark yourself: identify your Salesforce weak domains, see where you're losing marks, and build a focused study plan in minutes.
A developer needs to check for product inventory in all inventory lists using the Open Commerce API.
An example request URL is:
http://refarch.demandware.net/dw/data/v18_3/inventory_lists/ecom-inventory/product_inventory_records/00883408601
Which property should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?
A NewsletterSubscription custom object exists that has a key attribute named email of type String and the following script code.
varCustomObject=
dw.object.CustomObjectMgr.createCustomObject(
' NewsletterSubscription ' ,
newsletterForm.email.value
);
However, the NewsletterSubscription custom object is not persisted. What is a possible reason?
A client has a requirement to render different content on the homepage based on if the customer is logged in or a guest user.
What should a developer implement to achieve this requirement?
Which line of code should a developer add for custom category debug logging?
A developer implements the necessary code for a new Page Designer component.
What is the purpose of the JSON metadata definition file the developer creates?
A developer has a sandbox 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?
Given the SFRA Controller below:
01varserver=require( ' server ' );
02varcache=require( ' */cartridge/scripts/middleware/cache ' );
03
04server.get( ' Show ' ,cache.applyDefaultCache,function(req,res,next) {
05viewData={name: ' my string ' };
06res.render( ' /pages/mypage ' ,viewData);
07next();
08});
09
10module.exports=server.exports();
Why would a JavaScript debugger, that is stopped at line 06, fail to show the viewData variable in the inspection tool?
A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by the dw.svc.ServiceCallback class.
Which callback method is required only when invoking a SOAP service?
A developer is writing a server side script that needs to maintain state across calls. The persistent information needed includes 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?
When looking at Custom Object instances for a site, a merchant notices that the creation date is not showing up on the instances in Business Manager.
Where should the developer add this attribute to the Custom Object so it is visible for the merchant to see in Business Manager?
