Skip to content

SC-500 practice question 11: Compute and AI

An application that calls an Azure AI service stores the service key in a configuration file. What is the best way to improve this?

The options

  • A. Keep the key but rename the file
  • B. Print the key in the application log for support
  • C. Share the key by chat to all developers
  • D. Use a managed identity with role-based access so no key is stored

Answer and why

The correct answer is D: Use a managed identity with role-based access so no key is stored

A. Renaming leaves the key readable.

B. Logging a key exposes it to anyone with log access.

C. Spreading the key widens the number of people who hold it.

D. Identity-based access removes a long-lived key from the configuration.

What Compute and AI tests

Secure compute covers virtual machines, containers and application platform services, and security for AI workloads. Expect questions about reducing the attack surface of a host or service and removing stored credentials with managed identities.

Secure compute is 24% of the SC-500 exam. The exam runs 120 minutes and Microsoft publishes no fixed question count, so this question is a slice of the real mix, not a prediction of your result.

Try these next

Each one is a free question from the same practice test, with the answer and the reason for every option on its own page.

Keep going

This is question 11 of 15 in the free SC-500 practice test. If you missed it, say why in one sentence before you read on: the reason is what transfers to a differently worded question.