企業は、接続文字列が確実に保護されるように、秘密キーと公開キーを利用する API を展開しています。API に接続するには、顧客は秘密鍵を使用する必要があります。
要求文字列でハードコードされた文字列の使用を防ぎながら、データベースへの REST API 接続を最も安全に保護するのは次のうちどれですか?
正解:D
Utilizing HMAC (hash-based message authentication code) for the keys is the best option for securing the REST API connection to the database while preventing the use of a hard-coded string in the request string.
HMAC is a technique that uses a secret key and a hash function to generate a code that can verify the authenticity and integrity of a message, preventing unauthorized modifications or tampering. Utilizing HMAC for the keys can prevent the use of a hard-coded string in the request string, as it can dynamically generate a unique code for each request based on the secret key and the message content, making it difficult to forge or replay. Implementing a VPN (virtual private network) for all APIs is not a good option for securing the REST API connection to the database, as it could introduce latency or performance issues for API requests, as well as not prevent the use of a hard-coded string in the request string. Signing the key with DSA (Digital Signature Algorithm) is not a good option for securing the REST API connection to the database, as it could be vulnerable to attacks or forgery if the key is compromised or weak, as well as not prevent the use of a hard-coded string in the request string. Deploying MFA (multi-factor authentication) for the service accounts is not a good option for securing the REST API connection to the database, as it could affect the usability or functionality of API requests, as well as not prevent the use of a hard-coded string in the request string.
Verified References:
https://www.comptia.org/blog/what-is-hmachttps://partners.comptia.org/docs/default-source/resources/casp-cont