DEV450 Salesforce Platform Developer 1

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Before deleting a record, a complex validation needs to be performed to confirm that the record can be deleted by querying a number of objects. What solution would be most appropriate in this situation? A. Apex Trigger B. Process Builder C. Validation Rule D. Visual Workflow

A. Apex Trigger

If your company is selling only to businesses, which features of Salesforce would be used? A. Business Accounts B. Person Accounts C. Contacts D. Private Contacts

A. Business Accounts C. Contacts

How can a developer check if a user has read access to a field and the field can be displayed on a Visualforce page? A. Call the isAccessible() method of Schema.DescribeFieldResult to verify field level read permission B. Call the isViewable() method of Schema.DescribeFieldResult to verify field level read permission C. Call the isReadable() method of Schema.SObjectResult to verify field level read permission D. Call the IsAccessible() method of Schema.DescribeSObjectResult to verify field level read permission

A. Call the isAccessible() method of Schema.DescribeFieldResult to verify field level read permission

A developer is creating a Training application to track training courses and the enrolment of the candidates. Each candidate can enroll in multiple training courses at a time. How can the developer achieve this? A. Create a junction object to relate many candidates to many training courses through master-detail relationships. B. Create a master-detail relationship between Candidate and Training Course C. Create a lookup relationship between Candidate and Training Course D. Create a junction object to relate Candidates to Training Courses and use lookup relationships to relate the junction object to Candidates and Training Courses

A. Create a junction object to relate many candidates to many training courses through master-detail relationships.

A recruiting application has been proposed by developers that covers Job vacancies and respective applications. The business wants to display the number of applications of every job vacancy without inheriting the security of the parent record (job vacancy) it has. The developer should: Choose 2 answers. A. Create a lookup relationship between the 2 objects. B. Create an Apex Trigger that will count all job application on each job and update a field on the parent object. C. Create a roll up summary on the Job Vacancy object, D. Create a master-detail relationship between Job Vacancy and Job Application.

A. Create a lookup relationship between the 2 objects. B. Create an Apex Trigger that will count all job application on each job and update a field on the parent object.

A developer would like to relate an external data object (Social Media Posts) to the contacts object in Salesforce to track every post the contact has made in the external platform. How can the developer achieve this? A. Create an indirect lookup relationship using a custom field with External ID and Unique attributes B. Create an external lookup relationship using a custom field with External ID and Unique attributes C. Create a master detail relationship and update the record ID through integration D. Create a lookup relationship and update the record ID through integration

A. Create an indirect lookup relationship using a custom field with External ID and Unique attributes

A Salesperson wants to track customer preferences and product interests. How is this achieved in Salesforce as per the MVC model? A. Creating objects and fields B. Creating Custom Visualforce pages C. Validation Rules D. Workflow

A. Creating objects and fields

Record types have been defined on the Account object. What does this mean? A. Different picklist values can be defined for each record type B. Different fields can be defined for each record type C. Different page layouts can be assigned for each record type D. Different users can be assigned to each record type

A. Different picklist values can be defined for each record type C. Different page layouts can be assigned for each record type

Which of the following use cases are valid for declarative customization? Choose 3 answers. A. Displaying the number of employees of the account related to an opportunity, on the opportunity page layout B. Calculating the number of days until an opportunity closes and displaying on a report C. Determining a lead rating, based on checking the value of 3 lead fields D. Calculating the sales tax applicable to a quote, that is based on various factors such as product, state, quantity

A. Displaying the number of employees of the account related to an opportunity, on the opportunity page layout B. Calculating the number of days until an opportunity closes and displaying on a report C. Determining a lead rating, based on checking the value of 3 lead fields

Universal Containers would like to see a Red / Yellow / Green Traffic Light representation on the Opportunity detail page, based on the value in the Opportunity Probability field. What would you use to achieve this? A. Formula Field B. Master Detail Relationship C. Rich Text Field D. Image Field

A. Formula Field

Universal Containers has tried the Schema Builder but has found that because there are too many objects and relationships displayed, it has long loading times and decided it is too difficult to work with. What features would you suggest to help with this issue? A. If the 'Hide Relationships' option is selected, performance is improved B. The map can be used to navigate to objects of interest C. The filter can be used to only display objects of interest D. Fields can be hidden and only the objects displayed

A. If the 'Hide Relationships' option is selected, performance is improved B. The map can be used to navigate to objects of interest C. The filter can be used to only display objects of interest

Your company has a requirement to be able to calculate sales tax on quotes. It needs to use tax rates and rules, product taxability and address validation. How would you meet this requirement? A. Look for an AppExchange app B. Use Lightning Process Builder to do the calculations C. Create a custom APEX solution D. Use Workflow and Formula Fields

A. Look for an AppExchange app

You have a requirement to associate a project manager to a project record. Project managers are defined as users in the application. What type of relationship would be most appropriate? A. Lookup Relationship B. Hierarchical Lookup Relationship C. Master Detail Relationship D. Many to Many Relationship

A. Lookup Relationship

You are replacing a spreadsheet that tracks company resources and the employees that are assigned to the resources with a Salesforce App. Resources can be of different types, such as phones, vehicles and equipment. Each employee can be assigned multiple resources. After creating a custom object for Employee and Resource, what type of relationship would be appropriate to create? A. Lookup relationship B. Many to Many relationship C. Master Detail relationship D. Picklist relationship

A. Lookup relationship

A developer needs to update existing Account records using an import file. How can the records be matched so that the correct record is updated? Choose 2 answers A. Match the record id field to a column in the import file B. Match the Account Name to a column in the import file C. Match the order of the data in the import file to the order of the records in Salesforce D. Match an external id field defined on the account object to a column in the import file

A. Match the record id field to a column in the import file D. Match an external id field defined on the account object to a column in the import file

Which of the following correctly describes how the platform features map to the MVC pattern? A. Model: Standard and Custom objects; View: Pages and Components; Controller: Standard and Custom Controllers B. Model: APEX Classes; View: Pages and Components; Controller: APEX Triggers C. Model: Standard and Custom objects; View: CSS and images; Controller: Standard and Custom Controllers D. Model: Javascript code; View: Visualforce Pages; Controller: Custom APEX code

A. Model: Standard and Custom objects; View: Pages and Components; Controller: Standard and Custom Controllers

Which of the following field types can a roll-up summary field calculate? A. Number B. Text C. Checkbox D. Picklist

A. Number

What is true regarding Person Accounts? Choose 3 answers. A. Person Accounts need to be enabled and cannot be disabled B. Person Accounts do not have an account hierarchy C. If Person Accounts are enabled, when creating an account, the type of account to create needs to be selected D. Person Accounts have the same fields as a business account

A. Person Accounts need to be enabled and cannot be disabled B. Person Accounts do not have an account hierarchy C. If Person Accounts are enabled, when creating an account, the type of account to create needs to be selected

Dynamic Computing would like to be able to manage sales and support tasks differently and display different fields for each. How can this requirement be met? A. Record Types B. Page Layouts C. Workflow Rules D. Formula Fields

A. Record Types B. Page Layouts

Which of the following are true regarding developing in the Salesforce multitenant environment? Choose 2 answers. A. Salesforce delivers polyglot persistence transparently B. It is not possible to index application data as each tenant stores different types of data in the same application table C. Queries need to be selective in terms of the number of records returned D. The custom domain feature ensures that different customers do not access each others data

A. Salesforce delivers polyglot persistence transparently C. Queries need to be selective in terms of the number of records returned

"Of the following, which are true regarding how Salesforce supports the sales process? Choose 3 answers." A. Salesforce features include leads, campaigns, products, pricebooks, opportunities and quotes B. Salesforce supports selling different items with different processes C. Opportunity Teams allow a group of people working on a deal to be associated with an opportunity D. Only contacts from the account related to the opportunity can be linked using contact roles

A. Salesforce features include leads, campaigns, products, pricebooks, opportunities and quotes B. Salesforce supports selling different items with different processes C. Opportunity Teams allow a group of people working on a deal to be associated with an opportunity

Which amongst the following provides a dynamic environment for viewing and modifying objects and relationships? A. Schema Builder B. Process Builder C. Process Visualizer D. Approval Visualizer E. Flows

A. Schema Builder

What feature can be used to find the latest news and information about the account and contacts you are interested in? A. Social Accounts, Contacts and Leads B. Global Search C. News Search D. Twitter Search

A. Social Accounts, Contacts and Leads

What are valid reasons for considering an AppExchange App? Choose 3 answers. A. Some AppExchange apps are free B. AppExchange apps are isolated from other customizations, so they will not interfere with existing functionality C. AppExchange apps cover functionality not covered by Salesforce, such as Finance D. Some AppExchange apps are open source

A. Some AppExchange apps are free C. AppExchange apps cover functionality not covered by Salesforce, such as Finance D. Some AppExchange apps are open source

What constitutes the Model part in the Model-View-Controller paradigm? Choose 2 answers A. Standard Objects B. Custom Objects C. Standard Pages D. Visualforce Pages

A. Standard Objects B. Custom Objects

Which of the following would not be part of the model layer in the MVC model? A. Tabs B. Fields C. Relationships D. Objects

A. Tabs

How can a developer access a static variable named TaxRate declared in a different Apex class named TaxCalculation? A. TaxCalculation.TaxRate B. TaxCalculation.TaxRate() C. (new TaxCalculation()).TaxRate D. (new TaxCalculation()).TaxRate()

A. TaxCalculation.TaxRate

An organization has enabled Multiple Currencies. A developer needs to calculate the total of the Estimated_value__c on CampaignMember object using a roll-up summary field on Campaign object named Total_estimated_value__c. What will be the currency of the Total_estimated_value__c field? A. The field values in Estimated_value__c from CampaignMember object are converted into the currency of the Campaign, and the Total_estimated_value__c is shown using the currency of the Campaign. B. The field values in Estimated_value__c are converted into the currency of the majority of the CampaignMember records, and the Total_estimated_value__c is shown using that currency. C. The field values in Estimated_value__c from CampaignMember object are summed up, and the Total_estimated_value__c field is shown as a Number field on the Campaign. D. The field values in Estimated_value__c from CampaignMember object are converted into the currency of the current user, and the Total_estimated_value__c is shown using the currency of the current user on the Campaign.

A. The field values in Estimated_value__c from CampaignMember object are converted into the currency of the Campaign, and the Total_estimated_value__c is shown using the currency of the Campaign.

Which correctly describes the code snippet below? Choose 2 answers. public with sharing class containerClass { //Insert code here public class innerClass { //Insert code here } } A. The innerClass does not inherit the sharing setting of the containerClass. B. The [with/without sharing] keyword should only be defined in outer classes. C. [without sharing] will be the default for the inner class D. The innerClass inherits the sharing setting of the containerClass.

A. The innerClass does not inherit the sharing setting of the containerClass. C. [without sharing] will be the default for the inner class

What are considerations for deciding between using Data Loader and the Data Import Wizard for loading data into a development environment? Choose 3 answers. A. The number of records to be loaded B. If the data will need to be loaded multiple times C. If the object is supported by the Data Import Wizard D. If triggers should run on import of the data

A. The number of records to be loaded B. If the data will need to be loaded multiple times C. If the object is supported by the Data Import Wizard

What are valid use cases for the AppExchange? Choose 2 answers. A. To add industry specific functionality to Salesforce B. To extend standard Salesforce functionality C. To exchange ideas and tips with other developers D. To exchange apps with other developers

A. To add industry specific functionality to Salesforce B. To extend standard Salesforce functionality

When should a static method or variable be used? Choose 3 answers. A. To store information that is shared across instances of a class B. To use as a utility method C. When the static variable value should persist beyond the context of a single transaction D. A developer needs to access a method without instantiating a class.

A. To store information that is shared across instances of a class B. To use as a utility method D. A developer needs to access a method without instantiating a class.

Because Apex runs in a multitenant environment, the Apex runtime engine enforces limits to ensure that Apex code or processes don't monopolize shared resources. What are valid examples of these limits? Choose 3 answers. A. Total number of records retrieved by SOQL queries B. CPU time per transaction C. Time executing a SOQL query D. Maximum number of records that can be stored

A. Total number of records retrieved by SOQL queries B. CPU time per transaction C. Time executing a SOQL query

Which of the following capabilities are provided by the core CRM objects in the Salesforce schema? A. Tracking sales deals and pipelines B. Recording time spent on projects in timesheets C. Recording customer feedback, problems or questions D. Tracking prospective customers E. Tracking customer invoices

A. Tracking sales deals and pipelines C. Recording customer feedback, problems or questions D. Tracking prospective customers

How can a dynamic SOQL query be constructed at runtime using input from an end user? A. Use the Database.query(string) with a query specified in the string B. Use the SOQL.execute(string) with a query specified in the string C. Use the Database.execute(string) with a query specified in the string D. Use the Database.search(string) with a query specified in the string

A. Use the Database.query(string) with a query specified in the string

How can a developer check if the current user is able to delete the current object? A. Use the isDeletable() method of the DescribeSObjectResult Class B. Use the canDelete() method of the DescribeSObjectResult Class C. Use the Deletable() method of the SObjectResult Class D. Use the canDelete() method of the SObjectResult Class

A. Use the isDeletable() method of the DescribeSObjectResult Class

How can child records be updated when the parent is modified? Choose 2 answers. A. Using Process Builder B. Using Cross object workflow C. Using a Trigger D. Using a formula field

A. Using Process Builder C. Using a Trigger

How can the relationship between different accounts be recorded and viewed? Choose 2 answers. A. Using the Parent Account field B. Using the View Hierarchy link C. Using the Generate Relationship function D. Using the Related Account field

A. Using the Parent Account field B. Using the View Hierarchy link

A developer is considering writing a trigger to perform data validation to ensure that only valid data is saved. What other options can be used for data quality checks? Choose 3 answers. A. Validation rules B. Required fields C. Picklists D. Escalation rules

A. Validation rules B. Required fields C. Picklists

What is true regarding the user interface for different relationship types? Choose 2 answers. A. When a lookup relationship to object B is defined on object A, data from object A can appear as a related list on page layouts for object B. B. When a master detail relationship is defined, data from the master or detail object can appear as a custom related list on page layouts for the other object. C. When a many to many relationship is defined between object A and B, data from object B can appear in a custom related list on page layouts of object A. D. When a lookup relationship to object B is defined on object A, data from object B can appear as a related list on page layouts of object A.

A. When a lookup relationship to object B is defined on object A, data from object A can appear as a related list on page layouts for object B. C. When a many to many relationship is defined between object A and B, data from object B can appear in a custom related list on page layouts of object A.

What is the correct syntax for a Do While procedural loop? A. do {statement} while (Boolean_condition); B. while (Boolean_condition){ do {statement}} C. do {while (Boolean_condition); statement;} D. do {statement; while (Boolean_condition);}

A. do {statement} while (Boolean_condition);

How can a developer ensure that a variable 'Day' will only contain specific set of constants such as SUNDAY, MONDAY, TUESDAY.....SATURDAY? What should variable 'Day' be declared as? A. enum Day{ SUNDAY, MONDAY, .....SATURDAY} B. list<String>Day{ SUNDAY, MONDAY, .....SATURDAY} C. set<String>Day{ SUNDAY, MONDAY, .....SATURDAY} D. map<Id, String>Day{ SUNDAY, MONDAY, .....SATURDAY}

A. enum Day{ SUNDAY, MONDAY, .....SATURDAY}

In the following line of code, why can the helloWorld method be called directly instead of instantiating the myClass? myClass.helloWorld('Hello'); A. helloWorld is defined as a static method B. helloWorld is defined as a void method C. myClass is defined as a static class D. myClass is defined as public

A. helloWorld is defined as a static method

Which of the following statements about defining an Apex Class is not true? A. An access modifier is required in the declaration of a top-level class B. A definition modifier is required in the top-level class. C. The keyword [class] followed by the name of the class is necessary D. A developer may add optional extensions and/or implementations.

B. A definition modifier is required in the top-level class.

What is true regarding the Salesforce multitenant environment? Choose 2 answers. A. All customers share the same code base, but have their own database B. All customizations are specified as metadata, allowing for easy upgrades C. Metadata includes configuration but not code D. Automatic upgrades are applied during the year according to the Salesforce release schedule to all customers

B. All customizations are specified as metadata, allowing for easy upgrades D. Automatic upgrades are applied during the year according to the Salesforce release schedule to all customers

You are trying to decide whether to use a master-detail or lookup relationship between two objects. Which of the following considerations are false? A. In a master-detail relationship, if the master record is deleted, the detail records will all be deleted B. Child records in master-detail relationships on custom objects cannot be reparented C. Custom objects on the detail side of a master-detail relationship cannot have queues D. A custom object cannot be on the master side of a relationship with a standard object

B. Child records in master-detail relationships on custom objects cannot be reparented

What is the method in the second line of the code snippet below called? public class sampleClass(){ public sampleClass(){ //logic here } public void sampleMethod(){ //logic here } } A. Modifier B. Constructor C. Extension D. Initiator

B. Constructor

You have a requirement to display the total cost of products at the time they were added to an opportunity. The product cost is a custom field on the product object and is added as a formula field to the opportunity product object. How would you meet this requirement? A. Create a rollup summary field on the opportunity based on the product cost formula field B. Create a workflow rule that copies the product cost to a currency field and create a rollup summary field based on the currency field C. A trigger is required to sum the values of the product cost formula field D. A trigger is required to query the product cost values and update the opportunity

B. Create a workflow rule that copies the product cost to a currency field and create a rollup summary field based on the currency field

Which of the following are true about cross-object formula fields? Choose 3 answers. A. For every object, cross object formula fields can be used in 3 roll-up summaries. B. Cross object formula fields can pull field values from master-detail or lookup parent records. C. Cross object formula fields can pull data from a record even if the user does not have access to it. D. Cross object formula fields can pull field values from objects that are up to 10 relationships away. E. Cross object formula fields can pull field values from its child records.

B. Cross object formula fields can pull field values from master-detail or lookup parent records. C. Cross object formula fields can pull data from a record even if the user does not have access to it. D. Cross object formula fields can pull field values from objects that are up to 10 relationships away.

A developer has to do a quick one time load of 100 custom object records into a development environment. The data is in a csv file and each record contains 5 fields. Which tool would you recommend to use to load the data? A. Custom Object Import Wizard B. Data Import Wizard C. Data Loader D. Data API Tool

B. Data Import Wizard

Given the following value from a Lead record, lastModifiedDate:2016-05-06 03:25:41, what data type should the developer use to retrieve this type of information? A. Time B. DateTime C. Date D. DateValue

B. DateTime

Which data type is appropriate for a numerical value of 726.234 stored in the variable totalCost? A. Integer totalCost; B. Decimal totalCost; C. Long totalCost; D. Numeric totalCost;

B. Decimal totalCost;

Your company has a requirement to track the vehicles assigned to work orders. Vehicles can exist without Work Orders and have a record owner. What kind of relationship should be created between Work Orders and Vehicles? A. Master Detail B. Lookup C. Picklist D. Hierarchy

B. Lookup

Global Insurance has custom objects to represent Policies and Claims. A Policy can have zero or many Claims. A Claim is always related to a Policy. Claims are first assigned to a queue and then later assigned to different members of the claims team. What type of relationship would be used to relate these objects? A. Master-detail relationship B. Lookup relationship C. Self relationship D. Direct relationship

B. Lookup relationship

The following scenarios can be achieved through the use of standard workflow, instead of using Process Builder, except for? There are 2 correct answers. A. Creating tasks at multiple intervals B. Submitting an Order for approval C. Copying the Account postal code to all child contacts D. Field update on parent object.

B. Submitting an Order for approval C. Copying the Account postal code to all child contacts

Steadfast Insurance Inc. have a custom object [Claim] to track insurance claims. A team member will record a claim and an approval process is used for the insurance manager to approve the claim. In order to assist the manager, the team member's claim limit from their user record should be displayed on the claim record. How can this be developed? A. Use a field update in a workflow rule to copy the team members claim limit onto the claim record B. Use a cross object formula to display the users limit on the claim record C. Use a trigger to populate the user limit field when the claim is created D. Use Process Builder to populate the user limit field when the claim is created

B. Use a cross object formula to display the users limit on the claim record

You have come across a situation where a consultant works on behalf of multiple organizations. How can you track this in Salesforce? A. Create multiple contact records and relate the consultant to each organization they consult for B. Use the Contacts to Multiple Accounts feature C. Use the Account Teams feature D. Use the Account Hierarchy feature

B. Use the Contacts to Multiple Accounts feature

Sam has completed a solution design and is ready to create the data model for a new application in Salesforce. There are a number of custom objects, each with a number of custom fields and relationships between the custom objects. What would you suggest to complete the task most efficiently? A. Use the Schema Builder to create custom objects and fields and the Create->Objects in Setup to create relationships B. Use the Schema Builder to create custom objects, fields and relationships C. Use the Schema Builder to create objects, fields and relationships need to be created using the Create Custom Field in Setup D. Create the Custom objects, fields and relationships using the Create->Objects in Setup and use the Schema Builder to verify the data model was created correctly.

B. Use the Schema Builder to create custom objects, fields and relationships

A developer is required to ensure that a reason is entered if an opportunity is lost and closed. What is the best way to meet this requirement? A. Workflow rule B. Validation rule C. Trigger D. Required field

B. Validation rule

What are some considerations regarding using Leads in Salesforce? Choose 3 answers. A. When a lead is qualified, an account, contact and opportunity is always created B. When a lead is created, it can be automatically assigned to an owner C. Opportunities must always be created from Leads D. Leads can be individual consumers E. Leads can be imported or created from an automatic process

B. When a lead is created, it can be automatically assigned to an owner D. Leads can be individual consumers E. Leads can be imported or created from an automatic process

A company would like to send record information to a legacy system when a criteria is met. A developer can accomplish this requirement by using: A. Outbound Notification Rule B. Workflow Rule with Outbound Message C. Assignment Rule D. Visual Workflow

B. Workflow Rule with Outbound Message

To fulfill a business requirement, a formula field of a child object has been used in a roll-up summary field of a Master object. Will the roll-up summary field function correctly? A. Yes, using formula fields in a roll-up summary is fully supported B. Yes, if the formula field is not referring to another field in a different object C. Yes, if the formula field has a numeric value D. No, using formula fields in a roll-up summary is not supported.

B. Yes, if the formula field is not referring to another field in a different object

What methods can be used to get a list of all sObjects in an organization and their fields? Choose 2 answers. A. describeObjects() B. describeGlobal() C. describeSObjects() D. describeSObjectFields()

B. describeGlobal() C. describeSObjects()

Given the following options, what are the valid ways to declare a collection variable? Choose 3 answers. A. new Account(<Name = 'Business Account'>) B. new Map<Id, Account>() C. new Contact[]{<elements>} D. new List<Account>() E. new Integer()

B. new Map<Id, Account>() C. new Contact[]{<elements>} D. new List<Account>()

Which of the following class variable declarations best describes the statement below? A variable numberOfStudents with a constant value of 25 that is accessible only within the Apex class in which it is defined. A. global static Integer numberOfStudents = 25; B. private static final Integer numberOfStudents = 25; C. public Integer numberOfStudents = 25; D. protected final Integer numberOfStudents = 25;

B. private static final Integer numberOfStudents = 25;

A developer executes the code below: If(isCorrect){ System.debug("The value of x is True"); } else if (!isCorrect) { System.debug("The value of x is False"); } else { System.debug("The value of x is Null"); } How should the developer initialize the variable 'isCorrect'? A. Blob isCorrect; B. String isCorrect; C. Boolean isCorrect; D. Enum isCorrect;

C. Boolean isCorrect;

What will be the result if the code below is executed when the variable testRawScore is 75? if (testRawScore &gt;= 90) { gradeEqual = 'A'; } else if (testRawScore &gt;= 80) { gradeEqual = 'B'; } else if (testRawScore &gt;= 70) { gradeEqual = 'C'; } else if (testRawScore &gt;= 60) { gradeEqual = 'D'; } System.debug(gradeEqual); A. A B. B C. C D. D

C. C

For which of the following requirements, could a formula field not be used? A. A custom field needs to have a default value such as the week from the current date B. Display a traffic light image of red, yellow or green based on case priority C. Concatenate values from long text area fields D. Create a link to an application outside of Salesforce, passing parameters including the session id

C. Concatenate values from long text area fields

There is a requirement to track which Health Care Providers are related to which Hospitals. Hospitals are a type of account. Health Care Providers is a custom object. A Health Care Provider can be related to multiple Hospitals. A Hospital can be related to multiple Health Care Providers. How can this relationship be created? A. Create a master detail relationship field on the Health Care Provider object B. Create 2 master detail relationship fields one on the Health Care Provider object and one on the Account object C. Create an additional object to connect the other 2 objects and create 2 master detail relationship fields on that object D. Create 2 lookup relationship fields, one on the Health Care Provider object and one on the Account object

C. Create an additional object to connect the other 2 objects and create 2 master detail relationship fields on that object

Project managers would like to be able to record the total amount of hours each team member works on projects. A team member can be related to multiple projects and each project can have multiple team members. How can the developer achieve this? A. Create a lookup relationship on both objects to a junction object called Project Team Member. B. Create a master-detail relationship on the Project object to the Team Member object. C. Create master detail relationships from a junction object 'Project Team Member', one to the Project object and one to the Team Member object D. Create a master-detail relationship on Project and Team Member objects to a junction object 'Project Team Member'.

C. Create master detail relationships from a junction object 'Project Team Member', one to the Project object and one to the Team Member object

Stock Symbol is a custom field on the Account object. What is the best way to make this field appear on Contact detail page layout? A. Roll up summary field B. Lookup field C. Formula Field D. Parent Field E. Requires Apex Code

C. Formula Field

What are considerations that a new developer should be aware of when developing in a multi-tenant environment? Choose 2 answers. A. Many customers share the same instance, so queries need to ensure the correct organization id is referenced to return the correct organizational data B. The number of API calls allowed is unlimited C. Governor limits ensure that the amount of CPU time is monitored and limited per customer over a defined time period to ensure that performance in one org is not impacted by another D. Restrictions are enforced on code that can be deployed into a production environment

C. Governor limits ensure that the amount of CPU time is monitored and limited per customer over a defined time period to ensure that performance in one org is not impacted by another D. Restrictions are enforced on code that can be deployed into a production environment

A developer created a lookup relationship between the standard object Account and a custom object Feedback. Which statement is correct? A. If a feedback record is deleted, the account will also be deleted. B. Any user that can view the account records can also view the feedback records. C. If a feedback record is deleted, the account will not be deleted. D. The owner of the account record will be the owner its feedback record.

C. If a feedback record is deleted, the account will not be deleted.

Which of the following statements are true when defining Apex classes? Choose 2 answers. A. It is optional to specify an access modifier in declaring a top-level class. B. A top-level class can have multiple levels of inner classes. C. It is required to specify an access modifier in declaring top-level class. D. It is optional to specify an access modifier in declaring inner class.

C. It is required to specify an access modifier in declaring top-level class. D. It is optional to specify an access modifier in declaring inner class.

New Horizon Satellites uses Salesforce for opportunity management for its data service products. There are many variables and complex combinations that can be configured when offering a data service. They currently use Excel to produce quotes but would like to use Salesforce instead. What would be the recommended solution? A. Create a Visualforce page that displays the quote and allows saving as a PDF B. Use the standard Quote template functionality C. Look for an AppExchange product that meets the requirements D. Create a custom button that will export the opportunity details to Excel

C. Look for an AppExchange product that meets the requirements

Eric was told that Visualforce is part of the MVC paradigm. In this context, what does MVC stand for? A. Master Control Variable B. Master Class Variable C. Model View Controller D. Model Variable Controller

C. Model View Controller

The Stage field of all related Opportunity records should be updated to [Closed Lost], when the associated Account record becomes Inactive. What could be used for this? A. Visual Workflow B. Approval Process C. Process Builder D. Workflow rule

C. Process Builder

The developer executes the code below and an error is returned indicating that a variable is not properly declared. String str = new String(); public void stringDisplay() { str = 'Hello'; system.debug(str); } What is the proper way of declaring a String data type variable? A. Text str; B. String new = str String(); C. String str; D. String = str();

C. String str;

What is true regarding record access in a master detail relationship? Choose 2 answers. A. The detail object can have its own sharing rules B. The detail object can have a record owner C. The detail object inherits the sharing and security settings of the master record D. The owner of a detail object is automatically set to the owner of its associated master record

C. The detail object inherits the sharing and security settings of the master record D. The owner of a detail object is automatically set to the owner of its associated master record

The Salesforce Administrator is building an application and needs to create a master detail relationship between the standard object Account and a custom object. What is true regarding the relationship? Choose 2 answers. A. The custom object can be on the master or detail side of the relationship B. The standard object can be on the master or detail side of the relationship C. The standard object is always the master D. The object on the detail side will inherit the security and sharing settings of the master object

C. The standard object is always the master D. The object on the detail side will inherit the security and sharing settings of the master object

If multiple people in your organization work with an account, how can this be easily tracked and required access provided? A. Use Sharing Rules B. Use Account Assignment Rules C. Use Account Teams D. Use Multiple Owners

C. Use Account Teams

How does Salesforce track how a deal progresses through the sales cycle? A. Using Deal Stages B. Using Sales Status C. Using Opportunity Stages D. Using Opportunity Status

C. Using Opportunity Stages

You have been given the requirement to display the average value of won opportunities on the Account page layout. How can this be achieved? A. Using a trigger on the opportunity object B. Using a trigger on the account object C. Using rollup summary fields and a formula field D. Using a rollup summary field with the average function

C. Using rollup summary fields and a formula field

Cool Air Conditioners has been using Service Cloud to manage cases, but are now considering using it to manage field service jobs. They would like to track field service activity and assignment to technicians. What is the recommended solution to meet these requirements? A. Install an AppExchange product that provides Field Service functionality B. Extend the Service Cloud configuration to handle Field Service cases C. Utilize the standard objects Work Order and Work Order Line Items D. Use real time API integration to connect Salesforce with an external field service application

C. Utilize the standard objects Work Order and Work Order Line Items

There is a requirement to validate that the country code of an account field is a valid ISO code. There are over 200 codes. What could be used for this validation? A. Before Update trigger on Account B. After Update trigger on Account C. Validation Rule D. Formula Field

C. Validation Rule

Which of the following are part of the control layer in the MVC model? Choose 2 answers A. Apps B. List Views C. VisualForce Controllers D. APEX classes

C. VisualForce Controllers D. APEX classes

Which of the following are NOT valid use cases of Apex classes? Choose 2 answers. A. Triggers B. Multiple objects validation C. Visualforce pages with standard controllers D. Web Service E. Custom button with Javascript

C. Visualforce pages with standard controllers E. Custom button with Javascript

What is the output of the code below? Integer z = 5; do { z = z + 1; } while(z &lt;= 15); System.debug(z); A. 13 B. 14 C. 15 D. 16

D. 16

In Apex, an expression is a construct made up of variables, operators, and method invocations that evaluates to a single value. Which of the following is not a valid Apex expression? A. 3 + 4 B. new List<Opportunity>() C. myClass.myMethod() D. @future

D. @future

Which of the following is NOT a valid reason for considering an AppExchange app? A. An existing app may solve the business problem, meaning a custom solution does not need to be developed B. An existing unmanaged package app may meet most of the requirements and can be further customized C. AppExchange apps include support for Salesforce1 D. AppExchange apps will not affect organization limits

D. AppExchange apps will not affect organization limits

A developer created a custom object named Project. Data from associated projects needs to be summarized on each Account. All associated projects should be deleted when an Account is deleted. How can the developer achieve this? A. Create a Lookup relationship field on Account. B. Create a Master-Detail relationship field on Account. C. Create a Lookup relationship field on Project. D. Create a Master-Detail relationship field on Project.

D. Create a Master-Detail relationship field on Project.

A developer needs to create a custom object related to Account. How can the developer ensure that all related records are also visible to users that have access to the parent Account? A. Create a Lookup relationship field on the Account. B. Create a Lookup relationship field on the Custom Object. C. Create a Master-Detail relationship field on the Account. D. Create a Master-Detail relationship field on the Custom Object.

D. Create a Master-Detail relationship field on the Custom Object.

Which of the following is NOT an example of a valid Apex variable? A. Map<ID, String> sampleMap; B. Boolean y; C. String a,b,c; D. Currency abc;

D. Currency abc;

Universal Insurance uses Salesforce for managing claims. If an email is sent regarding a claim, it should be checked for a reference number and if found, attached to a claim record, and the status of the claim record updated. What feature would be most appropriate for this requirement? A. Email to Case B. Email to Custom Object C. Process Builder D. Custom Email Handler

D. Custom Email Handler

What will be the result if the code below is executed when the variable testRawScore is 75? if (testRawScore >= 90) { gradeEqual = 'A'; } if (testRawScore >= 80) { gradeEqual = 'B'; } if (testRawScore >= 70) { gradeEqual = 'C'; } if (testRawScore >= 60) { gradeEqual = 'D'; } System.debug(gradeEqual); A. A B. B C. C D. D

D. D

Which of the following is NOT a capability of the schema builder? A. Create a custom object B. Delete a custom object C. Create Lookup and master detail relationships D. Export the schema definition

D. Export the schema definition

A developer needs to initialize a numerical value of 17. What data type should the developer use? A. String B. Blob C. Numeric D. Integer

D. Integer

What is a valid consideration regarding development in a multi-tenant environment? A. Salesforce organizations can choose to accept upgrades, so different organizations maybe on different releases B. Salesforce upgrade sandbox environments at the same time as production environments C. Although Salesforce runs in the cloud, client software is still required D. Salesforce upgrades are automatic and cannot be scheduled on a particular date

D. Salesforce upgrades are automatic and cannot be scheduled on a particular date

The following access modifiers are supported in Apex except? A. private B. public C. global D. default

D. default

What is correct in respect to the Salesforce MVC paradigm? A. Standard pages are part of MVC B. Visualforce pages are part of MVC C. Components are part of MVC D. Custom Objects are part of MVC E. All Statements are true

E. All Statements are true


Ensembles d'études connexes

Quizzes - Safety and infection control

View Set

ch3 Decision Support Systems Concepts, Methodologies, and Technologies

View Set

Chapter 21: Translating Research into Practice

View Set

ECN Chapter 1 and 2: Homework and Quiz

View Set

Chapter 12: PrepU - Nursing Assessment: Cardiovascular and Circulatory Function

View Set