アプリケーションを開発しています。 ConfigurationBuilderクラスのインスタンスを使用して、開発デバイス上のユーザーシークレット、構成文字列、およびその他の機密変数を取得します。
アプリケーションに新しい機能を追加します。
アプリケーションシークレットを取得する必要があります。
何を実装する必要がありますか?回答するには、適切なテクノロジーを正しい構成オプションにドラッグします。各テクノロジーは、1回、複数回、またはまったく使用しない場合があります。ペイン間で分割バーをドラッグするか、コンテンツを表示するにはスクロールする必要がある場合があります。
注:それぞれの正しい選択は1ポイントの価値があります。


Explanation:
Box 1: Secret Manager tool
Box 2: Environment variables
Box 3: Microsoft Azure Key Vault
References:
https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-2.1&tabs=visual-studio
https://www.humankode.com/asp-net-core/asp-net-core-configuration-best-practices-for-keeping-secrets-out-of-source-control
サードパーティのデータベースに対してフォーム認証を使用するASP.NET MVCアプリケーションを開発しています。
ユーザーを認証する必要があります。
どのコードセグメントを使用する必要がありますか?

Visual Studio 2012でASP.NET MVCアプリケーションを開発しています。アプリケーションは、デスクトップデバイスとモバイルデバイスのブラウザーで表示されます。アプリケーションは、Razor View Engineを使用してデータを表示します。
アプリケーションには、/ Views / Sharedディレクトリにある2つのレイアウトが含まれています。
これらのレイアウトの名前は次のとおりです。

アプリケーションは、ユーザーがモバイルデバイスから閲覧しているかどうかを検出する必要があります。ユーザーがモバイルデバイスから閲覧している場合、アプリケーションは_MobileLayout.cshtmlファイルを使用する必要があります。ユーザーがデスクトップデバイスから閲覧している場合、アプリケーションは.Layout、cs htmlを使用する必要があります。
アプリケーションがブラウザに適したレイアウトをレンダリングすることを確認する必要があります。
次のコードがあります。

ViewStart.cshtmlファイルのコードを完成させるには、ターゲット1、ターゲット2、ターゲット3にどのコードセグメントを含める必要がありますか? (回答するには、適切なコードセグメントを正しいターゲットにドラッグします。各コードセグメントは、1回使用することも、複数回使用することも、まったく使用しないこともあります。コンテンツを表示するには、ペイン間でスプリットバーをドラッグするか、スクロールする必要がある場合があります。)


企業には、.NETフレームワーク全体を対象とするエンタープライズライブラリがあります。
ライブラリをターゲットの.NET Standardに変換する必要があります。元のプロジェクトファイルを.NET Standardプロジェクトファイルに置き換えます。ライブラリをコンパイルすると、コンパイラは次のエラーをスローします。

エラーを解決する必要があります。
どの2つのアクションを実行する必要がありますか?それぞれの正解は、ソリューションの一部を示しています。 (2つ選択してください。)注:それぞれの正しい選択は1ポイントの価値があります。
製品情報を表示するASP.NET MVCアプリケーションを開発しています。アプリケーションには2つのビューがあります。最初のビューには、製品名のリストが表示されます。製品名を選択すると、2番目のビューに、選択した製品の詳細情報が表示されます。製品詳細ビューは、選択された製品の識別子として含まれるクエリ文字列値を受け取ります。
アプリケーションの製品コントローラーには、次の要件があります。

製品コントローラーを実装する必要があります。
関連するコードをどのように完成させる必要がありますか?回答するには、回答領域の各リストから適切なコードを選択します。


Explanation:
Box 1: [OutputCache(Duration = 86400, VaryByParam ="none")]
The list of products must be cached daily. One day is 86400 seconds (60*60*24).
Note: The Duration parameter is the time, in seconds, that the page or user control is cached. Setting this attribute on a page or user control establishes an expiration policy for HTTP responses from the object and will automatically cache the page or user control output.
Box 2: [OutputCache(Duration = 3600, VaryByParam ="id")]
The product details view must cache data for one hour, based on the product that is selected. One hour is 3600 seconds (60* 60).
References: https://msdn.microsoft.com/en-us/library/hdxfb6cy(v=vs.100).aspx
ASP.NET MVCアプリケーションを開発しています。
アクションを実行する前に、アクションに関する情報をログに書き込む必要があります。結果が返された後、結果に関する情報もログに書き込む必要があります。
アクションと結果をログに記録する必要があります。
次のコードがあります。

LogActionFilterクラスを実装するには、ターゲット1、ターゲット2、ターゲット3にどのコードセグメントを含める必要がありますか? (回答するには、回答領域のドロップダウンリストから適切なオプションを選択します。)


Explanation:
Target 1: IActionFilter
MVC3 introduced a completely new pattern to configure filters for controllers and its actions. While injection of filter attributes is still supported it is recommended using this new pattern for filter configuration because it has the advantage to support constructor injection and does not require the InjectAttribute anymore.
First of all you have to create your filter class by implementing one of the filter interfaces e.g. IActionFilter.
Target 2: public void OnActionExecuting(ActionExecutingContext filterContext) Target 3: public void OnActionExecuted(ActionExecutedContext filterContext) References:
Views / RunLog / GetLog.cshtmlビューでテーブルのすべての行を太字にする必要があります。
どのコードセグメントを使用する必要がありますか?
次のクラスを含むASP.NET MVC 4アプリケーションを開発しています。行番号は参照用にのみ含まれています。

次の各ステートメントについて、ステートメントがtrueの場合は[はい]を選択します。それ以外の場合は、[いいえ]を選択します。


Explanation:
Box 1: No
Line 7 executes fine as Name is the string Contoso.
Box 2: Yes
The assertion of Line 16 fails as the Boolean expression net|=0 evaluates to false (500-500 equals 0).
Note: An assertion verifies an assumption of truth for compared conditions. The assertion is central to the unit test. The Assert class provides many static methods for verifying suppositions of truth. If the condition being verified is not true, the assertion fails. The Assert class throws an AssertFailedException to signal a failure.
Box 3: No
The Boolean expression on line 22, balance >= 0.0f, evaluates to 0 >=0.0f (true), as balance is set to 0.0f at line 21, and because Contract.ensures is a postcondition.
Note: The Contract.Ensures method specifies a postcondition contract for the enclosing method or property.
References: https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.assert.aspx
http://stackoverflow.com/questions/7052640/how-does-contract-ensures-work
カスタムAPIを持つアプリケーションを管理します。あなたの会社は別の会社を購入します。購入した会社の従業員は、独自のMicrosoft Azure Active Directory(Azure AD)を使用しています。
アプリケーションを再構成して、すべてのユーザーがAPIを使用してアプリケーションにアクセスできるようにする必要があります。次の要件があります。
Azure API管理の認証を実装します。
適切な認証のためにAPIゲートウェイを構成します。
メトリックを1つのダッシュボードに統合します。
すべてのロールに追加の制限を適用します。
何を実装する必要がありますか?回答するには、回答領域のダイアログボックスで適切なオプションを構成します。
注:それぞれの正しい選択は1ポイントの価値があります。


Explanation:
Box 1: Groups
Add an external Azure AD group
After you enable access for users in an Azure AD instance, you can add Azure AD groups in API Management. Then, you can more easily manage the association of the developers in the group with the desired products.
To configure an external Azure AD group, you must first configure the Azure AD instance on the Identities tab by following the procedure in the previous section.
You add external Azure AD groups from the Groups tab of your API Management instance.
Box 2: Policies
Policies are applied inside the gateway which sits between the API consumer and the managed API. The gateway receives all requests and usually forwards them unaltered to the underlying API. However a policy can apply changes to both the inbound request and outbound response.
Box 3: Application Insights
Application Insights is an extensible Application Performance Management (APM) service for web developers on multiple platforms. Use it to monitor your live web application.
Box 4: Role-Based Access Control (RBAC)
Apply additional restrictions to all roles.
Azure API Management relies on Azure Role-Based Access Control (RBAC) to enable fine-grained access management for API Management services and entities (for example, APIs and policies).
References:
https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-aad
https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-policies
https://docs.microsoft.com/en-us/azure/api-management/api-management-role-based-access-control