Practice Free AZ-204 Exam Online Questions
HOTSPOT
You are building a website that is used to review restaurants. The website will use an Azure CDN to improve performance and add functionality to requests.
You build and deploy a mobile app for Apple iPhones. Whenever a user accesses the website from an iPhone, the user must be redirected to the app store.
You need to implement an Azure CDN rule that ensures that iPhone users are redirected to the app store.
How should you complete the Azure Resource Manager template? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
HOTSPOT
You are working for Contoso, Ltd.
You define an API Policy object by using the following XML markup:
For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.
HOTSPOT
You are developing an application that includes two Docker containers.
The application must meet the following requirements
✑ The containers must not run as root.
✑ The containers must be deployed to Azure Container Instances by using a YAML file.
✑ The containers must share a lifecycle, resources, local network and storage volume.
✑ The storage volume must persist through container crashes.
✑ The storage volume must be destroyed on stop or restart of the containers.
You need to configure Azure Container Instances for the application.
SQL Database query results are cached in Azure Cache for Redis to improve performance.
The application consists of the following Azure services:
Requirements
The application components must meet the following requirements:
• Azure Cosmos DB development must use a native API that receives the latest updates and stores data in a document format.
• Costs must be minimized for all Azure services.
• Developers must test Azure Blob Storage integrations locally before deployment to Azure Testing must support the latest versions of the Azure Storage APIs.
Corporate website
• User authentication and authorization must allow one-time passcode sign-in methods and social identity providers (Google or Facebook).
• Static web content must be stored closest to end users to reduce network latency.
Inventory items
• Customized items read from Azure Cosmos DB must maximize throughput while ensuring data is accurate for the current user on the website.
• Processing of inventory item updates must automatically scale and enable updates across an entire Azure Cosmos DB container.
• Inventory items must be processed in the order they were placed in the queue.
• Inventory item images must be stored as JPEG files in their native format to include exchangeable image file format (data) stored with the blob data upon upload of the image file.
• The Inventory Items API must securely access the Azure Cosmos DB data.
Orders
• Orders must receive inventory item changes automatically after inventory items are updated or saved.
Issues
• Developers are storing the Azure Cosmos DB credentials in an insecure clear text manner within the Inventory Items API code.
• Production Azure Cache for Redis maintenance has negatively affected application performance.
HOTSPOT
You need to implement a function by using Azure Functions to process customized items.
How should you implement the function? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
You are developing applications for a company. You plan to host the applications on Azure App Services.
The company has the following requirements:
✑ Every five minutes verify that the websites are responsive.
✑ Verify that the websites respond within a specified time threshold.
Dependent requests such as images and JavaScript files must load properly.
✑ Generate alerts if a website is experiencing issues.
✑ If a website fails to load, the system must attempt to reload the site three more times.
You need to implement this process with the least amount of effort.
What should you do?
- A . Create a Selenium web test and configure it to run from your workstation as a scheduled task.
- B . Set up a URL ping test to query the home page.
- C . Create an Azure function to query the home page.
- D . Create a multi-step web test to query the home page.
- E . Create a Custom Track Availability Test to query the home page.
You are developing applications for a company. You plan to host the applications on Azure App Services.
The company has the following requirements:
✑ Every five minutes verify that the websites are responsive.
✑ Verify that the websites respond within a specified time threshold.
Dependent requests such as images and JavaScript files must load properly.
✑ Generate alerts if a website is experiencing issues.
✑ If a website fails to load, the system must attempt to reload the site three more times.
You need to implement this process with the least amount of effort.
What should you do?
- A . Create a Selenium web test and configure it to run from your workstation as a scheduled task.
- B . Set up a URL ping test to query the home page.
- C . Create an Azure function to query the home page.
- D . Create a multi-step web test to query the home page.
- E . Create a Custom Track Availability Test to query the home page.
HOTSPOT
You are developing an application that use an Azure blob named data to store application data. The application creates blob snapshots to allow application state to be reverted to an earlier state.
The Azure storage account has soft deleted enabled.
The system performs the following operations in order:
• The blob is updated
• Snapshot 1 is created.
• Snapshot 2 is created.
• Snapshot 1 is deleted.
A system error then deletes the data blob and all snapshots.
You need to determine which application states can be restored.
What is the restorability of the application data? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
HOTSPOT
You need to configure the integration for Azure Service Bus and Azure Event Grid.
How should you complete the CLI statement? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
HOTSPOT
You have a web app named Appl hosted on your on-premises web server.
You plan to use the Application Insights JavaScript SDK to implement client-side Real User Monitoring (RUM) of individual pages of Appl.
You need to author the script element that will be added to each of the pages.
What should you set for the value of src and cfg keys in the script element of each page? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Your company is developing an Azure API.
You need to implement authentication for the Azure API.
You have the following requirements:
✑ All API calls must be secure.
✑ Callers to the API must not send credentials to the API.
Which authentication mechanism should you use?
- A . Basic
- B . Anonymous
- C . Managed identity
- D . Client certificate