PD1 study Flashcards

1
Q

What is contained in an Aura component bundle?

A

Component, controller, helper, style, documentation, renderer, design, svg

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

How many levels deep can an inner class be?

A

1

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

What class is the isAccessible() method from?

A

Describe field result class

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

Can you perform a callout after a DML operation?

A

No, this is not allowed and will throw an ‘uncommited work pending’ error.

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

What does the runAs() method enforce?

A

record sharing NOT field permissions or permissions

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

How is executeAnonymous call run? (system or user context)

A

Always run in user context

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

Methods to prevent SOQL injection

A

Static queries with bind variables
String.escapeSingleQuotes()
Type casting
Replacing characters
Allowlisting

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

On access modifiers

A

Global - can be used anywhere in the org
- must be used for web service callouts
Public - makes apex class accessible to code within the same packages
Protected - can only be used on class methods
Private - cannot be used on top level classes

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

In order to propagate destructive changes from one org to another using the ant migration tool the xml file must specify

A
  • Name of the metadata component member
  • Name of the component metadata type
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Cascading triggers

A
  • Part of the same execution context
  • occur when a trigger triggers another trigger
  • no limit on number of triggers than can be executed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to ensure that a visualforce page uses lightning experience styling

A

The ‘lightningStylesheets’ attribute must be set to true in the <apex: page> tag

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

Preferred method to include JavaScript files in visualforce pages

A

Save it as a static resource and reference via <apex:includeScript> tag</apex:includeScript>

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

Ways to invoke a flow

A

Flow.Interview.FlowName.start();
Flow.Interview.createInterview(‘[FlowName]’,params).start();

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

What is the maximum number of records that can be processed by a trigger at a time?

A

200

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

Methods of preventing SOQL injection

A

Static queries with bind variables
String.escapeSingleQuotes()
Typecasting
Replacing characters
Allowlisting

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

What is the security vulnerability if ‘escape = false’ is used in a visualforce page

A

Cross-site scripting (XSS)

17
Q

How to ensure that a visualforce page uses lightning experience styling

A

Set the ‘lightningStylesheets’ attribute to true in the <apex:page> tag</apex:page>

18
Q

Component and application events in aura

A

Component -
Bubble (child to parent)
capture (parent to child)
Application
default

19
Q

To embed a screen flow on a lightning web component

A

use the <lightning-flow> tag into the lwcs markup</lightning-flow>

20
Q

Ordering of init events in an aura app

A

Innermost (child) to outermost (parent)

21
Q

What does the header contain in a debug log?

A

Api version, log category and log level

22
Q

Available perspectives in the debug log

A

All
Debug - contains Execution log, source and variables panels
Log only - Execution log only
Analysis - Includes the Stack tree, execution stack, Execution log and Execution overview panels

23
Q

Debug log categories

A

DBs
Callouts
Apexcode
Validation
Workflow
Profiling
Visualforce
System
Wave

24
Q

What does the heap and symbols tab show

A

Heap
Types - Shows the objects that were instantiated and the memory consumed in bytes
Instances - Shows the instances of a particular object type
States - Shows the objects fields and values at a particular checkpoint
Symbol
The symbols tab shows all symbols in memory at a checkpoint using a treeview `

25
Q

Package vs org development

A

Package - Every customisation is a single unit and is tracked
Org - Developer sandboxes are used
Both used vscode and salesforce cli

26
Q
A