ExamGecko
Home Home / Salesforce / Certified Platform Developer II

Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 17

Question list
Search
Search

Related questions











The "Webservice" keyword___________.

A.
Method must be static, and class must be global
A.
Method must be static, and class must be global
Answers
B.
Can be used on all classes
B.
Can be used on all classes
Answers
C.
Used for any member variables included
C.
Used for any member variables included
Answers
D.
All of the above
D.
All of the above
Answers
Suggested answer: D

REST uses___________.

A.
The HTTP class
A.
The HTTP class
Answers
B.
The HTTPRequest class
B.
The HTTPRequest class
Answers
C.
The HTTPResponse class
C.
The HTTPResponse class
Answers
D.
All of the above
D.
All of the above
Answers
Suggested answer: D

The SOAP API_________.

A.
Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
A.
Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
Answers
B.
Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
B.
Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
Answers
C.
Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to allows you to maintain passwords, perform searches, and much more
C.
Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to allows you to maintain passwords, perform searches, and much more
Answers
D.
Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
D.
Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
Answers
Suggested answer: C

The REST API___________.

A.
Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
A.
Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
Answers
B.
Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
B.
Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
Answers
C.
Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
C.
Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
Answers
D.
Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
D.
Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
Answers
Suggested answer: B

The Bulk API__________.

A.
Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
A.
Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
Answers
B.
Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
B.
Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
Answers
C.
Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
C.
Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
Answers
D.
Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
D.
Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
Answers
Suggested answer: A

The Metadata API___________.

A.
Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
A.
Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
Answers
B.
Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
B.
Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
Answers
C.
Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
C.
Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
Answers
D.
Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
D.
Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
Answers
Suggested answer: D

Code must have X% overall code coverage.

A.
X= 100
A.
X= 100
Answers
B.
X = 75
B.
X = 75
Answers
C.
X = 65
C.
X = 65
Answers
D.
X = 50
D.
X = 50
Answers
Suggested answer: B

How would you test a web service?

A.
Use the @future annotation on the method
A.
Use the @future annotation on the method
Answers
B.
Call the WebService interface
B.
Call the WebService interface
Answers
C.
Web Services do not need to be tested
C.
Web Services do not need to be tested
Answers
D.
Create a class that implements the WebServiceMock interface
D.
Create a class that implements the WebServiceMock interface
Answers
Suggested answer: D

Which of the following about Dynamic Apex is incorrect?

A.
You can retrieve the sObject type from an Id by calling .getSObjectTypeQ
A.
You can retrieve the sObject type from an Id by calling .getSObjectTypeQ
Answers
B.
getDescribe() can get you a variety of info on a particular object/field
B.
getDescribe() can get you a variety of info on a particular object/field
Answers
C.
Schema.getGlobalDescribeQ gives you a map of all sObject
C.
Schema.getGlobalDescribeQ gives you a map of all sObject
Answers
D.
In dynamic SOQL, you can use bind variables and bind variable fields
D.
In dynamic SOQL, you can use bind variables and bind variable fields
Answers
Suggested answer: D

Explanation:

While you can use simple bind variables in dynamic SOQL, you cann|ot use bind variable fields (e.g. :myVariable.field1_c) Use escapeSingleQuotes to prevent SOQL injection

Which of the following exceptions cannot be caught and will force an error? (Choose three.)

A.
LimitException
A.
LimitException
Answers
B.
AssertException
B.
AssertException
Answers
C.
SObjectExceptions
C.
SObjectExceptions
Answers
D.
DMLException
D.
DMLException
Answers
E.
License exceptions
E.
License exceptions
Answers
F.
ListException
F.
ListException
Answers
Suggested answer: A, B, E

Explanation:

SObjectException occurs when accessing a field not queried, or you try to change a field during the wrong dml statement (i.e. an edit-only field being set on insert) Custom exceptions must extend the "Exception" class

Total 408 questions
Go to page: of 41