exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 13 question 2 discussion

Actual exam question from Microsoft's AZ-400
Question #: 2
Topic #: 13
[All AZ-400 Questions]

HOTSPOT -
You need to configure a cloud service to store the secrets required by the mobile applications to call the share pricing service.
What should you include in the solution? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Every request made against a storage service must be authorized, unless the request is for a blob or container resource that has been made available for public or signed access. One option for authorizing a request is by using Shared Key.
Scenario: The mobile applications must be able to call the share pricing service of the existing retirement fund management system. Until the system is upgraded, the service will only support basic authentication over HTTPS.
The investment planning applications suite will include one multi-tier web application and two iOS mobile applications. One mobile application will be used by employees; the other will be used by customers.
Reference:
https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key

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
TosO
Highly Voted 4 years, 7 months ago
Basic authentication uses username and password, and an ideal place to store those is in KeyVault
upvoted 96 times
hubeau
4 years, 6 months ago
This is for acessing azure storage. APP user cannot access storage with username and password. And key vault can not be used here. Imagine those aren't B2B or B2C users of aad
upvoted 3 times
NKnab
4 years, 2 months ago
You need to configure a cloud service to store the secrets required by the mobile applications to call the share pricing service.
upvoted 4 times
...
yemma
4 years, 4 months ago
There is no storage there ! Answer is : 1. Username and password 2. key vault
upvoted 11 times
...
...
Mvii
4 years, 5 months ago
Agreed. Basic auth - base64-encoded username:password string. Best place to store those is in Key Vault. Mobile app accesses AKV with managed identity.
upvoted 3 times
...
...
Yogothegreat
Highly Voted 4 years, 5 months ago
Since only Basic Authentication is available: it has to be username and password As everyone knows the best place to store is : KeyVault
upvoted 11 times
...
Dankho
Most Recent 3 months, 4 weeks ago
Basic authentication requires a username and password for accessing the service. Other options like Certificate, PAT, or Shared Access Authorization Token would not align with the technical requirement for basic authentication. Storage Location: The correct storage location remains: Azure Key Vault
upvoted 1 times
...
AxiansWCS
9 months, 1 week ago
1 Secrets 2 KeyVault Explanation: The authentication method used to connect to the Azure Key Vault (where the secrets are stored) and the authentication method used by your mobile application to connect to the share pricing service of the legacy system are two separate things. The Azure Key Vault uses Azure Active Directory for authentication, which is more secure than basic authentication. Your mobile application would use this method (not basic auth) to retrieve the secrets (like username and password) from the Key Vault Remember, the basic authentication here is between your mobile application and the legacy system, not between your mobile application and Azure Key Vault.
upvoted 2 times
Freyr
3 months ago
The KeyVault is correct. I could not find "Secrets" as an option in the given set of answers!
upvoted 1 times
...
...
renzoku
1 year, 3 months ago
Configure your mobile applications to can call the share pricing service and configure a cloud service to store the secrets required 1. Username and password, because is Basic authentication over HTTPS. 2. Azure Key Vault, is the recommended storage location for secure storing secrets (Username and password) Shared Access Authorization Token, may not be the most suitable option, if the app only supports basic authentication typically requires providing the username and password, however Shared Access Authorization Token is a token-based authentication (e.g. OAuth or JWT)
upvoted 1 times
...
Madbo
1 year, 6 months ago
To store the secrets required by the mobile applications to call the share pricing service, you should select the following options: Required secrets: c. Shared access authorization token Storage location: b. Personal key vault These options ensure secure storage of the required secrets and minimize the risk of unauthorized access. Shared access authorization token can be used for authentication with the service, and a personal key vault can be used to securely store and manage the tokens. Azure Storage with HTTP/HTTPS access and Azure Data Lake are not appropriate for storing secrets as they are not designed for secure secret management.
upvoted 1 times
jhoncorrea
5 months, 2 weeks ago
The question is only part of a case study. One of the requirements is: "The mobile applications must be able to call the share pricing service of the existing retirement fund management system. Until the system is upgraded, the service will only support basic authentication over HTTPS.". So the "Shared Access Authorization token" is not correct, basic authentication requires "username and password".
upvoted 3 times
...
...
Bibace
1 year, 10 months ago
Basic Authentication sends a Base64 encoded string (could be the shared token) that contains a user name and password for the client via HTTP headers.
upvoted 2 times
...
budha
1 year, 10 months ago
It was on my exam on December 7, 2022.
upvoted 2 times
...
alexPera84
2 years ago
i think that answer is right. You cannot call KeyVault from app because it need to impersonate a user. The only way, for me is to apply a keyvallet pattern in app to obtain the sas token. After this you can call a storage for having the authetication information for basic auth to the service.
upvoted 1 times
...
syu31svc
2 years, 2 months ago
required secrets ---> username and password (https://docs.microsoft.com/en-us/azure/api-management/api-management-authentication-policies) storage ---> key vault (pretty much the standard service to go for when it comes to storage of credentials in Azure)
upvoted 1 times
...
yemzy
2 years, 5 months ago
1) certificate 2) azure key vault
upvoted 1 times
...
rdemontis
2 years, 7 months ago
Basic authentication means username and password https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#basic_authentication_scheme The best cloud service to save them is Azure Key Vault
upvoted 3 times
...
Sara_Mo
2 years, 9 months ago
There is no storage there it is for mobile applications to call 1. Username and password 2. key vault
upvoted 2 times
...
vglearn
3 years, 8 months ago
Correct answer is 1. Username and Password 2. Azure Key vault
upvoted 6 times
...
gulopez
3 years, 10 months ago
The only problem I see with using the Key Vault is how the Mobile Application using IOS will register with AAD to get a Service Principal able to retrieve the secret. https://docs.microsoft.com/en-us/azure/key-vault/general/authentication for that reason I think the proposed solution with Storage account holding the username and password in a json file can be retrieved by the app to authenticate.
upvoted 5 times
boldarev
3 years, 8 months ago
You are right. It would be required to register an application in AAD. The shared token is much easily.
upvoted 2 times
...
...
TechieBloke
4 years, 2 months ago
Here you can find a solution for the exact example: https://github.com/MicrosoftLearning/AZ-203-DevelopingSolutionsforMicrosoftAzure/blob/master/Instructions/Labs/AZ-203_04_lab_ak.md As you can see TLS enabled storage and HTPPS also using connection string to access with password via a Key Vault. But this is a mobile app going through a PSN Service. I think the given answer is correct.
upvoted 7 times
...
xfeniksx
4 years, 3 months ago
For sure 2nd: Azure Key Vault because 'Requests to the Azure Key Vault are directed to a valid Azure Key Vault URL using HTTPS with some URL parameters and JSON encoded request and response bodies'
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