A developer exports data from an org on a standard entity which has a custom attribute. When they launch Data Loader, select the entity, click the Select All Fields button and clickFinish, the custom field they added called MyCustomField_c has no values and no column header in the CSV file. What is the root cause?
A. The user needs to install a specific Zulu JDK that is recommended by Salesforce. B. A mapping file was not used when the data was loaded in C. The user does not have access to the field D. The user has rights to the field but there are no values in it
Answer: C Explanation:The root cause of why the custom field MyCustomField__c has no values and no columnheader in the CSV file is that the user does not have access to the field. A user’s access toa field is determined by their profile and permission sets, which define their field-levelsecurity settings. Field-level security settings control whether a user can see, edit, or deletethe value for a particular field on an object. If a user does not have access to a field, theywill not be able to view or modify its value in any interface, including Data Loader. DataLoader is a tool that allows users to import or export data between Salesforce and CSVfiles. When using Data Loader to export data from an org, Data Loader will only includefields that are accessible to the user based on their field-level security settings. If a userdoes not have access to a field, Data Loader will not include that field in the CSV file,neither as a column header nor as a value. The user needs to install a specific Zulu JDKthat is recommended by Salesforce is not the root cause of why MyCustomField__c has novalues and no column header in the CSV file, as it is not related to field access or DataLoader functionality. A mapping file was not used when the data was loaded in is not theroot cause either, as it is not related to field access or Data Loader functionality. A mappingfile is an optional file that maps fields between Salesforce objects and CSV files whenusing Data Loader to import or export data. The user has rights to the field but there are novalues in it is not the root cause either, as it contradicts the fact that MyCustomField__chas no column header in the CSV file. If the user had rights to the field but there were novalues in it, Data Loader would still include MyCustomField__c as a column header in theCSV file, but leave its values blank. Salesforce References: [Data Loader Guide: ExportData from Salesforce], [Data Loader Guide: Field Mapping], [Salesforce Help: Set Field-Level Security]
Question # 62
Which practice is allowed when it comes to naming a Lightning web component's folder and associated files?
A. Including whitespace B. Using a single underscore C. Using consecutive underscores D. Using a single hyphen (dash)
Answer: D Explanation: To name a Lightning web component’s folder and associated files, thedeveloper should follow these naming rules:Must begin with a lowercase letterMust contain only alphanumeric or underscore charactersMust be unique in the namespaceCan’t include whitespaceCan’t end with an underscoreCan’t contain two consecutive underscoresCan’t contain a hyphen (dash) The only exception to the last rule is when separating the namespace from the componentname in markup. For example, if the component is in the example namespace and has thename myComponent, the folder name should be myComponent, but the markup tag shouldbe <example-my-component>. The hyphen character (-) is required by the HTML standardfor custom element names. The other options are either invalid or not recommended. Forexample, including whitespace or using consecutive underscores will cause errors, andusing a single underscore will look odd and may confuse developers consuming thecomponent. References: B2B Commerce and D2C Commerce Developer Guide, LightningWeb Components Developer Guide
Question # 63
What two things happen with the Cart during tax implementation?
A. New entries are written to the Cart B. Previous entries are copied to another object C. Previous entries are deleted from the Cart D. New entries are written to the Order Summary
Answer: A,C Explanation: Two things that happen with the cart during tax implementation are that newentries are written to the cart and previous entries are deleted from the cart. A taximplementation is an integration that calculates and applies tax rates and amounts to a cartor an order based on various factors, such as product type, price, quantity, location, andtax rules. A tax implementation can use either an external tax service provider or customApex code to perform the tax calculation. When a tax implementation is invoked for a cart,it writes new entries to the cart with a type of Charge and a charge type of Tax. Theseentries represent the tax amounts and adjustments that are applied to the cart. Beforewriting new entries to the cart, the tax implementation deletes any existing entries with atype of Charge and a charge type of Tax from the cart. This ensures that the tax calculationis accurate and up-to-date based on the current state of the cart and avoids any conflicts orinconsistencies with previous tax entries. Previous entries are not copied to another objector modified with the new tax calculation, as these are not valid actions for handling existingtax entries. Salesforce References: B2B Commerce Developer Guide: Tax Integration, B2BCommerce Developer Guide: Tax Calculation Flow
Question # 64
When a developer configures a tax integration for a store, what happens to the previously calculated tax entries during the checkout flow?
A. Ignored during recalculation B. Saved prior to recalculation C. Deleted from the Cart D. Modified with the new tax calculation
Answer: C Explanation: When a developer configures a tax integration for a store, the previouslycalculated tax entries during the checkout flow are deleted from the Cart. A tax integrationis an integration that calculates and applies tax rates and amounts to a Cart or an Orderbased on various factors, such as product type, price, quantity, location, and tax rules. Atax integration can use either an external tax service provider or custom Apex code toperform the tax calculation. When a developer configures a tax integration for a store, anyexisting tax entries in the Cart are deleted before calling the tax integration service ormethod. This ensures that the tax calculation is accurate and up-to-date based on thecurrent state of the Cart and avoids any conflicts or inconsistencies with previous taxentries. The previously calculated tax entries are not ignored during recalculation, savedprior to recalculation, or modified with the new tax calculation, as these are not validactions for handling existing tax entries. Salesforce References: B2B Commerce DeveloperGuide: Tax Integration, B2B Commerce Developer Guide: Tax Calculation Flow
Question # 65
Which three components should a developer use on the product page to replace the out-ofthe- box Product Detail Card component?
A. Product Detail Breadcrumbs component B. Product Fields Short component C. Product Field Long component D. Product Detail Purchase Options component E. Product Detail Image Gallery component
Answer: B Explanation: The Product Detail Card component is a standard component that displaysthe product information and options on the product page. It includes the followingelements1:The product’s SKUThe product’s unit of measureThe product’s available inventory, or a generic availability message, if specifiedThe product’s short descriptionThe product’s price informationThe product’s quantity selectorThe product’s add to cart buttonThe product’s image galleryTo replace this component with custom components, a developer can use the followingthree components:Product Fields Short component: This component displays the product’s shortdescription, SKU, unit of measure, and price information. It also allows thedeveloper to specify which fields to display and how to format them2.Product Field Long component: This component displays the product’s longdescription, which can include rich text and images. It also allows the developer tospecify which field to display and how to format it2.Product Detail Image Gallery component: This component displays the product’simage gallery, which can include multiple images and thumbnails. It also allows thedeveloper to specify the image field, the image size, and the image zoom option3.These three components can be combined to create a custom product page that shows theproduct information and options in a different layout and style than the out-of-the-boxProduct Detail Card component. References: Configure Product Info and Options on theProduct Detail Page, Product Fields Short Component, Product Detail Image Gallery Component
Question # 66
Which option is the correct syntax to render a property in a Lightning web component template?
A. Surround the property with curly braces: {property} B. Surround the property with brackets: [property] C. Surround the property with an exclamation point and curly braces: {property} D. Surround the property with curly braces and exclamation point: {{property}
Answer: A Explanation: The correct syntax to render a property in a Lightning web componenttemplate is to surround the property with curly braces: {property}. This syntax allows you to access the property value from the JavaScript class of the component and display it in theHTML template. The other options are incorrect because they either use invalid charactersor do not follow the standard syntax for rendering a property in a Lightning web componenttemplate. References: Use JavaScript Properties in Templates | Lightning WebComponents Developer Guide
Question # 67
Which two are considered discrete units of work (code units) within a transaction in the debug logs?
A. Validation rule B. Lightning component load C. Web service invocation D. Apex class
Answer: C,D Explanation: Two data types that are considered discrete units of work (code units) withina transaction in the debug logs are web service invocation and Apex class. A discrete unitof work (code unit) is a segment of executable code that runs as part of a transaction inSalesforce. A transaction is a sequence of operations that are treated as a single unit ofwork and are executed under certain isolation and consistency rules. A transaction canconsist of one or more discrete units of work (code units) that are executed sequentially orconcurrently depending on various factors such as triggers, asynchronous calls, or limits. Adebug log is a record of database operations, system processes, and errors that occurwhen executing a transaction or running unit tests in Salesforce. A debug log can capture
Question # 68
A developer is trying to integrate a new shipping provider to use during checkout in a storefront Which two steps must the developer take to make an integration available for selection?
A. Create a RegisteredExternalService record using Workbench. B. Create an Apex class that uses the integration framework. C. Modify the StorelntegratedService to map to an Apex class ID using Workbench. D. Enter the integration class name and version in the store administration.
Answer: A,B Explanation: To make an integration available for selection, a developer must create aRegisteredExternalService record using Workbench and create an Apex class that usesthe integration framework. Creating a RegisteredExternalService record using Workbenchallows the developer to register their custom integration class as an external service inSalesforce B2B Commerce. The RegisteredExternalService record contains informationsuch as the class name, version, display name, description, and category of the integrationclass. The category determines where and how the integration class can be used in B2BCommerce, such as ShippingService or TaxService. Creating an Apex class that uses theintegration framework allows the developer to define custom logic for integrating with anexternal service provider’s API or service. The integration framework provides interfacesand classes for various types of integrations, such as shipping, tax, payment, inventory,and freight. The developer can implement these interfaces and classes in their customApex class and override their methods with their own logic. Modifying theStoreIntegratedService to map to an Apex class ID using Workbench is not a required stepfor making an integration available for selection, as it is only used for registering internalservices that are provided by Salesforce B2B Commerce out-of-the-box. Entering theintegration class name and version in store administration is not a required step either, as itis only used for selecting an existing integration class that has already been registered asan external service. Salesforce References: [B2B Commerce Developer Guide: IntegrationFramework], [B2B Commerce Developer Guide: RegisteredExternalService Object]
Question # 69
An administrator has just provided a developer with a completely new org and a username. Assuming the username is me@my-new-org.org, what is the correct set of steps to authorize the org for Command Line Interface (CLI) access so the developer can deploy Lightning web components?
A. Run the command: 'sfdx force:login -r "https://login.salesforce.com'' and supply thecredentials in the browser when it opens. B. Run the command 'sfdx force:auth:web:login -a "https://login.salesforce.com'"' and thensupply the credentials in the browser when it opens. C. Run the command: 'sfdx force:auth:web:login -r "https://login.salesforce.com" and thensupply the credentials in the ^ browser when it opens ^ D. Run the command 'sfdx force:auth:web:login -r "https://login.salesforce.com" -username^'mefaJmy-new-org.org"'
Answer: C Explanation:To authorize the org for Command Line Interface (CLI) access so the developer can deploy Lightning web components, the developer should run the command: 'sfdxforce:auth:web:login -r “https://login.salesforce.com” and then supply the credentials in thebrowser when it opens. The sfdx force:auth:web:login command is a Salesforce CLIcommand that authorizes an org using the web server flow. The web server flow is anOAuth 2.0 authentication flow that opens a browser window and prompts the user to log into Salesforce and allow access to the CLI. The -r flag specifies the login URL of the org,which is https://login.salesforce.com for production or developer orgs. Running thiscommand will open a browser window and ask the developer to enter their username andpassword for the org. After successfully logging in, the developer will be able to use the CLIto perform various tasks with the org, such as deploying or retrieving metadata, runningtests, or executing commands. Running the command: 'sfdx force:login -r“https://login.salesforce.com” is not a valid way to authorize the org for CLI access, as thereis no such command as sfdx force:login. Running the command ‘sfdx force:auth:web:login -a “https://login.salesforce.com”’ is not a valid way either, as the -a flag specifies an alias forthe org, not a login URL. Running the command ‘sfdx force:auth:web:login -r“https://login.salesforce.com” -username’me@my-new-org.org"’ is not a valid way either, asthere is no such flag as -username. SalesforceReferences: Salesforce CLI CommandReference: force:auth:web:login, Salesforce Developer Tools for Visual Studio Code
Question # 70
A developer is creating a component to implement a custom Terms and Conditions checkbox at checkout in the Aura Commerce template. Which method should the developer implement on the Lightning web component to ensure the user accepts the terms and conditions?
A. ComponentValidity B. Validate C. SaveCheckout D. CheckValidity
Answer: B Explanation:To implement a custom Terms and Conditions checkbox at checkout in the Aura Commerce template, a developer should add a Desired Delivery Date input field during thecheckout flow. The Desired Delivery Date input field allows the customer to enter a datewhen they want their order to be delivered. The developer can use the @api decorator toexpose this field as a public property of the Lightning web component and bind it to theccCheckoutOrder object. The developer can also use the @wire decorator to get thecurrent cart object and use its properties, such as shipping address and shipping method,to calculate and display an estimated delivery date based on the desired delivery date. Thedeveloper can also add validation logic to ensure that the desired delivery date is valid andacceptable. Adding the Expected Delivery Date field to the order confirmation email is not agood solution, as it does not allow the customer to choose or see their delivery date beforeplacing their order. Displaying the Expected Delivery Date on the order page with aLightning web component is not a good solution either, as it does not allow the customer toenter or change their delivery date after placing their order. Configuring an email alert tothe customer when the Expected Delivery Date changes is not a good solution either, as itdoes not provide a consistent or reliable way of informing the customer about their deliverydate. Salesforce References: B2B CommerceDeveloper Guide: Checkout Flow, B2BCommerce Developer Guide: Checkout Order Object, Lightning Web ComponentsDeveloper Guide: Communicate with Properties