200-901 · Question #344
A developer creates an application that must provide an encrypted connection or API keys. The keys will be used to communicate with a REST API. Which command must be used for the secure connection?
The correct answer is C. curl -X GET 'https://username.app.com/endpoint/?api_key=12345abcdef'. To establish an encrypted connection with a REST API using API keys, the https protocol is required, typically accessed via a curl command using the GET method for data retrieval.
Question
A developer creates an application that must provide an encrypted connection or API keys. The keys will be used to communicate with a REST API. Which command must be used for the secure connection?
Options
- Bcurl -v 'ftp://username.app.com/endpoint/?api_key=12345abcdef'
- Ccurl -X GET 'https://username.app.com/endpoint/?api_key=12345abcdef'
How the community answered
(31 responses)- B13% (4)
- C87% (27)
Why each option
To establish an encrypted connection with a REST API using API keys, the `https` protocol is required, typically accessed via a `curl` command using the GET method for data retrieval.
`ftp://` is an unencrypted File Transfer Protocol, not suitable for secure communication with a REST API or for protecting API keys.
The `https://` protocol prefix in the URL indicates a secure, encrypted connection using TLS/SSL, which is essential for protecting sensitive data like API keys during transmission. The `curl -X GET` command is appropriate for making a REST API call to retrieve information securely.
Concept tested: Secure API communication (HTTPS, curl)
Source: https://curl.se/docs/manpage.html
Topics
Community Discussion
No community discussion yet for this question.