67 - Which code in a Visualforce page and/or controller might present a security vulnerability?

67-131

Quiz
•
Other
•
Professional Development
•
Easy
Jumash Deryayev
Used 8+ times
FREE Resource
66 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
<apex: outputText value=" {!$CurrentPage.parameters,.userInput}” />
<apex: outputField value=" {!crtl.userInput}" />
<apex: outputText escape="false" value=" {!$CurrentPage.parameters.userInput}” />
<apex:outputField escape=”false" values=”{!ctrl.userInput}” />
2.
MULTIPLE SELECT QUESTION
1 min • 1 pt
68- A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.
Which two tools can they use to run a script that deploys to a sandbox?
Choose 2 answers
SFDX CLI
VSCode
Developer Console
Change Sets
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
68- A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.
Which two tools can they use to run a script that deploys to a sandbox?
Choose 2 answers
Ant Migration Tool
Change Sets
SFDX CLI
Developer Console
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
69 - A developer must create a ShippingCalculator class that cannot be instantiated and must include a
working default implementation of a calculate method, that sub-classes can override.
What is the correct implementation of the ShippingCalculator class?
public abstract class ShippingCalculator{ public virtual void calculate(){/*implementation*/}}
public abstract class ShippingCalculator{ public override calculate(){/*implementation*/}}
public abstract class ShippingCalculator{ public abstract calculate(){/*implementation*/}}
public abstract class ShippingCalculator{ public void calculate(){/*implementation*/}}
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
70 - 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 and use a Global Picklist Value Set containing the values.
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 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.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
71 - A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit.
The above method might be called during a trigger execution via a Lightning component.
Which technique should be implemented to avoid reaching the governor limit?
Use the System.Limits.getLimitsQueries () method to ensure the number of queries is less than 100.
Refactor the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
Use the system.Limits.getQueries () method to ensure the number of queries is less than 100.
Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds,
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
72 - A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules.
What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account?
1
2
3
4
Create a free account and access millions of resources
Similar Resources on Wayground
66 questions
AI Terminology Quiz

Quiz
•
Professional Development
69 questions
Test Your Knowledge_Hunting_AS_RO

Quiz
•
Professional Development
69 questions
HVAC FC 01

Quiz
•
Professional Development
64 questions
PRAXIS 5362

Quiz
•
Professional Development
70 questions
366-668e1a99978f8d4d5671b16e

Quiz
•
Professional Development
68 questions
ATM

Quiz
•
Professional Development
70 questions
HVAC FC 06

Quiz
•
Professional Development
70 questions
Chapter 11 Properties Of The Hair And Scalp

Quiz
•
Professional Development
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade