What is the return data type when ApexPages.currentPage().getParameters() is used to retrieve URL parameters from a visualforce controller?
A. Map
B. List
C. Enum D. String[]
A developer needs to write a method that searches for a phone number that could be on multiple object types. Which method should the developer use to accomplish this task?
A. SOQL Query that includes ALL ROWS
B. SOQL query on each object
C. SOSL Query that includes ALL ROWS
D. SOSL query on each object
Which two queries can a developer use in a visualforce controller to protect against SOQL injection Vulnerabilities? Choose 2 answers
A. String qryName = '%' + String.enforceSecurityChecks(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
B. String qryName = '%' + name '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
C. String qryName = '%' + String.escpaeSingleQuotes(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);
In which two org types can a developer create new Apex Classes? Choose 2 answers
A. Developer Edition
B. Sandbox
C. Enterprise Edition
D. Unlimited
Which two are true regarding a Dyno? Choose 2 answers
A. Is a light weight VM used to run code on the Heroku Platform
B. Has the ability to sleep as a standard and performance Dyno
C. Is a lightweight Linux container used in a collection to run Heroku applications
D. Has Ephemeral filesystems and is rebooted every 24 hours.
A user selects a value from a multi-select picklist. How is this selected value represented in Apex?
A. As a string ending with a comma
B. As a string
C. As a list< String > with one element
D. As a set< string > with one element
What are two correct examples of the model in the salesforce MVC architecture? Choose 2 answers.
A. Custom field on the custom wizard_c object
B. Standard lightning component
C. Workflow rule on the contact object
D. Standard account lookup on the contract object
A developer tasked with creating a schema to track Movies, Actors, and contracts. A single movie can have many contracts and a single actor can have many contracts. Each contract is owned and actively managed by a single user. Which schema should be created to enable user to easily manage the contract they own; without requiring access to the movie or the actor records?
A. A master detail relationship to the movie object and a lookup relationship to the actor object
B. A lookup relationship to the movie object and a lookup relationship to the actor object
C. A lookup relationship to the movie object and a master detail relationship to the actor object
D. A master detail relationship to the movie object and a master detail relationship to the actor object
A developer has a unit test that is failing. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous Apex Tool. The code then executes without failing. Why did the unit test failed, but not the Execute Anonymous?
A. The test method has a syntax error in the code.
B. The test method relies on existing data in the database
C. The test method use a try/catch block
D. The test method calls an @future method.
What are two testing consideration when deploying code from a sandbox to production? Choose 2 answers
A. 75% of test must execute without failure
B. 100% of test must execute without failure
C. Apex code requires 75% coverage
D. Apex code requires 100% coverage
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDI exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.