New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce B2B Commerce for Developers Accredited Professional (AP-202) Exam - Topic 6 Question 88 Discussion

Actual exam question for Salesforce's B2B Commerce for Developers Accredited Professional (AP-202) exam
Question #: 88
Topic #: 6
[All B2B Commerce for Developers Accredited Professional (AP-202) Questions]

A developer is working in Visual Studio Code on a previously deployed project which is rather large and deployments are time consuming. The developer wants to deploy some small CSS changes without waiting for the entire project deployment. What are two ways this can be accomplished?

Show Suggested Answer Hide Answer
Suggested Answer: B, A

Two ways that a developer can deploy some small CSS changes without waiting for the entire project deployment are right-clicking the folder for the component and choosing Deploy Source to Org and right-clicking the CSS file that was edited and selecting Deploy Single File. Deploying source to org is a way of deploying metadata from a local project to an org using Salesforce CLI commands. The developer can use Visual Studio Code to execute these commands by right-clicking on files or folders in the project and choosing from various deployment options. Right-clicking the folder for the component and choosing Deploy Source to Org allows the developer to deploy only the files that belong to that component, such as HTML, JavaScript, CSS, and XML files. Right-clicking the CSS file that was edited and selecting Deploy Single File allows the developer to deploy only that CSS file and not any other files in the project. These options can save time and bandwidth for deploying small changes without affecting other components or files in the project. Modifying the StoreIntegratedService to map to an Apex class ID using Workbench is not a way of deploying CSS changes, as it is only used for registering internal services that are provided by Salesforce B2B Commerce out-of-the-box. Entering the integration class name and version in store administration is not a way of deploying CSS changes either, as it is only used for selecting an existing integration class that has already been registered as an external service. Salesforce Reference: Salesforce CLI Command Reference: force:source:deploy, Salesforce Developer Tools for Visual Studio Code, B2B Commerce Developer Guide: Integration Framework, B2B Commerce Developer Guide: RegisteredExternalService Object


Contribute your Thoughts:

0/2000 characters
Bettye
5 days ago
I remember something about using a separate build process for CSS, maybe with a tool like Webpack or Gulp? That could help with faster deployments.
upvoted 0 times
...
Franklyn
10 days ago
I think one way to deploy just the CSS changes is to use a feature like hot reloading, but I'm not entirely sure how it works in VS Code.
upvoted 0 times
...
Fidelia
15 days ago
This is a great question. I think the key is finding a way to isolate and deploy just the CSS changes, rather than the whole project. Time to do some Googling!
upvoted 0 times
...
Krissy
20 days ago
I've heard about things like hot reloading or live updates for CSS. Maybe that could work here? I'll have to look into the specifics.
upvoted 0 times
...
Sabra
25 days ago
Ugh, I hate it when deployments take forever. I bet there's a way to just push the CSS changes separately, but I'm not sure how to do that.
upvoted 0 times
...
Kenneth
1 month ago
Okay, this seems like a good opportunity to use some kind of incremental deployment strategy. I'll need to research options for that.
upvoted 0 times
...
Ricki
1 month ago
Hmm, this is an interesting one. I think I'd start by looking into ways to deploy just the CSS changes without the full project.
upvoted 0 times
...

Save Cancel