exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 1 question 26 discussion

Actual exam question from Microsoft's AZ-204
Question #: 26
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 HTTP(s) endpoint.
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
jay158
Highly Voted 3 years, 7 months ago
This is scenario questions. If backend is accepts HTTP(S) Then Basic AUTH or Certificate will work. so Basic + HTTPS Yes
upvoted 40 times
MiraA
3 years, 4 months ago
Target: "Azure Logic App" or "HTTP(s) endpoint" Gateway credentials: "None" or "Basic" or "Client cert" https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-mutual-certificates#configure-an-api-to-use-client-certificate-for-gateway-authentication
upvoted 6 times
...
...
ndchris2003
Highly Voted 3 years, 6 months ago
The correct answer is Yes. https://docs.microsoft.com/en-us/azure/api-management/api-management-authentication-policies#ClientCertificate
upvoted 11 times
...
TheFivePips
Most Recent 6 months, 1 week ago
Selected Answer: B
Client Cert Gateway Credentials: Can be used with both HTTP endpoints and Azure resources if both are configured to handle and validate client certificates. Provides strong security and is suitable for high-security scenarios, but involves a more complex setup. Basic Gateway Credentials: Suitable for HTTP endpoints that support Basic Authentication but not suitable for Azure resources like Azure App Service. Basic Authentication is less secure and generally not used for Azure resources, which typically require Azure AD, OAuth tokens, or managed identities for authentication. For a public-facing API, client certificate authentication is generally preferred if both APIM and the backend API are properly configured to use and validate client certificates. Basic Authentication is simpler but less secure and not suitable for most Azure resources. Azure App Service does not support Basic Authentication (Basic gateway credentials) for securing access to the service itself. For securing Azure App Service, you should use Azure AD, OAuth 2.0, or other more secure authentication methods
upvoted 2 times
...
Shreyas2811
10 months, 3 weeks ago
No, the solution does not meet the goal. Configuring Basic gateway credentials for the HTTP(s) endpoint provides authentication for clients accessing the API through the API Management gateway, but it does not specifically address back-end authentication for the API Management service instance. Back-end authentication typically involves authenticating requests between the API Management service instance and the back-end hosted in Azure App Service. Basic gateway credentials are more commonly used for authenticating clients accessing the API through the API Management gateway, rather than for securing communication between the gateway and the back-end service.
upvoted 1 times
rumbur4k
9 months, 2 weeks ago
I think that you mix up client auth -> APIM and APIM -> Backend https://learn.microsoft.com/en-us/azure/api-management/authentication-basic-policy I would say A is correct.
upvoted 1 times
...
...
VK1989
10 months, 3 weeks ago
Selected Answer: B
Answer is B - NO
upvoted 1 times
...
oskx2
1 year ago
Selected Answer: A
Answer is YES. Based on this: https://learn.microsoft.com/en-us/azure/api-management/authentication-basic-policy
upvoted 1 times
...
raymond_abcd
1 year ago
Selected Answer: B
This is not the preferred way, Basic authentication is unsecure because of sending the username/password in the header. You must use TLS to protect the credentials. The preferred way is using a client certificate. Which can be re-used for all backends that are residing in the same api management service
upvoted 2 times
...
[Removed]
1 year, 1 month ago
No. Configuring Basic gateway credentials for the HTTP(s) endpoint in a public-facing API scenario is not ideal for security reasons. Basic credentials involve sending a username and password with each request, which can expose sensitive information and is less secure. It's recommended to use more robust authentication mechanisms like API keys, OAuth tokens, or client certificates for enhanced security in such scenarios.
upvoted 1 times
...
manopeydakon
1 year, 1 month ago
Correct answer is Yes, Admin change the answer: Configuring Basic gateway credentials for the HTTP(s) endpoint is a valid solution for back-end authentication in API Management. Basic authentication involves sending a username and password with each request.
upvoted 1 times
...
garbas
1 year, 4 months ago
Selected Answer: A
API Management gateway supports basic authentication. You have a RESTful service, so there is an HTTP(s) endpoint. App Service doesn't have built-in support fot basic authentication, but you can use the security features of the framework the service is built on (https://learn.microsoft.com/en-us/azure/app-service/overview-authentication-authorization#why-use-the-built-in-authentication) The question only says "you must configure authentication". It doen't says it has to be the best solution or the most secure. Maybe Microsoft is expecting No in this question, but the solution meets the goal, so the answer should be Yes.
upvoted 3 times
...
juanHuizar
1 year, 5 months ago
No, configuring Basic gateway credentials for the HTTP(s) endpoint does not fully meet the goal of configuring backend authentication for the API Management service instance, especially if this API is public-facing and needs to be secure. Basic gateway credentials refer to HTTP Basic Authentication, where a client sends a username and password with each request.
upvoted 3 times
...
TheMCT
1 year, 5 months ago
Selected Answer: B
Configuring Basic gateway credentials for the HTTP(s) endpoint in API Management is not typically used for back-end authentication. Basic gateway credentials are used to secure access to the API Management gateway itself, allowing clients to authenticate when making requests to the API Management layer. It does not secure the communication between API Management and the back-end Azure App Service.
upvoted 1 times
...
BikashKatwal
1 year, 8 months ago
The solution mentioned, which is configuring Basic gateway credentials for the HTTP(s) endpoint, does meet the goal of configuring back-end authentication for the API Management service instance. Configuring Basic gateway credentials means that the API Management service will authenticate requests sent to the back-end service using basic authentication. Basic authentication requires clients to include a username and password in the request headers. By configuring Basic gateway credentials for the HTTP(s) endpoint, you can enforce authentication for incoming requests and ensure that only authorized clients can access the API back end hosted in the Azure App Service instance. Therefore, the correct answer is: A. Yes
upvoted 2 times
...
Net_IT
2 years ago
Selected Answer: A
Answer should be YES according to this link: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-mutual-certificates#configure-an-api-to-use-client-certificate-for-gateway-authentication
upvoted 1 times
...
Michael2023
2 years ago
Selected Answer: B Because the Backend is an App Service the Microsoft security recommendations to protect back-end resources are: User/Application Identity and/or require client certificate authentication APIM would support Basic & Client, but it also depends on which kind of backend application you are using https://learn.microsoft.com/en-us/azure/app-service/security-recommendations#identity-and-access-management
upvoted 1 times
...
alexein74
2 years, 1 month ago
Selected Answer: B
B. No Configuring Basic gateway credentials for the HTTP(s) endpoint 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.
upvoted 3 times
...
deepbh
2 years, 1 month ago
The backend is App Service. Afaik it doesn't allow basic auth, so your only choice is client cert or managed identity. It shouldn't matter if you have the option to enable basic auth at the frontend settings, you won't be able to make it work at the backend. So I'd say NO.
upvoted 5 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