option
Questions
ayuda
daypo
search.php

pd1set4

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
pd1set4

Description:
test for test

Creation Date: 2025/07/07

Category: Others

Number of questions: 30

Rating:(0)
Share the Test:
Nuevo ComentarioNuevo Comentario
New Comment
NO RECORDS
Content:

Universal Containers (UC) processes orders in Salesforce in a custom object, Order__c. They also allow sales reps to upload CSV files with thousands of orders at a time. A developer is tasked with integrating orders placed in Salesforce with UC’s enterprise resource planning (ERP) system. After the status for an Order__c is first set to ‘Placed’, the order information must be sent to a REST endpoint in the ERP system that can process one order at a time. What should the developer implement to accomplish this?. Callout from a Queueable class called from a trigger. Callout from a Batchable class called from a scheduled job. Callout from an @future method called from a trigger. Flow with a callout from an invocable method.

A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to Include helper methods that are not used by the Web Application in the implementation of the Web Service Class. Which code segment shows the correct declaration of the class and methods?. webservice class WebServiceClass { private Boolean helperMethod() {/*implementation..*/} global String updateRecords(){/*implementation..*/} }. global class WebServiceClass { private Boolean helperMethod() {/*implementation..*/} global static String updateRecords(){/*implementation..*/} }. global class WebServiceClass { private Boolean helperMethod() {/*implementation..*/} webservice static String updateRecords(){/*implementation..*/} }. webservice class WebServiceClass { private Boolean helperMethod() {/*implementation..*/} webservice static String updateRecords(){/*implementation..*/} }.

A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code: Visualforce page snippet: The Account Type is {!actType} The value of the account type field is not being displayed correctly on the page. Assuming the custom controller is properly referenced on the Visualforce page, what should the developer do to correct the problem?. Convert theAccount.Type to a String. Add a getter method for the actType attribute. Add with sharing to the custom controller. Change theAccount attribute to public.

How should a developer write unit tests for a private method in an Apex class?. Use the SeeAllData annotation. Add a test method in the Apex class. Mark the Apex class as global. Use the @TestVisible annotation.

30 of 65. What is the value of the Trigger.old context variable in a before insert trigger? An empty list of sObjects. An empty list of sobjects. null. undefined. list of newly created sObjects without IDs.

Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values. What can the developer use to accomplish this?. Quick Actions. Validation rules. Record triggered flows. Apex triggers.

Universal Containers has developed custom Apex code and Lightning Components in a Sandbox environment. They need to deploy the code and associated configurations to the Production environment. What is the recommended process for deploying the code and configurations to Production?. Use Salesforce CLI to deploy the Apex code and Lightning Components. Use the Ant Migration Tool to deploy the Apex code and Lightning Components. Use a change set to deploy the Apex code and Lightning Components. Use the Force.com IDE to deploy the Apex code and Lightning Components.

Universal Containers has a Visualforce page that displays a table of every Container___c being rented by a given Account. Recently this page is failing with a view state limit because some of the customers rent over 10,000 containers. What should a developer change about the Visualforce page to help with the page load errors?. Implement pagination with an OffsetController. Use JavaScript remoting with SOQL Offset. Implement pagination with a StandardSetController. Use lazy loading and a transient List variable.

What does the Lightning Component framework provide to developers?. Support for Classic and Lightning UIs. Prebuilt components that can be reused. Templates to create custom components. Extended governor limits for applications.

A developer created a trigger on a custom object. This custom object also has some dependent pick lists. According to the order of execution rules, which step happens first?. System validation is run for maximum field lengths. The original record is loaded from the database. Old values are overwritten with the new record values. JavaScript validation is run in the browser.

Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permissions for the currently logged-in user while using the custom search tool?. Use the schema describe calls to determine if the logged-in user has access to the Account object. Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user. Use the with sharing keyword on the class declaration. Use the without sharing keyword on the class declaration.

Universal Containers is building a recruiting app with an Applicant object that stores information about an individual person and a Job object that represents a job. Each applicant may apply for more than one job. What should a developer implement to represent that an applicant has applied for a job?. Lookup field from Applicant to Job. Junction object between Applicant and Job. Master-detail field from Applicant to Job. Formula field on Applicant that references Job.

A business has a proprietary Order Management System (OMS) that creates orders from their website and ... the order. When the order is created in the OMS, an integration also creates an order record in Salesforce ... relates it to the contact as identified by the email on the order. As the order goes through different stages in OMS, the integration also updates it in Salesforce. It is notified that each update from the OMS creates a new order record in Salesforce. Which two actions prevent the duplicate order records from being created in Salesforce? Choose 2 answers. Ensure that the order number in the OMS is unique. Use the order number from the OMS as an external ID. Use the email on the contact record as an external ID. Write a before trigger on the order object to delete any duplicates.

Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a Salesforce developer adds "Decommissioned" as a picklist value for the Status _c custom field within the Container _c object. Which two approaches could a developer use to enforce only Container records with a status of "Decommissioned" can be deleted? Choose 2 answers. A. Before record-triggered flaw. B. Apex trigger. C. After record-triggered flow. D. Validation rule.

A developer must perform a complex SOQL query that joins two objects in a Lightning component. How can the Lightning component execute the query?. Invoke an Apex class with the method annotated as @AuraEnabled to perform the query. Use the Salesforce Streaming API to perform the SOQL query. Create a Process Builder to execute the query and invoke from the Lightning component. Write the query in a custom Lightning web component wrapper and invoke from the Lightning component.

Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records. Controller Extension and <apex:listButton> tag. Standard Controller with Custom List Controller extension. Standard controller and the recordsetzvar page attribute. Custom List Controller with recordSetvar page attribute.

A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class. Change Set deployment to production fails with the test coverage warning: "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required." What should the developer do to successfully deploy the new Apex trigger and helper class?. Increase the test class coverage on the helper class. Remove the failing test methods from the test class. Run the tests using the 'Run All Tests' method. Create a test class and methods to cover the Apex trigger.

A developer is designing a new application on the Salesforce platform and wants to ensure it can support multiple tenants effectively. Which design framework should the developer consider to ensure scalability and maintainability?. Agile Development. B. Model-View-Controller (MVC). C. Flux (view, action, dispatcher, and store). D. Waterfall Model.

What should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers"?. SELECT Lead.Id, Lead.Name, Account.Id, Account.Name, Contact.Id, Contact.Name FROM Lead, Account, Contact WHERE CompanyName = ‘Universal Containers’. FIND ‘Universal Containers’ IN Name Fields RETURNING lead(id, name), account (id, name), contact(id, name). FIND ‘Universal Containers’ IN CompanyName Fields RETURNING lead(id, name), account (id, name), contact(id, name). SELECT lead(id, name), account (id, name), contact(id, name) FROM Lead, Account, Contact WHERE Name = ‘Universal.

What are two considerations for running a flow in debug mode? Choose 2 answers. Clicking Pause or executing a Pause element closes the flow and ends debugging. DML operations will be rolled back when the debugging ends. Input variables of type record cannot be passed into the flow. Callouts to external systems are not executed when debugging a flow.

Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?. emit(). fireEvent(). fire(). registerEvent().

What are three characteristics of change set deployments? Choose 3 answers. Change sets can deploy custom settings data. Change sets can only be used between related organizations. Deployment is done in a one-way, single transaction. Sending a change set between two orgs requires a deployment connection. Change sets can be used to transfer records.

A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class. Change Set deployment to production fails with the test coverage warning: "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required." What should the developer do to successfully deploy the new Apex trigger and helper class?. A. Increase the test class coverage on the helper class. B. Remove the failing test methods from the test class. C. Run the tests using the 'Run All Tests' method. D. Create a test class and methods to cover the Apex trigger.

A developer needs to have records with specific field values in order to test a new Apex class. What should the developer do to ensure the data is available to the test?. Use test.loadData() and reference a JSON file in Documents. Use Test.loadData() and reference a CSV file in a static resource. Use Anonymous Apex to create the required data. Use SOQL to query the org for the required dat.

n terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce? Choose 2 answers. Self-contained and reusable units of an application. Rich component ecosystem. Automatic code generation. Server-side run-time debugging.

Universal Containers (UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address". Which field should the developer add to create the most efficient model that supports the business need?. A. Add a Master-Detail field on the Global Address object to the Account object. B. Add a Master-Detail field on the Account object to the Global Address object. C. Add a Lookup field on the Global Address object to the Account object. D. Add a Lookup field on the Account object to the Global Address object.

What is a considerations for running a flow in a debug mode?. Clicking Pause allows an element to be replaced in the flow. DML operations will be rolled back when the debugging ends. Callouts to external systems are not executed when debugging a flow. When debugging a schedule-triggered flow, the flow starts only for one record.

Which code in a Visualforce page and/or controller might present a security vulnerability?. <apex:outputText escape="false" value=" {!$CurrentPage.parameters.userInput}" />. <apex:outputField value="{!ctrl.userInput}" />. <apex:outputText value="{!$CurrentPage.parameters.userInput}" />. <apex:outputField escape="false" value="{!ctrl.userInput}" />.

A developer identifies the following triggers on the Expense_object: deleteExpense, applyDefaultToExpense, validateExpenseUpdate The triggers process before delete, before insert, and before update events respectively. Which two techniques should the developer implement to ensure trigger best practices are followed? Choose 2 answers. Unify the before insert and before update triggers and use Process Builder for the delete action. Create helper classes to execute the appropriate logic when a record is saved. Maintain all three triggers on the Expense__c object, but move the Apex logic out of the trigger definition. Unify all three triggers in a single trigger on the Expense__c object that includes all events.

Universal Hiring is using Salesforce to capture job applications. A salesforce administrator created two custom objects; Job__c acting as the master object, Job_Application__c acting as the detail. Within the Job__c object, a custom multi-select picklist, Preferred_Locations__c, contains a list of approved states for the position. Each Job_Application__c record relates to a Contact within the system through a master-detail relationship. Recruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred_Locations__c field, within the Job_Application__c record. Recruiters would like this value to be kept in sync, if changes occur to the Contact's Mailing State or if the Job's Preferred_Locations__c field is updated. What is the recommended tool a developer should use to meet the business requirement?. A. Apex Trigger. B. Process Builder. C. Record-triggered flow. D. Formula field.

Report abuse