Salesforce DX Flashcards
What is the source of truth for source-driven development? A. Sandbox B. Version control system C. Production org D. Salesforce DX project
B. Version control system
What are the advantages of source-driven development?
A. Ability to build development orgs directly from source
B. All code and customizations are intermingled in the source repo
C. Agile release models allow more frequent, independent releases
D. A and B
E. A and C
E. A and C
How does Salesforce DX define an artifact?
A. All the code in your production org
B. The metadata in your sandbox
C. A group of code and customizations you want to release together
D. The package you deploy to your production org
C. A group of code and customizations you want to release together
Scratch orgs provide:
A. A Salesforce org that multiple developers use at the same time
B. A dedicated and disposable Salesforce environment for a developer and their project
C. A copy of an existing sandbox
D. A and B
B. A dedicated and disposable Salesforce environment
What is the role of sandboxes in source-driven development?
A. You don’t use sandboxes in the Salesforce DX application life cycle
B. You use sandboxes for user acceptance testing and as a staging environment.
C. It’s a starting point for the development process.
D. It’s where you install your package during continuous delivery testing.
E. B and D
E. B and D
How does the Salesforce CLI increase your productivity?
A. It lets you change scratch org shape.
B. It does the dishes.
C. You can create scripts for repetitive tasks, for build automation, or to run tests.
D. It contains commands that help you directly interact with your version control system.
C. You can create scripts for repetitive tasks, for build automation, or to run tests.
The Salesforce DX project:
A. Is an exact copy of your development sandbox
B. Does not have to be checked into source control
C. Contains your source and Salesforce DX configuration files
D. Contains only Salesforce DX configuration files
C. Contains your source and Salesforce DX configuration files
How does Salesforce DX facilitate change tracking?
A. It tracks changes you make locally, but you need to manually track changes you make in your scratch org.
B. It transforms large source files into smaller files, which provide more project flexibility and reduce merge conflicts.
C. It keeps track of both changes you make locally as well as any in your scratch org.
D. A and B
E. B and C
E. B and C
Use scratch orgs in the development process to:
A. Perform declarative (point-and-click) development and other tasks directly in an org.
B. Maintain all your source for posterity.
C. Develop new features over several releases.
D. Facilitate team development by everyone sharing a scratch org.
A. Perform declarative (point-and-click) development and other tasks directly in an org.
How do scratch orgs support testing and continuous integration?
A. You can refresh them once a day so you can run tests.
B. You can pull source and metadata from the scratch org for testing purposes.
C. Best practices dictate that you use the same org for development and testing.
D. You can spin up a new scratch org specifically for testing and CI.
D. You can spin up a new scratch org specifically for testing and CI.
Use sandboxes for continuous delivery and user acceptance testing to:
A. Provide new features directly to your customers.
B. Test the same process you’ll use to deploy and release to the production org.
C. Develop new features.
D. Create the package.xml file.
B. Test the same process you’ll use to deploy and release to the production org.
What use cases are ideal for shifting to a modular project-based approach?
A. You’re developing a distinct application.
B. Your production org isn’t complex and you make minimal changes month over month.
C. You’re developing functionality that multiple projects share.
D. Your sales automation customizations can’t be tested independently of the rest of the org metadata.
A. You’re developing a distinct application.
In what scenario do you need to be careful when creating projects?
A. When a project is a distinct application
B. When your team is ready to build and deliver in a separate release cycle
C. When your team works on multiple projects
D. When projects share metadata components
D. When projects share metadata components
Use Dev Hub to:
A. Manage sandbox and production orgs through the CLI.
B. Create and mange scratch orgs.
C. Move configurations from your sandbox yo your scratch org.
D. Create a scratch org for another team member.
B. Create and mange scratch orgs.
How do you list all available CLI commands? A. sfdx force:commands:view B. sfdx force:list:help C. sfdx force:doc:commands:list D. sfdx force:doc:commands:view E. sfdx force:commands:doc:display
C. sfdx force:doc:commands:list
What information does the sfdx-project.json file contain?
A. Information required to track source and metadata with your scratch org.
B. Configuration information that determines scratch org shape.
C. A list of the scratch orgs you’ve created in the Dev Hub.
D. Configuration information for your sandbox and production orgs.
A. Information required to track source and metadata with your scratch org.
What is the CLI command to create a project called MyNewApp? A. sfdx force:project:create -a MyNewApp B. sfdx force:create:project -a MyNewApp C. sfdx force:project:create -n MyNewApp D. sfdx force:create:project -n MyNewApp
C. sfdx force:project:create -n MyNewApp
What’s an example of the CLI command to import existing Accounts sample data in a different project?
A. sfdx force:data:tree -q Account.json
B. sfdx force:data:tree:import -contenttype data/Account.json
C. sfdx force:data:tree:import -sobjecttreefiles data/Account.json
D. sfdx force:data:tree:import -s Account.json
C. sfdx force:data:tree:import -sobjecttreefiles data/Account.json
What's the CLI command to create a new Apex class called NewClass in the force-app folder? A. sfdx force:apex:class:create -n NewClass -d force-app/main/apex/classes. B. sfdx force:apex:class:create -n NewClass -d force-app/main/default/classes. C. sfdx force:apex:class:create -n NewClass -f force-app/main/apex. D. sfdx force:apex:class:create -n NewClass -f force-app/main/default/classes.
D. sfdx force:apex:class:create -n NewClass -d force-app/main/default/classes.