nerdexam
iSQI

CTAL-TAE · Question #152

CTAL-TAE Question #152: Real Exam Question with Answer & Explanation

Sign in or unlock CTAL-TAE to reveal the answer and full explanation for question #152. The question stem and answer options stay visible for context.

Question

An API's response to a request made to the corresponding endpoint should return some specific data about a payment transaction in JSON format. In particular, your goal is to write the test automation code, keeping it as short as possible, aimed at determining whether that response includes certain properties ("transaction_id", "amount", "status", "timestamp") with the data types and formats expected. Assuming that the TAF provides all the necessary support to validate the specified API response, how would you BEST achieve your goal?

Options

  • ASpecify the schema for the expected response data (properties, data types, and formats) and
  • BWrite a single assertion for each property to check whether the data types and formats for that
  • CUse an artificial intelligence algorithm based on machine learning and image recognition to
  • DWrite custom code that parses the actual response data and checks whether the extracted

Unlock CTAL-TAE to see the answer

You've previewed enough free CTAL-TAE questions. Unlock CTAL-TAE for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full CTAL-TAE Practice