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
Q

Use if the page needs to use web services or HTTP callouts

A

Custom Controller

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

Build a page that runs entirely in system mode

A

Custom Controller

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

Create a page with new actions

A

Custom Controller

28
Q

Customize user navigation

A

Custom Controller

29
Q

What are the two reasons to use a controller extension instead of a custom controller?

A
  • 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
Q

What are getter and setter methods?

A

Used to retrieve and submit values

31
Q

What can visualforce be?

A

Pretty much anything including standard pages and tabs

32
Q

Can an aura component contain a lightning web component?

A

No

33
Q

What do Aura components require in order to be used?

A

an interface

34
Q

What do lightning components require in order to be used

A

is exposed set to true in the configuration file and atleast one of the targest such as lightning_AppPage

35
Q

What are the four steps of apex testing?

A
  • write unit tests
  • run unit tests
  • generate code coverage
  • check test results
36
Q

Why do startTest and stopTest methods exist?

A

To separate test code from setup code

37
Q

What does a trace flag do?

A

Helps you to trace issues in the debug log

38
Q

What is package development?

A

every customization is managed as a single, separately deployable unit

39
Q

What Apex control statement allows a developer to traverse a dataset of unknown size?

A

For(Type variable: listOrSet) loop

40
Q

System.assert() vs. runAs()

A

System.assert tests the behaviour of the code whereas runAs allows you to test different user contexts

41
Q

What triggers do platform events support?

A

‘after insert’

42
Q

What is the difference between Stack Tree, Execution Stack, Execution Log, Executed Units, and Source

A

https://help.salesforce.com/s/articleView?id=sf.code_dev_console_view_system_log.htm&type=5

43
Q

How does API version affect which tests are run during deployment?

A

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
Q

What Visualforce component is used to display the standard detail page of a particular object?

A

apex:detail

45
Q

What is used to reference CSS in apex?

A

apex:stylesheet value

46
Q

What debug level gives access to a trace flag?

A

Finest

47
Q

What are the Child to Parent and Parent to Child Query Limits

A

Parent to Child is 5 Levels

Child to Parent is 1 Level

48
Q

What are the two keywords used to denote sharing in a visualforce controller?

A

With Sharing and Inherited sharing

49
Q

What is a standard controller action that aborts an edit operation?

A

Cancel

50
Q

Can a secondary manager be recorded with hierarchies?

A

Yes

51
Q

To use custom lightning components, what must be enabled?

A

Mydomain

52
Q

Can standard list controllers save attachments?

A

No, you need a custom list controller

53
Q

what is the addError() method used for?

A

to handle errors that may be caused by DML statements in Apex triggers

54
Q

What are 3 major security vulnerabilities in apex and visualforce development?

A

Cross-site Request Forgery, SOQL Injection, and Cross-Site Scripting

55
Q

When partial success is allowed, what is returned?

A

A list of SaveResult Objects

56
Q

Can the LimitException be caught?

A

No, the limit exception can never be caught

57
Q

What are three valid org types?

A

Scratch, Trial Production, Partner Developer Edition

58
Q

How can Apex triggers be used to prevent DML from succeeding?

A

addError() method

59
Q

Can multi-select picklist values be specified with AND/OR logic?

A

Yes

60
Q

What are some valid methods of preventing a soql attack?

A
  1. Static queries with bind variables
  2. String.escapeSingleQuotes()
  3. Typecasting
  4. Replacing characters
  5. Allowlisting
61
Q

What are Lightning Platform Esapi and JSENCODE() used to prevent?

A

cross site scripting XSS attacks

62
Q

What is getCause() used for in Apex?

A

To get the cause of an exception

63
Q

What is getMessage() used for in Apex?

A

To get the message that has been displayed to the user

64
Q

SOQL statements can evaluate to which data types?

A

sObject, List of sObject, and Integer

65
Q

Can list or set for loops be used for parellel iteration?

A

no