Debug and Deployment Tools: 5% Flashcards

1
Q

What is the Log Inspector and where do you find it?

A

Log Inspector can be found in the Developer Console. When you view the Logs panel and double-click a log, it will open it in the Log Inspector.

The Log Inspector is a context-sensitive execution viewer that shows the source of an operation, what triggered the operation and what occurred afterward. Use this tool to inspect debug logs that include database events, Apex processing, workflow and validation logic.

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

What does USER_DEBUG mean in the Execution log?

A

USER_DEBUG indicates the execution of a System.debug() statement

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

Can you directly create Apex code to run in a production environment?

A

Apex can never be directly created in a production environment

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

Where is Apex code unit tested?

A

Apex code is unit tested in a sandbox and in production when deployed

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

What is the Force.com Migration tool?

A

It is an ANT-based, extensible command line tool. It allows developers to use scripts for deploying Apex and is targeted for technical IT roles.

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

What is captured in the build.properties file?

A

The build.properties file contains the login details such as username, password and URLs for the target orgs. The login details are declared as property elements. This allows the developers to modify the login values any time.

If you are using a security token to log in from otuside the trusted IP range, paste the 25-digit token value at the end of the password.

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

What is captured in the build.xml file? (and what is the structure of it)

A

The build.properties file is included as the property file in the build.xml file.

This enables developers to override the default values for the local build environment.

Structure is as follows:

  • Each project contains targets and each target can depend on other targets
  • The target contains tasks to be performed as part of the automation script

When you run the Force.com Migration Tool you specify the name of the target that you want to build and the target runs various Force.com Migration Tool tasks as part of the build procedure.

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

What options are available to debug an Email Handler Class

A

Create a custom object to log any exceptions or debug statements.

Main reason: Developers do not have access to system log files in the context of an inbound email handler class

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

What are the 5 debugging levels?

A
info
debug
error
warning
critical
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A developer is creating unit tests for code that makes SOAP web service callouts. The developer needs to insert some test data as a part of the unit tests setup
Choose 3 answers

A) Surround the callout with Test.startTest(), Test.stopTest()
B) Surround the data insertion with Test.startTest(), Test.stopTest()
C) Implement the WebServiceMock interface
D) Update code to call Test.setMock()
E) Implement the HttpCalloutMock interface

A

A, C and D

  1. Surround the callout with Test.startTest(), Test.stopTest()
  2. Implement the WebServiceMock interface
  3. Update code to call Test.setMock()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
Which tool doesn't require a local file system for deploying metadata?
A) Force.com IDE
B) Workbench
C) Change Sets
D) Force.com Migration Tool
A

C) Change Sets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
What is the recommended tool for scriptable deployments to sandbox and Developer Edition orgs?
A) Force.com Migration Tool
B) Force.com IDE
C) Change Sets
D) All of the above
A

A) Force.com Migration Tool

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

Managed packages can be used in which scenarios?
A) For a one-time setup
B) For non-namespaced orgs.
C) For customizations that are upgradeable and that you distribute to multiple orgs
D) For customizations that are not upgradeable

A

C) For customizations that are upgradeable and that you distribute to multiple orgs

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

Identify whether a Changeset or Force.com Migration Tool is the best option given a scenario:
- Straight sandbox to production Migrations

A

Changeset

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

Identify whether a Changeset or Force.com Migration Tool is the best option given a scenario:
- Development projects for which you need to populate a test environment with a lot of setup changes

A

Force.com Migration Tool

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

Identify whether a Changeset or Force.com Migration Tool is the best option given a scenario:
- Multistage release processes

A

Force.com Migration Tool

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

Identify whether a Changeset or Force.com Migration Tool is the best option given a scenario:
- Change management without using a local file system

A

Changeset

18
Q

Identify whether a Changeset or Force.com Migration Tool is the best option given a scenario:
- Auditing previously deployed changes

A

Changeset

19
Q

Identify whether a Changeset or Force.com Migration Tool is the best option given a scenario:
- Enforcing code migration paths

A

Changeset

20
Q

Identify whether a Changeset or Force.com Migration Tool is the best option given a scenario:
- Repetitive deployment using the same parameters

A

Force.com Migration Tool

21
Q

Identify whether a Changeset or Force.com Migration Tool is the best option given a scenario:
- Deploying the same components to multiple orgs

A

Changeset

22
Q

Identify whether a Changeset or Force.com Migration Tool is the best option given a scenario:
- When migration from stage to production is done by IT

A

Force.com Migration Tool

23
Q

Identify whether a Changeset or Force.com Migration Tool is the best option given a scenario:
- Sceduling batch deployments

A

Force.com Migration Tool

24
Q

What deployment tool is the best for:

  • Project-based development
  • Deployment to any org
  • Synchronizing changes
  • Selecting only the components you need
A

Force.com IDE

25
Q

Which deployment tool is the best for:

  • Ad hoc queries
  • Deploy or retrieve components with a package.xml file
  • Metadata describes
  • Lightweight data loads
A

Force.com Workbench

26
Q

Which deployment tool is the best for:

  • Scripted commands and automated tasks
  • When your security policies indicate that passwords must not be stored on dis; forces interactive login
A

Force.com CLI

27
Q

Which deployment process is the best for

  • One-time setup of a development environment
  • A starting point configuration that can be customized
A

Unmanaged Packages

28
Q

Which deployment process is the best for:

  • Commercial applications
  • Functionality you want to add in multiple, possibly non-related orgs
A

Managed Packages

29
Q

How are metadata components specified in package.xml
A) Each component is specified in the tag
B) Each component is a JSON file
C) Each component is specified in the tab
D) Each component is specified in the tag and its type is in the tag

A

D) Each component is specified in the tag and its type is in the tag

30
Q

How do you delete metadata components from an org
A) Use change sets to delete a component
B) Perform a deployment using a delete manifest file named destructiveChanges.xml
C) Perform a deployment using package.xml and specify components with empty bodies
D) You can’t delete components
E) Very, very carefully. Only with supervision from a certified technical architect

A

B) Perform a deployment using a delete manifest file named destructiveChanges.xml

31
Q

The Deployment Status page shows the status and test results of what type of deployments?
A) All deployments including change sets
B) Change sets only
C) Deployments started from the Force.com Migration Tool and change sets
D) Metadata API deployments

A

A) All deployments including change sets

32
Q

When are you able to use the Quick Deploy feature
A) For unsuccessful validations
B) For components not represented in the Metadata API
C) For recent validations whose tests have passed and met code coverage requirements
D) After catching a deployment fish

A

C) For recent validations whose tests have passed and met code coverage requirements

33
Q

When is it advisable to use version control?
A) When you don’t have a sandbox or when performing large-scale development
B) When using change sets
C) If you have one developer
D) If you can’t find where the audit trail is stored

A

A) When you don’t have a sandbox or when performing large-scale development

34
Q

Not all metadata is represented in the Metadata API. This means that
A) Your source control system must have a means of storing non-XML data
B) Any functionality you create in sandbox that isn’t represented in the Metadata API, will need to manually recreated in every other environment
C) Developer Pro sandboxes contain all of your data
D) All of the above

A

B) Any functionality you create in sandbox that isn’t represented in the Metadata API, will need to manually recreated in every other environment

35
Q

A continuous integration system allows you to:
A) Automate the creation of Change Sets
B) Automatically create a source control repository
C) Automate deployments and tests from source control to sandbox
D) Meet an actual guy named Jenkins

A

C) Automate deployments and tests from source control to sandbox

36
Q

Name a tool you can use to debug your lightning components
A) Chrome Developer Tools
B) Force.com Developer Console and debug logs
C) Web browser console
D) All of the above

A

D) All of the above

37
Q

What does the debug mode provide (in debugging JavaScript Code)?
A) Minified JavaScript code
B) Obfuscated method names and code
C) Readable JavaScript code
D) JavaScript code parsed through Google Closure Compiler

A

C) Readable JavaScript code

38
Q
What statement can you use to display a message in the browser console for your JavaScript code? 
A) $A.log()
B) $A.warning()
C) console.log()
D) All of the above
A

D) All of the above

39
Q
How do you cause app execution to stop at a desired location?
A) console.log()
B) debugger;
C) A.log()
D) None of the above
A

B) debugger

40
Q

How many files (or MB) can the Metadata API deploy or retrieve at one time?

A

10 000 files (or 400 MB)