Juan Carlos Montero
Test por , creado hace más de 1 año

Examen II Salesforce Developer

172
0
0
Creado por un usuario eliminado hace más de 8 años
Youssef Ahmani
Copiado por Youssef Ahmani hace más de 8 años
Juan Carlos Montero
Copiado por Juan Carlos Montero hace más de 7 años
Cerrar

Examen II Salesforce Developer (Fixed)

Pregunta 1 de 55

1

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

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

  • They can be used to transfer Contact records

  • They require a deployment connection

  • They can be used only between related organizations

  • They can be used to deploy custom settings data

  • They use an all or none deployment model

Explicación

Pregunta 2 de 55

1

A developer wants to display all the available record types for a case Object. The developer also wants to display the picklist values for the Case.Status field. The Case Object and the Case.Status field are on a Custom Visualforce page.

Which action can the developer perform to get the record types and picklist values in the controller?

Choose 2 answers.

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

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

  • Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues()

  • Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos()

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

Explicación

Pregunta 3 de 55

1

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'?

Selecciona una de las siguientes respuestas posibles:

  • An empty List of Contacts

  • An error that no rows are found

  • A contact initialized to null

  • A contact with empty

Explicación

Pregunta 4 de 55

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 Job Postings custom object to the Applications custom object.

  • 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

Explicación

Pregunta 5 de 55

1

A developer writes a SOQL query to find child records for a specific parent.

How many levels can be returned in a single query?

Selecciona una de las siguientes respuestas posibles:

  • 3

  • 7

  • 5

  • 1

Explicación

Pregunta 6 de 55

1

What is a capability of formula fields?
Choose 3 answers

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

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

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

  • Determine if a datetime field has passed using the NOW function

  • Determine which of three different images to display using IF function

  • Display the previous value for a field using the PRIORVALUE funtion

Explicación

Pregunta 7 de 55

1

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

Choose 2 answers

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

  • Any user with a higher role in the hierarchy

  • Any user who approved the record previously

  • An administrator

  • An user who is assigned as the current approver

Explicación

Pregunta 8 de 55

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 Trigger execution

  • After committing to database

Explicación

Pregunta 9 de 55

1

A developer needs to ensure there is sufficient test coverage for an Apex method that interacts with Accounts. The developer needs to create test data.

What is the preffered way to load this test data into Salesforce?

Selecciona una de las siguientes respuestas posibles:

  • By using HttpCalloutMocks

  • By using Static Resources

  • By using WebServiceTests

  • By using Documents

Explicación

Pregunta 10 de 55

1

A developer needs to create a Visualforce page that will override the Standard Account edit button. The page will be used to validate the account´s address using a SOQL query. The page will also allow the user to make edits to the address.

Where would the developer write the Account address verification logic?

Selecciona una de las siguientes respuestas posibles:

  • In a Custom Controller

  • In a Standard Extension

  • In a Standard Controller

  • In a Controller Extension

Explicación

Pregunta 11 de 55

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 12 de 55

1

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 a Visualforce page?

Selecciona una de las siguientes respuestas posibles:

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

  • {!$Setup.Url_Settings__c.URL__c}

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

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

Explicación

Pregunta 13 de 55

1

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?

Selecciona una de las siguientes respuestas posibles:

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

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

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

  • By adding a second standard controller to the page for the parent record

Explicación

Pregunta 14 de 55

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 15 de 55

1

How can a developer avoid exceeding governor limits when using an Apex Trigger?

Choose 2 answers

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

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

  • By using the Database class to handle DML Transactions

  • By using Maps to hold data from query results

  • By performing DML transactions on lists of sObjects

Explicación

Pregunta 16 de 55

1

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

Selecciona una de las siguientes respuestas posibles:

  • Create an Account formula field that displays the Task information

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

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

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

Explicación

Pregunta 17 de 55

1

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

Choose 2 answers

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

  • To modify the page layout settings for a custom object

  • To create components for dashboards and layouts

  • To generate a PDF document with application Data

  • To deploy components between two organizations

Explicación

Pregunta 18 de 55

1

What is the proper process for an Apex unit test?

Selecciona una de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 19 de 55

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 Workflow Rule on the Account object.

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

  • A process Builder on the Account object.

Explicación

Pregunta 20 de 55

1

A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing.

What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the Salesforce organization?

Selecciona una de las siguientes respuestas posibles:

  • Anonymous Blocks

  • Apex Triggers

  • HTTP Callouts

  • Apex Controllers

Explicación

Pregunta 21 de 55

1

Where would a developer build a managed package?

Selecciona una de las siguientes respuestas posibles:

  • Unlimited Edition

  • Developer Edition

  • Developer Sandbox

  • Partial Copy Sandbox

Explicación

Pregunta 22 de 55

1

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?

Selecciona una de las siguientes respuestas posibles:

  • Create a formula field

  • Create a required comments field

  • Create a validation rule.

  • Create a required Visualforce component

Explicación

Pregunta 23 de 55

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?

Selecciona una 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 master-detail relationship

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

Explicación

Pregunta 24 de 55

1

Which type of 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:

  • A static resource that contains CSS and images

  • 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

Explicación

Pregunta 25 de 55

1

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

Choose 3 answers

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

  • A single sObject

  • A list of sObjects

  • A string

  • A Boolean

  • An Integer

Explicación

Pregunta 26 de 55

1

What is a valid source and destination pair that can send or receive change sets?

Choose 2 answers.

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

  • Sandbox to sandbox

  • Developer edition to sandbox

  • Developer Edition to production

  • Sandbox to production

Explicación

Pregunta 27 de 55

1

In which order does Salesforce execute events upon saving a record

Selecciona una de las siguientes respuestas posibles:

  • Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit

  • Before Triggers;Validation Rules; After Triggers; Workflow Rules;Assignment Rules; Commit

  • Before Triggers;Validation Rules; After Triggers; Assignment Rules;Workflow Rules; Commit

  • Validation Rules; Before Triggers; After Triggers; Workflow Rules;Assignment Rules; Commit

Explicación

Pregunta 28 de 55

1

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

Choose 2 answers

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

  • Using synchronous callouts to call external systems

  • Using @future methods to perform DML operations

  • Using the Set data structure to ensure distinct records

  • Using the Map data structure to hold query results by ID

Explicación

Pregunta 29 de 55

1

What is a capability of a StandardSetController?

Choose 2 answers

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

  • It enforces field-level security when reading large record sets

  • It extends the functionality of a standard or custom controller

  • It allows pages to perform mass updates of records

  • It allows pages to perform pagination with large record sets

Explicación

Pregunta 30 de 55

1

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

Choose 2 answers

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

  • On Opportunity using Opportunity Product records

  • On Account using Case records

  • On Account using Opportunity records

  • On Quote using Order records

  • On Campaign using Campaign Member records.

Explicación

Pregunta 31 de 55

1

A company wants a recruiting app that models candidates and interviews; displays the total number of interviews on each candidate record; and defines security on interview records that is independent from the security on candidate records.

What would a developer do to accomplish this task?

Choose 2 answers.

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

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

  • Create a lookup relationship between the Candidate and Interview objects.

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

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

Explicación

Pregunta 32 de 55

1

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

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

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

  • Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify.

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

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

Explicación

Pregunta 33 de 55

1

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

Choose 2 answers.

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

  • Debug Statement

  • Exception

  • Time

  • Namespace

Explicación

Pregunta 34 de 55

1

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

Selecciona una de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 35 de 55

1

The Sales Management team hires a new intern. The intern is not allowed to view Opportunities, but needs to see the Most Recent Closed Date of all child Opportunities when viewing an Account record.

What would a developer do to meet this requirement?

Selecciona una de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 36 de 55

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 calling the isShared() method for the record

  • By calling the profile settings of the current user

  • By querying CustomObject__share

Explicación

Pregunta 37 de 55

1

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

Choose 2 answers

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

  • Visualforce controller actions.

  • Third-party Javascript code.

  • Third-party web service code.

  • Javascript controller actions.

Explicación

Pregunta 38 de 55

1

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

How are the selected values represented in Apex?

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

  • As a String with each value separated by a comma

  • As a Set<String> with each value as an element in the set

  • As a String with each value separated by a semicolon

  • As a List<String> with each value as an element in the list

Explicación

Pregunta 39 de 55

1

What is the benefit of the Lightining Component Framework?

Selecciona una de las siguientes respuestas posibles:

  • Better performance for custom SalesforceI Mobile apps.

  • More centralized control via server-side logic.

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

  • Better integration with Force.com sites.

Explicación

Pregunta 40 de 55

1

A developer needs to create records for the object Property__c. The developer creates the following code block:

01 List<Property__c> propertiesToCreate = helperClass.createProperties();
02 try{
03
04 }catch(Exception exp){
05 //Exception handling
06 }

Which line of code would the developer insert at line 03 to ensure that at least some records are created even if a few records have errors and fail to be created?

Selecciona una de las siguientes respuestas posibles:

  • Database.insert (propertiesToCreate, System.ALLOW_PARTIAL);

  • insert propertiesToCreate;

  • Database.insert(propertiesToCreate, false);

  • Database.insert(propertiesToCreate);

Explicación

Pregunta 41 de 55

1

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?

Selecciona una de las siguientes respuestas posibles:

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

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

  • By using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of DML statements is exceeded.

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

Explicación

Pregunta 42 de 55

1

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?

Selecciona una de las siguientes respuestas posibles:

  • Add the SeeAllData atrribute to the test methods

  • Add the TestVisible attribute to the Apex class

  • Add the SeeAllData attribute to the test class

  • Add the TestVisible attribute to the Apex methods

Explicación

Pregunta 43 de 55

1

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

Selecciona una de las siguientes respuestas posibles:

  • IsTest(SeeAllData=false)

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

  • Pricebook pb = new pricebook();

  • Id pricebookId = Test.getStandardPricebookId();

Explicación

Pregunta 44 de 55

1

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

Choose 2 answers

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

  • Delete the original object using a delete DML operation

  • Update the original object using an update DML operation

  • Display a custom error message in the application interface

  • Change field values usign the Trigger.new context variable

Explicación

Pregunta 45 de 55

1

Which code block returns the ListView of an Account object using the following debug statement?

System.debug(Controller.getListViewOptions());

Selecciona una de las siguientes respuestas posibles:

  • ApexPages.StandardController controller = new ApexPages.StandardController([SELECT Id FROM Account LIMIT 1]);

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

  • ApexPages.StandardSetController controller = new ApexPages.StandardSetController([SELECT Id FROM Account LIMIT 1]);

  • ApexPages.StandardSetController controller = new ApexPages.StandardSetController(Database.getQueryLocator('select Id from Account Limit 1'))

Explicación

Pregunta 46 de 55

1

What is an accurate statement about variable scope?

Choose 3 answers

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

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

  • Parallel blocks can use the same variable name

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

  • A variable can be defined at any point in a block

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

Explicación

Pregunta 47 de 55

1

Which scenario is invalid for execution by unit tests?

Selecciona una de las siguientes respuestas posibles:

  • Executing methods for negative test scenarios.

  • Loading test data in place of user input for Flows.

  • Loading the standard Pricebook ID using a system method

  • Executing methods as different users

Explicación

Pregunta 48 de 55

1

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

Choose 2 anwers

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

  • Using an <apex:define> tag

  • Using an <apex:includeScript> tag

  • Using a <script> tag

  • Using a <link> tag

Explicación

Pregunta 49 de 55

1

Which statement should a developer avoid using inside procedural loops?

Choose 2 answers

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

  • Update contactList

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

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

  • if(o.accountid = a.id)

Explicación

Pregunta 50 de 55

1

When loading data into an organization, what can a developer do to match records to update existing records?

Choose 2 answers

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

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

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

  • Match the Name field to a column in the imported file

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

Explicación

Pregunta 51 de 55

1

Which trigger event allows a developer to update fields in the Trigger.new list without using an additional DML statement?

Choose 2 answers

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

  • Before insert

  • After update

  • After insert

  • Before update

Explicación

Pregunta 52 de 55

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, Deploy code changes.

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

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

Explicación

Pregunta 53 de 55

1

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

Which feature can the developer use?

Choose 2 answers.

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

  • ANT Migration Tool

  • Developer Console

  • Workbench Metadata Retrieval

  • Salesforce UI Apex Test Execution

Explicación

Pregunta 54 de 55

1

How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?

Selecciona una de las siguientes respuestas posibles:

  • By using the isCreatable() method

  • By using the canCreatable() method

  • By using the isInsertable() method

  • By using the hasAccess() method

Explicación

Pregunta 55 de 55

1

Which declarative method helps ensure quality data?

Choose 3 answers

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

  • Validation rules

  • Page layouts

  • Exception handling

  • Workflow alerts

  • Lookup filters

Explicación