Microsoft Developing Solutions for Microsoft Azure - AZ-204 Free Exam Questions

QUESTION NO: 1
Case Study 9 - Munson's Pickles and Preserves Farm
Background
Munson's Pickles and Preserves Farm is an agricultural cooperative corporation based in Washington, US, with farms located across the United States. The company supports agricultural production resources by distributing seeds fertilizers, chemicals, fuel, and farm machinery to the farms.
Current Environment
The company is migrating all applications from an on-premises datacenter to Microsoft Azure.
Applications support distributors, farmers, and internal company staff.
Corporate website
The company hosts a public website located at
http://www.munsonspicklesandpreservesfarm.com. The site supports farmers and distributors who request agricultural production resources.
Farms
The company created a new customer tenant in the Microsoft Entra admin center to support authentication and authorization for applications.
Distributors
Distributors integrate their applications with data that is accessible by using APIs hosted at
http://www.munsonspicklesandpreservesfarm.com/api to receive and update resource data.
Requirements
The application components must meet the following requirements:
Corporate website
- The site must be migrated to Azure App Service.
- Costs must be minimized when hosting in Azure.
- Applications must automatically scale independent of the compute resources.
- All code changes must be validated by internal staff before release to production.
- File transfer speeds must improve, and webpage-load performance must increase.
- All site settings must be centrally stored, secured without using secrets, and encrypted at rest and in transit.
- A queue-based load leveling pattern must be implemented by using Azure Service Bus queues to support high volumes of website agricultural production resource requests.
Farms
- Farmers must authenticate to applications by using Microsoft Entra ID.
Distributors
- The company must track a custom telemetry value with each API call and monitor performance of all APIs.
- API telemetry values must be charted to evaluate variations and trends for resource data.
Internal staff
- App and API updates must be validated before release to production.
- Staff must be able to select a link to direct them back to the production app when validating an app or API update.
- Staff profile photos and email must be displayed on the website once they authenticate to applications by using their Microsoft Entra ID.
Security
- All web communications must be secured by using TLS/HTTPS.
- Web content must be restricted by country/region to support corporate compliance standards.
- The principle of least privilege must be applied when providing any user rights or process access rights.
- Managed identities for Azure resources must be used to authenticate services that support Microsoft Entra ID authentication.
Issues
Corporate website
- Farmers report HTTP 503 errors at the same time as internal staff report that CPU and memory usage are high.
- Distributors report HTTP 502 errors at the same time as internal staff report that average response times and networking traffic are high.
- Internal staff report webpage load sizes are large and take a long time to load.
- Developers receive authentication errors to Service Bus when they debug locally.
Distributors
- Many API telemetry values are sent in a short period of time. Telemetry traffic, data costs, and storage costs must be reduced while preserving a statistically correct analysis of the data points sent by the APIs.
Hotspot Question
You need to display the profile photo and email for signed-in internal staff on the website.
Which Microsoft Graph configuration should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:
https://learn.microsoft.com/en-us/azure/app-service/manage-automatic-scaling?tabs=azure-portal
QUESTION NO: 2
Case Study 2 - Coho Winery
LabelMaker app
Coho Winery produces bottles, and distributes a variety of wines globally. You are developer implementing highly scalable and resilient applications to support online order processing by using Azure solutions.
Coho Winery has a LabelMaker application that prints labels for wine bottles. The application sends data to several printers. The application consists of five modules that run independently on virtual machines (VMs). Coho Winery plans to move the application to Azure and continue to support label creation.
External partners send data to the LabelMaker application to include artwork and text for custom label designs.
Data
You identify the following requirements for data management and manipulation:
* Order data is stored as nonrelational JSON and must be queried using Structured Query
Language (SQL).
* Changes to the Order data must reflect immediately across all partitions. All reads to the Order
data must fetch the most recent writes.
You have the following security requirements:
* Users of Coho Winery applications must be able to provide access to documents, resources,
and applications to external partners.
* External partners must use their own credentials and authenticate with their organization's
identity management solution.
* External partner logins must be audited monthly for application use by a user account
administrator to maintain company compliance.
* Storage of e-commerce application settings must be maintained in Azure Key Vault.
* E-commerce application sign-ins must be secured by using Azure App Service authentication
and Azure Active Directory (AAD).
* Conditional access policies must be applied at the application level to protect company content
* The LabelMaker applications must be secured by using an AAD account that has full access to
all namespaces of the Azure Kubernetes Service (AKS) cluster.
LabelMaker app
Azure Monitor Container Health must be used to monitor the performance of workloads that are deployed to Kubernetes environments and hosted on Azure Kubernetes Service (AKS).
You must use Azure Container Registry to publish images that support the AKS deployment.

Calls to the Printer API App fail periodically due to printer communication timeouts.
Printer communications timeouts occur after 10 seconds. The label printer must only receive up to 5 attempts within one minute.
The order workflow fails to run upon initial deployment to Azure.
Order .json

Hotspot Question
You need to update the order workflow to address the issue when calling the Printer API App.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:
Box 1: fixed
The `Default' policy does 4 exponential retries and from my experience the interval times are often too short in situations.
Box 2: PT10S
PT10s will be the better answer, 5 attempts with each 10 seconds delay satisfy the requirement
"The label printer must only receive up to 5 attempts within one minute" Box 3: 5 Reference:
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-exception-handling
QUESTION NO: 3
A development team 'XRP' is developing an application.
The application will be storing its data in Azure Table storage.
Below are the fields that are going to be stored in the table:
- Region
- Email address
- Phone number
To insert a batch of records ______________ snippet of code needs to be completed that would be used .

Correct Answer: B Vote an answer
QUESTION NO: 4
You have the following code (line numbers are included for reference only):
BatchTokenCredentials = GetCredentialsf);
BatchClient client^ BatchClient.Open(credentials);
CloudJob job = client.JobOperations.CreateJobf);
CloudTask task = new CloudTask("sampleTask", "cmd /c SampleTask.exe");
job. AddTask(task);
job.Commit();
You need to ensure that the SampleTask.exe process runs.
Which two actions should you perform? Each answer presents part of the complete solution.

Correct Answer: B,D Vote an answer
Explanation: Only visible for Actual4test members. You can sign-up / login (it's free).
QUESTION NO: 5
You are developing a microservice to run on Azure Container Apps for a company. External HTTP ingress traffic has been enabled.
The company requires that updates to the microservice must not cause downtime.
You need to deploy an update to the microservices.
What should you do?

Correct Answer: E Vote an answer
Explanation: Only visible for Actual4test members. You can sign-up / login (it's free).
QUESTION NO: 6
You are developing an Azure App Service web app.
The web app must securely store session information in Azure Redis Cache.
You need to connect the web app to Azure Redis Cache.
Which three Azure Redis Cache properties should you use? Each correct answer presents part of the solution.
Each correct selection is worth one point.

Correct Answer: C,D,E Vote an answer
Explanation: Only visible for Actual4test members. You can sign-up / login (it's free).
QUESTION NO: 7
Hotspot Question
You have an Azure Functions app using the Consumption hosting plan for a company. The app contains the following functions:

You plan to enable dynamic concurrency on the app. The company requires that each function has its concurrency level managed separately.
You need to configure the app for dynamic concurrency.
Which file or function names should you use? To answer, select the appropriate values in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:
QUESTION NO: 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 have an Azure App Service web app named WebApp1 and an Azure Functions app named Function1. WebApp1 is associated with an Application Insights instance named appinsights1.
You configure a web test and a corresponding alert for WebApp1 in appinsights1. Each alert triggers a delivery of email to your mailbox.
You need to ensure that each alert also triggers execution of Function1.
Solution: Configure an Azure Monitor action group.
Does the solution meet the goal?

Correct Answer: B Vote an answer
QUESTION NO: 9
A development team 'PNX' is developing an application.
The application will be storing its data in Azure Table storage.
Below are the fields that are going to be stored in the table:
- Region
- Email address
- Phone number
The following snippet of code needs to be completed that would be used to insert a batch of records.
Out of the given Options select which will go into Slot2?

Correct Answer: A Vote an answer
QUESTION NO: 10
Case Study 9 - Munson's Pickles and Preserves Farm
Background
Munson's Pickles and Preserves Farm is an agricultural cooperative corporation based in Washington, US, with farms located across the United States. The company supports agricultural production resources by distributing seeds fertilizers, chemicals, fuel, and farm machinery to the farms.
Current Environment
The company is migrating all applications from an on-premises datacenter to Microsoft Azure.
Applications support distributors, farmers, and internal company staff.
Corporate website
The company hosts a public website located at
http://www.munsonspicklesandpreservesfarm.com. The site supports farmers and distributors who request agricultural production resources.
Farms
The company created a new customer tenant in the Microsoft Entra admin center to support authentication and authorization for applications.
Distributors
Distributors integrate their applications with data that is accessible by using APIs hosted at
http://www.munsonspicklesandpreservesfarm.com/api to receive and update resource data.
Requirements
The application components must meet the following requirements:
Corporate website
- The site must be migrated to Azure App Service.
- Costs must be minimized when hosting in Azure.
- Applications must automatically scale independent of the compute resources.
- All code changes must be validated by internal staff before release to production.
- File transfer speeds must improve, and webpage-load performance must increase.
- All site settings must be centrally stored, secured without using secrets, and encrypted at rest and in transit.
- A queue-based load leveling pattern must be implemented by using Azure Service Bus queues to support high volumes of website agricultural production resource requests.
Farms
- Farmers must authenticate to applications by using Microsoft Entra ID.
Distributors
- The company must track a custom telemetry value with each API call and monitor performance of all APIs.
- API telemetry values must be charted to evaluate variations and trends for resource data.
Internal staff
- App and API updates must be validated before release to production.
- Staff must be able to select a link to direct them back to the production app when validating an app or API update.
- Staff profile photos and email must be displayed on the website once they authenticate to applications by using their Microsoft Entra ID.
Security
- All web communications must be secured by using TLS/HTTPS.
- Web content must be restricted by country/region to support corporate compliance standards.
- The principle of least privilege must be applied when providing any user rights or process access rights.
- Managed identities for Azure resources must be used to authenticate services that support Microsoft Entra ID authentication.
Issues
Corporate website
- Farmers report HTTP 503 errors at the same time as internal staff report that CPU and memory usage are high.
- Distributors report HTTP 502 errors at the same time as internal staff report that average response times and networking traffic are high.
- Internal staff report webpage load sizes are large and take a long time to load.
- Developers receive authentication errors to Service Bus when they debug locally.
Distributors
- Many API telemetry values are sent in a short period of time. Telemetry traffic, data costs, and storage costs must be reduced while preserving a statistically correct analysis of the data points sent by the APIs.
Hotspot Question
You need to provide internal staff access to the production site after a validation.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:
The string x-ms-routing-name=self specifies the production slot. After the client browser accesses the link, it's redirected to the production slot. Every subsequent request has the x-ms-routing- name=self cookie that pins the session to the production slot.
https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots?tabs=portal
QUESTION NO: 11
Hotspot Question
You are a developer building a web site using a web app. The web site stores configuration data in Azure App Configuration.
Access to Azure App Configuration has been configured to use the identity of the web app for authentication. Security requirements specify that no other authentication systems must be used.
You need to load configuration data from Azure App Configuration.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:
Box 1: AddAzureAppConfiguration -
Load data from App Configuration, code example:
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
webBuilder.ConfigureAppConfiguration((hostingContext, config) =>
{
var settings = config.Build();
config.AddAzureAppConfiguration(options =>
{
Etc.
Box 2: ManagedIdentityCredential
Use managed identities to access App Configuration
If you want to use a user-assigned managed identity, be sure to specify the clientId when creating the ManagedIdentityCredential. config.AddAzureAppConfiguration(options =>
{
options.Connect(new Uri(settings["AppConfig:Endpoint"]), new
ManagedIdentityCredential("<your_clientId>"))
});
Full code sample:
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
webBuilder.ConfigureAppConfiguration((hostingContext, config) =>
{
var settings = config.Build();
config.AddAzureAppConfiguration(options =>
options.Connect(new Uri(settings["AppConfig:Endpoint"]), new ManagedIdentityCredential()));
})
.UseStartup<Startup>());
Reference:
https://docs.microsoft.com/en-us/azure/azure-app-configuration/howto-integrate-azure-managed-service-identity?tabs=core5x&pivots=framework- dotnet

QUALITY AND VALUE

Actual4test Practice Exams are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development - no all study materials.

Tested and Approved

We are committed to the process of vendor and third party approvals. We believe professionals and executives alike deserve the confidence of quality coverage these authorizations provide.

Easy to Pass

If you prepare for the exams using our Actual4test testing engine, It is easy to succeed for all certifications in the first attempt. You don't have to deal with all dumps or any free torrent / rapidshare all stuff.

Try Before Buy

Actual4test offers free demo of each product. You can check out the interface, question quality and usability of our practice exams before you decide to buy.