ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 81 - MCIA - Level 1 discussion

Report
Export

An API implementation is being developed to expose data from a production database via HTTPrequests. The API implementation executes a database SELECT statement that is dynamically createdbased upon data received from each incoming HTTP request. The developers are planning to usevarious types of testing to make sure the Mule application works as expected, can handle specificworkloads, and behaves correctly from an API consumer perspective. What type of testing wouldtypically mock the results from each SELECT statement rather than actually execute it in theproduction database?

A.
Unit testing (white box)
Answers
A.
Unit testing (white box)
B.
Integration testing
Answers
B.
Integration testing
C.
Functional testing (black box)
Answers
C.
Functional testing (black box)
D.
Performance testing
Answers
D.
Performance testing
Suggested answer: A

Explanation:

In Unit testing instead of using actual backends, stubs are used for the backend services. This ensures that developers are not blocked and have no dependency on other systems.

In Unit testing instead of using actual backends, stubs are used for the backend services. This ensures that developers are not blocked and have no dependency on other systems.

Below are the typical characteristics of unit testing.

-- Unit tests do not require deployment into any special environment, such as a staging environment

-- Unit tests san be run from within an embedded Mule runtime

-- Unit tests can/should be implemented using MUnit

-- For read-only interactions to any dependencies (such as other APIs): allowed to invoke production endpoints

-- For write interactions: developers must implement mocks using MUnit

-- Require knowledge of the implementation details of the API implementation under test

asked 18/09/2024
Alejandro Meza
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first