Notes on FF Questions Flashcards

1
Q

What is the correct order of save operations in SF?

A

Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are page controllers?

A

Page Controllers are essentially apex classes which are used to provide pages with data and business logic that defines how to access data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are standard controllers

A

These are provided by salesforce for every standard and custom object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What can be uploaded as static resources in VF?

A

Stylesheet, Javascript, images, archive, files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does CSS stand for

A

Cascading Style Sheet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an iFrame component?

A

These can be used to display an external website in SF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you display fields from related records in Visual Force?

A

Using Merge Field Syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What defines a custom controller?

A

A custom controller implements logic without leveraging a standard controller or building off its funcitonality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What do standard controllers contain?

A

Funcitonality that is used for standard Salesforce Pages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How can you ignore field level security and permissions with a visualforce page?

A

Use a custom controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What controller is used for custom objects by default?

A

Standard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the limits of a standard list controllers?

A

Data can be retrieved up to five levels of child to parent relationships and u to one level of parent child

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What actions can custom controllers be used to override?

A

Edit, view, save, delete, add new

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What should you use when: a Visualforce page requires basic functionality

A

Standard Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What should you use when: standard actions do not need to be customized

A

Standard Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Used to displayalist of records

A

Standard List Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Use list viewfilters on a Visualforce page

A

Standard List Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Create a Visualforce page with pagination features

A

Standard List Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Used to create a custom list controller or extend the pre-built Visualforce list controller

A

Standard Set Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Add features not supported by standard list controllers such as custom sorting

A

Standard Set Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Used to extend or override a standard action

A

Controller Extension

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Add a custom buttonto a page

A

Controller Extension

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Build a page that respects user permissions

A

Controller Extension

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Used to implement total custom logic

A

Custom Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Use if the page needs to use web services or HTTP callouts
Custom Controller
26
Build a page that runs entirely in system mode
Custom Controller
27
Create a page with new actions
Custom Controller
28
Customize user navigation
Custom Controller
29
What are the two reasons to use a controller extension instead of a custom controller?
- If the funcitonality already exists somewhere else, an extension allows for reuse - Declarative features depend on a standard controller, so you should consider using one if they are involved
30
What are getter and setter methods?
Used to retrieve and submit values
31
What can visualforce be?
Pretty much anything including standard pages and tabs
32
Can an aura component contain a lightning web component?
No
33
What do Aura components require in order to be used?
an interface
34
What do lightning components require in order to be used
is exposed set to true in the configuration file and atleast one of the targest such as lightning_AppPage
35
What are the four steps of apex testing?
- write unit tests - run unit tests - generate code coverage - check test results
36
Why do startTest and stopTest methods exist?
To separate test code from setup code
37
What does a trace flag do?
Helps you to trace issues in the debug log
38
What is package development?
every customization is managed as a single, separately deployable unit
39
What Apex control statement allows a developer to traverse a dataset of unknown size?
For(Type variable: listOrSet) loop
40
System.assert() vs. runAs()
System.assert tests the behaviour of the code whereas runAs allows you to test different user contexts
41
What triggers do platform events support?
'after insert'
42
What is the difference between Stack Tree, Execution Stack, Execution Log, Executed Units, and Source
https://help.salesforce.com/s/articleView?id=sf.code_dev_console_view_system_log.htm&type=5
43
How does API version affect which tests are run during deployment?
API 33.0 or earlier runs all local test by default except tests that come from installed managed packages. In API 34 or above, no tests are run by default if there is no apex class or trigger.
44
What Visualforce component is used to display the standard detail page of a particular object?
apex:detail
45
What is used to reference CSS in apex?
apex:stylesheet value
46
What debug level gives access to a trace flag?
Finest
47
What are the Child to Parent and Parent to Child Query Limits
Parent to Child is 5 Levels | Child to Parent is 1 Level
48
What are the two keywords used to denote sharing in a visualforce controller?
With Sharing and Inherited sharing
49
What is a standard controller action that aborts an edit operation?
Cancel
50
Can a secondary manager be recorded with hierarchies?
Yes
51
To use custom lightning components, what must be enabled?
Mydomain
52
Can standard list controllers save attachments?
No, you need a custom list controller
53
what is the addError() method used for?
to handle errors that may be caused by DML statements in Apex triggers
54
What are 3 major security vulnerabilities in apex and visualforce development?
Cross-site Request Forgery, SOQL Injection, and Cross-Site Scripting
55
When partial success is allowed, what is returned?
A list of SaveResult Objects
56
Can the LimitException be caught?
No, the limit exception can never be caught
57
What are three valid org types?
Scratch, Trial Production, Partner Developer Edition
58
How can Apex triggers be used to prevent DML from succeeding?
addError() method
59
Can multi-select picklist values be specified with AND/OR logic?
Yes
60
What are some valid methods of preventing a soql attack?
1. Static queries with bind variables 2. String.escapeSingleQuotes() 3. Typecasting 4. Replacing characters 5. Allowlisting
61
What are Lightning Platform Esapi and JSENCODE() used to prevent?
cross site scripting XSS attacks
62
What is getCause() used for in Apex?
To get the cause of an exception
63
What is getMessage() used for in Apex?
To get the message that has been displayed to the user
64
SOQL statements can evaluate to which data types?
sObject, List of sObject, and Integer
65
Can list or set for loops be used for parellel iteration?
no