AWS Certified Developer Associate DVA-C02 Practice Question

A development team is building an application that uses bearer tokens for authenticating and authorizing user access to a protected API. To ensure the application is secure, the team needs to implement a robust strategy for handling these tokens. Which of the following approaches provides the highest level of security for the application?

  • Enforce HTTPS for all token transmissions and validate the token's integrity and revocation status on the server with each request.

  • Store the token in a secure, HttpOnly cookie but allow transmission over HTTP for non-sensitive, read-only operations to improve performance.

  • Use long-lived bearer tokens that rarely expire to reduce the frequency of user logins and improve the user experience.

  • Validate the bearer token only once when the user's session is initiated, and then trust all subsequent requests from that session without re-validation.

AWS Certified Developer Associate DVA-C02
Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot