AZ-204 Knowledge check
Which of the following components of the API Management service would a developer use if they need to create an account and subscribe to get API keys? *API gateway *Azure portal *Developer portal
Developer portal: The Developer portal serves as the main web presence for developers, and is where they can subscribe to get API keys.
Which of the below correctly lists the two components of a partition key? *Key path, synthetic key *Key path, key value *Key value, item ID
Key path, key value: A partition key has two components: partition key path and the partition key value.
Which application pattern would you use for a durable function that is polling a resource until a specific condition is met? *Function chaining *Fan out/fan in *Monitor
Monitor: The monitor pattern refers to a flexible, recurring process in a workflow. An example is polling until specific conditions are met.
Which HTTP method below is used to update a resource with new values? *POST *PATCH *PUT
PATCH: The PATCH method does update a resource with a new value.
Which of the following would one use to validate properties of an item being created? *Pre-trigger *Post-trigger *User-defined function
Pre-trigger: Pre-triggers can be used to conform data before it's added to the container.
What purpose does the outputs section of an Azure Resource Manager template serve? *Specify the resources to deploy. *Return values from the deployed resources *Define values that are reused in your templates.
Return values from the deployed resources: The "outputs" section returns values from the resource(s) that were deployed.
Which of the Azure Cache for Redis service tiers is the lowest tier recommended for use in production scenarios? *Basic *Standard *Premium
Standard: The standard tier is the lowest tier that offers replication,which is always recommended for production scenarios.
By default, all client requests to the app's production URL (http://<app_name>.azurewebsites.net) are routed to the production slot. One can automatically route a portion of the traffic to another slot. What is the default routing rule applied to new deployment slots? 0% 10% 20%
0%: By default, new slots are given a routing rule of 0%.
Caching is important because it allows us to store commonly used values in memory. However, we also need a way to expire values when they're stale. In Redis this is done by applying a time to live (TTL) to a key. Which value represents the expire time resolution? *1 millisecond *10 milliseconds *seconds or milliseconds
1 millisecond: The expire time resolution is always 1 millisecond.
Which type of encryption does Azure App Configuration use to encrypt data at rest? *64-bit AES *128-bit AES *256-bit AES
256-bit AES: Azure App Configuration encrypts sensitive information at rest using a 256-bit AES encryption key provided by Microsoft.
Which of the following Azure Functions hosting plans is best when predictive scaling and costs are required? *Functions Premium Plan *App service plan *Consumption plan
App service plan: App service plans support setting autoscaling rules based on predictive usage.
Which of the following app scenarios require code to handle Conditional Access challenges? *Apps performing the device-code flow *Apps performing the on-behalf-of flow *Apps performing the Integrated Windows authentication flow
Apps performing the on-behalf-of flow: Apps performing the on-behalf-of flow require code to handle Conditional Access challenges.
Which access tier is considered to be offline and can't be read or modified? *Cool *Archive *Hot
Archive: Blobs in the archive tier must be rehydrated to either the hot or cool tier before it can be read or modified.
Which of the following best practices provides the most flexible and secure way to use a service or account shared access signature (SAS)? *Associate SAS tokens with a stored access policy. *Always use HTTPS *Implement a user delegation SAS
Associate SAS tokens with a stored access policy: The most flexible and secure way to use a service or account SAS is to associate the SAS tokens with a stored access policy.
Which of these statements best describes autoscaling? *Autoscaling requires an administrator to actively monitor the workload on a system. *Autoscaling is a scale out/scale in solution. *Scaling up/scale down provides better availability than autoscaling.
Autoscaling is a scale out/scale in solution: The system can scale out when specified resource metrics indicate increasing usage, and scale in when these metrics drop.
Which of the below represents a logical grouping of VMs that allows Azure to understand how your application is built to provide for redundancy and availability? *Load balancer *Availability zone *Availability set
Availability set: An availability set is a logical grouping of VMs Reason.
An organization wants to implement a serverless workflow to solve a business problem. One of the requirements is the solution needs to use a designer-first (declarative) development model. Which of the choices below meets the requirements? *Azure Functions *Azure Logic Apps *WebJobs
Azure Logic Apps: Azure Logic Apps enables serverless workloads and uses a designer-first (declarative) development model.
Which of the following supports both the in and out direction settings? *Bindings *Trigger *Connection value
Bindings: Input and output bindings use in and out.
Which of the following classes of the Azure Storage client library for .NET allows you to manipulate both Azure Storage containers and their blobs? *BlobClient *BlobContainerClient *BlobUriBuilder
BlobContainerClient: The BlobContainerClient can be used to manipulate both containers and blobs.
Each Azure subscription has default limits on resources needed for an Azure Content Delivery Network. Which of the following resources has subscription limitations that may impact your solution? *Resource group *CDN profiles *Storage account
CDN profiles: The number of CDN profiles that can be created is limited by the type of Azure subscription.
Which of the following represents when an event processor marks or commits the position of the last successfully processed event within a partition? *Checkpointing *Scale *Load balance
Checkpointing: Checkpointing is a process by which an event processor marks or commits the position of the last successfully processed event within a partition.
Which Azure Resource Manager template deployment mode deletes resources in a resource group that aren't specified in the template? *Incremental *Complete *Both incremental and complete delete resources
Complete: Complete mode will delete resources not specified in an Azure Resource Manager template deployment.
Which of the following App Service plans supports only function apps? *Dedicated *Isolated *Consumption
Consumption: The consumption tier is only available to function apps. It scales the functions dynamically depending on workload.
Which of the following availability tests is recommended for authentication tests? *URL ping *Standard *Custom TrackAvailability
Custom TrackAvailability: Custom TrackAvailability test is the long term supported solution for multi request or authentication test scenarios.
Which of the types of permissions supported by the Microsoft identity platform is used by apps that have a signed-in user present? *Delegated permissions *Application permissions *Both delegated and application permissions
Delegated permissions: Delegated permissions are used by apps that have a signed-in user present. The app is delegated with the permission to act as a signed-in user when it makes calls to the target resource.
Which of the following types of application logging is supported on the Linux platform? *Web server logging *Failed request tracing *Deployment logging
Deployment logging: Deployment logging is supported on the Linux platform.
Which of the following durable function types is used to read and update small pieces of state? *Orchestrator *Activity *Entity
Entity: Entity functions define operations for reading and updating small pieces of state.
Which of the following Event Grid built-in roles is appropriate for managing Event Grid resources? *Event Grid Contributor *Event Grid Subscription Contributor *Event Grid Data Sender
Event Grid Contributor: The Event Grid Contributor role has permissions to manage resources.
Which of the following consistency levels below offers the greatest throughput? *Strong *Session *Eventual
Eventual: The eventual consistency level offers the greatest throughput at the cost of weaker consistency.
Which of the below evaluates the state of a feature flag? *Feature flag *Feature manager *Filter
Filter: A filter is a rule for evaluating the state of a feature flag. A user group, a device or browser type, a geographic location, and a time window are all examples of what a filter can represent.
Which of the following storage account types supports lifecycle policies? *General Purpose v1 *General Purpose v2 *FileStorage
General Purpose v2: Azure Blob storage lifecycle management offers a rich, rule-based policy for General Purpose v2 and Blob storage accounts.
Which of the following Azure virtual machine types is most appropriate for testing and development? *Compute optimized *General Purpose *Storage optimized
General Purpose: This type has a balanced CPU-to-memory ratio, and is ideal for testing and development.
In which of the app configuration settings categories below would you set the language and SDK version? *Application settings *Path mappings *General settings
General settings: This category is used to configure stack, platform, debugging, and incoming client certificate settings.
Which of the following types of storage accounts is recommended for most scenarios using Azure Storage? *General-purpose v2 *General-purpose v1 *FileStorage
General-purpose v2: This supports blobs, files, queues, and tables. It's recommended for most scenarios using Azure Storage.
Which of the following networking features of App Service can be used to control outbound network traffic? *App-assigned address *Hybrid Connections *Service endpoints
Hybrid Connections: Hybrid Connections are an outbound network feature.
Which of the following characteristics is indicative of user-assigned identities? *Shared lifecycle with an Azure resource *Independent life-cycle *Can only be associated with a single Azure resource
Independent life-cycle: User-assigned identities exist independently from the resources they're associated with and must be explicitly deleted.
Which of the following standard HTTP headers are supported for both containers and blobs when setting properties by using REST? *Last-Modified *Content-Length *Origin
Last-Modified: Last-Modified is supported on both containers and blobs.
Which of the following MSAL libraries supports single-page web apps? *MSAL Node *MSAL.js *MSAL.NET
MSAL.js: MSAL.js supports single-page applications.
Which of the below methods of authenticating to Azure Key Vault is recommended for most scenarios? *Service principal and certificate *Service principal and secret *Managed identities
Managed identities: The benefit of this approach is that Azure automatically rotates the identity.
Which of the following advanced features of Azure Service Bus creates a first-in, first-out (FIFO) guarantee? *Transactions *Scheduled delivery *Message sessions
Message sessions: To create a first-in, first-out (FIFO) guarantee in Service Bus, use sessions. Message sessions enable joint and ordered handling of unbounded sequences of related messages.
Which of the components of the Microsoft 365 platform is used to deliver data external to Azure into Microsoft Graph services and applications? *Microsoft Graph API *Microsoft Graph connectors *Microsoft Graph Data Connect
Microsoft Graph connectors: Microsoft Graph connectors work in the incoming direction. Connectors exist for many commonly used data sources such as Box, Google Drive, Jira, and Salesforce.
Which of the following Microsoft Graph .NET SDK packages provides an authentication scenario-based wrapper of the Microsoft Authentication Library? *Microsoft.Graph *Microsoft.Graph.Core *Microsoft.Graph.Auth
Microsoft.Graph.Auth: The Microsoft.Graph.Auth package provides an authentication scenario-based wrapper of the Microsoft Authentication Library for use with the Microsoft Graph SDK.
Which of the following choices correctly lists the two parts of a feature flag? *Name, App Settings *Name, one or more filters *Feature manager, one or more filters
Name, one or more filters: Each feature flag has two parts: a name and a list of one or more filters that are used to evaluate if a feature's state is on.
When publishing a website through Azure CDN, the files on that site are cached until their time-to-live (TTL) expires. What is the default TTL for large file optimizations? *One day *One week *One year
One day: The default TTL for large file optimizations is one day.
Which of the following types of blobs are used to store virtual hard drive files? *Block blobs *Append blobs *Page blobs
Page blobs: Page blobs store random access files up to 8 TB in size, and are used to store virtual hard drive (VHD) files and serve as disks for Azure virtual machines.
Which of the following Event Hubs concepts represents an ordered sequence of events that is held in an Event Hub? *Consumer group *Partition *Event Hub producer
Partition: A partition is an ordered sequence of events that is held in an Event Hub.
In Azure Service Bus messages are durably stored which enables a load-leveling benefit. Which of the below correctly describes the load-leveling benefit relative to a consuming application's performance? *Performance needs to handle peak load *Performance needs to handle average load *Performance needs to handle low loads
Performance needs to handle average load: Intermediating message producers and consumers with a queue means that the consuming application only has to be able to handle average load instead of peak load.
Which of the options below best describes the relationship between logical and physical partitions? *Logical partitions are collections of physical partitions. *Physical partitions are collections of logical partitions *There's no relationship between physical and logical partitions.
Physical partitions are collections of logical partitions: One or more logical partitions are mapped to a single physical partition.
Which of the following metric collection types below provides near real-time querying and alerting on dimensions of metrics, and more responsive dashboards? *Log-based *Pre-aggregated *Azure Service Bus
Pre-aggregated: Pre-aggregated metrics are stored as a time series and only with key dimensions, which enable near real-time alerting on dimensions of metrics, more responsive dashboards.
Which of the following Azure Container Registry support geo-replication to manage a single registry across multiple regions? *Basic *Standard *Premium
Premium: The premium tier adds geo-replication as a feature.
When setting up Azure Cosmos DB there are three account type options. Which of the account type options below is used to specify the number of RUs for an application on a per-second basis? *Provisioned throughput *Serverless *Autoscale
Provisioned throughput: In this mode, you provision the number of RUs for your application on a per-second basis in increments of 100 RUs per second.
A client app requests managed identities for an access token for a given resource. Which of the below is the basis for the token? *Oauth 2.0 *Service principal *Virtual machine
Service principal: The token is based on the managed identities for Azure resources service principal.
When defining a stored procedure in the Azure portal input parameters are always sent as what type to the stored procedure? *String *Integer *Boolean
String: When defining a stored procedure in Azure portal, input parameters are always sent as a string to the stored procedure.
Which of the following event schema properties requires a value? Topic Data Subject
Subject: The subject property specifies the publisher-defined path to the event subject and is required.
Which of these scenarios is a suitable candidate for autoscaling? *The number of users requiring access to an application varies according to a regular schedule. For example, more users use the system on a Friday than other days of the week. *The system is subject to a sudden influx of requests that grinds your system to a halt. *Your organization is running a promotion and expects to see increased traffic to their web site for the next couple of weeks.
The number of users requiring access to an application varies according to a regular schedule. For example, more users use the system on a Friday than other days of the week: Changes in application load that are predictable are good candidates for autoscaling.
Azure Key Vault protects data when it is traveling between Azure Key Vault and clients. What protocol does it use for encryption? *Secure Sockets Layer *Transport Layer Security *Presentation Layer
Transport Layer Security: Azure Key Vault enforces Transport Layer Security protocol to protect data when it's traveling between Azure Key Vault and clients.
Which of the following is required for a function to run? *Binding *Trigger *Both triggers and bindings
Trigger: A trigger defines how a function is invoked and a function must have exactly one trigger.
Which of the following types of shared access signatures (SAS) applies to Blob storage only? *Account SAS *Service SAS *User delegation SAS
User delegation SAS: A user delegation SAS is secured with Azure Active Directory credentials and also by the permissions specified for the SAS. A user delegation SAS applies to Blob storage only.
Some configuration elements follow the content across a swap (not slot specific), whereas other configuration elements stay in the same slot after a swap (slot specific). Which of the settings below are swapped? *Publishing endpoints *WebJobs content *WebJobs schedulers
WebJobs content: WebJobs content are swapped.
Which of the methods below is recommended when deploying a multi-container group that includes only containers? *Azure Resource Management template *YAML file *az container creates command
YAML file: Due to the YAML format's more concise nature, a YAML file is recommended when your deployment includes only container instances.
Which of the following API Management policies would one use if one wants to apply a policy based on a condition? *forward-request *choose *return-response
choose: The choose policy applies enclosed policy statements based on the outcome of evaluation of boolean expressions.
There are multiple rules in an autoscale profile. Which of the following scale operations will run if any of the rule conditions are met? *scale-out *scale-in *scale-out/in
scale-out: Scale-out operations will trigger if any of the rule conditions are met.