Examen Developer I - I

Descrição

Modelo I TIpo Test - Examen de Certificación Developer I
Jose Miguel Montalbán
Quiz por Jose Miguel Montalbán, atualizado more than 1 year ago
Jose Miguel Montalbán
Criado por Jose Miguel Montalbán mais de 8 anos atrás
6585
13

Resumo de Recurso

Questão 1

Questão
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?
Responda
  • Any changes up to the error are saved
  • All changes are saved in the first Apex class
  • All changes before a savepoint are saved
  • Any changes up to the error are rolled back

Questão 2

Questão
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?
Responda
  • Open de Logs tab in the Developer Console
  • Select the Override Logs Triggers checkbox for the trigger
  • Open the Progress tab in the Developer Console
  • Add the user name in the Log Inspector

Questão 3

Questão
Which data structure is returned to a developer when performing a SOSL search?
Responda
  • A list of lists of sObjects
  • A map of sObjects types to a list of lists of sObjects
  • A map of sObjects types to a list of sObjects
  • A list of sObjects

Questão 4

Questão
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?
Responda
  • Add the test methods to existing test classes from previous deployments
  • Select “Disable Parallel Apex Testing” to run all the tests
  • Select “Fast Deployment” to bypass running all the tests
  • Create test classes to exercise the Visualforce page markup

Questão 5

Questão
A developer needs to create records for the object Property__c. The developer creates the following code block: (image) Which line of code will the developer insert at line 03 to ensure that at least some records are created, even if a few records have errors and fall to be created?
Responda
  • Database.Insert(PropertiesToCreate,System.ALLOW_PARTIAL);
  • Database.Insert(PropertiesToCreate);
  • Insert propertiesToCreate;
  • Database.insert(propertiesToCreate,false);

Questão 6

Questão
When creating unit tests in Apex, which statement is accurate?
Responda
  • 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
  • Unit tests with multiple methods result in all methods failing every time one method fails.
  • Increased test coverage requires large test classes with many lines of code in one method

Questão 7

Questão
When the number of records 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 .lenght() method call?
Responda
  • Do { … } While (Condition)
  • For (variable : list_or_set) { … }
  • While (Condition) { … }
  • For (init_stmt^ exit_condition^ increment_stmt) { … }

Questão 8

Questão
A developer has a block of code that omits any statements that indicates whether the code block should execute with or without sharing What will automatically obey the organizationfwide defaults and sharing settings for the user who executes the code in the Salesforce organization?
Responda
  • Anonymous Blocks
  • Apex Triggers
  • Apex Controllers
  • HTTP Callouts

Questão 9

Questão
When would a developer use a custom controller instead of a controller extension? Choose 2 answers
Responda
  • When a Visualforce page needs to add new actions to a standard controller
  • When a Visualforce page does not reference a single primary object
  • When a Visualforce page needs to replace the functionality of a standard controller
  • When a Visualforce page should not enforce permissions or field-level security

Questão 10

Questão
Which standard field needs to be populated when a developer inserts new Contact records programmatically?
Responda
  • AccountId
  • Name
  • LastName
  • FirstName

Questão 11

Questão
A developer needs to automatically populates 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? Choose 2 answers
Responda
  • before update
  • after update
  • after insert
  • before insert

Questão 12

Questão
An org has different Apex Classes that provide Accountfrelated 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
Responda
  • Create a method that loads valid Account records from a Static Resource, and call this method within test methods
  • Create a method that queries for valid Account records, and call this method from 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 creates valid Accounts records, and call this method from within test methods.

Questão 13

Questão
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 the Warehouse?
Responda
  • Master-Detail
  • Parent-Child
  • One-to-Many
  • Lookup

Questão 14

Questão
On which object can an administrator create a roll-up summary field?
Responda
  • Any object that is on the parent side of a lookup relationship
  • Any object that is on the child side of a lookup relationship
  • Any object that is on the master side of a masterfdetail relationship
  • Any object that is on the detail side of a masterfdetail relationship

Questão 15

Questão
A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for the object. What happens when a user updates a record?
Responda
  • The Apex Trigger is fired more than once
  • No changes are made to the data
  • The Workflow Rule is fired more than once
  • Both the Apex trigger and Workflow Rule are fired only once

Questão 16

Questão
What is a capability of the Developer Console?
Responda
  • Execute Anonymous Apex code, Run REST API, Deploy code changes
  • 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

Questão 17

Questão
A developer has the following trigger that fires after insert and creates a child Case Whenever a new Case is created: (image). What happens after the code block executes?
Responda
  • The trigger enters an infinite loop and eventually fails
  • The trigger fails if the Subject field on the parent is blank
  • Multiple child cases are created for each parent case in Trigger.new
  • A child case is created for each parent case in Trigger.new

Questão 18

Questão
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?
Responda
  • Before Committing to database
  • After Trigger execution
  • After Committing to database
  • Before Trigger execution

Questão 19

Questão
The Review_c object has a lookup relationship up to the Job_Application_c object. The Job_Application_c object has a masterfdetail relationship up to the Position_c object. The relationship field names are based on the autof populated defaults. What is the recommended way to display field data from the related Review_c records on a Visualforce page for a single Position_c record?
Responda
  • Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c data through the Job_Application_c object
  • Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c
  • Utilize the Standard Controller for Position_c and crossfobject Formula Fields on the Job_Application_c object to display Review_c data
  • Utilize the Standard Controller for Position_c and crossfobject Formula Fields on the Review_c object to display Review_c data

Questão 20

Questão
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?
Responda
  • Remove all references from the code and then delete the custom field from Schema Builder
  • Delete the field from Schema Builder and then all references in the code will be removed
  • Remove all references in the code and then the field will be removed from Schema Builder
  • Mark the field for deletion in Schema Builder and delete it from the declarative UI

Questão 21

Questão
Which component is available to deploy using Metadata API Choose 2 answers
Responda
  • Account Layout
  • Console Layout
  • Case Layout
  • Case Feed Layout

Questão 22

Questão
What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
Responda
  • Create a Workflow Rule with a field update
  • Create a process with Process Builder
  • Create a Visualforce page
  • Create a Lightning Component

Questão 23

Questão
A sObject named Application_c has a lookup relationship to another subject named Position_c. Both Application_c and Position_c have a picklist field named Status_c. When 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?
Responda
  • By configuring a crossfobject field update with workflow
  • By changing Application_c.Status_c into formula field
  • By changing Application_c.Status_c into a rollfup summary field.
  • By using an Apex trigger with a DML Operation

Questão 24

Questão
What is true of a partial sandbox that is not true of a full sandbox? Choose 2 answers
Responda
  • Limited to 5GB of data
  • Only includes necessary metadata
  • More frequent refreshes
  • Use of change sets

Questão 25

Questão
What is the minimum log level needed to see user generated debug statements?
Responda
  • DEBUG
  • FINE
  • WARN
  • INFO

Questão 26

Questão
How can a developer avoid exceeding governor limits when using an Apex Trigger? Choose 2 answers
Responda
  • By using Maps to hold data from query results
  • By performing DML transactions on lists of sObjects
  • By using the Database class to handle DML transactions
  • By using a helper class that can be invoked from multiple triggers

Questão 27

Questão
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 userinputs across multiple Visualforce pages and for a parameter in the initial URL. Which statement is unnecessary inside the unit test for the custom controller?
Responda
  • ApexPages.currentPage().getParameters().put(´input´,´TestValue´)
  • String nextPage = controller.save().getUrl()
  • Public ExtendedController(ApexPages.StandardController cntrl) { }
  • Test.setCurrentPage(pageRef)

Questão 28

Questão
How can a developer refer to, or instantiate, a PageReference in Apex? Choose 2 answers
Responda
  • By using a PageReference with a partial or full URL
  • By using the PageReference.Page() method with a partial or full URL
  • By using the ApexPages.Page() Method with a Visualforce page name
  • By using the Page object and a Visualforce page name

Questão 29

Questão
What must the Controller for a Visualforce page utilize to override the standard Opportunity view button?
Responda
  • A callback constructor to reference the StandardController
  • A constructor that initializes a private Opportunity variable
  • The StandardSetController to support related lists for pagination
  • The Opportunity StandarController for prefbuilt functionality

Questão 30

Questão
A developer runs the followinf anonymous code block (image). What is the result?
Responda
  • 11, 150
  • 150, 2
  • 150, 11
  • 2, 150

Questão 31

Questão
What is an accurate statement about with sharing keyword? Choose 2 answers
Responda
  • Both inner and outer classes can be declared as with sharing.
  • Inner classes do not inherit the sharing setting from the container class.
  • Inner classes inherit the sharing setting from the container class.
  • Either inner or outer classes can be declared as with sharing, but not both.

Questão 32

Questão
A company that uses a custom object to track candidates would like to send candidate information automatically to a thirdfparty human resources system when a candidate is hired. What can a developer do to accomplish this task?
Responda
  • Create a workflow rule with an outbound message action.
  • Create a Process Builder with an outbound message action.
  • Create an escalation rule to the hiring manager.
  • Create an auto response rule to the candidate

Questão 33

Questão
A custom exception named “RecordNotFoundException” is defined by the following code block: public class RecordNotFoundException extends Exception () Which statement can a developer use to throw the custom exception? Choose 2 answers
Responda
  • Throw new RecordNotFoundException(‘Problem occurred’)
  • Throw RecordNotFoundException()
  • Throw RecordNotFoundException(‘Problem occurred’)
  • Throw new RecordNotFoundException()

Questão 34

Questão
What is a valid Apex statement?
Responda
  • Integer w, x, y =123, z=’abc’
  • Map conMap =[SELECT Name FROM Contact]
  • private static constant Double rate = 7.75
  • Account[] acctList = new List<Account>{new Account()}

Questão 35

Questão
To which primitive data type in Apex is a currency field automatically assigned?
Responda
  • Decimal
  • Integer
  • Currency
  • Double

Questão 36

Questão
What is a capability of cross-object formula fields? Choose 3 answers
Responda
  • Formula fields can reference fields from objects that are up to 10 relationships away.
  • Formula fields can reference fields from masterfdetail or lookup parent relationship.
  • Formula fields can reference fields in a collection of records from a child relationship.
  • Formula fields can be used in three rollfup summaries per object.
  • Formula fields can expose data the user does not have access to in a record.

Questão 37

Questão
Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct?
Responda
  • 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 Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object.
  • The Custom Object inherits security from the referenced Standard Object.

Questão 38

Questão
Which requirement needs to be implemented by using standard workflow instead of Process Builder? Choose 2 answers
Responda
  • Create activities at multiple intervals.
  • Send an outbound message without Apex code.
  • Submit a contract for approval.
  • Copy an account address to its contacts.

Questão 39

Questão
In which order does Salesforce execute events upon saving a record?
Responda
  • Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit
  • Before Triggers; Validation Rules; After Triggers; Workflow Rules; Assignment Rules; Commit
  • Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit
  • Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit

Questão 40

Questão
When loading data into an organization, what can a developer do to match records to update existing records? Choose 2 answers
Responda
  • Match an autofgenerated Number field to a column in the imported file.
  • Match the Name field to a column in the imported file.
  • Match an external Id Text field to a column in the imported file.
  • Match the Id field to a column in the imported file.

Questão 41

Questão
What is a correct pattern to follow when programming in Apex on a multi-tenant platform?
Responda
  • Apex classes use the “with sharing” keyword to prevent access from other server tenants.
  • Queries select the fewest fields and records possible to avoid exceeding governor limits.
  • 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.

Questão 42

Questão
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
Responda
  • The Apex Test Execution page in Salesforce Setup.
  • The Test menu in the Developer Console.
  • The REST API and ApexTestRun method.
  • The Run Tests page in Salesforce Setup.

Questão 43

Questão
Which type of code represents the Controller in MVC architecture on the Force.com platform? Choose 2 answers
Responda
  • Custom Apex and JavaScript code that is used to manipulate data.
  • 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.

Questão 44

Questão
Why would a developer use Test.startTest() and Test.stopTest()?
Responda
  • To create an additional set of governor limits during the execution of a single test class.
  • To avoid Apex code coverage requirements for the code between these lines.
  • To indicate test code so that it does not impact Apex line count governor limits.
  • To start and stop anonymous block execution when executing anonymous Apex code.

Questão 45

Questão
A developer writes a before insert trigger. How can the developer access the incoming records in the trigger body?
Responda
  • 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.

Questão 46

Questão
Which code segment can be used to control when the dowork() method is called?
Responda
  • if (trigger.IsRunning) { dowork(); }
  • for (trigger.IsInsert t : trigger.new) { dowork(); }
  • for (trigger.IsRunning t : trigger.new) { dowork(); }
  • if (trigger.IsInsert) { dowork(); }

Questão 47

Questão
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?
Responda
  • Process builder
  • Workflow rule
  • Validation rule
  • Formula field

Questão 48

Questão
What is a characteristic of the Lightning Component framework? Choose 2 answers
Responda
  • Is has an event-driven architecture.
  • It uses XML as its data format.
  • It works with existing Visualforce pages.
  • It includes responsive components.

Questão 49

Questão
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 fells when the developer uses the Apex Data Loader to insert 10000 Lead records. The developer has the following code block: (image) Which line of code is causing the code block to fail?
Responda
  • 05: The Lead in a before insert trigger cannot be updated
  • 02: A NullPointer exception is thrown if PostalCode is null
  • 03: A SOQL query is located inside of the for loop code
  • 01: Trigger.new is not valid in a before insert Trigger

Questão 50

Questão
Which resource can be included in a Lightning Component bundle? Choose 2 answers
Responda
  • Javascript
  • Documentation
  • Apex class
  • Adobe Flash

Questão 51

Questão
A developer has the following code block: (image). To calculate the ProductTax, which code segment would a developer insert in XXXXXXXXXXX to make the value of the class variable SalesTax accessible within the trigger?
Responda
  • PayTax.SalesTax
  • PaymentTax.SalesTax
  • OpportunityLineItemTrigger.SalesTax
  • SalesTax

Questão 52

Questão
In an organization that has enabled multiple currencies, a developer needs to aggregate the sum of the Estimated_Value__c currency from the CampaignMember object using a rollfup summary field called UTotal_Estimated_Value__c on Campaign How ia the currency of the Total_Estimated_Value__c rollfup summary field determined?
Responda
  • 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
  • e values in CampaignMember.Estimated_Value__c are converted into the currency on the majority of the CampaignMember records and the sum is displayed using that currency.
  • 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

Questão 53

Questão
On a Visuaforce page with a custom controller, how would a developer retrieve a record by using an ID parameter that is passed on he URL
Responda
  • Use the <apex:detail> tag in the Visualforce page
  • Use the $Action.View method in the Visualforce page
  • Create a new PageReference object with the Id
  • Use the constructor method for the controller

Questão 54

Questão
A developer needs to provide a Visualforce page that lets users enter Productfspecific details during a Sales cycle How can this be accomplished? Choose 2 answers
Responda
  • Copy the standard page and then make a new Visualforce page for Product data entry
  • Download an Unmananaged package from the AppExchange that provides a custom Visualforce page to modify
  • Download an Mananaged 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

Questão 55

Questão
A developer wants to display all of 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 fieldare on a custom Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? Chose 2 answers
Responda
  • Use SOQL to query Case records in the org to get all the RecordType values available for Case
  • 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()

Questão 56

Questão
What is the preferred way to reference web content ffsuch as images, stylesheets, javascript, and either librariesff that is used in Visualforce pages?
Responda
  • By uploading the content as a Static Resource
  • By uploading the content in the Document tab
  • By accessing the content from Chatter Files
  • By accessing the content from a thirdfparty CDN

Questão 57

Questão
What is a valid source and destination pair that can send or receive change sets? Chose 2 answers
Responda
  • Developer Edition to sandbox
  • Sandbox to production
  • Sandbox to sandbox
  • Developer Edition to production

Questão 58

Questão
A developer creates a custom controller and custom Visualforce page by using the following code below: (image). What does the user see when accessing the custom page??
Responda
  • getMyString, , Method2, getMyString
  • getMyString, , ,
  • , , Method2,
  • , , Method2, getMyString

Questão 59

Questão
In the code below, what type does Boolean inherit from? Boolean b = true
Responda
  • String
  • Enum
  • Class
  • Object

Questão 60

Questão
What is the preferred way to reference web content ffsuch as images, stylesheets, javascript, and either librariesff that is used in Visualforce pages?
Responda
  • By uploading the content as a Static Resource
  • By uploading the content in the Document tab
  • By accessing the content from Chatter Files
  • By accessing the content from a thirdfparty CDN

Semelhante

Examen Developer I - III
Jose Miguel Montalbán
Administración de Salesforce ADM201
Gregorio Andres Arango Moreno
DEV-501-I
jbarcoga
DEV-501-II
jbarcoga
3. Platform Developer 1: Logic and Process Automation Part 1
Laura Hdez
Fundamentos de AdWords 1
Juan Antonio Gonzalez Lombana
SalesForce Examen 1 Admin
Konstantin Klykov
Modelo de Prueba de Certificación SAP FI
ERNESTO L MARQUEZ F
Examen Developer I - II
Jose Miguel Montalbán
AXIS QUIZ
Luis Guzmán
Examen Developer I - III
juan rosales