100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

PDI Practice Exam Questions and Answers GRADE A+ SOLUTIONS

Puntuación
-
Vendido
-
Páginas
30
Grado
A+
Subido en
26-05-2024
Escrito en
2023/2024

Question # 1 A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console? Options: A.   The test method has a syntax error in the code. B.   The test method relies on existing data in the sandbox. C.   The test method is calling an @future method. D.   The test method does not use SAs to execute as a specific user. Question # 2 A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience. What should the developer use to override the Contact's Edit button and provide this functionality? Options: A.   A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience B.   A Lightning component in 5alesforce Classic and a Lightning component in lightning Experience C.   A Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience D.   A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience Question # 3 A developer wants to improve runtime performance of Apex calls by caching result on the client. What is the most efficient way to implement this and follow best practices? Options: A.   Decorate the server-side method with @AuraEnabled (total-true). B.   Call the setStoeable () method on the action in the javaScript client-sidecode. C.   Decorate the server-side method with @AuraEnabled (cacheable-true. D.   Set a ciikie in the browser for use upon return to the page. Question # 4 A company has a custom object, Sales, }_Help_Request__c, that has a Lookup relationship to Opportunity. The Seles Help Request__c has a mumber field, Number_ct_Hours__c, that represents the amount of time spent on the Sales_Help Request__ C.   A developer is tasked with creating a field, total_Hour2__c, on Opportunity that should be the sum of all of the Number_of_Hours_c values for the Sales_Help_Request__c records related to that Opportunity. What should the developer use to implement this? Options: A.   A roll-up summary field on the sales Help_Request__c object B.   A trigger on the Opportunity object C.   A roll-up summary field on the Opportunity object D.   A record-triggered flow on the Sales Help Request__c object Question # 5 What should be used to create scratch orgs? Options: A.   Developer Console B.   Salesforce CLI C.   Workbench D.   Sandbox refresh Question # 6 CONTINUED......

Mostrar más Leer menos
Institución
Grado










Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Grado

Información del documento

Subido en
26 de mayo de 2024
Número de páginas
30
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

PDI Practice Exam Questions and
Answers GRADE A+ SOLUTIONS

Question # 1

A developer observes that an Apex test method fails in the Sandbox. To identify the
issue, the developer copies the code inside the test method and executes it via the
Execute Anonymous tool in the Developer Console. The code then executes with no
exceptions or errors. Why did the test method fail in the sandbox and pass in the
Developer Console?

Options:

A.

The test method has a syntax error in the code.

B.

The test method relies on existing data in the sandbox.

C.

The test method is calling an @future method.

D.

The test method does not use System.runAs to execute as a specific user.

Question # 2

A developer must provide custom user interfaces when users edit a Contact in either
Salesforce Classic or Lightning Experience.

What should the developer use to override the Contact's Edit button and provide this
functionality?

Options:

A.

A Visualforce page in Salesforce Classic and a Lightning component in Lightning
Experience

,B.

A Lightning component in 5alesforce Classic and a Lightning component in lightning
Experience

C.

A Visualforce page in Salesforce Classic and a Lightning page in Lightning
Experience

D.

A Lightning page in Salesforce Classic and a Visualforce page in Lightning
Experience

Question # 3

A developer wants to improve runtime performance of Apex calls by caching result
on the client.

What is the most efficient way to implement this and follow best practices?

Options:

A.

Decorate the server-side method with @AuraEnabled (total-true).

B.

Call the setStoeable () method on the action in the javaScript client-sidecode.

C.

Decorate the server-side method with @AuraEnabled (cacheable-true.

D.

Set a ciikie in the browser for use upon return to the page.

Question # 4

A company has a custom object, Sales, }_Help_Request__c, that has a Lookup
relationship to Opportunity. The Seles Help Request__c has a mumber field,
Number_ct_Hours__c, that represents the amount of time spent on the Sales_Help
Request__

C.

, A developer is tasked with creating a field, total_Hour2__c, on Opportunity that
should be the sum of all of the Number_of_Hours_c values for the
Sales_Help_Request__c records related to that Opportunity.

What should the developer use to implement this?

Options:

A.

A roll-up summary field on the sales Help_Request__c object

B.

A trigger on the Opportunity object

C.

A roll-up summary field on the Opportunity object

D.

A record-triggered flow on the Sales Help Request__c object

Question # 5

What should be used to create scratch orgs?

Options:

A.

Developer Console

B.

Salesforce CLI

C.

Workbench

D.

Sandbox refresh

Question # 6
$15.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
munyuabeatrice92

Conoce al vendedor

Seller avatar
munyuabeatrice92 K
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
1
Miembro desde
2 año
Número de seguidores
1
Documentos
347
Última venta
1 año hace

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes