QuestionQ496

Application Deployment and Security

Refer to the exhibit.

Question Image

A software engineer develops an application with a microservices architecture. The microservices must communicate with an API. The engineer creates a Dockerfile for the application and deploys it to a pre-production environment. Following the first API request, a microservice stops, and the engineer finds an error in the log file. What is causing this issue?

  • A The API failed to complete the request.
  • B The API is not authorized to access the resource.
  • C The API does not understand the request.
  • D The API failed to find the resource.
Explanation

HTTP status code 400 indicates that the server considers the request invalid and cannot process it, commonly because of malformed request syntax or another client-request error. This means the API does not understand the request. Authorization errors normally use 401 or 403, a missing resource uses 404, and server-side API failures use 5xx status codes.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!