Free Salesforce DEX-450 Exam Questions & Answer from Training Expert ITExamDownload [Q213-Q229]

Share

Free Salesforce DEX-450 Exam Questions & Answer from Training Expert ITExamDownload

Top Salesforce DEX-450 Courses Online


How much Salesforce DEX-450 Exam Cost

The price of the Salesforce DEX-450 certification is $375 USD, for more information related to the Salesforce DEX-450 Exam please visit Salesforce website.

 

NEW QUESTION 213
A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?

  • A. Write a class that extends HTTPCalloutMock.
  • B. Write a class that implements the WebserviceMock interface.
  • C. Write a class that extends WebserviceMock
  • D. Write a class that implements the HTTPCalloutMock interface.

Answer: D

 

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

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: C

 

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

  • A. Superrender.js
  • B. Rendered.js
  • C. Controller.js
  • D. Helper.js

Answer: D

 

NEW QUESTION 216
When the value of a field of an account record is updated, which method will update the value of a custom field opportunity? Choose 2 answers.

  • A. A process builder on the Account object
  • B. An Apex trigger on the Account object.
  • C. A cross-object formula field on the Account object
  • D. A workflow rule on the Account object

Answer: A,B

 

NEW QUESTION 217
Which data structure is returned to a developer when performing a SOSL search?

  • A. A list of sObjects.
  • B. A list of lists of sObjects.
  • C. A map of sObject types to a list oflists of sobjects
  • D. A map of sObject types to a list of sObjects

Answer: B

 

NEW QUESTION 218
When is an Apex Trigger required instead of a Process Builder Process?

  • A. When a post to Chatter needs to be created
  • B. When an action needs to be taken on a delete or undelete, or before a DML operation is executed.
  • C. When multiple records related to the triggering record need to be updated
  • D. When a record needs to be created

Answer: B

 

NEW QUESTION 219
A developer needs to create a custom visualforce button for the opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the <apx:page> tag of the visualforce page to enable this functionality?

  • A. AcTion
  • B. Standardcontroller
  • C. Readonly
  • D. Renderas
  • E. Extensions

Answer: A,B,E

 

NEW QUESTION 220
Which code in a Visualforce page and/or controller might present a security vulnerability?

  • A. <apex:outputField escape="false" value="{!ctrl.userInput}" />
  • B. <apex:outputText value="{!£CurrentPage.parameters.userInput}" />
  • C. <apex:outputField value="{!ctrl.userInput}" />
  • D. <apex:outputText escape="false" value=" {!$CurrentPage.parameters.userInput}" />

Answer: D

 

NEW QUESTION 221
Which standard field is required when creating a new contact record?

  • A. Name
  • B. LastName
  • C. FirstName
  • D. AccountId

Answer: B

 

NEW QUESTION 222
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of 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. Run the tests using the 'Run All Tests' method.
  • B. Remove the falling test methods from the test class.
  • C. Increase the test class coverage on the helper class
  • D. Create a test class and methods to cover the Apex trigger

Answer: D

 

NEW QUESTION 223
Which two describe Heroku Redis? Choose 2 answers.

  • A. Is provisioned and managed as an add-on.
  • B. Is a repository for storing large images.
  • C. Is an option for long-term data storage.
  • D. Is an in-memory key-value data store, run by Heroku.

Answer: A,D

 

NEW QUESTION 224
What is a valid statement about Apex classes and interfaces? Choose 2 answers:

  • A. A class can have multiple levels of inner classes.
  • B. Exception classes must end with the word exception.
  • C. The default modifier for a class is private.
  • D. The default modifier for an interface is private.

Answer: B,D

 

NEW QUESTION 225
A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of tests allowing them to test independent requirements various types of Salesforce Cases. Which approach can efficiently generate the required data for each unit test?

  • A. Add @IsTest(seeAllData=true) at the start of the unit test class
  • B. Use @TestSetup with a void method
  • C. Create test data before test.startTest() in the test unit.
  • D. Create a mock using Stub API

Answer: B

 

NEW QUESTION 226
Which two queries can a developer use in a visualforce controller to protect against SOQL injection Vulnerabilities? Choose 2 answers

  • A. String qryName = '%' + name '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
  • B. String qryName = '%' + String.escpaeSingleQuotes(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
  • C. String qryName = '%' + String.enforceSecurityChecks(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
  • D. String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);

Answer: C,D

 

NEW QUESTION 227
A developer wants to list all of the Tasks for each Account on the Account detail page. When a task is created for a Contact, what does the developer need to do to display the Task on the related Account record?

  • A. Create a Workflow rule to relate the Task to the Contact's Account.
  • B. Nothing. The Task cannot be related to an Account and a Contact.
  • C. Create an Account formula field that displays the Task information.
  • D. Nothing. The task is automatically displayed on the Account page.

Answer: D

 

NEW QUESTION 228
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 user inputs across multiple Visualforce pages and from a parameter on the initial URLWhich statement is unnecessary inside the unit test for the custom controller?

  • A. Public ExtendedController (ApexPages.StandardController cntrl) { }
  • B. ApexPages.currentPage().getParameters().put('input', 'TestValue')
  • C. Test.setCurrentPage(pageRef),
  • D. String nextPage = controller.save().getUrl();

Answer: A,D

 

NEW QUESTION 229
......


Who should take the Salesforce DEX-450 Exam

This course is designed for programme developers starting on the Salesforce platform who require programming customizations on Apex and Visualforce business logic as well as on user interface layers. There are no prerequisites for Salesforce DEX-450 Exam.

  • Programmatic developers.

 

New (2022) Salesforce DEX-450  Exam Dumps: https://www.itexamdownload.com/DEX-450-valid-questions.html

DEX-450 Practice Dumps - Verified By ITExamDownload Updated 460 Questions: https://drive.google.com/open?id=1aReVRYiN1EqQLnhOIjgPkLp_sA4zs2aC