d owen
Test por , creado hace más de 1 año

dev cert

14179
25
7
Shonen
Creado por Shonen hace más de 8 años
d owen
Copiado por d owen hace más de 8 años
Cerrar

DEV I Part II

Pregunta 1 de 87

1

To enable the Publisher Actions area on Page Layouts, navigate to:

Selecciona una de las siguientes respuestas posibles:

  • Setup | Customize | Feeds | Settings

  • Setup | Customize | Chatter | Settings

  • Setup | Customize | Actions | Settings

  • Setup | Customize | <Objects> | Settings

Explicación

Pregunta 2 de 87

1

Which API cannot be used to create the data model?

Selecciona una de las siguientes respuestas posibles:

  • Force.com Single Sign-on API

  • Force.com Metadata API

  • AJAX Tookit for Force.com

  • Force.com API

Explicación

Pregunta 3 de 87

1

When should a system administrator consider using the Salesforce AppExchange? (Choose 2)

Selecciona una o más de las siguientes respuestas posibles:

  • To find answers to Salesforce application questions

  • When looking for pre-built custom applications and tools

  • When standard Salesforce functionality needs to be extended

  • To submit ideas for Salesforce application enhancements

Explicación

Pregunta 4 de 87

1

What is a lightning page?

Selecciona una de las siguientes respuestas posibles:

  • A page you can access via a customer community.

  • The new name for a Salesforce page layout.

  • A custom layout for creating pages in Salesforce1.

  • A compact, configurable, and reusable element.

Explicación

Pregunta 5 de 87

1

Which permission is required to install and uninstall packages from Salesforce AppExchange?

Selecciona una de las siguientes respuestas posibles:

  • Upload AppExchange Packages

  • Manage Package Licenses

  • Download AppExchange Packages

  • Create AppExchange Packages

Explicación

Pregunta 6 de 87

1

Which developer tool can be used to create a data model? (Choose 2)

Selecciona una o más de las siguientes respuestas posibles:

  • Schema Builder

  • Force.com Data Loader

  • Application Data Model Wizard

  • Force.com IDE

Explicación

Pregunta 7 de 87

1

Which of the following fields are not available for record types?

Selecciona una de las siguientes respuestas posibles:

  • Opportunity Stages

  • Case Status

  • Solution Status

  • Lead Status

  • All above

Explicación

Pregunta 8 de 87

1

Which statement about record types is true? (select 2)

Selecciona una o más de las siguientes respuestas posibles:

  • Record types can be used to define picklist values available for a given field

  • The ability to create records of a specific record type is determined by the profile

  • Users cannot view records assigned to a record type their profile does not have access to

  • Record types can only be assigned to one profile at a time

Explicación

Pregunta 9 de 87

1

Which functions are available when creating a Roll-Up Summary field? (select all that apply)

Selecciona una o más de las siguientes respuestas posibles:

  • AVG

  • SUM

  • COUNT

  • MIN

  • MAX

Explicación

Pregunta 10 de 87

1

What is true when a field update is set to re-evaluate the workflow rule? (choose three)

Selecciona una o más de las siguientes respuestas posibles:

  • In a batch update, workflow is only retriggered on the entities where there is a change.

  • Only workflow rules on the same object as the initial field update will be re-evaluated and triggered.

  • Only workflow rules that didn’t fire before will be retriggered.

  • Cascade of workflow rule re-evaluation and triggering can happen up to ten times after the initial field update that started it.

  • Any workflow rules whose criteria are met as a result of the field update will be ignored.

Explicación

Pregunta 11 de 87

1

Identify the field update limitations. (choose three)

Selecciona una o más de las siguientes respuestas posibles:

  • Field updates that are executed as approval actions don't trigger workflow rules.

  • Read-only fields like formula or auto-number fields aren't available for field updates.

  • The results of a field update can't trigger additional rules such as validation, assignment, auto-response, or escalation rules.

  • In a batch update, workflow is retriggered on all entities where there is a change

Explicación

Pregunta 12 de 87

1

A salesperson at AW Computing only see’s the Social Contact’s link for Twitter and not Facebook on his records. Why would this be happening?

Selecciona una de las siguientes respuestas posibles:

  • The administrator hasn't enabled Social Contacts for Facebook

  • Facebook is no longer supported by Social Contacts

  • The salesperson's login with Facebook has expired

  • None of his Facebook contacts have confirmed the nature of their relationship

Explicación

Pregunta 13 de 87

1

Which social networks are available in the Lightning Experience and Salesforce1?

Selecciona una de las siguientes respuestas posibles:

  • Facebook

  • Twitter

  • LinkedIn

  • Klout

Explicación

Pregunta 14 de 87

1

What can you build with the Lightning App Builder?

Selecciona una de las siguientes respuestas posibles:

  • At-a-glance, dashboard-style apps.

  • Apps optimized for a particular task.

  • Simple, single-page apps with drill-down capability.

  • All of the above

Explicación

Pregunta 15 de 87

1

Actions on a Lightning Page allow you to do which of the following?

Selecciona una de las siguientes respuestas posibles:

  • Send email, create a task, and create or update records.

  • Send email and delete or clone records.

  • Clone records, add users, and assign permissions.

  • Send email, send outbound messages, and launch a flow.

Explicación

Pregunta 16 de 87

1

In order to create an App Launcher component in lightning what must an admin do?

Selecciona una de las siguientes respuestas posibles:

  • Contact Salesforce to have the component activated for the Lightning App Builder.

  • Navigate to Setup-Customize-User Interface to enable the component for the Lightning App Builder.

  • Purchase a license for the Lightning App Builder.

  • Join the pilot Lightning App Builder team

Explicación

Pregunta 17 de 87

1

Identify the standard Lightning components. (choose three)

Selecciona una o más de las siguientes respuestas posibles:

  • List View

  • Rich Text

  • Visualforce Page

  • Reports

  • Dashboards

Explicación

Pregunta 18 de 87

1

You can create global actions to let users create which of the following records? (choose three)

Selecciona una o más de las siguientes respuestas posibles:

  • Event (without invitees)

  • Opportunity

  • Question

  • Users

  • Chatter Posts

  • Products

Explicación

Pregunta 19 de 87

1

What standard Chatter actions (Post, File, Link, Poll, and Thanks) appear on the user profile page, regardless of the actions in the User page layout? (choose three)

Selecciona una o más de las siguientes respuestas posibles:

  • Post

  • File

  • Poll

  • Create

  • Email

Explicación

Pregunta 20 de 87

1

When a user creates a record by using an object-specific create action, what feed item for that record appears? (choose three)

Selecciona una o más de las siguientes respuestas posibles:

  • In the Chatter feed of the user who created the record

  • As the first entry in the feed for the new record

  • In the feed for the record on which the new record was created

  • In the user profile feed for all users who can view the record

  • In the Chatter feed of the first user who follows the record on which the record was created

Explicación

Pregunta 21 de 87

1

A developer has completed work in the sandbox and is ready to send it to a related org, what deployment tool should be used?

Selecciona una de las siguientes respuestas posibles:

  • Change Sets

  • Force.com IDE

  • Unmanaged Packages

  • Force.com Migration Tool

Explicación

Pregunta 22 de 87

1

You have created a workflow rule to send an email in your configuration sandbox. For some reason it’s not working, what should you double check? (Choose 2)

Selecciona una o más de las siguientes respuestas posibles:

  • You have the correct email address

  • HTML does not work in sandbox, make sure your email has no HTML

  • Check the deliverability settings

  • Look at the system audit trail

Explicación

Pregunta 23 de 87

1

Which deployment tools will you use to deploy metadata from one organization to another organization?

Selecciona una de las siguientes respuestas posibles:

  • Change sets

  • Force.com IDE

  • Unmanaged Packages

Explicación

Pregunta 24 de 87

1

What tools you need to use to migrate Metadata to Two Different Production Orgs? (Choose 3)

Selecciona una o más de las siguientes respuestas posibles:

  • Force.Com IDE

  • Force.Com Migration Tool

  • Change Set

  • Data Loader

  • Unmanaged Package

Explicación

Pregunta 25 de 87

1

A developer is creating an application to track engines and their parts. An individual part can be used in different types of engines. What data model should be used to track the data and to prevent orphan records? (CHOOSE JUST 1!)

Selecciona una o más de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 26 de 87

1

How would a developer determine if a CustomObject__c record has been manually shared with the current user in Apex?

Selecciona una de las siguientes respuestas posibles:

  • By querying the role hierarchy

  • By querying CustomObject__share

  • By calling the isShared() method for the record

  • By calling the profile settings of the current user

Explicación

Pregunta 27 de 87

1

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

Selecciona una de las siguientes respuestas posibles:

  • Before Trigger execution

  • Before committing to database

  • After committing to database

  • After Trigger execution

Explicación

Pregunta 28 de 87

1

What is a capability of the Developer Console?

Selecciona una de las siguientes respuestas posibles:

  • Execute Anonymous Apex code, Run REST API, create/Edit code.

  • Execute Anonymous Apex code, Create/Edit code, view Debug Logs.

  • Execute Anonymous Apex code, Create/Edit code, Deploy code changes.

  • Execute Anonymous Apex code, Run REST API, deploy code changes.

Explicación

Pregunta 29 de 87

1

A candidate may apply to multiple jobs at the company Universal Containers by submtting a single application per job posting. Once an application is submitted for a job posting, that application cannot be modified to be resubmitted to a different job posting.
What can the administrator do to associate an application with each job posting in the schema for the organization?

Selecciona una de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 30 de 87

1

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

Selecciona una o más de las siguientes respuestas posibles:

  • An Apex trigger on the Account object.

  • A process Builder on the Account object.

  • A Workflow Rule on the Account object.

  • A cross-object formula field on the Account object.

Explicación

Pregunta 31 de 87

1

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 an Account?

Selecciona una de las siguientes respuestas posibles:

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

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

  • The Account should have a Lookup relationship to the Invoice

  • The Invoice should have a Lookup relationship to the Account

Explicación

Pregunta 32 de 87

1

What is the minimum log level needed to see user-generated debug statements?

Selecciona una de las siguientes respuestas posibles:

  • FINE

  • INFO

  • WARN

  • DEBUG

Explicación

Pregunta 33 de 87

1

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

Selecciona una o más de las siguientes respuestas posibles:

  • More frequent refreshes

  • Only includes necessary metadata

  • Use of change sets

  • Limited to 5GB of data

Explicación

Pregunta 34 de 87

1

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

Selecciona una de las siguientes respuestas posibles:

  • Create test classes to exercise the Visualforce page markup

  • Select “Disable Parallel Apex Testing” to run all the tests

  • Add test methods to existing test classes from previous deployments

  • Select “Fast Deployment” to bypass running all the tests

Explicación

Pregunta 35 de 87

1

A company that uses a custom object to track candidates would like to send candidate information automatically to a third-party human resources system when a candidate is hired. What can a developer do to accomplish this task?

Selecciona una de las siguientes respuestas posibles:

  • Create an escalation rule to the hiring manager

  • Create an auto-response rule to the candidate

  • Create a Process Builder with an outbound message action

  • Create a workflow rule with an outbound message action.

Explicación

Pregunta 36 de 87

1

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

Selecciona una de las siguientes respuestas posibles:

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

  • To start and stop anonymous block execution when executing anonymous Apex code

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

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

Explicación

Pregunta 37 de 87

1

What is a correct pattern to follow when programming in Apex on a multi-tenant platform?

Selecciona una de las siguientes respuestas posibles:

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

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

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

  • Apex classes use the “with sharing” keyword to prevent access from other server tenants

Explicación

Pregunta 38 de 87

1

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

Selecciona una o más de las siguientes respuestas posibles:

  • Case Layout

  • Account Layout

  • Case Feed Layout

  • Console Layout

Explicación

Pregunta 39 de 87

1

Which standard field needs to be populated when a developer inserts a new contact records programmatically?

Selecciona una de las siguientes respuestas posibles:

  • AccountId

  • Name

  • Last Name

  • First Name

Explicación

Pregunta 40 de 87

1

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?

Selecciona una de las siguientes respuestas posibles:

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

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

  • 02: a NullPointer exception is thrown if PostalCode is null.

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

Explicación

Pregunta 41 de 87

1

Salesforce Org with 100 Accounts
Account myAccount = new Account ( Name = ‘myAccount’ );
Insert myAccount;
For ( Integer x = 0; x < 150; x++ ){
Account newAccount = new Account ( Name = ‘MyAccount’ + x);
Try{
Insert newAccount;
} Catch (Exception ex) {
System.debug(ex);
}
}
Insert new Account (Name = ‘MyAccount’);

Selecciona una de las siguientes respuestas posibles:

  • 102

  • 100

  • 101

  • 252

Explicación

Pregunta 42 de 87

1

Which statement about changeset is accurate? (Select 3)

Selecciona una o más de las siguientes respuestas posibles:

  • They can be used only between related orgs

  • They require deployment connection

  • They use an all or none deployment model

  • They can be used to transfer contact records

  • They can be used to deploy custom setting data.

Explicación

Pregunta 43 de 87

1

What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?

Selecciona una de las siguientes respuestas posibles:

  • Create a process with Process Builder

  • Create a workflow rule with field update

  • Create a lightning component

  • Create a visualforce page

Explicación

Pregunta 44 de 87

1

What should a developer working in a sandbox use to exercise a new test class before the developer deploys that test class to production? Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • The REST API and ApexTestRun method

  • The Apex Test Execution page in Salesforce Setup

  • The Test menu in the Developer Console

  • The Run Tests page in Salesforce Setup

Explicación

Pregunta 45 de 87

1

How can a developer refer to, or instantiate, a PageReference in Apex? Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • By using a pageReference with a partial or full URL

  • By using the Page object and a visualforce page name

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

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

Explicación

Pregunta 46 de 87

1

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

Selecciona una de las siguientes respuestas posibles:

  • A list of list of sObjects.

  • A map of sObject types to a list of sObjects

  • A map of SObject Types to a list of lists of sObjects

  • A list of sObjects

Explicación

Pregunta 47 de 87

1

What is a characteristic of the Lightning Component framework? Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • It has an event-driven architecture

  • It works with existing Visualforce pages

  • It includes responsive components

  • It uses XML as its data format

Explicación

Pregunta 48 de 87

1

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

Selecciona una de las siguientes respuestas posibles:

  • Select the Override Log Triggers checkbox for the trigger

  • Add the user name to the Log Inspector

  • Open the Progress tab in the Developer Console

  • Open the Logs tab in the Developer Console

Explicación

Pregunta 49 de 87

1

A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce. Which kind of relationship would a developer use to relate the Account to Warehouse?

Selecciona una de las siguientes respuestas posibles:

  • One-to-Many

  • Lookup

  • Master-Detail

  • Parent-Child

Explicación

Pregunta 50 de 87

1

In an organisation that has enabled multiple currencies, a developer needs to aggregate the sum of the Estimated_value__c currency field from the CampaignMember object using a roll-up summary field called Total_estimated_value__c on Campaign.
How is the currency of the Total_estimated_value__c roll-up summary field determined?

Selecciona una de las siguientes respuestas posibles:

  • 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.

  • 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.

  • 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.

  • 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

Explicación

Pregunta 51 de 87

1

What must the Controller for a Visualforce page utilize to override the standard Opportunity view button?

Selecciona una de las siguientes respuestas posibles:

  • The standardSetController to support related lists for pagination

  • The Opportunity StandardController for pre-built functionality.

  • A callback constructor to reference the Standard Controller

  • A constructor that initialises a private Opportunity variable

Explicación

Pregunta 52 de 87

1

A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record?

Selecciona una de las siguientes respuestas posibles:

  • No changes are made to the data

  • Both the Apex Trigger and Workflow Rule are fired only once.

  • The Workflow Rule is fired more than once

  • The Apex Trigger is fired more than once.

Explicación

Pregunta 53 de 87

1

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

Selecciona una o más de las siguientes respuestas posibles:

  • Formula fields can reference fields from master-detail or lookup parent relationships

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

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

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

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

Explicación

Pregunta 54 de 87

1

In the code below, what type does boolean inherit from?
Boolean b = true;

Selecciona una de las siguientes respuestas posibles:

  • Enum

  • Object

  • String

  • Class

Explicación

Pregunta 55 de 87

1

An org has different Apex classes that provide Account-related functionality. After a new validation rule is added to the Account object, many of the test methods fail.What can be done to resolve the failures and reduce the number of code changes needed for future validation rules? Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 56 de 87

1

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

Selecciona una o más de las siguientes respuestas posibles:

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

  • Both inner and outer classes can be declared as with sharing

  • Either inner or outer classes can be declared as with sharing, but not both

  • Inner classes inherit the sharing setting from the container class

Explicación

Pregunta 57 de 87

1

What is the preferred way to reference web content - such as images, stylesheets, JavaScript, and other libraries, that is used in Visualforce pages?

Selecciona una de las siguientes respuestas posibles:

  • By accessing the content from Chatter files

  • By uploading the content to the documents tab

  • By accessing the content from a third-party CDN

  • By uploading the content as a Static Resource

Explicación

Pregunta 58 de 87

1

Which requirement needs to be implemented by using standard workflow instead of Process Builder? Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • Create activities at multiple intervals

  • Send an outbound message without Apex code

  • Copy an account address to its contacts

  • Submit a contract for approval

Explicación

Pregunta 59 de 87

1

Developer needs to automatically populate the ReportsTo field in a Contact record based on the values of the related Account and Department fields in the Contact record.
Which type of trigger would the developer create?

Selecciona una o más de las siguientes respuestas posibles:

  • Before update

  • After insert

  • Before insert

  • After update

Explicación

Pregunta 60 de 87

1

To which primitive data type in Apex is a currency field automically assigned?

Selecciona una de las siguientes respuestas posibles:

  • Integer

  • Decimal

  • Double

  • currency

Explicación

Pregunta 61 de 87

1

Which resource can be included in a Lightning Component bundle? Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • Apex class

  • Adobe Flash

  • Javascript

  • Documentation

Explicación

Pregunta 62 de 87

1

A custom exception "RecordNotFoundException" is defined by the following code of block?
public class RecordNotFoundException extends Exception()
which statement can a developer use to throw an exception? Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • throw new RecordNotFoundException("problem occured");

  • throw new RecordNotFoundException();

  • throw RecordNotFoundException("problem occured");

  • throw RecordNotFoundException();

Explicación

Pregunta 63 de 87

1

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

Selecciona una de las siguientes respuestas posibles:

  • Unit tests with multiple methods result in ail methods failing every time one method fails.

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

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

  • System Assert statements that do not Increase code coverage contribute important feedback in unit tests

Explicación

Pregunta 64 de 87

1

What does the user see when accessing the custom page?
public String getStringMethodl() {
return myString;
public String getStringMethod2() (
if (myString == null)
myString = 'Method2';
return myString;
<apex -page controller="myController ">
{'myString), (!StringMethodll, (IStringMethod2), ((myString)
</apex:page>

Selecciona una de las siguientes respuestas posibles:

  • getMyString,

  • Method2,

  • Method2, getMyString

  • getMyString„ Method2, getMyString

Explicación

Pregunta 65 de 87

1

What is a valid Apex statement?

Selecciona una de las siguientes respuestas posibles:

  • Map conMap = (SELECT Name FROM Contact);

  • Account[) acctList = new List<Account›{new Account()},

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

  • private static constant Double rate = 775;

Explicación

Pregunta 66 de 87

1

A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL
Which statement is unnecessary inside the unit test for the custom controller?

Selecciona una de las siguientes respuestas posibles:

  • public ExtendedController(ApexPages.StandardController cntrl) { )

  • ApexPages.currentPage().getParameters() put(input', 'TestValue).

  • Test.setCurrentPage(pageRef),

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

Explicación

Pregunta 67 de 87

1

An Sobject named Application_c has a lookup relationsnip to another sOblect named Position c. Both Application _c and Position _c have a picklist field named Status c.
When the Status _c field on Position c Is updated, the Status _c field on Application _c needs to be populated automatically with the same value, and execute a workflow rule on Application_c.
How can a developer accomplish this?

Selecciona una de las siguientes respuestas posibles:

  • By changing Application c.Status c into a roll -up summary field.

  • By changing Application c.Status c Into a formula field.

  • By using an Apex trigger with a DML operation.

  • By configuring a cross -object field update with a workflow.

Explicación

Pregunta 68 de 87

1

Which code represents the Controller in MVC architecture on the Force.com platform
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • javaScript that is used to make a menu item display itself.

  • StandardController system methods that are referenced by Visualforce.

  • Custom Apex and JavaScript code that is used to manipulate data.

  • A static resource that contains CSS and images.

Explicación

Pregunta 69 de 87

1

A developer writes a before insert trigger.
HOW can the developer access the incoming records in the trigger body?

Selecciona una de las siguientes respuestas posibles:

  • By accessing the Trigger.new context variable.

  • By accessing the Trigger.newRecords context variable.

  • By accessing the Trigger.newMap context variable.

  • By accessing the Tripper.newList context variable.

Explicación

Pregunta 70 de 87

1

The Review_c object have a lookup relationship to the job_Application_c object.The job_Application_c object has a master detail relationship up to the position_c object.The relationship is based on the auto populated defaults?
What is the recommended way to display field data from the related Review _C records a Visualforce page for a single Position_c record?

Selecciona una de las siguientes respuestas posibles:

  • Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application c object to display Review_c data.

  • Utilize the Standard Controller for Position_c and a Controller Extension to query for Review _ C data.

  • Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c through me Job_Applicacion_c inject.

  • Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data.

Explicación

Pregunta 71 de 87

1

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

Selecciona una de las siguientes respuestas posibles:

  • for (triggerIsRunning t: triiger.new)
    {
    dowork();
    }

  • if(trigger.Isrunning)
    dowork();

  • for (trigger.IsInsert t: triiger.new)
    {
    dowork();
    }

  • if(trigger.IsInsert)
    dowork();

Explicación

Pregunta 72 de 87

1

When would a developer use a custom controller instead of a controller extension?
Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

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

  • When a Visualforce page does not reference a single primary object.

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

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

Explicación

Pregunta 73 de 87

1

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

Selecciona una o más de las siguientes respuestas posibles:

  • The default modifier for a class is private.

  • Exception classes must end with the word exception.

  • A class can have multiple levels of inner classes.

  • The default modifier for an interface is private.

Explicación

Pregunta 74 de 87

1

A developer has the following trigger that fires after insert and creates 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?

Selecciona una de las siguientes respuestas posibles:

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

  • Child case is created for each parent case in Trigger.new.

  • The trigger enters an infinite loop and eventually fails.

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

Explicación

Pregunta 75 de 87

1

When the number of records in a recordset is unknown, which control statement should a developer use to implement set of code that executes for every record in the recordset, without performing a .size() or .length() method call?

Selecciona una de las siguientes respuestas posibles:

  • For (init_stmt, exit_condition; increment_stmt) { }

  • Do { ) While (Condition)

  • For (variable : list_or_set) {

  • While (Condition) { ...}

Explicación

Pregunta 76 de 87

1

What is the result when a Visualforce page calls an Apex controller, which calls another Apex class, with then result! Multiple in hitting a governor limit?

Selecciona una de las siguientes respuestas posibles:

  • Any changes up to the error are saved.

  • Any changes up to the error are rolled back.

  • All changes before a savepoint are saved.

  • All changes are saved in the first Apex class.

Explicación

Pregunta 77 de 87

1

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 * XXXXXXXXXXX;
To calculate the productTax, which code segment would a developer insert at the XXXXXXXXXXX to make the value the class variable SalesTax accessible within the trigger?

Selecciona una de las siguientes respuestas posibles:

  • SalesTax

  • PayTax.SalesTax

  • PaymentTax.SalesTax

  • OpportunityLineItemTngger.SalesTax

Explicación

Pregunta 78 de 87

1

On a Visualforce page with a custom controller, how should a developer retrieve a record by using an ID parameter that is passed on the URL?

Selecciona una de las siguientes respuestas posibles:

  • Use the constructor method for the controller.

  • Use the $Action.View method in the Visualforce page.

  • Create a new PageReference object with the Id.

  • Use the< apex:detail> tag in the Visualforce page.

Explicación

Pregunta 79 de 87

1

How would a developer use Schema Builder to delete a custom field from the Account object that was required for prototyping but is no longer needed?

Selecciona una de las siguientes respuestas posibles:

  • Remove all the references In the code and then the field will be removed from Schema Builder.

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

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

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

Explicación

Pregunta 80 de 87

1

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

Selecciona una de las siguientes respuestas posibles:

  • Process builder

  • Validation rule

  • Formula field

  • Workflow rule

Explicación

Pregunta 81 de 87

1

What is the result of following code block ?

integer x =1;
integer y= 0;

while(X<10){
Y++;
}

What is the out put :

Selecciona una de las siguientes respuestas posibles:

  • Error

  • 9

  • 0

  • 10

Explicación

Pregunta 82 de 87

1

Which statement about declarations is correct :

Selecciona una de las siguientes respuestas posibles:

  • A developer can extend a class that is declared with Virtual keyword

  • A developer can't use class or method using final keyword

  • A developer can use define constant with final keyword.

Explicación

Pregunta 83 de 87

1

A developer created trigger with following code ,

list<Account> lstAccounts = new list<Account>();
for(order__c objorder:trigger.new){
account a = [select id from Account where id=:objorder.Account__c];
lstAccounts .add(a);
}
update lstAccounts;

How many order will be load when developer attempts to load 150 records.

Selecciona una de las siguientes respuestas posibles:

  • 0

  • 150

  • 100

  • 1

Explicación

Pregunta 84 de 87

1

What is a junction object?

Selecciona una de las siguientes respuestas posibles:

  • A custom object with one lookup relationship and one master-detail relationship.

  • A custom object with two lookup relationships.

  • A custom object with any number of lookup and master-detail relationships.

  • A custom object with two master-detail relationships.

Explicación

Pregunta 85 de 87

1

What is the name of the standard relationship from Account down to Contact?

Selecciona una de las siguientes respuestas posibles:

  • Contacts

  • Contact

  • Accounts

  • Account

Explicación

Pregunta 86 de 87

1

When running an Apex test, which type of Apex syntax in tested code is counted in the code coverage calculation?

Selecciona una de las siguientes respuestas posibles:

  • A variable assignment.

  • A blank line.

  • A System.debug() statement.

  • A comment.

Explicación

Pregunta 87 de 87

1

Which method is defined in the StandardController class? Choose 2 answers

Selecciona una o más de las siguientes respuestas posibles:

  • Undelete

  • Merge

  • Cancel

  • Save

Explicación