exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 4 question 6 discussion

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

You provide an Azure API Management managed web service to clients. The back-end web service implements HTTP Strict Transport Security (HSTS).
Every request to the backend service must include a valid HTTP authorization header.
You need to configure the Azure API Management instance with an authentication policy.
Which two policies can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. Basic Authentication
  • B. Digest Authentication
  • C. Certificate Authentication
  • D. OAuth Client Credential Grant
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

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
Nielson
Highly Voted 4 years, 2 months ago
A, C https://www.examtopics.com/exams/microsoft/az-203/view/15/ https://docs.microsoft.com/en-us/azure/api-management/api-management-authentication-policies
upvoted 104 times
BrettusMaximus
3 years, 12 months ago
Must be A,C As the API documentation only allows 3 options. It states: >>>> Authentication policies Authenticate with Basic - Authenticate with a backend service using Basic authentication. Authenticate with client certificate - Authenticate with a backend service using client certificates. Authenticate with managed identity - Authenticate with the managed identity for the API Management service.
upvoted 22 times
BrettusMaximus
3 years, 12 months ago
It can't be D as we need to authenticate to the backend and not from client.
upvoted 9 times
...
...
1CY1
10 months, 3 weeks ago
While it does work, I thought Basic Auth was deprecated in a lot of systems now because it's not considered sufficiently secure. -> C and D
upvoted 1 times
1CY1
9 months ago
Because MS does not recommend Basic I might end up going with C and D.
upvoted 1 times
...
...
fadikh
4 years, 1 month ago
but client certificate does not use the authorization header
upvoted 6 times
vb3d
4 years, 1 month ago
I think this means correct answer is A and D
upvoted 8 times
...
vb3d
4 years, 1 month ago
Client certificate does use the x-arr-clientcert header As Kitkit pointed out below, check this link https://docs.microsoft.com/en-us/azure/api-management/api-management-authentication-policies.
upvoted 11 times
...
...
...
hobob
Highly Voted 4 years, 1 month ago
A, D The question states that the solution MUST use the HTTP authorization header. The only two options that do are Basic Authentication (where the header would be "Authorization: Basic <auth-base64-encoded-string> or "Bearer <bearer-token-string>).
upvoted 40 times
pmsiva
4 years, 1 month ago
AD is correct. Certificate authentication will not send http auth header https://docs.microsoft.com/en-us/azure/api-management/api-management-authentication-policies#Basic
upvoted 6 times
...
syfool
3 years, 7 months ago
D is not the answer, as that is not even an AUTHENTICATION POLICY!!! The link below lists 3 authentication policies: https://docs.microsoft.com/en-us/azure/api-management/api-management-authentication-policies
upvoted 6 times
MiraA
3 years, 7 months ago
It seems "OAuth Client Credential Grant" exists and could be considered as the specific type of "Authenticate with managed identity" which sends the authorization header? https://oauth.net/2/grant-types/client-credentials/ https://docs.microsoft.com/en-us/azure/api-management/api-management-authentication-policies
upvoted 5 times
...
...
...
rodso
Most Recent 2 months, 2 weeks ago
Selected Answer: CD
Basic has security issues
upvoted 1 times
...
Vichu_1607
6 months, 3 weeks ago
Selected Answer: AD
A. Basic Authentication D. OAuth Client Credential Grant Basic Authentication and OAuth Client Credential Grant are two policies that can be used to include a valid HTTP authorization header in every request to the backend service. Basic Authentication sends a Base64-encoded string that contains a username and password for authentication. OAuth Client Credential Grant is used when the client is requesting access to the protected resources under its control (i.e., it's own credentials), or those of another resource owner which have been previously arranged with the authorization server (the client is not impersonating the resource owner). Digest Authentication and Certificate Authentication are not typically used for sending an HTTP authorization header.
upvoted 2 times
...
8ac3742
8 months, 3 weeks ago
The certificate doesn't use an authorization header, it is mutual TLS(Transport Layer Security)
upvoted 1 times
...
A and D are correct , about C Certificate Authentication is a valid form of authentication, it is not typically supported by Azure API Management for backend services
upvoted 1 times
...
FeriAZ
1 year, 2 months ago
Selected Answer: AD
A. Basic Authentication: You can use this policy to add the Authorization header with Basic credentials. D. OAuth Client Credential Grant: You can use this policy to acquire an OAuth token and add it to the Authorization header. While Certificate Authentication (C) does indeed provide a method of authentication, it does not directly involve setting an HTTP Authorization header in the way Basic Authentication and OAuth Client Credential Grant do.
upvoted 3 times
...
raymond_abcd
1 year, 3 months ago
It is A and C A, Basic Authentication: the Base064 encoded username and password are in the authentication header C, Certificate base authentication: the client certificate is in the authentication header
upvoted 1 times
...
Ser1
1 year, 3 months ago
Selected Answer: AD
....................
upvoted 1 times
...
ENGs
1 year, 7 months ago
Selected Answer: AD
OAuth Client Credentials Grant (D), when used, will use an Authorization header being sent containing a bearer token. Basic Authentication (A) will send an Authorization header. -- Client Certificate (C) could be passed through an HTTP header but not necessarily the Authorization header.
upvoted 2 times
...
ck_malviya
1 year, 7 months ago
Selected Answer: AD
AD. The solution must use Authorization header Basic auth and OAUTH user Bearer token auth header.
upvoted 1 times
...
Vladimir_Gajinov
1 year, 8 months ago
Selected Answer: AD
I would go with A and D. A: allows you to require clients to include a valid username and password in the HTTP authorization header. While it's a simple method, it might not be the most secure option for modern applications, as the credentials are sent with each request in base64-encoded format. D: OAuth Client Credential Grant is a flow where a client (in this case, your API Management instance) uses its own credentials (client ID and client secret) to obtain an access token from an OAuth authorization server. This access token can be included in the authorization header of requests to the backend service. This method is more secure than Basic Authentication and provides better control over authentication and authorization. B: is a challenge-response mechanism that involves a server-provided nonce. It doesn't directly match the requirement for sending an HTTP authorization header with each request. C: Certificate Authentication involves using client certificates to authenticate the client to the server. While this can be secure, it's not the same as sending an HTTP authorization header.
upvoted 1 times
...
applepie
1 year, 8 months ago
got this question today, answer C,D without confidence - 7/30/2023, score 895/1000
upvoted 1 times
...
uncledana
1 year, 9 months ago
I believe it is: A - Sets the HTTP Authorization header to a corresponding value in the policy request D - Authenticates to the backend with a valid HTTP authorization header https://learn.microsoft.com/en-us/azure/api-management/authentication-managed-identity-policy
upvoted 1 times
...
MysticalSam
1 year, 10 months ago
This question was in today's exam on 10-June-2023
upvoted 1 times
...
minYoongi
2 years ago
AD is correct. https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad#configure-a-jwt-validation-policy-to-pre-authorize-requests The following example policy, when added to the <inbound> policy section, checks the value of the audience claim in an access token obtained from Azure AD that is presented in the Authorization header. Straight from the documentation
upvoted 2 times
...
Zoriark
2 years ago
ChatGPT A. Basic Authentication and D. OAuth Client Credential Grant are the two policies that can be used. Basic Authentication policy can be used to require an HTTP Basic authentication header with each request. This policy requires a username and password to be sent in the Authorization header with each request. OAuth Client Credential Grant policy can be used to require an OAuth access token with each request. This policy is useful when calling a web service that requires authentication and you want to validate the identity of the client making the request. Digest Authentication policy cannot be used as it is not supported by the Azure API Management instance. Certificate Authentication policy can be used to require a client certificate with each request. However, this policy is not applicable in this scenario as the back-end web service does not implement certificate-based authentication.
upvoted 2 times
Ciupaz
1 year, 5 months ago
Now ChatGPT gives C and D as answers.
upvoted 1 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