Salesforce PD1 Flashcards

1
Q

the settings, options, etc. for using that data

A

What is metadata?

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

allow different pieces of software to connect to each other and exchange information.

  • think about it like all the ports in your computer that allows different devices to connect and transfer data
  • When you add a custom object or field, the platform automatically creates a (answer) name that serves as an access point between your org and the database.
A

What are APIs?

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

Visualforce uses the traditional model–view–controller (MVC) paradigm, and includes sophisticated built-in controllers to handle standard actions and data access, providing simple and tight integration with the Force.com database using these.

A

What are standard controllers?

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

How does Salesforce implements MVC?

A

Model: Standard and Custom Objects - View: Visualforce Pages -Controller: ApexCode

-The MVC design pattern makes it easy to separate the view and its styling from the underlying database and logic.

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

two sets of code that represent the Controller in MVC architecture:

A
  1. Standard Controller system methods that are referenced by Visual force. 2. Custom Apex and JavaScript code which allows you to create your own controllers and use them to manipulate data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Difference between contacts and accounts

A

accounts are companies that you’re doing business with, and contacts are the people who work for them.

-If you’re doing business with a single person, like a solo contractor or an individual consumer, you use a Person Account.

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

What is the maximum amount of people a Salesforce Account Team can contain?

A

five people.

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

deals in progress. In Salesforce you can create these for existing accounts or by converting a qualified lead.

A

What are Opportunities?

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

people and companies that you’ve identified as potential customers. You can then convert them to opportunities and contacts.

A

What are Leads?

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

community of partners that use the flexibility of the Salesforce platform to build amazing apps that anyone can use(some are paid)

A

What is AppExchange?

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

What is Apex?

A

compiled, stored, and run entirely on the Force.com platform

  • Salesforce saves the instructions(compiled code) as metadata.
  • Apex is a strongly-typed language, that is, you must declare the data type of a variable when you first refer to it. Apex data types include basic types such as Integer, Date, and Boolean, as well as more advanced types such as lists, maps, objects and sObjects.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Apex syntax when declaring variables?

A

datatypevariable_name [ = value];

Example: Integer Count = 0;

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

a series of statements that are grouped together with curly braces { } and can be used in any place where a single statement would be allowed.

A

What is a block.

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

Name the types of collections Apex has.

A

Lists (arrays) -Maps -Sets

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

a collection of elements, such as Integers, Strings, objects, or other collections.

A

What is a List?

Created by: List list_name

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

a collection of unique, unordered elements. It can contain primitive data types, such as String, Integer, Date, and so on. It can also contain more complex data types, such as sObjects.

A

What is a Set?

Created by: Set My_string = new Set…

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

a collection of key-value pairs. Keys can be any primitive data type. Values can include primitive data types, as well as objects and other collections.

A

What is a Map?

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

Lightning components

A

use a tag-based markup language that enables you to build components to customize Lightning Experience, Salesforce1, or build your own standalone apps. Components use an event-driven architecture that’s powered by JavaScript on the client side and Apex on the server side.

-You can also use out-of-the-box components to speed up development.

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

consists of a tag-based markup language that gives developers a more powerful way of building applications and customizing the Salesforce user interface.

A

Visualforce

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

Things you can do with Visualforce:

A
  • Build wizards and other multistep processes.
  • Create your own custom flow control through an application.
  • Define navigation patterns and data-specific rules for optimal, efficient application interaction.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

can be used if you want to add functionality to a composite application that processes only one type of record at a time and does not require any transactional control (such as setting a Savepoint or rolling back changes).

A

SOAP API

22
Q

enable you to perform custom actions before or after events to records in Salesforce, such as insertions, updates, or deletions.

-Just like database systems support these, Apex provides this for managing records.

A

Apex triggers

23
Q

Describe the two types of triggers.

A

Before triggers are used to update or validate record values before they’re saved to the database.

After triggers are used to access field values that are set by the system (such as a record’s Id or LastModifiedDate field), and to affect changes in other records. The records that fire the after trigger are read-only.

24
Q

Considerations for trigger context variables to be aware of

A
  • trigger.new and trigger.old cannot be used in Apex DML operations.
  • You can use an object to change its own field values using trigger.new, but only in before triggers. In all after triggers, trigger.new is not saved, so a runtime exception is thrown.
  • trigger.old is always read-only.
  • You cannot delete trigger.new.
25
Q

used to access the records that caused the trigger to fire.

For example, Trigger.New contains all the records that were inserted in insert or update triggers. Trigger.Old provides the old version of sObjects before they were updated in update triggers

A

What are context variables?

26
Q

Used when you need to add restrictions on certain database operations, such as preventing records from being saved when certain conditions are met.

A

call the addError()

27
Q

enables code reuse, reduces the size of your triggers, and improves maintenance of your Apex code. It also allows you to use object-oriented programming.

A

Calling class methods

28
Q

What are some Trigger best practices?

A
Remember to bulkify and NO DML, SOQL within for loop and inline SOQL query.
One trigger per object
Logic-less triggers to keep it simple
Context specific handler methods
Use framework/map data structure
29
Q

What would be used to verify whether the current user has read, create, or update or delete access?

A

isAccessible, isCreateable, isUpdateable, isDeleatable

30
Q

an algorithm that derives its value from other fields, expressions, or values

A

What is a Formula?

31
Q

What are the Formula Data Types?

A

Checkbox(true/false), Currency, Date, Date/Time, Number, Percent, Text

32
Q

a summary field that calculates values from related records, such as those in a related list.

  • You can create this type of summary field to display a value in a master record based on the values of fields in a detail record
  • The detail record MUST be related to the master through a master-detail relationship.
A

What is a roll-up summary field

33
Q

tool that allows you to easily automate business processes using a convenient graphical representation of your process as you build it.

A

Process Builder

34
Q

lets you automate standard internal procedures and processes by setting up a rule to save time across your org.

-It allows a single if/then statement.

A

What is a Workflow?

35
Q

an automated process that your org can use to approve records in Salesforce.

  • You have to specify:
    1. The steps necessary for a record to be approved.
    2. The actions to take after it’s approved.
A

What is an approval process?

36
Q

verify that data entered by users in records meet the standards you specify before they can save it.
-return a true or false value

A

What are Validation Rules?

37
Q

any statement that places a value into a variable.

A

What is an assignment statement?

38
Q

SOSL (Salesforce Object Search Language)

A

a Salesforce search language that is used to perform text searches in records. Use SOSL to search fields across multiple standard and custom object records in Salesforce. SOSL is similar to Apache Lucene.

-you can embed SOSL queries directly in your Apex code. When SOSL is embedded in Apex, it is referred to as inline SOSL.

39
Q

SOQL (Salesforce Object Query Language)

A

used to read a record from Salesforce. When SOQL is embedded in Apex, it is referred to as inline SOQL.

40
Q

can be used to insert and manipulate records in the database through Apex directly using simple statements.

A

DML (Data Manipulation Language)

41
Q

a template or blueprint from which objects are created.

A

What is a class?

42
Q

What are the three different ways Salesforce has to customize the user interface?

A

Point and click, Visualforce, and Lighting.

43
Q

a special field type that connects two objects together.

A

What are Object relationships in data?

44
Q

a relationship between the two objects that allows you to look up one object from the related items on another object.

-can be one-to-one or one-to-many

A

What is a Look-up relationship?

45
Q

What is a master-detail relationship?

A

where one object is the master and another is the detail.

  • The master object controls certain behaviors of the detail object, like who can view the detail’s data.
  • if master is deleted, objects under it are deleted
46
Q

a special type of lookup relationship. The main difference between the two is they are only available on the User object.
-You can use them for things like creating management chains between users.

A

What are Hierarchical relationships?

47
Q

What are the two Data Import and Export options?

A

Data Import/Export Wizard, and Data Loader.

48
Q

create copies of your Salesforce org in separate environments. Use them for development, testing, and training, without compromising the data and applications in your production org.

A

What are Sandboxes?

49
Q

What are the Four kinds of Sandboxes?

A

Developer - Developer sandboxes copy only the org’s configuration, no data. You can create or load up to 200 MB of data, which is enough for many development and testing tasks. You can refresh a Developer sandbox once per day.

Developer Pro - A Developer Pro sandbox can store up to 1 GB of data (about 500,000 records). It’s otherwise similar to a Developer sandbox.

Partial Copy - A Partial Copy is a Developer sandbox, plus a sampling of data that you define in a sandbox template. You have limited control over the data that is copied. You can choose the objects, but not the records to pull. The sandbox can include up to 5 GB of data, which is about 2.5 million records, with a maximum of 10,000 records per object. You can refresh a Partial Copy sandbox every five days.

Full - A copy of your production organization and all its data. Because the Full sandbox is an exact copy, the amount of data in the sandbox is the same as your production org. You can refresh a Full sandbox every 29 days.

50
Q

Explain the testing guidelines

A

• Apex code can only be written in a sandbox environment or a Developer org, not in production. Apex code can be deployed to a production org from a sandbox.

•	Before you can deploy your code or package it for the Force.com AppExchange, at least 75% of Apex code must be covered by tests, and all those tests must pass. Each trigger must have some coverage

•	Test methods must be defined in test classes, which are classes annotated with isTest. AKA unit test.

Use test setup methods (@testSetup) to create test records once and then access them in every test method in the test class