Test Flashcards
9 cards from real AZ-204 practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 9 Test flashcards as text
You develop a serverless application using several Azure Functions. These routines are used to link to data that is stored within the code. For an Azure Function App project, you wish to set up tracing. In the hostjson file, you must make changes to the configuration parameters. What tool should you employ?
Answer: Azure portal
To configure tracing settings in the host.json file for an Azure Function App, the Azure portal provides a direct and user-friendly interface. You can navigate to the Function App, access its configuration settings, and modify the host.json file directly within the portal's editor, making it the most straightforward tool for this task.
Your firm is working on an Azure API. You must implement authentication for the Azure API, and you must meet the following criteria: All API requests must be secure, according to the AZ-204 dumps. Callers to the API must not transmit credentials to the API, according to AZ-204. Which type of authentication should you use?
Answer: Managed identity
Managed identities provide an identity for Azure services in Azure Active Directory, eliminating the need for developers to manage credentials. By using a managed identity, the Azure API can securely authenticate to other Azure services without requiring callers to transmit any credentials, thereby meeting both specified criteria for secure and credential-free authentication.
You're working on an app that uses Azure Blob storage. For auditing purposes, the application must read the transaction logs of all changes to the blobs and blob metadata in the storage account. Only create, update, delete, and copy operations are allowed, and the changes must be kept in the order in which they occurred for compliance reasons. The transaction logs must be processed asynchronously. What are your options?
Answer: On the storage account, enable the change feed and process all changes for available events.
The Azure Blob storage change feed provides a persistent, ordered, read-only log of all changes to blobs and blob metadata in a storage account. Enabling the change feed directly addresses the requirements for auditing, tracking specific operations (create, update, delete, copy), maintaining the order of changes, and allowing asynchronous processing of these transaction logs for compliance and analysis.
User agreements must be kept on file. After the agreement is completed, where should you store it?
Answer: Azure Event Hub
Explanation: Telemetry and distributed data streaming are handled by Azure Event Hub. This service provides a single solution that allows for both real-time data retrieval and recurrent replay of stored raw data. It can save streaming data to a file for analysis and processing. The following are its characteristics: low latency capable of receiving and processing millions of events per second at least once delivery
You create an application that lets users upload photographs and movies to Azure storage. The media is uploaded to a blob storage account named Account1 via a storage REST API call. Container1 and Container2 are two blob storage containers that you have. Video uploading is done on a sporadic basis. When a new movie is uploaded, you must copy specified blobs from Container1 to Container2. What are your options?
Answer: Use the Start-AzureStorageBlobCopy cmdlet to create an Event Grid topic.
Explanation: The Start-AzureStorageBlobCopy cmdlet starts to copy a blob. Example 1: Copy a named blob C:PS>Start-AzureStorageBlobCopy -SrcBlob "ContosoPlanning2015" -DestContainer "ContosoArchives" -SrcContainer "ContosoUploads" This command starts the copy operation of the blob named ContosoPlanning2015 from the container named ContosoUploads to the container named ContosoArchives
You create and launch a web app using Azure App Service. Azure Traffic Manager is used to deploy the app across various regions. The app has Application Insights turned on. You must examine the app's uptime for each month. Which of the two solutions will be the most successful in achieving the goal? Each accurate response provides a comprehensive solution.
Answer: Application Insights alerts
The correct answer: Azure Monitor metrics and Application Insights alerts
You create a web app for Azure App Service. In Azure Active Directory (Azure AD) and Twitter, you create an app registration for the app. Users must be authenticated, and all conversations must be encrypted with SSL. As the identity provider, the app must use Twitter. The Azure AD request must be validated in the app code. What should you confirm?
Answer: ID token header
The correct answer: ID token header
You're building an app that will store data in CosmosDB. Batches of relational data will be processed by the app. For the app, you must choose an API. What API should you employ?
Answer: SQL API
The correct answer: SQL API
You're in charge of a data processing program that gets requests from an Azure Storage queue. You must control who has access to the queue. You must meet the following criteria: Allow access to the Azure queue for other applications. Make sure you can disable queue access without having to re-generate the storage account keys. Access should be specified at the queue level rather than at the storage account level. Should you use a shared access signature (SAS) of a certain type?
Answer: Service SAS with a stored access policy
Explanation: The storage account key protects SAS. SAS grants access to a resource in only one of the Azure Storage services: Blob storage, Queue storage, Table storage, or Azure Files. You can revoke rights for a service SAS using stored access policies rather than having to regenerate the storage account keys.