nerdexam
Cisco

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.

Understanding and Using APIs

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

How the community answered

(31 responses)
  • B
    13% (4)
  • C
    87% (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.

Bcurl -v 'ftp://username.app.com/endpoint/?api_key=12345abcdef'

`ftp://` is an unencrypted File Transfer Protocol, not suitable for secure communication with a REST API or for protecting API keys.

Ccurl -X GET 'https://username.app.com/endpoint/?api_key=12345abcdef'Correct

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

#API Security#REST API#HTTPS#curl command

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice