1. Which three steps allow a custom SVG to be included in a Lightning web component?
Choose 3 answers
A. Upload the SVG as a static resource
B. Import the static resource and provide a getter for it in JavaScript
C. Reference the getter in the HTML template
D. Import the SVG as a content asset...
1. Which three steps allow a custom SVG to be included in a Lightning web
component?
Choose 3 answers
A. Upload the SVG as a static resource
B. Import the static resource and provide a getter for it in JavaScript
C. Reference the getter in the HTML template
D. Import the SVG as a content asset file
E. Reference the import in HTML Template. correct answers ABC
2. Which process automation should be used to send an outbound message without
using
Apex code?
a. Approval Process
b. Process builder
c. Workflow Rule
d. Flow Builder correct answers C
3. A developer is tasked to perform a security review of the ContactSearch Apex class
that
exists in the system. Within the class, the developer identifies the following method as a
security threat. List<Contact> performSearch(String lastname){ Return
Database.query(SELECT Id, FirstName, LastName FROM Contact WHERE LastName
like % '
+ LastName + ' % ' ) ; } What are two ways the developer can update the method to
prevent
a SOQL injection attack? Choose 2 answers
A. Use variable binding and replace the dynamic query with a static SOQL.
B. Use a regular expression on the parameter to remove special characters.
C. Use the escapeSingleQuotes method to sanitize the parameter before its use.
D. Use the @ReadOnly annotation and the with sharing keyword on the class. correct
answers AC
4. A developer uses a loop to check each Contact in a list. When a Contact with the
Title of
"Boss" is found, the Apex method should jump to the first line of code outside of the for
loop. Which Apex solution will let the developer implement this requirement?
A. Break;
B. Continue
C. Exit
D. Next correct answers A
,5. The values "High", "Medium", and "Low" are identified as common values for multiple
picklists across different objects. What is an approach a developer can take to
streamline
maintenance of the picklists and their values, while also restricting the values to the
ones
mentioned above?
• Create the picklist on each object as a required field and select "Display values
alphabetically, not in the order entered"
• Create the picklist on each object and use a Global Picklist Value Set
containing the values.
• Create the picklist on each object and select "Restrict picklist to the values defined in
the value set".
• Create the picklist on each object and add a validation rule to ensure data integrity.
correct answers B
6. Which aspect of Apex programming is limited due to multitenancy?
a. The number of active apex classes.
b. The number of methods in an apex class.
c. The number of records processed in a loop.
d. The number of records returned from a database query correct answers D
7. Universal Containers has an order system that uses an Order Number to identify an
order for customers and service agents. Order records will be imported into Salesforce.
How should the order number field be defined in Salesforce?
A. Number with External ID
B. Lookup
C. Direct Lookup
D. Indirect Lookup correct answers A
8. A Visual Flow uses an Apex Action to provide additional information about multiple
Contacts stored in a custom class, ContactInfo.Which is the correct definition of the
Apex
method that gets the additional information?
A. @InvocableMethod(label='Additional Info') Public static ContactInfo getInfo(Id
contactId) ( /implementation/ )
B. @InvocableMethod(label='Additional Info') Public ContactInfo getInfo(contactId}
( /implementation/ )
C. @InvocableMethod(label='Additional Info') Public List <ContactInfo>
getInfo(List<Id> contactIds} ( /implementation/ )
D. @InvocableMethod(label='Additional Info') Public static List<ContactInfo>
getInfo(List<Id> contactIds} { /implementation/ } correct answers D
9. Universal Containers wants to back up all of the data and attachments in its
Salesforce
org once a month. Which approach should a developer use to meet this requirement?
• Define a Data Export scheduled job.
, • Use the Data loader command line.
• Create a schedulable apex class.
• Schedule a report. correct answers A
10. Assuming that 'name; is a String obtained by an <apex:inputText> tag on a
Visualforce
page. Which two SOQL queries performed are safe from SOQL injections? Choose 2
answers
A . String query = 'SELECT Id FROM Account WHERE Name LIKE "%' +
name.noQuotes() + '%";
List<Account> results = Database.query(query);
B . String query = 'SELECT Id FROM Account WHERE Name LIKE "%' +
String.escapeSingleQuotes(name) + '%";
List<Account> results = Database.query(query);
C . String query = 'SELECT Id FROM Account WHERE Name LIKE "%' + name + '%";
List<Account> results = Database.query(query);
D . String query = '%' + name + '%';
List<Account> results = [SELECT Id FROM Account WHERE Name LIKE :query];
correct answers A
13. A developer needs to implement the functionality for a service agent to gather
multiple
pieces of information from a customer in order to send a replacement credit card. Which
automation tool meets these requirements?
a) Workflow
b) Flow Builder
c) Process builder
d) Escalation rules correct answers B
14. What does the Lightning Component framework provide to developers?
a) Automatic code generation
b) Customized testing
c) Prebuilt components that can be reused correct answers C
15. Which three operations affect the number of times a trigger can fire? Choose 3
Answers
a) Workflow Rules
b) Process Flows
c) Criteria based sharing calculations
d) Email messages
e) Roll-up Summary fields correct answers ABE
16. Which two are phases in the Salesforce Application Event propagation framework?
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller HopeJewels. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.99. You're not tied to anything after your purchase.