Summer Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Microsoft Certified: Azure Developer Associate AZ-204 Passing Score

Page: 14 / 21
Total 461 questions

Developing Solutions for Microsoft Azure Questions and Answers

Question 53

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.

Options:

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.

B.

Add a PreBuild target in the websites csproj project file that runs the static content generation script.

C.

Create a file named run.cmd in the folder /run that calls a script which generates the static content and deploys the website.

D.

Add the path to the static content generation tool to WEBSITE_RUN_FROM_PACKAGE setting in the host.json file.

Question 54

You develop a Python application for image rendering that uses GPU resources to optimize rendering processes. You deploy the application to an Azure

Container Instances (ACI) Linux container.

The application requires a secret value to be passed when the container is started. The value must only be accessed from within the container.

You need to pass the secret value.

What are two possible ways to achieve this goal? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Create an environment variable Set the secureValue property to the secret value.

B.

Add the secret value to the container image. Use a managed identity.

C.

Add the secret value to the application code Set the container startup command.

D.

Add the secret value to an Azure Blob storage account. Generate a SAS token.

E.

Mount a secret volume containing the secret value in a secrets file.

Question 55

You need to design network connectivity for a subnet in an Azure virtual network. The subnet will contain 30 virtual machines. The virtual machines will establish outbound connections to internet hosts by using the same a pool of four public IP addresses, inbound connections to the virtual machines will be prevented.

What should include in the design?

Options:

A.

Azure Private Link

B.

NAT Gateway

C.

User Defined Routes

D.

Azure Virtual WAN

Question 56

You develop a REST API. You implement a user delegation SAS token to communicate with Azure Blob

storage.

The token is compromised.

You need to revoke the token.

What are two possible ways to achieve this goal? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Revoke the delegation keys

B.

Delete the stored access policy.

C.

Regenerate the account key.

D.

Remove the role assignment for the security principle.

Page: 14 / 21
Total 461 questions