exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 4 question 24 discussion

Actual exam question from Microsoft's AZ-204
Question #: 24
Topic #: 4
[All AZ-204 Questions]

Your company is developing an Azure API.
You need to implement authentication for the Azure API. You have the following requirements:
All API calls must be secure.

✑ Callers to the API must not send credentials to the API.
Which authentication mechanism should you use?

  • A. Basic
  • B. Anonymous
  • C. Managed identity
  • D. Client certificate
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
MasDen
Highly Voted 4 years, 6 months ago
If a caller outside Azure doesn't look like we can use Managed Identity in such a situation. I think the client certificate is better.
upvoted 39 times
1CY1
9 months, 3 weeks ago
Seems question is very unclear. You might be right but it also says not sending credentials so therefor C Managed Identity. It says '...must not send credentials to the API.', Client certificate is sending credentials to the API.
upvoted 2 times
...
dluk
4 years, 5 months ago
Seems it's legit because question says "All API calls must be secure"
upvoted 2 times
IsildursHeir
4 years, 5 months ago
They do say "Azure API" so I am guessing they mean its an Azure provided API, not one wrapped around by Azure API management so MI would work..
upvoted 3 times
...
...
jay158
3 years, 10 months ago
Outsides user's can authenticate using Facebook /Google Identity providers. Managed Identity is a good answer.
upvoted 5 times
ning
3 years, 9 months ago
Those are NOT managed identity, those are claim based authentication.
upvoted 7 times
...
...
Knightie
2 years, 8 months ago
there is another similar question, using the cert, you will need to pass the cert or else store the cert in the key vault that you will still need to pass a value to retrieve the secret from key vault, so you will anyway pass a value to get it done. Managed ID doesn't need to pass a value like this.
upvoted 1 times
...
...
luppittegui
Highly Voted 4 years, 5 months ago
Ans is correct: managed identities eliminate the need for developers having to manage credentials by providing an identity for the Azure resource in Azure AD and using it to obtain Azure Active Directory (Azure AD) tokens. https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview
upvoted 31 times
Vady98
3 years, 7 months ago
If a caller outside Azure doesn't look like we can use Managed Identity. I think the client certificate is better.
upvoted 2 times
...
...
Vichu_1607
Most Recent 7 months ago
Selected Answer: C
The correct answer is C. Managed identity. Managed identities for Azure resources is a feature of Azure Active Directory. It provides Azure services with an automatically managed identity in Azure AD. You can use this identity to authenticate to any service that supports Azure AD authentication, without having any credentials in your code. Option A, Basic authentication, would require sending credentials (username and password) with each API call. Option B, Anonymous authentication, would not secure the API calls as it allows anyone to call the API without any form of authentication. Option D, Client certificate authentication, would require the callers to present a valid client certificate, which can be considered as a form of credential.
upvoted 1 times
...
sarmaria
2 years, 1 month ago
Got this on 16/03/23. Went with proposed solution. Make sure to prepare for case study. I got city and lights case study. No Kubernetes, Search, Logic Apps questions for me.
upvoted 3 times
YLM007
1 year, 11 months ago
have u gone through all the questions from exam topics?
upvoted 2 times
...
...
NombreFalso
2 years, 2 months ago
Selected Answer: C
C because it doesn't send credentials + API that's gonna call it is on Azure so Managed Identity is viable.
upvoted 2 times
...
Esward
2 years, 3 months ago
Given answer is correct as per MS docs https://learn.microsoft.com/en-us/azure/api-management/authentication-managed-identity-policy
upvoted 1 times
...
gmishra88
2 years, 7 months ago
It can never be managed identity unless the client is an azure resource that supports managed identity. The question does not say that. So, it has to be client-certificate. But then this is Microsoft exam and cannot expect a lot of logic from the question creators.
upvoted 2 times
...
bamosk
2 years, 10 months ago
Selected Answer: C
C is correct. A lot of people choose D (Client Certificate), but that is also sent to the server using the header X-ARR-ClientCert so that is not correct. See here: https://docs.microsoft.com/en-us/azure/app-service/app-service-web-configure-tls-mutual-auth#access-client-certificate
upvoted 2 times
...
Eltooth
2 years, 10 months ago
C appears best answer based on question text, however if question is missing key words (API Management) then D would be best answer. Remember the exam question will not be ambiguous nor prove to someone’s photo memory of rewriting it here.
upvoted 3 times
...
tosm
2 years, 10 months ago
my read was: my company develop an Azure API, and need to authenticate the API to other (Azure) services. If this is the case. using managed ID is correct.
upvoted 3 times
...
suku555
2 years, 11 months ago
key words - developing an Azure API (obviously customization and there is no Azure service named 'Azure API') & Secure API calls --> These leads to the answer 'Client Certificate'.. Also in the Q there is no requirement of managing/rotating credential so surprising why many people vote for 'Managed Identity'..
upvoted 1 times
...
Azprep
3 years, 1 month ago
Managed identity
upvoted 1 times
...
iamstudying
3 years, 2 months ago
Selected Answer: D
Agree with MasDen
upvoted 2 times
...
petitbilly
3 years, 2 months ago
Got it in exam 03/22
upvoted 1 times
...
DonOnur
3 years, 2 months ago
Selected Answer: C
Since there is no requirement for users outside of Azure, I would choose C.
upvoted 4 times
...
DonOnur
3 years, 2 months ago
Couldn't find the requirement that it has to be available to users outside azure.
upvoted 4 times
...
ytingyeu
3 years, 2 months ago
There is no service called "Azure API". Thus, I assume it refers to "App Service > API Apps". https://azure.microsoft.com/en-us/services/app-service/api In the page of "Secure app > Use managed identities", it's all about App itself accesses other resources, not about client calling API. https://docs.microsoft.com/en-us/azure/app-service/overview-managed-identity And the page "AuthN and AuthZ in Azure App Service ", it says "App Service uses federated identity", not managed identities. https://docs.microsoft.com/en-us/azure/app-service/overview-authentication-authorization So I suppose the only thing we can do is client certificate https://docs.microsoft.com/en-us/azure/app-service/app-service-web-configure-tls-mutual-auth
upvoted 2 times
ytingyeu
3 years, 2 months ago
Plus, in page "Configure your App Service app to use AAD login" which is a part of federated identity, I don't see managed identities either. https://docs.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad https://docs.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad
upvoted 1 times
ytingyeu
3 years, 2 months ago
imo managed identities is for resource-to-resource not for client-to-resource
upvoted 3 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago