Consider the following code snippet: Choose 2 answers
A. import getOrders from ,@salesforce/apex/OrderController.getAvailableOrders';
B. import ( LightningElement--apt ) from 'lwc*.
C. import getOrders from @salesforc/apex/c.OrderController.getAvailablOrd#r?;
D. import { LightningElement, wire ) from 'lwc';
In a previous data audit, It was determined that close to 5 million Opportunity records are stored within the Salesforce environment. The organization-wide default for the object are set to Public Read-Only and most opportunities are related to
an external case.
The method is called from a Lightning web component. Some end users do not provide a cased value and experience low performance while running the query.
Which two techniques should the developer implement to avoid low performance queries from executing? Choose 2 answers
A. Implement a LIMIT clause within the SOQL query to restrict the result set.
B. Ensure the user-provided input is not null before executing the SOQL query.
C. Implement the with sharing keyword on the Apex class.
D. Use SOSL instead of SOQL queries to perform text-based searches.
A developer is creating a Lightning web component to display a calendar. The component will be used in multiple countries. In some locales, the first day of the week is a Monday, or a Saturday, or a Sunday. What should the developer do to ensure the calendar displays accurately for users in every locale?
A. Use a custom metadata type to store key/value pairs.
B. Query the FirstDayOfweek field from the Locale for the current user.
C. Use Userinfor. getLocale () in the component.
D. Import the firstDayofWeek property in the component.
A developer is writing a Jest for a Lightning web component that conditionally displays child components based on a user's checkbox selections. What should the developer do to property test that the correct components display and hide for each scenario?
A. Reset the DOM after each test with the after Each method.
B. Add a teardown block to reset the DOM after each test.
C. Create a new describe block for each test
D. Create a new jsdom instance for each test
Consider the following code snippet:
How should
A. Created and fire an application event.
B. Create and fire a standard DOM event.
C. Create and fire a component event.
D. Create and dispatch a custom event
When calling a RESTful web service, the developer must implement two-way SSL authentication to enhance security. The Salesforce admin has generated a self-sign certificate within Salesforce with a unique name of "ERPSecCertificate". Which method must the developer implement in order to sign the HTTP request with the certificate?
A. req.setHeader('certificate', 'ERPSecCertificate');
B. req.setSecure('ERPSecCertificare)';
C. req.setClientCertificateName('ERPSecCertificate');
D. req.setSecureCertificate( 'ERPSecCertificate');
A developer is creating a page in App Builder that will be used in the Salesforce mobile app.
Which two practices should the developer follow to ensure the page operates with optimal performance?
Choose 2 answers
A. Limit five visible components on the page.
B. Limit 25 fields on the record detail page.
C. Limit the number of Tabs and Accordion components.
D. Analyze the page with Performance Analysis for App Builder.
Users upload .csv files in an external system to create account and contact records in Salesforce. Up to 200 records can be created at a time. The users need to wait for a response from Salesforce in the external system, but the data does not need to synchronize between the two systems.
Based on these requirements, which method should a developer use to create the records in Salesforce?
A. REST API request using composite/vbatch/
B. REST API request using composite/tree/
C. Apex web services
D. Bulk API 2.0
What level can a hierarchy custom setting be defined for? (Choose three.)
A. Users
B. Groups
C. Profiles
D. Roles
E. Organization
A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers. What is the correct syntax to declare a remote method in Apex? (Choose two.)
A. @RemoteAction global static String getTable()
B. @RemoteAction global String getTable()
C. @RemoteAction public static String getTable()
D. @RemoteObject global static String getTableQ
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDII exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.