Вы находитесь на странице: 1из 57

Questions and Answers

 1.

In an organization that has enabled multiple currencies adeveloper needs to


aggregate the sum of Estimated_Value__ccurrency field from the
CampaignMember object using a roll-upsummary field Total_Estimated_Value__c
on Campaign.How is the currency of the Total_Estimated_Value__c roll-
upsummary field determined?

Discuss

o A.

The values in CampaignMember.Estimated_value__c are converted into the currency of


the Campaign record, and the sum is displayed using the currency on the Campaign
record.

o B.

The values in CampaignMember.Estimated_value__c are converted into the currency on


teh majority of the CampaignMember records and the sum is displayed using that
currency.

o C.

The values in CampaignMember.Estimated_value__c are summed up and the resulting


Total_estimated_value__c field is displayed as a numeric field on the Campaign record.

o D.

The values in CampaignMember.Estimated_value__c are converted into the currency of


the current user, and the sum is displayed using the currency on the Campaign record

 2.

What is a capability of the Developer Console?

Discuss

o A.

Execute Anonymous Apex Code, Run REST API, Create/EDIT Code

o B.

Execute Anonymous Apex Code, Create/Edit Code, View Debug Logs


o C.

Execute Anonymous Apex Code, Run REST API, Deploy code changes

o D.

Execute Anonymous Apex Code, Create/Edit Code, Deploy code changes

 3.

What is a valid Apex statement?

Discuss

o A.

Integer w,x,y=123, z='abc';

o B.

Map conMap = [SELECT Name FROM Contact];

o C.

Private static constant Double rate = 7.75;

o D.

Account[] acctList = new List<Account> {new Account()};

 4.

A company has a custom object named Warehouse. EachWarehouse record has


a distinct record owner, and is related to aparent Account in Salesforce. Which
kind of relationship would adeveloper use to relate the Account to the Warehouse?

Discuss

o A.

Parent-Child

o B.

Lookup

o C.
Master-detail

o D.

One-to-Many

 5.

What would a developer do to update a picklist field on relatedOpportunity records


when a modification to the associatedAccount record is detected?

Discuss

o A.

Create a workflow rule with a field update

o B.

Create a Visualforce page

o C.

Create a Lightning Component

o D.

Create a process with Process Builder

 6.

On which object can an administrator create a roll-up summaryfield?

Discu-ss

o A.

Any object that is on the detail side of a master-detail relationship

o B.

Any object that is on the child side of a lookup relationship

o C.

Any object that is on the master side of a master-detail relationship

o D.
Any object that is on the parent side of a lookup relationship

 7.

Which code segment can be used to control when the dowork()method is called?

Discuss

o A.

For(triggerIsRunning t : trigger.new){ doWork(); }

o B.

If(trigger.IsRunning){ doWork(); }

o C.

For (trigger.IsInsert t : trigger.new){ doWork(); }

o D.

If(trigger.IsInsert){ doWork(); }

 8.

When would a developer use a custom controller instead of acontroller


extension?Choose 2 answers

Discuss

o A.

When a Visualforce page needs to replace the functionality of a standard controller

o B.

When a Visualforce page needs to add new actions to a standard controller

o C.

When a Visualforce page should not enforce permissions or field-level security

o D.

When a Visualforce page does not reference a single primary object

 9.
Why would a developer use Test.startTest() and Test.stopTest()?

Discuss

o A.

To start and stop anonymous block execution when execution when executing anonymous
Apex Code

o B.

To avoid Apex code coverage requirements for the code between these lines

o C.

To create an additional set of governor limits during the execution of a single test class

o D.

To indicate test code so that it does not impact Apex line count governor limits

 10.

When the number of record in a recordset is unknown, whichcontrol statement


should a developer use to implement a set ofcode that executes for every record
in the recordset withoutperforming a size() or .lenght() method call?

Discuss

o A.

While (Condition) {...}

o B.

For (init_stmt; exit_condition; increment_stmt) {...}

o C.

For(Variable : list_or_set){...}

o D.

Do {...} While (Condition)

 11.
What must the Controller for a VisualForce page utilize to overridethe Standard
Opportunity view button?

Discuss

o A.

The StandardSetController to support related lists for pagination.

o B.

A callback constructor to reference the StandardController

o C.

The Opportunity StandardController for pre-built functionality.

o D.

A constructor that initializes a private Opportunity variable.

 12.

Which type of code represents the Controller in MVC architectureon the


Force.com platform?Choose 2 answers

Discuss

o A.

Javascript that is used to make a menu item display itself

o B.

A static resource that contains CSS and images

o C.

StandardController system methods that are referenced by Visualforce

o D.

Custom Apex and Javascript code that is used to manipulate data

 13.

An org has different Apex classes that provide Account-relatedfunctionality. After a


new validation rule is added to the Accountobject, many of the test methods
fail.What can be done to resolve the failures and reduce the numberof code
changes needed for future validation rules?Choose 2 answers.

Discuss

o A.

Create a method that loads valid Account records from a Static Resource, and call this
method within test methods.

o B.

Create a method that queries for a valid Account records, and call this method from within
test methods

o C.

Create a method that creates valid Account records, and call this method from within test
methods

o D.

Create a method that performs a callout for a valid Account record, and call this method
within test methods

 14.

A developer needs to automatically populate the ReportsTo fieldin a Contact


record based on the values of the related Accountand Department fields in the
Contact record.Which type of trigger would the developer create?Choose 2
answers

Discuss

o A.

Before update

o B.

After update

o C.

Before insert

o D.
After insert

 15.

What is a capability of cross-object formulas fields?Choose 3 answers.

Discuss

o A.

Formula fields can expose data the user does not have access to in a record

o B.

Formula fields can reference fields from Master-Detail or lookup parent relationships

o C.

Formula fields can reference fields from objects that are up to 10 relationships away

o D.

Formula fields can reference fields in a collection of records from a child relationship

o E.

Formula fields can be use in three roll-up summaries per object

 16.

What is the result when a Visualforce page calls an Apexcontroller, which calls
another Apex class, which then results inhitting a governor limit?

Discuss

o A.

Any changes up to the error are saved

o B.

All changes before a savepoint are saved

o C.

Any changes up to the error are rolled back

o D.
All changes are saved in the first Apex Class

 17.

A developer has the following code block:Public class PaymentTax {Public static
decimal salesTax = 0.0875;}Trigger OpportunityLineItemTrigger on
OpportunityLineItem(before insert, before update){PaymentTax PayTax = new
PaymentTax();Decimal ProductTax = ProductCost = XXXXXXXXXXXXX;}To
calculate the productTax wich code segment would adeveloper insert at the
XXXXXXXX to make the value of the classvariable SalesTax accessible within the
trigger?

Discuss

o A.

PayTax.SalesTax

o B.

SalesTax

o C.

PaymentTax.SalesTax

o D.

OpportunityLineItemTrigger.SalesTax

 18.

Which data structure is returned to a developer when performinga SOSL search?

Discuss

o A.

A map of sObject types to a list of sObjects

o B.

A list of SObjects

o C.

A map of SObject types to a list of lists of Sobjects.


o D.

A list of lists of SObjects.

 19.

Which standard field needs to be populated when a developerinserts new Contact


records programmatically?

Discuss

o A.

AccountId

o B.

LastName

o C.

FirstName

o D.

Name

 20.

A developer creates a new Visualforce page and Apex extension,and writes test
classes that exercise 95% coverage of the newApex extension.Change set
deployment to production fails with the test coveragewarning : * Average test
coverage across all apex classes andtriggers is 74% at least 75% test coverage is
required.What can the developer do to successfully deploy the newVisualforce
page and extension?

Discuss

o A.

Select *Disable Parallel Apex testing * to run all the test

o B.

Select *fast Deployment* to bypass running all the tests.

o C.
Create test classes to exercise the visualforce page markup

o D.

Add test methods to existing test classes from previous deployments. *

 21.

To Which primitive data type in Apex is a currency fieldautomatically assigned?

Discuss

o A.

Currency

o B.

Integer

o C.

Decimal

o D.

Double

 22.

An sObject named Application__c has a lookup relationship toanother sObject


named Position__cBoth Application__c and Position__c have a picklist field
namedStatus__cWhen the Status__c field on Position__c is updated, the
Status__cfield on Application__c needs automatically with the same value,and
execute a workflow rule on Application__c.How can a developer accomplish this?

Discuss

o A.

By changing Application__c.Status__c into a roll-up summary field

o B.

By using an Apex trigger with a DML operation

o C.
By changing Application__c.Status__c into a formula field

o D.

By Configuring a cross-object field update with a workflow

 23.

A company that uses a custom object to track candidates wouldlike to send


candidate information automatically to a third-partyhuman resources system when
a candidate is hired. What can adeveloper do to accomplish this task?

Discuss

o A.

Create an escalation rule to the hiring manager.

o B.

Create a process builder with an outbound message action.

o C.

Create a workflow rule with an outbound message action.

o D.

Create an auto response rule to the candidate.

 24.

A developer needs to provide a Visualforce page that lets usersenter Product-


specific details during a Sales cycle. How can this beaccomplished?Choose 2
answers

Discuss

o A.

Download and Unmanaged Package from the AppExchange that provides a Custom
Visualforce

o B.

Copy the standard page and then make a new Visualforce page for product data entry

o C.
Create a new Visualforce page and an Apex controller to provide Product data entry

o D.

Download a Managed Package from the AppExchange that provides a custom Visualforce

 25.

A developer runs the following anonymous code block:List<Account> acc =


[SELECT Id FROM Account LIMIT 10]Delete
acc;Database.emptyRecycleBin(acc);system.debug(Limits.getDMLStatements()+' ,
'+Limits.getLimitDMLStatements());What is the result?

Discuss

o A.

11, 150

o B.

150, 2

o C.

150 ,11

o D.

2 , 150

 26.

A developer wrote a workflow email alert on case creation so thatan email is sent
to the case owner manager when is created.When will the email be sent?

Discuss

o A.

Before Trigger execution

o B.

After Trigger execution

o C.
Before Committing to database

o D.

After Committing to database

 27.

Which component is available to deploy using Metadata API?Choose 2 answers

Discuss

o A.

Account Layout

o B.

Case Feed Layout

o C.

Case Layout

o D.

Console Layout

 28.

What is an accurate statement about with sharing keyword?Choose 2 answers

Discuss

o A.

Both inner and outer classes can be declared as with sharing

o B.

Inner classes do not inherit the sharing setting from the container class

o C.

Inner classes inherit the sharing setting from the container class

o D.
Either inner or outer classes can be declared as with sharing, but no both

 29.

On a visualforce page with a custom controller, how should adeveloper retrieve a


record by using and ID that is passed on theURL?

Discuss

o A.

Create a new PageReference object with the id

o B.

Use the tag in the visualforcepage

o C.

Use the $Action.View method in the Visualforce page

o D.

Use the contructor method for the controller.

 30.

A developer needs to create records for the object Property__c .The developer
creates the following code block:List<Property__c> propertiesToCreate
=helperClass.CreateProperties();Try{O3}Catch (Exception exp){ }Which line of
code would the developer insert at line 03 to ensurethat at least some records are
created, even if a few records haveerrors and fail to be created?

Discuss

o A.

Datebase.insert(propertiesToCreate,System.ALLOW_PARTIAL);

o B.

Insert propertiesToCreate;

o C.

Database.insert(propertiesToCreate,false);

o D.
Databas.insert(propertiesToCreate);

 31.

What is true of a partial sandbox that is not true of a full sandbox?Choose 2


answers

Discuss

o A.

Use of change sets

o B.

More frequent refreshes

o C. When would a developer use a custom controller instead of acontroller


extension

Only includes necessary metadata

o D.

Limited to 5gb of data

 32.

What is a Characteristic of the Lightning Component framework?Choose 2 answer

Discuss

o A.

It works with existing Visualforce pages

o B.

It uses XML as its data format

o C.

It has an event- driven architecture

o D.

It includes responsive components


 33.

What is a valid statement about apex classes and interfaces?Choose 2 answers.

Discuss

o A.

Exception classes must end with the word exception

o B.

The default modifier for a class is private

o C.

A class can have multiple levels of inner class

o D.

The default modifier for an interface is private

 34.

What is valid source and destination pair that can send or receivechange sets?
Choose 2 Answer

o A.

Sandbox to Sandbox.

o B.

Developer edition to production

o C.

Developer edition to sandbox

o D.

Sandbox to production.

 35.

How would a developer use Schema Builder to delete a customfield from the
Account object that was required for prototypingbut is no longer needed?
Discuss

o A.

Delete the field from Schema Builder and then all references in the code will be removed.

o B.

Mark the field for deletion in Schema Builder and then delete it from the declarative UI.

o C.

Remove all references from the code and then delete the custom field from Schema
Builder

o D.

Remove all the references in the code and then the field will be removed from Schema
Builder

 36.

How Can a developer avoid exceeding governor limits when usingan apex
Trigger?Choose 2 answers.

Discuss

o A.

By using Maps to hold data from query results

o B.

By performing DML transactions on lists of sObjects

o C.

By using a helper class that can be invoked from multiple triggers

o D.

By using the Database class to handle DML transactions

 37.

How can a developer refer to, or instantiate, a PageReference inApex?Choose 2


Answers
Discuss

o A.

By using a PageReference with a partial or full URL

o B.

By using the Page object and a Visualforce page name

o C.

By using the PageReference.Page() method with a partial or full URL

o D.

By using the ApexPages.Page() method with a Visualforce page name

 38.

When loading data into an organization, what can a developer doto match records
to update existing records? Choose 2 answer

Discuss

o A.

Match the name field to a column in the imported file.

o B.

Match the Id field to a column in the imported file.

o C.

Match an external Id Text field to a column in the imported file.

o D.

Match an auto-generated Number field to a column in the imported file.

 39.

The Review__c object has a lookup relationship up to theJob_Application__c


object. The job_application__c objet has amaster-detail relationship up the
position__c objet. Therelationship field names are based on the auto-
populateddefaults.What is the recommended way to display field data from
therelated Review__c records on a Visualforce page for a singleposition__c
record?

Discuss

o A.

Utilize the Standard Controller for position__c and a Controller Extension to query for
Review__c data.

o B.

Utilize the Standard Controller for Position__c and cross-object Formula fields on the
job_Application__c object to display Review__c data.

o C.

Utilize the Standard Controller for Position__c corss-object Formula fields on the
Review__c object to display Review__c data.

o D.

Utilize the Standard Controller for position__c and expression syntax in the page to display
related Review__c data through the job_Application__c object.

 40.

A developer has a block of code that omits any statements thatindicate whether
the code block should execute with or withoutsharing.What will automatically obey
the organization wide defaults andsharing settings for the user who executes the
code in thesalesforce organization?

Discuss

o A.

Anonymous Blocks

o B.

HTTP Callouts

o C.

Apex Triggers

o D.
Apex Controllers

 41.

In Which order does Salesforce execute events upon saving arecord?

Discuss

o A.

Validation rules, Before Triggers, After Triggers, Workflow Rules, Assignment Rules,
Commit

o B.

Before Triggers, Validation rules, After Triggers, Assignment Rules, Workflow Rules,
Commit

o C.

Validation rules, Before Triggers, After Triggers, Assignment Rules, Workflow Rules,
Commit

o D.

Before Triggers, Validation rules, After Triggers, Workflow Rules, Assignment Rules,
Commit

 42.

Which resource can be included in a Lightning Componentbundle? Choose 2


answers

Discuss

o A.
 Javascript
 Helper
o B.

Apex class

o C.

Adobe Flash

o D.
Documentation

 43.

In the code below what types does boolean inherit from?boolean b = true

Discuss

o A.

Class

o B.

Enum

o C.

Object

o D.

String

 44.

What is a correct pattern to follow when programming in Apex ona multi-tenant


platform?

Discuss

o A.

Queries select the fewest fields and records possible to avoid exceeding governor limits

o B.

Apex classes use the "with sharing" Keyword to prevent access from other server tenants

o C.

DML is performed on one record at a time to avoid possible data concurrency issues

o D.

Apex code is created in a separate environment from schema to reduce deployment


errrors
 45.

A developer writes a before insert trigger.How can the developer access the
incoming records in the triggerbody?

Discuss

o A.

By accessing the Trigger.newList context variable

o B.

By accessing the Trigger.new context variable

o C.

By accessing the Trigger.newRecords context variable

o D.

By accessing the Trigger.newMap context variable

 46.

What is the preferred way to reference web content- such asimages, stylesheets,
JavaScript, and other libraries that is used inVisualforce pages?

o A.

By accessing the content from a third-party CDN

o B.

By uploading the content in the Documents tab

o C.

By accessing the content from a Chatter Files

o D.

By uploading the content as a Static Resource

 47.

Public class MyController1 {public String myString;Public String


getMyString(){Return 'getMyString';}Public string getStringMethod1(){Return
myString;}Public string
getStringMethod2(){If(myString==null){myString='method2';}return
mystring;}}<apex:page controller="MyController1">{!myString}, {!stringMethod1},
{!StringMethod2}, {!myString}</apex:page>What does the user see when
accessing the custom object page?

Discuss

o A.

GetMyString, , Method2, getMyString

o B.

GetMyString, , ,

o C.

, , Method2, getMyString

o D.

, , Method2,

 48.

A developer creates a Workflow Rule declaratively that updates afield on an


object. An apex update trigger exists for the object.What happens when a user
updates a record?

Discuss

o A.

No changes are made to the data

o B.

Both the Apex Trigger and Workflow Rule are fired only once

o C.

The Apex Trigger is fired more than once

o D.

The Workflow Rule is fired more than once


 49.

A developer wants to display all of the available record types for aCase object .
The developer the picklist values for the Case statusfield. The Case object and the
Case Status field ....Which action can the developer perform to get the record
typesand picklist values in the controller?Choose 2 answers.

Discuss

o A.

Use Schema.RecordTypeInfo returned by


Case.SObjectType.getDescribe().getRecordTypeInfo();

o B.

Use Schema.PickLisEntry returned by Case.Status.getDescribe().getPicklistValues();

o C.

Use SOQL to query Case records in the org to get all values for the Status picklis field

o D.

Use SOQL to query Case records in the org to get all the RecordType values available for
Case

 50.

Which statement about the Lookup Relationship between aCustom object and a
Standard Object is correct?

Discuss

o A.

The Custom Object will be deleted when the referenced Standard Object is deleted

o B.

The lookup Relationship cannot be marked as required on the page layout for the Custom
Object

o C.

The custom Object inherits security from the referenced Standard Object

o D.
The Lookup relationship on the Custom Object can prevent the deletion of the Standard
Object

 51.

What is the minimum log level needed to see user generateddebug statements?

Discuss

o A.

DEBUG

o B.

FINE

o C.

WARN

o D.

INFO

 52.

When creating unit tests in Apex, Which statement is accurate?

Discuss

o A.

Increased test coverage requires large test classes with many lines of code in one method

o B.

System Assert statements that do not increase code coverage contribute important
feedback in unit

o C.

Unit tests with multiple methods result in all methods failing every time one method fails

o D.

Triggers do not require any unit tests in order to deploy them from sandbox to production
 53.

A developer has a single custom controller class that works with aVisualforce to
support creating and editing multiple sObjects. Thewizard accepts data from user
inputs across multiple Visualforcepages and from a parameter on the initial
URL.Which statements is unnecessary inside the unit test for thecustom
controller?

Discuss

o A.

ApexPages.currentPage().getParameter.put(‘input’,’Testvalue’)

o B.

String nextPage = controller.save().getUrl();

o C.

Public ExtendedController(ApexPages.StandardController cntrl) {}

o D.

Test.setCurrentPage(PageRef)

 54.

A custom exception named "RecordNotFoundException" isdefined by the following


code block:public class RecordNotFoundException extends Exception { }Which
statement can a developer use to throw the customexception?Choose 2 answers

Discuss

o A.

Throw RecordNotFoundException('Problem ocurred')

o B.

Throw new RecordNotFoundException();

o C.

Throw RecordNotFoundException();

o D.
Throw new RecordNotFoundException('Problem occurred')

 55.

The sales management team requires that the Lead Source fieldof the Lead
record be populated when a Lead is converted. Whatwould a developer use to
ensure that a user populates the LeadSource field prior to converting to a Lead?

Discuss

o A.

Validation rule

o B.

Process builder

o C.

Formula Field

o D.

Workflow rule

 56.

A developer has the following trigger that fires after insert andcreates a child Case
whenever a new Case is created.List<Case> childcases = new
List<Case>();for(Case parent: Trigger.new){Case child = new Case(ParentId =
parent.Id, Subject =parent.Subject);childCases.add(child);}insert childCases;What
happens after the code block executes?

Discuss

o A.

A child case is created for each parent case in Trigger.new

o B.

The trigger enters an infinite loop and eventually fails

o C.

The trigger fails if the Subject field on the parent is blank


o D.

Multiple child cases are created for each parent case in Trigger.new

 57.

What should a developer working in a sandbox use to exercisea new test class
before the developer deploys that test class toproduction? Choose 2 answer

Discuss

o A.

The REST API and Apex TestRun method

o B.

The test menu in the developer console.

o C.

The Apex Test Execution page in Salesforce Setup

o D.

The Run Test page in Salesforce Setup.

 58.

A developer created an Apex trigger using the Developer Consoleand now wants
to debug code.How can the developer accomplish in the Developer Console?

Discuss

o A.

Add the user name in the Log inspector.

o B.

Select the override Log triggers checkbox for the trigger

o C.

Open the Logs tab in the Developer Console.

o D.
Open the Progress tab in the Developer Console.

 59.

Which requirement needs to be implemented by using standardworkflow instead of


Process Builder?Choose 2 answers

Discuss

o A.

Create activities at multiple intervals

o B.

Submit a contract for approval

o C.

Send an outbound message without Apex code

o D.

Copy and account address to its contacts

 60.

A developer uses a before insert trigger on the Lead object to fetch the
Territory__c object, where the Territory__c.PostalCode__c matches the
Lead.PostalCode. The code fails when the developer uses the Apex Data Loader
to insert 10,000 Lead records. The developer has the following code block:01
for(Lead l : Trigger.new){02 if(l.PostalCode != null){03 List TerrList = [select
Id FROM Territory__c WHERE PostalCode__c =:
l.PostalCode];04 if(terrList.size() >0){05 l.Territory__c =
terrList[0].Id;06 }07 }08 }Which line of code is causing the code block to fail?

Discuss

o A.

03: A SOQL query is located inside of the for loop code.

o B.

01: Trigger.new is not valid in a before insert Trigger.

o C.
02: a NullPointer exception is thrown if PostalCode is null.

o D.

05: The Lead in a before insert Trigger cannot be updated

 61.

What is the benefit of the Lightning Component Framework?

Discuss

o A.

Better performance for custom SalesforceI Mobile apps.

o B.

More pre-built components to replicate the Salesforce look and feel

o C.

More centralized control via server-side logic.

o D.

Better integration with Force.com sites.

 62.

Which statement about change set deployments is accurate?Choose 3 answers

Discuss

o A.

They require a deployment connection

o B.

They can be used to deploy custom settings data

o C.

They can be used to transfer Contact records

o D.
They use an all or none deployment model

o E.

They can be used only between related organizations

 63.

What is an accurate statement about variable scope?Choose 3 answers

Discuss

o A.

A variable can be defined at any point in a block

o B.

Parallel blocks can use the same variable name

o C.

Sub-blocks cannot reuse a parent block's variable name

o D.

A static variable can restrict the scope to the current block if its values is null

o E.

Sub-blocks can reuse a parent´s block variable name if its value is null

 64.

A company wants a recruiting app that models candidates and interviews; displays
the total number of interviews oneach candidate record; and defines security on
interview records that is independent from the security on candidaterecords.What
would a developer do to accomplish this task?Choose 2 answers.

Discuss

o A.

Create a trigger on the Interview object that updates a field on the Candidate object

o B.

Create a roll-up summary field on the Candidate object that counts Interview records.
o C.

Create a lookup relationship between the Candidate and Interview objects.

o D.

Create a master-detail relationship between the Candidate and Interview objects.

 65.

Which scenario is invalid for execution by unit tests?

Discuss

o A.

Executing methods as different users

o B.

Loading test data in place of user input for Flows.

o C.

Loading the standard Pricebook ID using a system method

o D.

Executing methods for negative test scenarios.

 66.

How many times does 'str' is added to the list? List<String> strLst = new
List<String>(); for(Integer i=0;i<99;i++) { strLst.add('str'+i);} strLst.add('str'+'100');

Discuss

o A.

101

o B.

102

o C.

100
o D.

 67.

A reviewer is required to enter a reason in the comments field only when a


candidate is recommended to be hired.Which action can a developer take to
enforce this requirement?

Discuss

o A.

Create a required Visualforce component

o B.

Create a required comments field

o C.

Create a formula field

o D.

Create a validation rule.

 68.

Which is a valid way of loading external Javascript files into a VisualForce


page?Choose 2 anwers

Discuss

o A.

Using an <*apex:define*> tag

o B.

Using an <*apex:includeScript*> tag

o C.

Using a <*script*> tag

o D.
Using a <*link*> tag

 69.

Which action can a developer perform in a before update trigger?Choose 2


answers

Discuss

o A.

Update the original object using an update DML operation

o B.

Change field values usign the Trigger.new context variable

o C.

Display a custom error message in the application interface

o D.

Delete the original object using a delete DML operation

 70.

When can a developer use a custom Visualforce page in a Force.com


application?Choose 2 answers

Discuss

o A.

To modify the page layout settings for a custom object

o B.

To create components for dashboards and layouts

o C.

To deploy components between two organizations

o D.

To generate a PDF document with application Data


 71.

In a single record, a user selects multiple values from a multi-select picklist.How


are the selected values represented in Apex?

Discuss

o A.

As a List with each value as an element in the list

o B.

As a Set with each value as an element in the set

o C.

As a String with each value separated by a semicolon

o D.

As a String with each value separated by a comma

 72.

A developer writes a SOQL query to find child records for a specific parent.How
many levels can be returned in a single query?

Discuss

o A.

o B.

o C.

o D.

 73.
Where would a developer build a managed package?

Discuss

o A.

Partial Copy Sandbox

o B.

Developer Edition

o C.

Unlimited Edition

o D.

Developer Sandbox

 74.

A developer creates an Apex helper class to handle complex trigger logic.How can
the helper class warn users when the trigger exceeds DML governor limits?

Discuss

o A.

By using Limits.getDMLRows() and then displaying an error message before the number
of DML statements is exceeded.

o B.

By using ApexMessage.Message() to display an error message after the number of DML


statements is exceeded.

o C.

By using PageReference.setRedirect() to redirect the user to a custom Visualforce page


before the number of DML statements is exceeded.

o D.

By using Messaging.SendEmail() to continue the transaction and send an alert to the user
after the number of DML statements is exceeded.

 75.
What is a capability of formula fields?Choose 3 answers

Discuss

o A.

Determine if a datetime field has passed using the NOW function

o B.

Determine which of three different images to display using IF function

o C.

Display the previous value for a field using the PRIORVALUE funtion

o D.

Return and display a field value from another object using the VLOOKUP function

o E.

Generate a link using the HIPERLINK function to a specific record in a legacy system

 76.

A developer needs to ensure there is sufficient test coverage for an Apex method
that interacts with Accounts. Thedeveloper needs to create test data.What is the
preferred way to load this test data into Salesforce?

Discuss

o A.

By using WebServiceTests

o B.

By using Documents

o C.

By using Static Resources

o D.

By using HttpCalloutMocks
 77.

A developer wants to list all of the Tasks for each Account on the Account detail
page.When a Task is created for a Contact, what does the developer need to do to
display the Task on the related Accountrecord?

Discuss

o A.

Create a Workflow Rule to relate the Task to the Contact´s Account

o B.

Nothing. The Task cannot be related to an Account and a Contact

o C.

Create an Account formula field that displays the Task information

o D.

Nothing. The Task is automatically displayed on the Account Page.

 78.

A developer wants to create a custom object to track Customer Invoices.How


should Invoices and Accounts be related to ensure that all Invoices are visible to
everyone with access to anAccount?

Discuss

o A.

The Invoice should have a Master-Detail relationship to the Account

o B.

The Account should have a Master-Detail relationship to the Invoice.

o C.

The Account should have a Lookup relationship to the Invoice

o D.

The Invoice should have a Lookup relationship to the Account


 79.

A candidate may apply to multiple jobs at the company Universal Containers by


submtting a single application per jobposting. Once an application is submitted for
a job posting, that application cannot be modified to be resubmitted to adifferent
job posting.What can the administrator do to associate an application with each
job posting in the schema for the organization?

Discuss

o A.

Create a lookup relationship in the Applications custom object to the Job Postings custom
object

o B.

Create a master-detail relationship in the Application custom object to the Job Postings
custom object.

o C.

Create a lookup relationship on both objects to a junction object called Job Posting
Applications.

o D.

Create a master-detail relationship in the Job Postings custom object to the Applications
custom object.

 80.

A developer needs to create a Visualforce page that will override the Standard
Account edit button. The page will beused to validate the account´s address using
a SOQL query. The page will also allow the user to make edits to
theaddress.Where would the developer write the Account address verification
logic?

Discuss

o A.

In a Controller Extension

o B.

In a Standard Extension
o C.

In a Custom Controller

o D.

In a Standard Controller

 81.

What is a good practice for a developer to follow when writing a trigger?Choose 2


answers

Discuss

o A.

Using synchronous callouts to call external systems

o B.

Using the Map data structure to hold query results by ID

o C.

Using @future methods to perform DML operations

o D.

Using the Set data structure to ensure distinct records

 82.

Which statement would a developer use when creating test data for products and
pricebooks?

Discuss

o A.

List objList= Test.loadData(Acccount.sObjectType, ',myResource');

o B.

IsTest(SeeAllData=false)

o C.
Id pricebookId = Test.getStandardPricebookId();

o D.

Pricebook pb = new pricebook();

 83.

Which declarative method helps ensure quality data?Choose 3 answers

Discuss

o A.

Workflow alerts

o B.

Page layouts

o C.

Lookup filters

o D.

Validation rules

o E.

Exception handling

 84.

A visualforce page has a standard controller for an object that has a lookup
relationship to a parent object.How can a developer display data from the parent
record on the page?

Discuss

o A.

By using merge field syntax to retrieve data from the parent record

o B.

By adding a second standard controller to the page for the parent record
o C.

By using SOQL on the Visualforce page to query for data from the parent record

o D.

By using a roll-up formula field on the child record to include data from the parent record

 85.

A developer needs to know if all tests currently pass in a Salesforce


environment.Which feature can the developer use?Choose 2 answers.

o A.

Salesforce UI Apex Test Execution

o B.

Workbench Metadata Retrieval

o C.

Developer Console

o D.

ANT Migration Tool

 86.

A Hierarchy Custom Setting stores a specific URL for each profile in


Salesforce.Which statement can a developer use to retrieve the correct URL for
the current user´s profile and display this on aVisualforce page?

Discuss

o A.

{!$Setup.Url_Settings__c[$Profile.Id].URL__c}

o B.

{!$Setup.Url_Settings_c.Instance[Profile.Id].URL__c}

o C.

{!$Setup.Url_Settings__c[Profile.Id].URL__c}
o D.

{!$Setup.Url_Settings__c.URL__c}

 87.

What is an important consideration when developing in a multi-tenant


environment?

Discuss

o A.

Governor limits prevent tenants from impacting performance in multiple orgs on the same
instance

o B.

Unique domain names take the place of namespace for code developed for multiple orgs
on multiple instances.

o C.

Org-wide data security determines whether other tenants can see data in multiple orgs on
the same instance.

o D.

Polyglot persistence provides support for a global, multilingual user base in multiple orgs in
multiple instances

 88.

A developer has the following query:Contact c = [SELECT id, firstname, lastname,


email FROM Contact WHERE lastname = 'Smith'];What does the query return if
there is no Contact with the last name = 'Smith'?

Discuss

o A.

An error that no rows are found

o B.

A contact with empty

o C.
A contact initialized to null

o D.

An empty List of Contacts

 89.

A developer creates an Apex class that includes private methods.What can the
developer do to ensure that the private methods can be accessed by the test
class?

Discuss

o A.

Add the TestVisible attribute to the Apex class

o B.

Add the SeeAllData attribute to the test class

o C.

Add the SeeAllData atrribute to the test methods

o D.

Add the TestVisible attribute to the Apex methods

 90.

How can a developer determine, from the DescribeSObjectResult, if the current


user will be able to create records for anobject in Apex?

Discuss

o A.

By using the canCreatable() method

o B.

By using the isCreatable() method

o C.

By using the isInsertable() method


o D.

By using the hasAccess() method

 91.

Which user can edit a record after it has been loocked for approval?Choose 2
answers

Discuss

o A.

Any user with a higher role in the hierarchy

o B.

An administrator

o C.

Any user who approved the record previously

o D.

An user who is assigned as the current approver

 92.

A developer has a block of code that omits any statements that indicate whether
the code block should execute with orwithout sharing.What will automatically obey
the organization-wide defaults and sharing settings for the user who executes the
code inthe Salesforce organization?

Discuss

o A.

HTTP Callouts

o B.

Anonymous Blocks

o C.

Apex Controllers
o D.

Apex Triggers

 93.

What is a capability of a StandardSetController?Choose 2 answers

Discuss

o A.

It allows pages to perform mass updates of records

o B.

It enforces field-level security when reading large record sets

o C.

It extends the functionality of a standard or custom controller

o D.

It allows pages to perform pagination with large record sets

 94.

A developer needs to provide a Visualforce page that lets users enter Product
specific details during a Sales cycle.How can this be accomplished?Choose 2
answers

Discuss

o A.

Copy the standard page and then make a new Visualforce page for Product data entry.

o B.

Download an Unmanaged Package from the AppExchange that provides a custom


Visualforce page to modify.

o C.

Create a new Visualforce page and an Apex controller to provide data entry.

o D.
Download a Managed Package from the AppExchange that provides a custom Visualforce
page to modify.

 95.

Which type of information is provided by the Checkpoints tab in the Developer


console?Choose 2 answers.

Discuss

o A.

Namespace

o B.

Debug Statement

o C.

Time

o D.

Exception

 96.

In the Lightning Component framework, which resource can be used to fire


events?Choose 2 answers

Discuss

o A.

Third-party Javascript code.

o B.

Visualforce controller actions.

o C.

Javascript controller actions.

o D.

Third-party web service code.


 97.

A developer is creating an application to track engines and their parts. An


individual part can be used in different types ofengines.What data model should be
used to track the data and to prevent orphan records?

Discuss

o A.

Create a junction object to relate many engines to many parts through a lookup
relationship

o B.

Create a master-detail relationship to represent the one-to-many model of engines to


parts.

o C.

Create a lookup relationship to represent how each part relates to the parent engine
object.

o D.

Create a junction object to relate many engines to many parts through a master-detail
relationship

 98.

The Sales Management team hires a new intern. The intern is not allowed to view
Opportunities, but needs to see theMost Recent Closed Date of all child
Opportunities when viewing an Account record.What would a developer do to
meet this requirement?

Discuss

o A.

Create a Workflow Rule on the Opportunity object that updates a field on the parent
Account.

o B.

Create a formula field on the Account object that performs a MAX on the Opportunity
Close Date field.

o C.
Create a trigger on the Account object that queries the Close Date of the most recent
Opportunities.

o D.

Create a roll-up summary field on the Account object that performs a MAX on the
Opportunity Close Date field.

 99.

Which statement should a developer avoid using inside procedural loops?Choose


2 answers

Discuss

o A.

List contacts = [select id, salutation, firstname, lastname, email from Contact where
accountId = :a.Id]

o B.

If(o.accountid = a.id)

o C.

Update contactList

o D.

System.debug('Amount of CPU time (in ms) used so far:' + Limits.getCpuTime());

 100.

Which data type or collection of data types can SOQL statements populate or
evaluate to?Choose 3 answers

Discuss

o A.

An Integer

o B.

A single sObject

o C.
A Boolean

o D.

A string

o E.

A list of sObjects

 101.

Which trigger event allows a developer to update fields in the Trigger.new list
without using an additional DMLstatement?Choose 2 answers

Discuss

o A.

After insert

o B.

Before insert

o C.

After update

o D.

Before update

 102.

What is the proper process for an Apex unit test?

o A.

Query for test data using SeeAllData= true. Execute runAllTests(). Verify that the results
are correct.

o B.

Create data for testing. Execute runAllTests(). Verify that the results are correct.

o C.
Create data for testing. Call the method being tested. Verify that the results are correct.

o D.

Query for test data using SeeAllData= true. Call the method being tested. Verify that the
results are correct.

 103.

Where can custom roll-up summary fields be created using Standard Object
relationships?Choose 3 answers

Discuss

o A.

On Account using Opportunity records

o B.

On Account using Case records

o C.

On Opportunity using Opportunity Product records

o D.

On Campaign using Campaign Member records.

o E.

On Quote using Order records

 104.

Which code block returns the ListView of an Account object using the following
debug statement?System.debug(Controller.getListViewOptions());

Discuss

o A.

ApexPages.StandardSetController controller = new


ApexPages.StandardSetController([SELECT Id FROM Account LIMIT 1]);

o B.
ApexPages.StandardController controller = new
ApexPages.StandardController(Database.getQueryLocator('select Id from Account Limit
1'));

o C.

ApexPages.StandardController controller = new ApexPages.StandardController([SELECT


Id FROM Account LIMIT 1]);

o D.

ApexPages.StandardSetController controller = new


ApexPages.StandardSetController(Database.getQueryLocator('select Id from Account
Limit 1'))

 105.

How would a developer determine if a CustomObject__c record has been


manually shared with the current user in Apex?

Discuss

o A.

By querying CustomObject__share

o B.

By querying the role hierarchy.

o C.

By calling the isShared() method for the record

o D.

By calling the profile settings of the current user

 106.

When the value of a field in an account record is updated, which method will
update the value of a custom field in allrelated opportunities?Choose 2 answers.

Discuss

o A.

A cross-object formula field on the Account object.


o B.

A Workflow Rule on the Account object.

o C.

A process Builder on the Account object.

o D.
 An Apex trigger on the Account object.

 107 (New).

What is the valid format for a constructor of a custom controller named


MyCustomContoller?

o A.

Public void MyCustomContoller()


{
Account acc = …..
}

o B.

Public void MyCustomContoller(Sobject obj)


{
Account acc = (Account) obj
}

o C.

Public void MyCustomContoller(List<SObject> lstObj)


{
List<Account> acc = …..
}

o D.

Public void MyCustomContoller(.StandardController … )


{
………
}

 108 (New)
What is a capability of the Force.com IDE? Choose 2 answers

o A.

Roll back deployments.

o B.

Run Apex tests.

o C.

Download debug logs.

o D.

Edit metadata components.

 109 (New)

Where can debug log filter settings be set? Choose 2 answers

o A.

The Filters link by the monitored user's name within the web Ui.

o B.

The Show More link on the debug log's record.

o C.

On the monitored user's name.

o D.

The Log Filters tab on a class or trigger detail page.

 110 (New)

What is the value of x after the code segment executes?

String x = 'A';

Integer i = 10;
if(i< 15 ){

i = 15;

x = 'B';

else

if < 20 ){

x = 'C';

else {

x = 'D';

o A.

o B.

o C.

o D.

 111 (New)

A developer has the following code.

try

List<String> nameList;

Account a;

String s = a.Name;
nameList.add( s );

catch ( ListException le )

System.debug('List Exception');

catch ( NullPointerException npe )

System.debug('NullPointer Exception');

catch ( Exception e )

System.debug('Generic Exception');

o A.

No message is logged

o B.

Generic Exception

o C.

List Exception

o D.

NullPointer Exception

Вам также может понравиться