nerdexam
Microsoft

PL-400 · Question #397

You are creating an asynchronous automation that targets an external API. The automation must retrieve a stored API key to connect with the API. The API key must be rotated regularly by business…

The correct answer is D. Environment variables. Environment variables allow storing and managing values, such as API keys, that can be easily updated by users without requiring code changes or complex tooling.

Submitted by chiamaka_o· Apr 18, 2026

Question

You are creating an asynchronous automation that targets an external API. The automation must retrieve a stored API key to connect with the API. The API key must be rotated regularly by business users, without the need for dedicated tooling. No connector is available for the external API. You need to implement the automation. What should you use?

Options

  • AUnsecure config
  • BSecure config
  • CConnection references
  • DEnvironment variables

How the community answered

(43 responses)
  • A
    12% (5)
  • B
    5% (2)
  • C
    5% (2)
  • D
    79% (34)

Explanation

Environment variables allow storing and managing values, such as API keys, that can be easily updated by users without requiring code changes or complex tooling.

Community Discussion

No community discussion yet for this question.

Full PL-400 Practice