Free AZ-204 Exam Braindumps

Pass your Developing Solutions for Microsoft Azure exam with these free Questions and Answers

Page 5 of 73
QUESTION 16

- (Exam Topic 8)
You are preparing to deploy an ASP.NET Core website to an Azure Web App from a GitHub repository. The website includes static content generated by a script.
You plan to use the Azure Web App continuous deployment feature.
You need to run the static generation script before the website starts serving traffic.
What are two possible ways to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  1. A. Create a file named .deployment in the root of the repository that calls a script which generates the static content and deploys the website.
  2. B. Add a PreBuild target in the websites csproj project file that runs the static content generation script.
  3. C. Create a file named run.cmd in the folder /run that calls a script which generates the static content and deploys the website.
  4. D. Add the path to the static content generation tool to WEBSITE_RUN_FROM_PACKAGE setting in the host.json file.

Correct Answer: AD
A: To customize your deployment, include a .deployment file in the repository root.
You just need to add a file to the root of your repository with the name .deployment and the content: [config]
command = YOUR COMMAND TO RUN FOR DEPLOYMENT
this command can be just running a script (batch file) that has all that is required for your deployment, like copying files from the repository to the web root directory for example.
D: In Azure, you can run your functions directly from a deployment package file in your function app. The other option is to deploy your files in the d:\home\site\wwwroot directory of your function app (see A above).
To enable your function app to run from a package, you just add a WEBSITE_RUN_FROM_PACKAGE setting to your function app settings.
Note: The host.json metadata file contains global configuration options that affect all functions for a function app.
References:
https://github.com/projectkudu/kudu/wiki/Custom-Deployment-Script
https://docs.microsoft.com/bs-latn-ba/azure/azure-functions/run-functions-from-deployment-package

QUESTION 17

- (Exam Topic 8)
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos in Azure Storage Blob storage. The storage account type is
General-purpose V2.
When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-friendly version of the image must start in less than one minute.
You need to design the process that starts the photo processing.
Solution: Create an Azure Function app that uses the Consumption hosting model and that is triggered from the blob upload.
Does the solution meet the goal?

  1. A. Yes
  2. B. No

Correct Answer: A
In the Consumption hosting plan, resources are added dynamically as required by your functions. Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-blob-triggered-function

QUESTION 18

- (Exam Topic 8)
You develop a web application.
You need to register the application with an active Azure Active Directory (Azure AD) tenant.
Which three actions should you perform in sequence? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.
AZ-204 dumps exhibit
Solution:
Register a new application using the Azure portal
AZ-204 dumps exhibit Sign in to the Azure portal using either a work or school account or a personal Microsoft account.
AZ-204 dumps exhibit If your account gives you access to more than one tenant, select your account in the upper right corner.
Set your portal session to the Azure AD tenant that you want.
AZ-204 dumps exhibit Search for and select Azure Active Directory. Under Manage, select App registrations.
AZ-204 dumps exhibit Select New registration. (Step 1)
AZ-204 dumps exhibit In Register an application, enter a meaningful application name to display to users.
AZ-204 dumps exhibit Specify who can use the application. Select the Azure AD instance. (Step 2)
AZ-204 dumps exhibit Under Redirect URI (optional), select the type of app you're building: Web or Public client (mobile & desktop). Then enter the redirect URI, or reply URL, for your application. (Step 3)
AZ-204 dumps exhibit When finished, select Register.

Does this meet the goal?

  1. A. Yes
  2. B. No

Correct Answer: A

QUESTION 19

- (Exam Topic 3)
You need to authenticate the user to the corporate website as indicated by the architectural diagram. Which two values should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  1. A. ID token signature
  2. B. ID token claims
  3. C. HTTP response code
  4. D. Azure AD endpoint URI
  5. E. Azure AD tenant ID

Correct Answer: BE
Claims in access tokens
JWTs (JSON Web Tokens) are split into three pieces:
AZ-204 dumps exhibit Header - Provides information about how to validate the token including information about the type of token and how it was signed.
AZ-204 dumps exhibit Payload - Contains all of the important data about the user or app that is attempting to call your service.
AZ-204 dumps exhibit Signature - Is the raw material used to validate the token.
Your client can get an access token from either the v1.0 endpoint or the v2.0 endpoint using a variety of protocols.
Scenario: User authentication (see step 5 below)
The following steps detail the user authentication process:
AZ-204 dumps exhibit The user selects Sign in in the website.
AZ-204 dumps exhibit The browser redirects the user to the Azure Active Directory (Azure AD) sign in page.
AZ-204 dumps exhibit The user signs in.
AZ-204 dumps exhibit Azure AD redirects the user’s session back to the web application. The URL includes an access token.
AZ-204 dumps exhibit The web application calls an API and includes the access token in the authentication header. The application ID is sent as the audience (‘aud’) claim in the access token.
AZ-204 dumps exhibit The back-end API validates the access token. Reference:
https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies

QUESTION 20

- (Exam Topic 8)
You develop and deploy the following staticwebapp.config.json file to the app_location value specified in the workflow file of an Azure Static Web app.
AZ-204 dumps exhibit
AZ-204 dumps exhibit
Solution:
Graphical user interface, text, application, letter, email Description automatically generated

Does this meet the goal?

  1. A. Yes
  2. B. No

Correct Answer: A

Page 5 of 73

Post your Comments and Discuss Microsoft AZ-204 exam with other Community members: