Rosa Alayon
Quiz von , erstellt am more than 1 year ago

Quiz am Developer I Pack 02, erstellt von Rosa Alayon am 21/08/2019.

1376
0
0
Rosa Alayon
Erstellt von Rosa Alayon vor fast 5 Jahre
Schließen

Developer I Pack 02

Frage 1 von 73

1

In which two trigger types can a developer modify the new sObject records that are obtained by the trigger.new context? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • before insert

  • before update

  • after insert

  • after update

Erklärung

Frage 2 von 73

1

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

Wähle eine oder mehr der folgenden:

  • Reference a test utility class in each test class.

  • Use the SeeAllData=true annotation in each test class.

  • Create a Test Setup method for each test class.

  • Define variables for test records in each test class.

Erklärung

Frage 3 von 73

1

Account acct = (SELECT Id FROM Account LIMIT 1];
Given the code above, how can a developer get the type of object from acct?

Wähle eine oder mehr der folgenden:

  • Call "acct.getSObjectType()".

  • Call "Account.getSObjectType()".

  • Call "Account.SObjectType".

  • Call "acct.SObjectType".

Erklärung

Frage 4 von 73

1

Which two statements can a developer use to throw a custom exception of type MissingFieldValueException? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • throw (MissingFieldValueException, 'Problem occurred');

  • throw new MissingFieldValueException('Problem occurred');

  • throw new MissingFieldValueException();

  • throw Exception(new MissingFieldValueException());

Erklärung

Frage 5 von 73

1

Given the code block:
Integer x; for(x = 0; x<10; x+=2)
if(x==8) break; if(x==10) break;
} system.debug(x);
Which value will the system.debug statement display?

Wähle eine oder mehr der folgenden:

  • 4

  • 2

  • 8

  • 10

Erklärung

Frage 6 von 73

1

Which three statements are accurate about variable scope? Choose 3 answers

Wähle eine oder mehr der folgenden:

  • Parallel blocks can reuse the same variable name

  • A sub-block can reuse a parent block's variable name if it is static.

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

  • A variable must be declared before it can be referenced in a block.

  • A sub-block can reuse a parent block's variable name if it is not static.

Erklärung

Frage 7 von 73

1

To which primitive data type is a Text Area (Rich) field automatically assigned?

Wähle eine oder mehr der folgenden:

  • Text

  • Blob

  • Object

  • String

Erklärung

Frage 8 von 73

1

Which three methods help ensure quality data? Choose 3 answers

Wähle eine oder mehr der folgenden:

  • Creating a lookup filter

  • Adding an error to a field in a before trigger.

  • Sending an email alert using a workflow rule

  • Handling an exception in Apex.

  • Adding a validation rule

Erklärung

Frage 9 von 73

1

Which standard field is required when creating a new Contact record?

Wähle eine oder mehr der folgenden:

  • LastName

  • Name

  • AccountId

  • FirstName

Erklärung

Frage 10 von 73

1

From which two locations can a developer determine the overall code coverage for a sandbox? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • The Test Suite Run panel of the Developer Console

  • The Apex classes setup page

  • The Apex Test Execution page

  • The Tests tab of the Developer Console

Erklärung

Frage 11 von 73

1

A visualforce page uses the Contact standard controller. How can a developer display the Name from the parent Account record on the page?

Wähle eine oder mehr der folgenden:

  • Use SOQL syntax to find the related Accounts Name field.

  • Use the {!contact.Account.Name} merge field syntax.

  • Use an additional standard controller for Accounts.

  • Use additional Apex logic within the controller to query for the Name field.

Erklärung

Frage 12 von 73

1

Which type of code represents the View in the MVC architecture on the Force.com platform?

Wähle eine oder mehr der folgenden:

  • An Apex method in an extension that returns a list of Cases

  • An Apex method that executes SOQL to retrieve a list of Cases

  • A Visualforce page that displays information about Case records by iterating over a list of Cases.

  • Validation rules for a page layout that includes a related list of Cases

Erklärung

Frage 13 von 73

1

What is the data type returned by the following SOSL search? [FIND 'Acme*' IN NAME FIELDS RETURNING Account, Opportunity];

Wähle eine oder mehr der folgenden:

  • List<List<Account>, List<Opportunity»

  • Map<sObject, sObject>

  • Map<Id, sObject>

  • List<List<sObject»

Erklärung

Frage 14 von 73

1

A developer runs the following anonymous code block in a Salesforce org with 100 Accounts.
List<Account> acc = (SELECT Id FROM Account LIMIT 10]; Delete acc; Database.emptyRecycleBin(acc); system.debug(Limits.getLimitQueries()+', '+Limits.getLimitDMIStatements());
What is the debug output?

Wähle eine oder mehr der folgenden:

  • 1, 2

  • 10, 2

  • 100, 150

  • 150, 100

Erklärung

Frage 15 von 73

1

A developer is creating an enhancement to an application that will allow people to be related to their employer. Which data model provides the simplest solution to meet the requirements?

Wähle eine oder mehr der folgenden:

  • Create a lookup relationship to indicate that a person has an employer.

  • Create a master-detail relationship to indicate that a person has an employer.

  • Create a junction object to relate many people to many employers through master-detail relationships.

  • Create a junction object to relate many people to many employers through lookup relationships.

Erklärung

Frage 16 von 73

1

Which two queries can a developer use in a Visualforce controller to protect against SOQL injection vulnerabilities? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • String gryName = String.escapeSingleQuotes(name); String gryString = 'SELECT Id FROM Contact WHERE Name LIKE \'%' + gryName + 1%\"; List<Contact> queryResult = Database.query(qryString);

  • String qryName = '%' + String.enforceSecurityChecks(name) + '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryName; List<Contact> queryResult = Database.query(qryString);

  • String qryName = '%' + name + '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryName; List<Contact> queryResult = Database.query(qryString);

  • String gryString = 'SELECT Id FROM Contact WHERE Name LIKE \'%' + name + '%\"; List<Contact> queryResult = Database.query(qryString);

Erklärung

Frage 17 von 73

1

An Apex trigger fails because it exceeds governor limits. Which two techniques should a developer use to resolve the problem? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • Use the Database class to handle DML operations.

  • Use Maps to reference related records.

  • Use SOQL Aggregate queries to retrieve child records.

  • Use Lists for all DML operations.

Erklärung

Frage 18 von 73

1

Potential home buyers working with a real estate company can make offers on multiple properties that are listed with the real estate company. Offer amounts can be modified; however, the property that has the offer cannot be modified after the offer is placed.
What should be done to associate offers with properties in the schema for the organization?

Wähle eine oder mehr der folgenden:

  • Create master-detail relationships in the Contact object to both the Property and Offer custom objects.

  • Create a lookup relationship in the Property custom object to the Offer custom object.

  • Create a master-detail relationship in the Offer custom object to the Property custom object.

  • Create a lookup relationship in the Offer custom object to the Property custom object.

Erklärung

Frage 19 von 73

1

What are two benefits of the Lightning Component framework?
Choose 2 answers

Wähle eine oder mehr der folgenden:

  • It provides an event-driven architecture for better decoupling between components.

  • It allows faster PDF generation with Lightning components

  • it simplifies complexity when building pages, but not applications.

  • It promotes faster development using out-of-the-box components that are suitable for desktop and mobile devices.

Erklärung

Frage 20 von 73

1

What is the debug output of the following Apex code?
Decimal theValue; System.debug(theValue);

Wähle eine oder mehr der folgenden:

  • Undefined

  • 0

  • null

  • 0.0

Erklärung

Frage 21 von 73

1

What can be done so that recordCount can be accessed by a test class, but not by a non-test class? public class MyController { private Integer recordCount;

Wähle eine oder mehr der folgenden:

  • Add the SeeAllData annotation to the test class.

  • Add the TestVisible annotation to recordCount.

  • Change recordCount from private to public.

  • Add the TestVisible annotation to the MyController class

Erklärung

Frage 22 von 73

1

A developer needs to save a List of existing Account records named myAccounts to the database, but the records do not contain Salesforce Id values. Only the value of a custom text field configured as an External ID with an API name of Foreign_Key_c is known. Which two statements enable the developer to save the records to the database without an Id? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • Database.upsert (myAccounts, Foreign_Key_c);

  • Database.upsert(myAccounts).Foreign_Key c;

  • Upsert myAccounts(Foreign_Key c);

  • Upsert myAccounts Foreign_Key_c;

Erklärung

Frage 23 von 73

1

A developer is notified that a text field is being automatically populated with invalid values. However, this should be prevented by a custom validation rule that is in place.
What could be causing this?

Wähle eine oder mehr der folgenden:

  • The field is being populated by a workflow field update.

  • A DML exception is occurring during the save order of execution.

  • The field is being populated by a before trigger.

  • The user belongs to a permission set that suppresses the validation rule.

Erklärung

Frage 24 von 73

1

How can a developer set up a debug log on a specific user?

Wähle eine oder mehr der folgenden:

  • Setup a trace flag for the user, and define a logging level and time period for the trace.

  • Ask the user for access to their account credentials, log in as the user and debug the issue.

  • Create Apex code that logs code actions into a custom object.

  • It is not possible to setup debug logs for users other than yourself.

Erklärung

Frage 25 von 73

1

A developer needs to update an unrelated object when a record gets saved.
Which two trigger types should the developer create? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • after insert

  • after update

  • before update

  • before insert

Erklärung

Frage 26 von 73

1

What can be used to delete components from production?

Wähle eine oder mehr der folgenden:

  • A change set deployment with the delete option checked

  • An ant migration tool deployment with a destructiveChanges XML file and the components to delete in the package.xml file

  • A change set deployment with a destructiveChanges XML file

  • An ant migration tool deployment with a destructiveChanges XML file and an empty package.xml file

Erklärung

Frage 27 von 73

1

Given the code below, which three statements can be used to create the controller variable?
public class AccountListController {
public List<Account> getAccounts() { return controller.getRecords(); } } Choose 3 answers

Wähle eine oder mehr der folgenden:

  • ApexPages.StandardSetController controller = new ApexPages.StandardSetController(Database.getQueryLocator('SELECT Id FROM Account'));

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

  • ApexPages.StandardController controller = new ApexPages.StandardController(Database.getQueryLocator('SELECT Id FROM ACCOUNT'));

  • ApexPages.StandardSetController controller = new ApexPages.StandardSetController(Database.query('SELECT Id FROM Account'));

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

Erklärung

Frage 28 von 73

1

Which three statements are true regarding the @isTest annotation?
Choose 3 answers

Wähle eine oder mehr der folgenden:

  • Products and Pricebooks are visible in a test even if a class is annotated @isTest (SeeAnData=false) .

  • A method annotated @isTest (SeeAllData=false) in a class annotated @isTest (SeeAllData=true) has access to all org data.

  • A method annotated @isTest (SeeAllData=true) in a class annotated @isTest (SeeAllData=faise) has access to all org data.

  • Profiles are visible in a test even if a class is annotated @isTest (SeeAllData=false) .

  • A class containing test methods counts toward the Apex code limit regardless of any @isTest annotation.

Erklärung

Frage 29 von 73

1

Candidates are reviewed by four separate reviewers and their comments and scores which range from 1 (lowest) to 5 (highest) are stored on a review record that is a detail record for a candidate.
What is the best way to indicate that a combined review score of 15 or better is required to recommend that the candidate come in for an interview?

Wähle eine oder mehr der folgenden:

  • Use a Validation Rule on a total score field on the candidate record that prevents a recommended field from being true if the total score is less than 15.

  • Use a Workflow Rule to calculate the sum of the review scores and send an email to the hiring manager when the total is 15 or better.

  • Use Visual Workflow to set a recommended field on the candidate whenever the cumulative review score is 15 or better.

  • Use a Rollup Summary field to calculates the sum of the review scores, and store this in a total score field on the candidate.

Erklärung

Frage 30 von 73

1

A developer needs to include a Visualforce page in the detail section of a page layout for the Account object, but does not see the page as an available option in the Page Layout Editor.
Which attribute must the developer include in the <apex:page> tag to ensure the Visualforce page can be embedded in a page layout?

Wähle eine oder mehr der folgenden:

  • controller="Account"

  • extensions="AccountController"

  • standardController="Account"

  • action="AccountId"

Erklärung

Frage 31 von 73

1

A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master-Detail relationship to a timecard.
Which approach should the developer use to accomplish this declaratively?

Wähle eine oder mehr der folgenden:

  • An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field

  • A Visualforce page that calculates the total number of hours for a timecard and displays it on the page

  • Process Builder process that updates a field on the timecard when a timecard entry is created

  • A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard

Erklärung

Frage 32 von 73

1

What is a key difference between a Master-Detail Relationship and a Lookup Relationship?

Wähle eine oder mehr der folgenden:

  • When a record of a master object in a Lookup Relationship is deleted, the detail records are always deleted.

  • When a record of a master object in a Master-Detail Relationship is deleted, the detail records are kept and not deleted.

  • A Lookup Relationship is a required field on an object.

  • A Master-Detail Relationship detail record inherits the sharing and security of its master record.

Erklärung

Frage 33 von 73

1

A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type. Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • Use the getRecordTypeInfosByDeveloperName() method in the DescribeSObjectResult class.

  • Make an outbound web services call to the SOAP API.

  • Execute a SOQL query on the RecordType object.

  • Hardcode the ID as a constant in an Apex class.

Erklärung

Frage 34 von 73

1

A developer created a Visualforce page using a custom controller that calls an Apex helper class. A method in the helper class hits a governor limit.
What is the result of the transaction?

Wähle eine oder mehr der folgenden:

  • The helper class creates a savepoint and continues.

  • All changes in the transaction are rolled back.

  • All changes made by the custom controller are saved.

  • The custom controller calls the helper class method again.

Erklärung

Frage 35 von 73

1

Which statement is true about a Hierarchical relationship as it pertains to User records?

Wähle eine oder mehr der folgenden:

  • It uses a junction object and lookup relationships to allow many User records to be related to many other User records.

  • It uses a junction object and master-detail relationships to allow many User records to be related to many other User records.

  • It uses a master-detail relationship to allow one User record to be related to another User record.

  • It uses a special lookup relationship to allow one User record to be related to another User record.

Erklärung

Frage 36 von 73

1

A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.
What should the developer do to deploy to production?

Wähle eine oder mehr der folgenden:

  • Create a test page that provides coverage of the custom controller.

  • Create a test page that provides coverage of the Visualforce page.

  • Create a test class that provides coverage of the Visualforce page.

  • Create a test class that provides coverage of the custom controller.

Erklärung

Frage 37 von 73

1

Which three data types can be returned from an SOQL statement?

Wähle eine oder mehr der folgenden:

  • Boolean

  • List of sObjects

  • String

  • Integer

  • Single sObject

Erklärung

Frage 38 von 73

1

In order to override a standard action with a Visualforce page, which attribute must be defined in the <apex:page> tag?

Wähle eine oder mehr der folgenden:

  • pageReference

  • override

  • standardController

  • controller

Erklärung

Frage 39 von 73

1

What is a benefit of using a trigger framework?

Wähle eine oder mehr der folgenden:

  • Simplifies addition of context-specific logic

  • Allows functional code to be tested by a test class

  • Increases trigger governor limits

  • Reduces trigger execution time

Erklärung

Frage 40 von 73

1

What are three techniques that a developer can use to invoke an anonymous block of code? Choose 3 answers

Wähle eine oder mehr der folgenden:

  • Create a Visualforce page that uses a controller class that is declared without sharing.

  • Type code into the Developer Console and execute it directly.

  • Type code into the Execute Anonymous tab in the Force.com IDE and click Execute.

  • Use the SOAP API to make a call to execute anonymous code.

  • Create and execute a test method that does not specify a ruzias () call.

Erklärung

Frage 41 von 73

1

What are two characteristics of partial copy sandboxes versus full sandboxes? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • includes a subset of metadata

  • requires a sandbox template

  • supports more frequent refreshes

  • provides more data record storage

Erklärung

Frage 42 von 73

1

Which two statements are true about Apex code executed in Anonymous Blocks? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • The code runs with the permissions of the logged in user.

  • The code runs with the permissions of the user specified in the runAs () statement.

  • The code runs in system mode having access to all objects and fields.

  • Successful DML operations are automatically committed.

  • All DML operations are automatically rolled back.

Erklärung

Frage 43 von 73

1

An after trigger on the Account object performs a DML update operation on all of the child Opportunities of an Account. There are no active triggers on the Opportunity object, yet a "maximum trigger depth exceeded" error occurs in certain situations.
Which two reasons possibly explain the Account trigger firing recursively? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • Changes are being made to the Account during Criteria Based Sharing evaluation.

  • Changes are being made to the Account during an unrelated parallel save operation.

  • Changes to Opportunities are causing cross-object workflow field updates to be made on the Account.

  • Changes to Opportunities are causing roll-up summary fields to update on the Account.

Erklärung

Frage 44 von 73

1

Which control statement should a developer use to ensure that a loop body executes at least once?

Wähle eine oder mehr der folgenden:

  • for (variable : list_or_set) {... }

  • while (condition) {...}

  • for (init_stmt; exit_condition; increment_stmt) { ...}

  • do {... } while (condition)

Erklärung

Frage 45 von 73

1

A developer wrote the following after insert trigger to create a follow-up Task whenever a new Task is created.
List<Task> followupTasks = new List<Task>();
for ( Task theTask : Trigger.new ){
Task newTask = new Task(Status = 'New', Priority = 'Normal');
newTask.Subject = 'Follow-up for ' + theTask.Subject;
newTask.ActivityDate = Date.today().adddays(30);
followupTasks.add( newTask );
}
insert followupTasks;
What happens after the code block executes?

Wähle eine oder mehr der folgenden:

  • The trigger fails if the Task Subject is blank.

  • A new Task is created for each Task in Trigger.new.

  • The trigger enters an infinite loop and eventually fails.

  • Multiple Tasks are created for each Task in Trigger.new.

Erklärung

Frage 46 von 73

1

A developer needs to import customer subscription records into Salesforce and attach them to existing Account records.
Which two actions should the developer take to ensure the subscription records are related to the correct Account records? Choose 2 answers

Wähle eine oder mehr der folgenden:

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

  • Match an Auto-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.

Erklärung

Frage 47 von 73

1

A developer is asked to create a custom Visualforce page that will be used as a dashboard component.
Which three are valid controller options for this page? Choose 3 answers

Wähle eine oder mehr der folgenden:

  • Use a custom controller.

  • Use a custom controller with extensions.

  • Use a standard controller with extensions.

  • Do not specify a controller.

  • Use a standard controller.

Erklärung

Frage 48 von 73

1

A developer needs to apply the look and feel of Lightning Experience to a number of applications built using a custom third-party JavaScript framework and rendered in Visualforce pages.
Which option achieves this?

Wähle eine oder mehr der folgenden:

  • Set the attribute enableLightning to "true" in the definition.

  • Replace the third-party JavaScript library with native Visualforce tags.

  • Configure the User Interface options in the Setup menu to enable Legacy Mode for Visualforce.

  • Incorporate Salesforce Lightning Design System CSS stylesheets into the JavaScript applications.

Erklärung

Frage 49 von 73

1

The Account object has a custom Percent field, Rating, defined with a length of 2 with 0 decimal places. An Account record has the value of 50% in its Rating field and is processed in the Apex code below after being retrieved from the database with SOQL.
public void prccessAccount() ? Decimal acctScore = acct.Rating c * 100;
What is the value of acctScore after this code executes?

Wähle eine oder mehr der folgenden:

  • 5

  • 50

  • 500

  • 5000

Erklärung

Frage 50 von 73

1

A developer can use the debug log to see which three types of information? Choose 3 answers

Wähle eine oder mehr der folgenden:

  • Resource usage and limits

  • Database changes

  • User login events

  • HTTP callouts to external systems

  • Actions triggered by time-based workflow

Erklärung

Frage 51 von 73

1

Which feature allows a developer to create test records for use in test classes?

Wähle eine oder mehr der folgenden:

  • Static Resources

  • Documents

  • HttpCalloutMocks

  • WebServiceTests

Erklärung

Frage 52 von 73

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 53 von 73

1

What is an accurate constructor for a custom controller named MyContactLastController?

Wähle eine oder mehr der folgenden:

  • public MyContactListController(ApexPages.StandardController stdController) { Account a = (Account) stdController.getRecord(); contacts = a.Contacts;
    }

  • public MyContactListController(ApexPages.StandardSetController stdSetController) f contacts = (List<Contact>) stdSetController.getRecords();
    }

  • public MyContactListController(List<sObject> records) f contacts = (List<Contact>) records;
    }

  • public MyContactListController() { contacts = new List<Contact>();
    }

Erklärung

Frage 54 von 73

1

Which three statements are true regarding cross-object formulas? Choose 3 answers

Wähle eine oder mehr der folgenden:

  • Cross-object formulas can reference fields from master-detail or lookup relationships.

  • Cross-object formulas can reference fields from objects that are up to 10 relationships away.

  • Cross-object formulas can expose data the user does not have access to in a record.

  • Cross-object formulas can reference child fields to perform an average.

  • Cross-object formulas can be referenced in roll-up summary fields.

Erklärung

Frage 55 von 73

1

Which governor limit applies to all the code in an Apex transaction?

Wähle eine oder mehr der folgenden:

  • Elapsed CPU time

  • Number of new records created

  • Number of classes called

  • Elapsed SOQL query time

Erklärung

Frage 56 von 73

1

Which action can a developer take to reduce the execution time of the following code?
List<Account> ailAccounts = [SELECT Id FROM Account];
List<Contact> allContacts = [SELECT Id, Accountld FROM Contact];
for (Account a : allAccounts){
for (Contact c: allContacts){ if (c.Accountid = a•Id){ // do work } } }

Wähle eine oder mehr der folgenden:

  • Use a Map <Id, Contact> for allContacts.

  • Add a GROUP BY clause to the Contact SOQL.

  • Put the Account loop inside the Contact loop.

  • Create an Apex helper class for the SOQL.

Erklärung

Frage 57 von 73

1

A Platform Developer needs to implement a declarative solution that will display the most recent Closed Won date for all Opportunity records associated with an Account.
Which field is required to achieve this declaratively?

Wähle eine oder mehr der folgenden:

  • Roll-up summary field on the Opportunity object

  • Cross-object formula field on the Account object

  • Roll-up summary field on the Account object

  • Cross-object formula field on the Opportunity object

Erklärung

Frage 58 von 73

1

A developer has lavaScript code that needs to be called by controller functions in multiple components by extending a new abstract component.
Which resource in the abstract component bundle allows the developer to achieve this?

Wähle eine oder mehr der folgenden:

  • controller.js

  • superRender.js

  • renderer.js

  • helper.js

Erklärung

Frage 59 von 73

1

Which two automation tools include a graphical designer? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • Approvals

  • Flow Builder

  • Process Builder

  • Workflows

Erklärung

Frage 60 von 73

1

How can a developer get all of the available record types for the current user on the Case object?

Wähle eine oder mehr der folgenden:

  • Use SOQL to get all Cases

  • Use DescribeSObjectResult of the Case object.

  • Use Case.getRecordTypes().

  • Use DescribeFieldResult of the Case.RecordType field.

Erklärung

Frage 61 von 73

1

A developer needs to automatically populate the Reports To field in a Contact record on the values of the related Account and Department fields in the Contact record.
Which type of trigger would the developer create? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • before update

  • after insert

  • before insert

  • after update

Erklärung

Frage 62 von 73

1

To which data type in Apex a currency field automatically assigned?

Wähle eine oder mehr der folgenden:

  • Integer

  • Decimal

  • Double

  • Currency

Erklärung

Frage 63 von 73

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 64 von 73

1

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

Wähle eine oder mehr der folgenden:

  • Update the original object using an update DML operation.

  • Delete the original object using a delete DML operation.

  • Change field values using the Trigger.new context variable.

  • Display a custom error message in the application interface.

Erklärung

Frage 65 von 73

1

How should the developer overcome this problem? While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard Pricebook since one already exist in the org.

Wähle eine oder mehr der folgenden:

  • Use @IsTest(SeeAllData=true) and delete the existing standard Pricebook.

  • Use @TestVisible to allow the test method to see the standard Pricebook.

  • Use Test.getStandardPricebbokId()to get the standard Pricebook ID.

  • Use Test.loaddata() and a Static Resource to load a standard Pricebook

Erklärung

Frage 66 von 73

1

How can a developer avoid exceeding governor limits when using an Apex Trigger? Choose 2 answers.

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 67 von 73

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?

Wähle eine oder mehr der folgenden:

  • 11, 150

  • 150, 2

  • 150, 11

  • 2, 150

Erklärung

Frage 68 von 73

1

Which tool can deploy destructive changes to apex classes in production?

Wähle eine oder mehr der folgenden:

  • Workbench

  • Salesforce setup

  • Change Sets

  • Developer Console

Erklärung

Frage 69 von 73

1

Which type of controller should a developer use to include a list of related records for a custom object record on a visualforce page without needing additional test coverage?

Wähle eine oder mehr der folgenden:

  • Custom Controller

  • List Controller

  • Controller Extension

  • Standard Controller

Erklärung

Frage 70 von 73

1

A change set deployment from a sandbox to production fails due to a failure in a managed package unit test. The developer spoke with the managed package owner and they determined it is false positive and can be ignored.
What should the developer do to successfully deploy?

Wähle eine oder mehr der folgenden:

  • Edit the managed package’s unit test

  • Select “Fast Deploy” to run only the tests that are in the change set

  • Select “Run local tests” to run only the tests that are in the change set

  • Select “Run local tests” to run all tests in the org that are not in the managed package

Erklärung

Frage 71 von 73

1

Which two condition cause workflow rules to fire? Choose 2 answers

Wähle eine oder mehr der folgenden:

  • Changing territory assignments of accounts and opportunities

  • Updating record using bulk API

  • Converting leads to person account

  • An Apex batch process that changes field values

Erklärung

Frage 72 von 73

1

A developer writes the following code:

List<account> acc= [SELECT id FROM Account LIMIT 10]; Delete acc; Database.emptyRecyclebin(acc); System.Debug(Limits.getDMLStatemnets()+’,’+ Limits.getLimitDMLStatements());

Wähle eine oder mehr der folgenden:

  • 1,150

  • 2,200

  • 1,100

  • 2,150

Erklärung

Frage 73 von 73

1

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

Wähle eine oder mehr der folgenden:

  • More frequent refreshes

  • Only includes necessary meta data

  • Use of change sets

  • Limited to 5 GB of data

Erklärung