Deal of The Day! 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
Flo
5 days ago
Why not just print the CSS changes and tape them to the server? Problem solved!
upvoted 0 times
...
Reynalda
10 days ago
Hmm, I'd say the correct answer is to use a CDN and update the link. Anything else seems like a hack.
upvoted 0 times
...
Hailey
15 days ago
Just copy the CSS file to the server, no need to redeploy the whole project.
upvoted 0 times
...
Ling
20 days ago
Use a CDN to host the CSS and update the link in the HTML.
upvoted 0 times
...
Loise
25 days ago
Inject the CSS changes directly into the browser's developer tools!
upvoted 0 times
...
Ryan
1 month ago
I think there's a way to use a CDN for CSS files, which might allow for quicker updates without redeploying the whole project.
upvoted 0 times
...
Arleen
1 month ago
Could we also just upload the CSS file directly to the server? I feel like I've seen that in practice questions before, but I'm not 100% confident.
upvoted 0 times
...
Bettye
2 months 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
2 months 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
2 months 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
2 months 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
3 months 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
3 months 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
3 months 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