Microsoft Developing Solutions for Microsoft Azure (AZ-204 Korean Version) - AZ-204 Korean Exam Practice Test

Azure Container Apps에서 실행되는 여러 개의 마이크로서비스를 개발하고 있습니다.
마이크로서비스는 사용자 지정 도메인을 사용하여 HTTPS 액세스를 허용해야 합니다.
Azure Container Apps에서 사용자 지정 도메인을 구성해야 합니다.
어떤 순서로 동작을 수행해야 할까요? 답변하려면 동작 목록에 있는 모든 동작을 답변 영역으로 옮기고 올바른 순서대로 정리하세요.
Correct Answer:

Explanation:
Contoso, Ltd.는 APIM(Azure API Management)을 사용하여 고객에게 API를 제공합니다. API는 JWT 토큰으로 사용자에게 권한을 부여합니다.
APIM 게이트웨이에 대한 응답 캐싱을 구현해야 합니다. 캐싱 메커니즘은 지정된 위치의 데이터에 액세스하는 클라이언트의 사용자 ID를 감지하고 해당 사용자 ID에 대한 응답을 캐시해야 합니다.
정책 파일에 다음 정책을 추가해야 합니다.
* 감지된 사용자 신원을 저장하기 위한 set-variable 정책
* 캐시 조회 값 정책
* 캐시 저장 가치 정책
* 사용자 프로필 정보로 응답 본문을 업데이트하는 찾기 및 바꾸기 정책 정책을 추가해야 하는 정책 섹션은 무엇입니까? 응답하려면 적절한 섹션을 올바른 정책으로 드래그하십시오. 각 섹션은 한 번, 두 번 이상 사용하거나 전혀 사용하지 않을 수 있습니다. 창 사이의 분할 막대를 끌거나 콘텐츠를 보려면 스크롤해야 할 수 있습니다. 참고: 각 올바른 선택은 1점의 가치가 있습니다.
Correct Answer:

Explanation:

Box 1: Inbound.
A set-variable policy to store the detected user identity.
Example:
< policies >
< inbound >
< !-- How you determine user identity is application dependent -- >
< set-variable
name= " enduserid "
value= " @(context.Request.Headers.GetValueOrDefault( " Authorization " , " " ).Split( ' ' )[1].AsJwt()?.
Subject) " / >
Box 2: Inbound
A cache-lookup-value policy
Example:
< inbound >
< base / >
< cache-lookup vary-by-developer= " true | false " vary-by-developer-groups= " true | false " downstream- caching-type= " none | private | public " must-revalidate= " true | false " >
< vary-by-query-parameter > parameter name < /vary-by-query-parameter > < !-- optional, can repeated several times -- >
< /cache-lookup >
< /inbound >
Box 3: Outbound
A cache-store-value policy.
Example:
< outbound >
< base / >
< cache-store duration= " 3600 " / >
< /outbound >
Box 4: Outbound
A find-and-replace policy to update the response body with the user profile information.
Example:
< outbound >
< !-- Update response body with user profile-- >
< find-and-replace
from= ' " $userprofile$ " '
to= " @((string)context.Variables[ " userprofile " ]) " / >
< base / >
< /outbound >
Reference:
https://docs.microsoft.com/en-us/azure/api-management/api-management-caching-policies
https://docs.microsoft.com/en-us/azure/api-management/api-management-sample-cache-by-key
Azure Table Storage를 사용하여 애플리케이션에 대한 고객 정보를 저장합니다. 데이터에는 고객 세부 정보가 포함되며 성으로 분할됩니다. Smith라는 성이 있는 모든 고객을 반환하는 쿼리를 만들어야 합니다. 어떤 코드 세그먼트를 사용해야 합니까?

Correct Answer: B Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
강력한 일관성 수준과 컨테이너당 10,000RU(요청 단위)를 사용하는 Azure Cosmos 06 인스턴스가 있습니다. <3eo 복제가 활성화되었습니다.
인스턴스는 위치, 메뉴 항목 및 시작을 포함한 레스토랑 정보를 저장합니다. 현재 1,000개의 레스토랑 위치, 500개의 메뉴 항목 및 10,000명의 직원에 대한 정보를 저장하고 있습니다. 위치 ID를 파티션 키로 선택합니다.
컨테이너에 대해 생성되는 논리적 파티션은 몇 개입니까?

Correct Answer: C Vote an answer
ContentReview 역할을 구현하려면 AM04 행에 마크업을 추가해야 합니다.
마크업을 어떻게 완성해야 합니까? 대답하려면 적절한 json 세그먼트를 올바른 위치로 드래그하십시오.
각 json 세그먼트는 한 번, 두 번 이상 또는 전혀 사용되지 않을 수 있습니다. 콘텐츠를 보려면 창 사이의 분할 막대를 끌거나 스크롤해야 할 수 있습니다.
참고: 각 올바른 선택은 1점의 가치가 있습니다.
Correct Answer:

Explanation:

Box 1: allowedMemberTypes
allowedMemberTypes specifies whether this app role definition can be assigned to users and groups by setting to " User " , or to other applications (that are accessing this application in daemon service scenarios) by setting to " Application " , or to both.
Note: The following example shows the appRoles that you can assign to users.
" appId " : " 8763f1c4-f988-489c-a51e-158e9ef97d6a " ,
" appRoles " : [
{
" allowedMemberTypes " : [
" User "
],
" displayName " : " Writer " ,
" id " : " d1c2ade8-98f8-45fd-aa4a-6d06b947c66f " ,
" isEnabled " : true,
" description " : " Writers Have the ability to create tasks. " ,
" value " : " Writer "
}
],
" availableToOtherTenants " : false,
Box 2: User
Scenario: In order to review content a user must be part of a ContentReviewer role.
Box 3: value
value specifies the value which will be included in the roles claim in authentication and access tokens.
Reference:
https://docs.microsoft.com/en-us/graph/api/resources/approle
전자상거래 웹 앱에서 사용자 클레임 개체의 데이터에 액세스해야 합니다.
먼저 무엇을 해야 합니까?

Correct Answer: D Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
로그 정책이 모든 서비스에 적용되도록 하려면 EventGridController.cs의 EG15 줄에 코드를 추가해야 합니다.
코드를 어떻게 완성해야 합니까? 응답하려면 적절한 코드 세그먼트를 올바른 위치로 드래그하십시오.
각 코드 세그먼트는 한 번, 두 번 이상 또는 전혀 사용되지 않을 수 있습니다. 콘텐츠를 보려면 창 사이의 분할 막대를 끌거나 스크롤해야 할 수 있습니다.
참고: 각 올바른 선택은 1점의 가치가 있습니다.
Correct Answer:

Explanation:

Scenario, Log policy: All Azure App Service Web Apps must write logs to Azure Blob storage.
Box 1: Status
Box 2: Succeeded
Box 3: operationName
Microsoft.Web/sites/write is resource provider operation. It creates a new Web App or updates an existing one.
Reference:
https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations
Order.json에서 모든 주문 라인 항목을 검색하고 데이터를 도시별로 알파벳순으로 정렬해야 합니다.
코드를 어떻게 완성해야 합니까? 대답하려면 대답 영역에서 적절한 옵션을 선택하십시오.
참고: 각 올바른 선택은 1점의 가치가 있습니다.
Correct Answer:

Explanation:

Box 1: orders o
Scenario: Order data is stored as nonrelational JSON and must be queried using SQL.
Box 2:li
Box 3: o.line_items
Box 4: o.city
The city field is in Order, not in the 2s.
Azure에서 서버리스 Java 애플리케이션을 개발하고 있습니다. 새 Azure Functions 애플리케이션의 비밀을 사용하기 위해 새 Azure Key Vault를 만듭니다.
애플리케이션은 다음 요구 사항을 충족해야 합니다.
* Java 코드를 변경할 필요 없이 Azure Key Vault를 참조합니다.
* 들어오는 애플리케이션 이벤트 수에 따라 Azure Functions 호스트의 인스턴스를 동적으로 추가 및 제거합니다.
* 콜드 스타트를 방지하기 위해 인스턴스가 지속적으로 웜 상태인지 확인하십시오.
* VNet에 연결합니다.
* Azure Function 애플리케이션이 삭제된 경우 Azure Key Vault 인스턴스에 대한 인증을 제거해야 합니다.
Azure Key Vault에 대한 Azure Functions 애플리케이션 액세스 권한을 부여해야 합니다.
어떤 세 가지 작업을 순서대로 수행해야 합니까? 응답하려면 작업 목록에서 해당 작업을 응답 영역으로 이동하고 올바른 순서로 정렬하십시오.
Correct Answer:

Explanation:

Step 1: Create the Azure Functions app with a Consumption plan type.
Use the Consumption plan for serverless.
Step 2: Create a system-assigned managed identity for the application.
Create a system-assigned managed identity for your application.
Key Vault references currently only support system-assigned managed identities. User-assigned identities cannot be used.
Step 3: Create an access policy in Key Vault for the application identity.
Create an access policy in Key Vault for the application identity you created earlier. Enable the " Get " secret permission on this policy. Do not configure the " authorized application " or applicationId settings, as this is not compatible with a managed identity.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-references
여러분은 플레이어가 일정 거리 내에서 같은 팀의 다른 플레이어와 상호 작용할 수 있는 기능을 포함하는 온라인 게임을 개발하고 있습니다. 범위 내의 플레이어를 결정하는 계산은 플레이어가 이동하고 Azure Cache for Redis 인스턴스에 캐시될 때 발생합니다.
시스템은 플레이어가 얼마나 최근에 이동했는지에 따라 우선순위를 정해야 하며 게임에서 로그아웃한 플레이어는 우선순위를 정해서는 안 됩니다. 퇴거 정책을 선택해야 합니다. 어떤 퇴거 정책을 사용해야 합니까?

Correct Answer: D Vote an answer
Azure 솔루션을 개발하고 있습니다.
Azure Key Vault에 저장된 비밀에 액세스하려면 코드를 개발해야 합니다.
코드 세그먼트를 어떻게 완성해야 합니까? 응답하려면 적절한 코드 세그먼트를 올바른 위치로 드래그하십시오. 각 코드 세그먼트는 한 번, 두 번 이상 또는 전혀 사용되지 않을 수 있습니다. 콘텐츠를 보려면 창 사이의 분할 막대를 끌거나 스크롤해야 할 수 있습니다.
참고: 각 올바른 선택은 1점의 가치가 있습니다.
Correct Answer:

Explanation:

Box 1: SecretClient
Box 2: DefaultAzureCredential
In below example, the name of your key vault is expanded to the key vault URI, in the format " https:// < your- key-vault-name > .vault.azure.net " . This example is using ' DefaultAzureCredential() ' class from Azure Identity Library, which allows to use the same code across different environments with different options to provide identity.
string keyVaultName = Environment.GetEnvironmentVariable( " KEY_VAULT_NAME " ); var kvUri = " https:// " + keyVaultName + " .vault.azure.net " ; var client = new SecretClient(new Uri(kvUri), new DefaultAzureCredential()); Reference:
https://docs.microsoft.com/en-us/azure/key-vault/secrets/quick-create-net
Azure App Service 웹앱을 배포합니다. Azure AD(Azure Active Directory) 및 Twitter에서 앱에 대한 앱 등록을 만듭니다. 앱은 사용자를 인증해야 하며 모든 통신에 SSL을 사용해야 합니다.
앱은 Twitter를 ID 공급자로 사용해야 합니다. 앱 코드에서 Azure AD 요청의 유효성을 검사해야 합니다.
무엇을 검증해야 합니까?

Correct Answer: C Vote an answer
Azure API Management에 여러 API를 개발하고 배포합니다.
APICounts라는 다음 정책 조각을 생성합니다.

정책 조각은 다양한 범위와 API에서 재사용되어야 합니다. 정책 조각은 모든 API에 적용되어야 하며 호출 시스템이 API를 호출할 때 실행되어야 합니다.
정책 조각을 구현해야 합니다.
정책 세그먼트를 어떻게 완료해야 합니까? 대답하려면 적절한 XML 요소를 올바른 대상으로 드래그하세요. 각 XML 요소는 한 번, 두 번 이상 사용되거나 전혀 사용되지 않을 수 있습니다. 내용을 보려면 창 사이의 분할 막대를 끌거나 스크롤해야 할 수도 있습니다.
참고: 올바른 선택은 각각 1점의 가치가 있습니다.
Correct Answer:

Explanation:

https://learn.microsoft.com/en-us/azure/api-management/include-fragment-policy

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어