Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 355
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?
Answer options
- A. curl –X PUSH ‘http://username.app.com/endpoint/?api_key=12345abcdef’
- B. curl –v ‘ftp://username.app.com/endpoint/?api_key=12345abcdef’
- C. curl –X GET ‘https://username.app.com/endpoint/?api_key=12345abcdef’
- D. curl –X GET ‘http://username.app.com/endpoint/?api_key=12345abcdef’
Correct answer: C
Explanation
The correct answer is C because it uses 'https', which provides an encrypted connection necessary for secure communication. Options A and B are incorrect as they use 'http' and 'ftp', neither of which offer encryption. Option D also uses 'http' and does not ensure a secure connection.