exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 1 question 24 discussion

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

Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements.
You are developing a solution for a public facing API.
The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end.
You must configure back-end authentication for the API Management service instance.
Solution: You configure Basic gateway credentials for the Azure resource.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
lexowe9241
Highly Voted 3 years, 5 months ago
Hmm, there is "Authenticate with Basic policy" for api-management https://docs.microsoft.com/en-us/azure/api-management/api-management-authentication-policies#Basic So maybe Yes is correct answer
upvoted 22 times
MiraA
3 years, 4 months ago
The answer is YES (Basic + the HTTP(s) endpoint) based on this screenshot: https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-mutual-certificates#configure-an-api-to-use-client-certificate-for-gateway-authentication Target: "Azure Logic App" or "HTTP(s) endpoint" Gateway credentials: "None" or "Basic" or "Client cert"
upvoted 3 times
MiraA
3 years, 4 months ago
My own correction... :-( The answer is NO. The solution mentions "You configure Basic gateway credentials for the Azure resource." and there is no such option for generic Azure resource.
upvoted 10 times
koolexam
3 years, 2 months ago
But you can do that at collection level in APIM.
upvoted 1 times
...
warchoon
2 years ago
Another tricky question about settings UI, that will soon be deprecated :)
upvoted 1 times
...
...
...
basquiat
1 year, 6 months ago
Authentication policy sounds quite different from authentication gateway IMHO.
upvoted 2 times
...
PhilLI
3 years, 1 month ago
Agree. My research lead me also to this page. 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 8 times
Mev4953
3 years, 1 month ago
I agree with you. https://docs.microsoft.com/en-us/azure/api-management/api-management-authentication-policies
upvoted 1 times
...
...
...
leonidn
Highly Voted 3 years, 1 month ago
Selected Answer: B
Basic client credentials can be defined for HTTP endpoint, not an App Service. My previous answer is incorrect. https://docs.microsoft.com/en-us/azure/api-management/api-management-authentication-policies#Basic
upvoted 16 times
...
Surnok
Most Recent 1 month, 2 weeks ago
Selected Answer: B
Why this does not meet the goal Basic gateway credentials are primarily used for simple scenarios where the back-end service expects a username and password for authentication. For public-facing APIs, you typically need stronger and more secure authentication mechanisms, such as: OAuth 2.0 JWT (JSON Web Tokens) Managed Identity for Azure resources
upvoted 2 times
...
overhill
6 months, 1 week ago
Selected Answer: A
they're asking for basic auth with user and password. APIM supports that, whether or not it is secure is another story... this is a yes
upvoted 1 times
...
MaherEng
10 months, 4 weeks ago
Selected Answer: B
good answer is B
upvoted 1 times
...
[Removed]
1 year, 1 month ago
Configuring Basic gateway credentials is not recommended for securing a public-facing API because it involves sending credentials (username and password) with each request. This method can expose security vulnerabilities, as credentials are transmitted in an easily readable format. It's better to use more secure methods like API keys, OAuth tokens, or other authentication mechanisms for better protection in a public API scenario
upvoted 6 times
...
Mick1z8
1 year, 4 months ago
Selected Answer: B
There are two components we're interested in: a. APIM, and b. App Service (resource) The App Service doesn't support basic-auth at all; though APIM does. The tricky part is the word "resource" which is App Service.
upvoted 1 times
...
Mick1z8
1 year, 4 months ago
Selected Answer: A
https://learn.microsoft.com/en-us/azure/api-management/authentication-basic-policy It clearly states (in the first line), that `authentication-basic` policy can be used to authenticate with a backend service.
upvoted 1 times
...
Vladimir_Gajinov
1 year, 5 months ago
Selected Answer: A
The correct answer is YES. Use the authentication-basic policy to authenticate with a backend service using Basic authentication. https://learn.microsoft.com/en-us/azure/api-management/authentication-basic-policy
upvoted 3 times
...
JH81
1 year, 8 months ago
Selected Answer: B
Yes you can use Basic but it certainly would not be a recommended solution because it's not secure for a public facing API. So using MS think the answer is No.
upvoted 1 times
...
BikashKatwal
1 year, 8 months ago
B. No The solution does not meet the goal of configuring back-end authentication for the API Management service instance. Configuring Basic gateway credentials for the Azure resource does not provide authentication for the API Management service. Basic gateway credentials are used for authentication between the client and the API Management gateway, but it does not provide authentication for the back-end service hosted in the Azure App Service instance. To configure back-end authentication for the API Management service instance, you would typically use authentication mechanisms such as OAuth, API keys, or client certificates to authenticate and secure the communication between the API Management gateway and the back-end service.
upvoted 4 times
...
Mattt
1 year, 11 months ago
B. No. Configuring Basic gateway credentials for the Azure resource would provide authentication for accessing the Azure resource itself, but it does not provide authentication for the API Management service instance. To configure back-end authentication for the API Management service instance, you should use one of the following authentication options: Client Certificate authentication Token-based authentication OAuth 2.0 authentication These options provide secure authentication and access control for the API Management service instance and its associated APIs.
upvoted 5 times
...
Selected Answer: A
While Basic authentication is a supported option for API Management gateway authentication, it is not recommended for public-facing APIs due to its inherent security weaknesses. Basic authentication transmits user credentials in plain text, which can be easily intercepted and compromised.
upvoted 3 times
Opps sorry meant to select B
upvoted 1 times
...
...
uffuchsi
2 years ago
B. Would you not instead use Anon and authenticate pass through JWT token to the backend?
upvoted 2 times
warchoon
2 years ago
So it will work much faster than certs.
upvoted 1 times
...
...
alexein74
2 years, 1 month ago
Selected Answer: B
B. No Configuring Basic gateway credentials for the Azure resource would not provide a secure solution for back-end authentication for the public facing API. Basic authentication sends the user's credentials in plain text over the network, making it vulnerable to eavesdropping and man-in-the-middle attacks. This is not suitable for public facing APIs. A more secure solution would be to use OAuth2 or OpenID Connect protocol for back-end authentication. This allows the API Management service to securely authenticate the client against an identity provider, such as Azure Active Directory, and obtain an access token for the back-end service. In summary, configuring Basic gateway credentials for the Azure resource does not meet the goal of securing back-end authentication for the public facing API.
upvoted 2 times
fkaracan
2 years ago
not everytime chatgpt generates the correct answer. you need to do your own research before paste here...
upvoted 3 times
...
...
mitu7
2 years, 1 month ago
Selected Answer: B
ChatGPT: No, the solution of configuring Basic gateway credentials for the Azure resource does not meet the goal of configuring back-end authentication for the API Management service instance. To configure back-end authentication for the API Management service instance, you need to specify the credentials that the API Management service instance should use to authenticate to the API back end. There are several options for back-end authentication, such as using an Azure Active Directory tenant, a certificate, or an API key. The Basic gateway credentials are used to authenticate the API Management service instance to the Azure resource, which is not the same as back-end authentication for the API Management service instance. To properly configure back-end authentication for the API Management service instance, you need to choose the appropriate authentication method and specify the credentials accordingly. You can find more information about configuring back-end authentication in the Azure API Management documentation.
upvoted 2 times
...
mitu7
2 years, 1 month ago
ChatGPT: No, the solution of configuring Basic gateway credentials for the Azure resource does not meet the goal of configuring back-end authentication for the API Management service instance. To configure back-end authentication for the API Management service instance, you need to specify the credentials that the API Management service instance should use to authenticate to the API back end. There are several options for back-end authentication, such as using an Azure Active Directory tenant, a certificate, or an API key. The Basic gateway credentials are used to authenticate the API Management service instance to the Azure resource, which is not the same as back-end authentication for the API Management service instance. To properly configure back-end authentication for the API Management service instance, you need to choose the appropriate authentication method and specify the credentials accordingly. You can find more information about configuring back-end authentication in the Azure API Management documentation.
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