ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 43 - Certified MuleSoft Developer II discussion

Report
Export

Refer to the exhibit.

A developer generates the base scaffolding for an API in Anypoint Studio.

Which HTTP status code is returned while testing using the API Kit console if no values are entered in client-secret?

A.
HTTP status code:200
Answers
A.
HTTP status code:200
B.
HTTP status code:403
Answers
B.
HTTP status code:403
C.
HTTP status code:400
Answers
C.
HTTP status code:400
D.
HTTP status code:500
Answers
D.
HTTP status code:500
Suggested answer: B

Explanation:

Based on the code snippet and schema.json file below, when testing using the API Kit console if no values are entered in client-secret, HTTP status code 403 (FORBIDDEN) is returned. This is because client-secret is defined as a required header parameter in schema.json file, which means that it must be present in every request. If no values are entered in client-secret, then it is equivalent to omitting this header parameter, which violates the schema and causes APIKit Router to return HTTP status code 403.

Reference: https://docs.mulesoft.com/apikit/4.x/apikit-4-headers

asked 23/09/2024
Susanne Hughes
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first