Summer Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

SAP C_ABAPD_2507 SAP Certified Associate - Back-End Developer - ABAP Cloud Exam Practice Test

Demo: 24 questions
Total 80 questions

SAP Certified Associate - Back-End Developer - ABAP Cloud Questions and Answers

Question 1

Given the following Core Data Service View Entity Data Definition:

@AccessControl.authorizationCheck: #NOT_REQUIRED

DEFINE VIEW ENTITY demo_flight_info_union AS

SELECT FROM scustom {

KEY id,

KEY 'Customer' AS partner,

name,

city,

country

}

UNION

SELECT FROM stravelag {

KEY agencynum AS id,

'Agency' AS partner,

name,

city,

country

}

When you attempt to activate the definition, what will be the response?

Options:

A.

Activation error because the field types of the union do not match

B.

Activation error because the key fields of the union do not match

C.

Activation successful

D.

Activation error because the field names of the union do not match

Question 2

When you create an exception class, what does SAP recommend you do?

(Select 3 correct answers)

Options:

A.

Define corresponding public attributes, if you want to pass context-specific values to placeholders of a message.

B.

Inherit from cx_static_check, if you want a warning at design time that the exception can never be raised.

C.

Inherit from cx_static_check, if you want a warning at design time that the exception will not be caught.

D.

Inherit from cx_no_check, if you want to reuse messages from a system exception class.

E.

Implement interface if_t100_message, if you want to reuse messages from a message class.

Question 3

Which of the following integration frameworks have been released for ABAP Cloud development? (Select 3)

Options:

A.

CDS Views

B.

Business events

C.

OData services

D.

Business Add-ins (BAdIs)

Question 4

What are some principles of encapsulation?

(Select 2 correct answers)

Options:

A.

Attributes can be changed through public class methods.

B.

Attributes can be changed by the client program directly.

C.

Attributes cannot be changed.

D.

Attributes can only be changed by the class.

Question 5

Given this code,

DATA(structure_variable) =

REDUCE structure_type(

INIT h_structure_variable TYPE structure_type

FOR row IN source_itab

NEXT

h_structure_variable-f1 += row-f1

h_structure_variable-f2 += row-f2 ).

Which of the following statements are correct? (Select 2 correct answers)

Options:

A.

row is a predefined name and cannot be changed.

B.

This REDUCE expression may produce a result of multiple rows.

C.

Components of h_structure_variable will be copied to same-named components of structure_variable.

D.

The REDUCE expression creates a loop over source_itab.

Question 6

Which of the following is a technique for defining access controls?

Options:

A.

Inheritance

B.

Redefinition

C.

Singleton

D.

Casting

Question 7

What is the purpose of a foreign key relationship between two tables in the ABAP Dictionary?

Options:

A.

To create a corresponding foreign key relationship in the database

B.

To ensure the integrity of data in the corresponding database tables

C.

To document the relationship between the two tables

D.

None of the above

Question 8

You want to join two database tables, T_CARRIER and T_CONNECTIONS, to retrieve all carriers, whether they have corresponding connections or not.

Which statements would achieve this?

Note: There are 2 correct answers to this question.

Options:

A.

SELECT FROM t_carrier

INNER JOIN t_connections

ON ...

B.

SELECT FROM t_carrier

LEFT OUTER JOIN t_connections

ON ...

C.

SELECT FROM t_carrier

LEFT INNER JOIN t_connections

ON ...

D.

SELECT FROM t_connections

RIGHT OUTER JOIN t_carrier

ON ...

Question 9

Which of the following are rules that extensions in SAP S/4HANA Cloud, public edition must adhere to? (Select 3 correct answers)

Options:

A.

Modify SAP objects in exceptional cases only.

B.

Use tier 2 wrappers to enable access to non-released SAP APIs.

C.

Use released remote or local SAP APIs.

D.

Use cloud-enabled and released technologies.

E.

Extend SAP objects through predefined extension points.

Question 10

Which internal table type allows unique and non-unique keys?

Options:

A.

Hashed

B.

Sorted

C.

Standard

Question 11

What RAP object contains only the fields required for a particular app?

Options:

A.

Projection view

B.

Metadata extension

C.

Database view

D.

Data model view

Question 12

You have two database tables - ZDEPARTMENTS and ZEMPLOYEES. They are linked by a foreign key relationship: ZEMPLOYEES is the foreign key table and ZDEPARTMENTS is the check table. A department may have any number of employees (including none at all).

What is the correct cardinality of the foreign key relationship?

Options:

A.

[0..,1]

B.

(0..1,1)

C.

(1..1,1)

D.

(1..,1)

Question 13

In CDS views, what do joins and associations have in common?

(Select 2 correct answers)

Options:

A.

An alias can be assigned to the data sources and to the fields in the field list.

B.

They can expose an entire data source without listing individual fields.

C.

The data sources are linked using an ON clause.

D.

The field list can include fields of the linked table without specifying the name of the corresponding data source.

Question 14

In a CDS view, where can a value help be defined?

Options:

A.

In the SQL console

B.

In an annotation

C.

In an association

D.

In a view definition

Question 15

You have a superclass super1 and a subclass sub1 of super1. Each class has an instance constructor and a static constructor. The first statement of your program creates an instance of sub1.

In which sequence will the constructors be executed?

Options:

A.

Class constructor of sub1 → Instance constructor of super1 → Instance constructor of sub1 → Class constructor of super1

B.

Class constructor of super1 → Class constructor of sub1 → Instance constructor of super1 → Instance constructor of sub1

C.

Instance constructor of super1 → Class constructor of super1 → Class constructor of sub1 → Instance constructor of sub1

D.

Instance constructor of sub1 → Instance constructor of super1 → Class constructor of super1 → Class constructor of sub1

Question 16

Which of the following custom code use cases falls under Tier 1 extensibility guidelines?

Options:

A.

Implement a user or customer exit, for example SAPMV45A.

B.

Create a custom field on a DB table or CDS view via a released extension include.

C.

Apply an SAP note with manual corrections, for example a DDIC object from SAP Basis.

D.

Create a wrapper class around SAP objects that have not been released yet.

Question 17

Which statement creates a reference variable for class CL_VEHICLE?

Options:

A.

TYPES lo_vehicle TYPE cl_vehicle.

B.

DATA lo_vehicle TYPE REF OF cl_vehicle.

C.

DATA lo_vehicle LIKE REF cl_vehicle.

D.

DATA lo_vehicle TYPE REF TO cl_vehicle.

Question 18

Given the following code excerpt that defines an SAP HANA database table:

DEFINE TABLE demo_table

{

KEY field1 : REFERENCE TO abap.clnt(3);

KEY field2 : abap.char(1332);

@Semantics.quantity.unitOfMeasure : 'demo_table.field4'

field3 : abap.quan(2);

field4 : abap.unit(2);

}

Which field is defined incorrectly?

Options:

A.

field2

B.

field3

C.

field4

D.

field1

Question 19

In a subclass sub1, you want to redefine a component of a superclass super1.

How do you achieve this?

Note: There are 2 correct answers to this question.

Options:

A.

You add the clause REDEFINITION to the component in sub1.

B.

You implement the redefined component for a second time in super1.

C.

You add the clause REDEFINITION to the component in super1.

D.

You implement the redefined component in sub1.

Question 20

Given the following data definitions:

DATA: text TYPE string VALUE 'Date 1972-04-01 is in ISO format'.

DATA: regex TYPE string VALUE '[0-9]{4}(-[0-9]{2})(2}'.

In which of the following functions can you use regular expressions?

(Select 3 correct answers)

Options:

A.

reverse( val = text pcre = regex )

B.

match( val = text pcre = regex )

C.

condense( val = text pcre = regex )

D.

matches( val = text pcre = regex )

E.

find( val = text pcre = regex )

Question 21

When defining a METHOD, which parameter type can only have 1 value?

Options:

A.

IMPORTING

B.

EXPORTING

C.

CHANGING

D.

RETURNING

Question 22

In a class you use the statement DATA var TYPE …

What may stand in place of the type?

(Select 2 correct answers)

Options:

A.

The name of a type defined privately in class ZCL_CLASS_A

B.

The name of a domain from the ABAP Dictionary

C.

The name of a type defined privately in another class

D.

The name of a data element from the ABAP Dictionary

Question 23

When you join two database tables, which of the following rules applies to the database fields you use in the join?

Options:

A.

They must be at the same position in their table, for example left_table-col1 = right_table-col1.

B.

They must always have an alias name.

C.

They must have the same name, e.g. col1 = col1.

D.

They must be compared with an ON condition.

Question 24

Which RAP object can be used to organize the display of fields in an app?

Options:

A.

Metadata extension

B.

Data model view

C.

Projection view

D.

Service definition

Demo: 24 questions
Total 80 questions