Universal Containers has a support process that allows users to request support from its engineering team using a custom object, Engineering_Support__c.Users should be able to associate multiple Engineering_Support__c records to a single Opportunity record. Additionally, aggregate information about...
Universal Containers has a support process that allows users to request support from
its engineering team using a custom object, Engineering_Support__c.Users should be
able to associate multiple Engineering_Support__c records to a single Opportunity
record. Additionally, aggregate information about the Engineering_Support__c records
should be shown on the Opportunity record.
What should a developer implement to support these requirements?
A. Master-detail field from Opportunity to Engineering_Support__c
B. Lookup field from Engineering_Support__c to Opportunity
C. Lookup field from Opportunity to Engineering_Support__c
D. Master-detail field from Engineering_Support__c to Opportunity correct answers D.
Master-detail field from Engineering_Support__c to Opportunity
*?* A development team wants to use a deployment script to automatically deploy to a
sandbox during the development cycles. Which two tools can they use to run a script
that deploys to a sandbox? correct answers SFDX,
VSCode
What is a benefit of developing applications in a multi-tenant environment?
A. Access to predefined computing resources
B. Enforced best practices for development
C. Unlimited processing power and memory
D. Default out-of-the-box configuration correct answers D. Default out-of-the-box
configuration
A developer has a Apex controller for a Visualforce page that takes an ID as a URL
parameter. How should the developer prevent a cross site scripting vulnerability?
A. String.escapeSingleQuotes(ApexPages.currentPage() .getParameters().
get('url_param'))
B. ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()
C. String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))
A developer must create a CreditcardPayment class that provides an implementation of
an existing Payment class. Public virtual class Payment { public virtual void
makePayment(Decimal amount) {/*implementation*/ } } Which is the correct
implementation?
A. Public class CreditCardPayment implements Payment {public override void
makePayment(Decimal amount) { /*Implementation*/ }}
B. Public class CreditCardPayment extends Payment {public virtual void
makePayment(Decimal amount) { /*implementation*/ }}
C. Public class CreditCardPayment implements Payment {public virtual void
makePayment(Decimal amount) { /*implementation*/ }}
D. Public class CreditcardPayment extends Payment {public override void
makePayment(Decimal amount) { /*implementation*/ }} correct answers D. Public class
CreditcardPayment extends Payment {public override void makePayment(Decimal
amount) { /*implementation*/ }}
The Salesforce Administrator created a custom picklist field, Account_status_c, on the a
Account object. This picklist has possible values of Inactive'' and Active? As part of a
new business process, management wants to ensure an opportunity record is created
only for Accounts marked as "Active". A developer is asked to implement this business
requirement.
Which two automation tools should be used to fulfill the business need?
Choose 2 answers
A. Process Builder
B. Workflow Rules
C. Salesforce Flow
D. Approval Process correct answers C. Salesforce Flow
Universal Containers wants a list button to display a Visualforce page that allows users
to edit multiple records.
Which Visualforce feature supports this requirement?
A. <apex:listButton> tag
B. recordSetVar page attribute
C. custom controller
D. controller extension correct answers B. recordSetVar page attribute
,A Visual Flow uses an apex Action to provide additional information about multiple
Contacts, stored in a custom class, contactInfo. Which is the correct definition of the
Apex method that gets additional information?
A. @InvocableMethod(Label='additional Info')public ContactInfo(Id contactId){
/*implementation*/ }
B. @InvocableMethod(label='Additional Info')public List<ContactInfo> getInfo(List<Id>
contactIds){ /*implementation*/ }
C. @invocableMethod(label)='Additional Info')public static List<ContactInfo>
getInfo(List<Id> contactIds){ /*Implementation*/ }
D. @InvocableMethod(label='additional Info')public static ContactInfo getInfo(Id
contactId){ /*implementation*/ } correct answers C.
@invocableMethod(label)='Additional Info')public static List<ContactInfo>
getInfo(List<Id> contactIds){ /*Implementation*/ }
A Developer wants to get access to the standard price book in the org while writing a
test class that covers an OpportunityLineItem trigger.
Which method allows access to the price book?
A. Use Test.getStandardPricebookId() to get the standard price book ID.
B. Use @IsTest(SeeAllData=true) and delete the existing standard price book.
C. Use Test.loadData() and a Static Resource to load a standard price book.
D. Use @TestVisible to allow the test method to see the standard price book. correct
answers A. Use Test.getStandardPricebookId() to get the standard price book ID.
While working in a sandbox, an Apex test falls when run in the Test Framework.
However, running the Apex test logic in the Execute Anonymous window succeeds with
no exceptions or errors.
Why did the method fall in the sandbox test framework but succeed in the Developer
Console?
A. The test method is calling an @future method.
B. The test method has a syntax error in the code.
C. The test method does not use System.runAs to execute as a specific user.
D. The test method relies on existing data in the sandbox. correct answers D. The test
method relies on existing data in the sandbox.
, Universal Containers (UC) uses a custom object called Vendor. The Vendor custom
object has a Master-Detail relationship with the standard Account object. Based on
some internal discussion, the UC administrator tried to change the Master-Detail
relationship to a Lookup relationship but was not able todo so.
What is a possible reason that this change was not permitted?
A. The Account records contain Vendor roll-up summary fields.
B. The Account object is included on a workflow on the Vendor object.
C. The Vendor records have existing values in the Account object.
D. The Vendor object must use a Master-Detail field for reporting. correct answers A.
The Account records contain Vendor roll-up summary fields.
Managers at Universal Containers want to ensure that only decommissioned containers
are able to the system. To meet the business requirement a Salesforce developer adds
"Decommissioned as a for the status custom field within the container c object.
Which tool should the developer use to enforce only Container records with a status of
"Decommiss deleted?
A. After record-triggered flow
B. Validation rule
C. Before record-triggered flow
D. Apex trigger correct answers D. Apex trigger
A third-party vendor created an unmanaged Lightning web component. The Salesforce
Administrator wishes to expose the component only on Record Page Layouts.
Which two actions should the developer take to accomplish this business objective?
Choose 2 answers
A. Specify lightning_RecordPage as a target in the XML file.
B. Ensure isExposed is set to true on the XML file.
C. Specify lightningCommunity_Page as a target in the XML file.
D. Specify lightningCommunity_Page_Layout as a target in the XML file. correct
answers A. Specify lightning_RecordPage as a target in the XML file.
B. Ensure isExposed is set to true on the XML file.
A developer needs to prevent the creation of request records when certain conditions
exist in the system. A RequestLogic class exists to checks the conditions.
What is the correct implementation?
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller HopeJewels. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $15.49. You're not tied to anything after your purchase.