Veronica Monzon
Test por , creado hace más de 1 año

Test sobre Practice Developer I, creado por Veronica Monzon el 23/06/2020.

33
1
0
Veronica Monzon
Creado por Veronica Monzon hace alrededor de 4 años
Cerrar

Practice Developer I

Pregunta 1 de 49

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

  • Before Update

  • After update

  • After insert

Explicación

Pregunta 2 de 49

1

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

Selecciona una de las siguientes respuestas posibles:

  • Id pricebookId=Test.getStandardPricebookId();

  • Pricebook pb= new Pricebook();

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

  • IsTest(SeeAllData=false);

Explicación

Pregunta 3 de 49

1

Where would a developer build a managed package?

Selecciona una de las siguientes respuestas posibles:

  • Developer Sandbox

  • Inlimited Edition

  • Partial Copy Sanbox

  • Developer Edition

Explicación

Pregunta 4 de 49

1

Which type of information is provided by the Checkpoints tab in the Developer Console? (Choose 2)

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

  • Time

  • Namespace

  • Exception

  • Debug Statement

Explicación

Pregunta 5 de 49

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:

  • After Commiting to database.

  • Before Trigger execution.

  • After Trigger execution.

  • Before Commiting to database.

Explicación

Pregunta 6 de 49

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.StandardSetController controller = new ApexPages.StandardSetController( Database.getQueryLocator( ‘SELECT Id FROM Account LIMIT 1’));

  • 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.StandardController controller = new ApexPages.StandardController( [SELECT Id FROM Account LIMIT 10]);

Explicación

Pregunta 7 de 49

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 de las siguientes respuestas posibles:

  • As String with each value separated by a comma.

  • As a String with each value as an element in the set.

  • As a String with each value separated by a semicilon.

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

Explicación

Pregunta 8 de 49

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 trigger on the Account object that queries the Close Date of the most recent Opportunities.

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

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

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

Explicación

Pregunta 9 de 49

1

What is the benefit of the lightning component framework?

Selecciona una de las siguientes respuestas posibles:

  • Better integration with Force.com sites

  • Better performance for custom Salesforce1 Mobile Apps

  • More Centralized control via server-side logic

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

Explicación

Pregunta 10 de 49

1

What is an accurate constructor for a custom controller named "MyController"?

Selecciona una de las siguientes respuestas posibles:

  • public MyController () {account = new Account () ;}

  • public MyController (sObject obj) {account = (Account) obj;}

  • public MyController (List objects) {accounts = (List ) objects;}

  • public MyController (ApexPages.StandardController stdController) {account = (Account) stdController.getRecord();}

Explicación

Pregunta 11 de 49

1

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

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

  • Developer Edition to Sandbox

  • Sandbox to Prodution

  • Sandbox to Sandbox

  • Developer Edition to Production

Explicación

Pregunta 12 de 49

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 isInsertable() method

  • By using the isCreatable() method.

  • By using the hasAccess() method.

  • By using the canCreate() method.

Explicación

Pregunta 13 de 49

1

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

Selecciona una de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 14 de 49

1

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 ( i < 20 ) { x = 'C'; } else { x = 'D'; }

Selecciona una de las siguientes respuestas posibles:

  • D

  • A

  • B

  • C

Explicación

Pregunta 15 de 49

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:

  • A contact initialized to null.

  • An error that no rows are found.

  • An empty List of Contacts.

  • A Contact with empty values.

Explicación

Pregunta 16 de 49

1

What is a capability of the Developer Console?

Selecciona una de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 17 de 49

1

What is an accurate statement about variable scope? (Choose 3)

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

  • Parallel blocks can use the same variable name.

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

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

  • Sub-blocks can reuse a parent block's variable name if it's value is null.

  • A static variable can restrict the scope to the current block of its value is null.

Explicación

Pregunta 18 de 49

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 19 de 49

1

Where can the custom roll-up summary fields be created using Standard Object relationships (Choose 3)

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

  • On Opportunity using Opportunity Product records.

  • On Account using Case records.

  • On Quote using Order records.

  • On Campaign using Campaign Member records.

  • On Account using Opportunity records.

Explicación

Pregunta 20 de 49

1

Which scenario is invalid for execution by unit tests?

Selecciona una de las siguientes respuestas posibles:

  • Loading the standard Pricebook ID using a system method

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

  • Executing methods as different users.

  • Executing methods for negative test scenarios

Explicación

Pregunta 21 de 49

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 Standard Extension.

  • In a Standard Controller.

  • In a Custom Controller.

  • In a Controller Extension.

Explicación

Pregunta 22 de 49

1

In which order does Salesforce execute events upon saving a record?

Selecciona una de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 23 de 49

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 TestVisible attribute to the Apex class

  • Add the SeeAllData attribute to the test methods.

  • Add the TestVisible attribute to the apex methods.

  • Add the SeeAllData attribute to the test class

Explicación

Pregunta 24 de 49

1

Which statement about change set deployments is accurate? (Choose 3)

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

  • They use an all or none deployment model.

  • They require a deployment connection.

  • They ca be used to transfer Contact records.

  • They can be used to deploy custom settings data.

  • They can be used only between related organizations.

Explicación

Pregunta 25 de 49

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)

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

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

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

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

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

Explicación

Pregunta 26 de 49

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 adding a second standard controller to the page for the parent record

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

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

Explicación

Pregunta 27 de 49

1

What is a capability of formula fields? (Choose 3)

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

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

  • Display the previous values for a field using the PRIORVALUE function.

  • 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 the IF function.

Explicación

Pregunta 28 de 49

1

What is the proper process for an Apex Unit Test

Selecciona una de las siguientes respuestas posibles:

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

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

Explicación

Pregunta 29 de 49

1

A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (Choose 2)

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

  • ANT Migration Tool

  • Workbench Metadata Retrieval

  • Salesforce UI Apex Test Execution

  • Developer Console

Explicación

Pregunta 30 de 49

1

When loading data into an operation, what can a developer do to match records to update existing records? (Choose 2)

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

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

  • Match an external Id Text 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 31 de 49

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 Lookup relationship to the Invoice.

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

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

  • The Invoice should have a Lookup relationship to the Account.

Explicación

Pregunta 32 de 49

1

Which user can edit a record after it has been locked for approval? (Choose 2)

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

  • Any user with a higher role in the hierarchy

  • A user who is assigned as the current approver

  • Any user who approved the record previously

  • An administrator

Explicación

Pregunta 33 de 49

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 34 de 49

1

When the number of record in a recordset is unknown, which control statement should a developer use to implement a 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 35 de 49

1

What is the result when a Visualforce page calls an Apex controller, which calls another Apex class, which then results 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 36 de 49

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 37 de 49

1

On a Visualforce page with a custom controller, how should a developer retrieve a record by using an ID 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 tag in the Visualforce page.

Explicación

Pregunta 38 de 49

1

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

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

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

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

  • On the monitored user's name.

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

Explicación

Pregunta 39 de 49

1

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

Selecciona una de las siguientes respuestas posibles:

  • The Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object.

  • The Lookup Relationship cannot be marked as required on the page layout for the Custom Object.

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

  • The Custom Object inherits security from the referenced Standard Objects

Explicación

Pregunta 40 de 49

1

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

Selecciona una de las siguientes respuestas posibles:

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

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

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

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

Explicación

Pregunta 41 de 49

1

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?

Selecciona una de las siguientes respuestas posibles:

  • 11,150

  • 150,2

  • 150,11

  • 2,150

Explicación

Pregunta 42 de 49

1

What are the supported content sources for custom buttons and links?(Choose 2 Answers)

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

  • VisualForce Page.

  • Static Resource.

  • Chatter File.

  • Lightning Page.

  • URL

Explicación

Pregunta 43 de 49

1

What actions types should be configured to display a custom success message?

Selecciona una de las siguientes respuestas posibles:

  • Update a record.

  • Post a feed item.

  • Delete a record.

  • Close a case.

Explicación

Pregunta 44 de 49

1

When creating a record with a Quick Action, what is the easiest way to post a feed item?

Selecciona una de las siguientes respuestas posibles:

  • By selecting create feed item on the quick action.

  • By adding a trigger on the new record.

  • By adding a workflow rule on the new record.

  • By selecting create case feed on the new record.

Explicación

Pregunta 45 de 49

1

What is the easiest way to verify a user before showing them sensitive content?

Selecciona una de las siguientes respuestas posibles:

  • Sending the user a SMS message with a passcode.

  • Calling the generateVerificationUrl method in apex.

  • Sending the user an Email message with a passcode.

  • Calling the Session.forcedLoginUrl method in apex.

Explicación

Pregunta 46 de 49

1

What features are available when writing apex test classes? (Choose 2 Answers)

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

  • The ability to select error types to ignore in the developer console.

  • The ability to write assertions to test after a @future method.

  • The ability to set and modify the CreatedDate field in apex tests.

  • The ability to set breakpoints to freeze the execution at a given point.

  • The ability to select testing data using csv files stored in the system.

Explicación

Pregunta 47 de 49

1

A developer wants multiple test classes to use the same set of test data. How should the developer create the test data?

Selecciona una de las siguientes respuestas posibles:

  • Define a variable for test records in each test classes

  • Create a test setup method for each test class

  • Use the seealldata=true annotation in each test class

  • Reference a test utility class in each test class

Explicación

Pregunta 48 de 49

1

Which three resources in a Lightning Component Bundle can contain JavaScript functions?

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

  • Helper

  • Renderer

  • Controller

  • Design

  • Style

Explicación

Pregunta 49 de 49

1

which query should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers"?

Selecciona una de las siguientes respuestas posibles:

  • FIND 'Universal Containers' IN Name Fields RETURNING lead(id, name), account(id, name), contact(id, name)

  • SELECT Lead.id, Lead.Name, Account.Id, Account.Name, Contact.id, Contact.Name FROM Lead, Account,Contact WHERE Company Name = 'Universal Containers'

  • SELECT lead(id, name), account(id, name), contact(id, name) FROM Lead, Account, Contact WHERE Name ='Universal Containers'

  • FIND 'Universal Containers' IN CompanyName Fields RETURNING lead(id, name), account(id, name), contact(id,name)

Explicación