Friday, August 29, 2025

Blob storage - Practice Tests


You are building a website that uses Azure Blob storage for data storage. You configure Azure Blob storage lifecycle to move all blobs to the archive tier after 30 days. Customers have requested a service-level agreement (SLA) for viewing data older than 30 days. You need to document the minimum SLA for data recovery. Which SLA should you use? 

  • A. At least two days 
  • B. Between one and 15 hours 
  • C. At least one day 
  • D. Between zero and 60 minutes

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


You are developing an Azure solution to collect point-of-sale (POS) device data from 2,000 stores located throughout the world. A single device can produce 2 megabytes (MB) of data every 24 hours. Each store location has one to five devices that send data. You must store the device data in Azure Blob storage. Device data must be correlated based on a device identifier. Additional stores are expected to open in the future. You need to implement a solution to receive the device data.

Solution: Provision an Azure Event Grid. Configure the machine identifier as the partition key and enable capture.

Does the solution meet the goal?

  • A. Yes
  • B. No

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

You have an Azure blob container named container1 in a storage account named storageaccount1, which has its access tier set to the default value. The container is used to store files such as documents, PDFs, and text files in support of a web-based application you have developed.

Most files are added, modified, and deleted regularly, with none of these files remaining in the tier longer than 30 days. Others are accessed less frequently and may remain in the tier for up to 120 days. A few of the larger files are stored for archive purposes only and are kept for up to two years. All files must be available without delay when needed. You do not want to incur any penalty fees for removing files before the tier requirement is met.

Your organization needs to lower the cost of storing these files as much as possible while still meeting the current requirements. You decide to create a lifecycle management policy rule as shown in the exhibit.

For each of the following statements, select "Yes" if the statement is true. Otherwise, select "No."


Statements

  1. The rule settings lower the cost of storing these files as much as possible.
    Yes ☐ No ☐

  2. The rule settings prevent your organization from incurring any penalty fees for removing files before the tier requirement is met.
    Yes ☐ No ☐

  3. The rule settings allow all files to be available without delay when needed.
    Yes ☐ No ☐




{
  "rules": [
    {
      "enabled": true,
      "name": "OptimizeFileStorageCosts",
      "type": "Lifecycle",
      "definition": {
        "filters": {
          "blobTypes": [
            "blockBlob"
          ],
          "prefixMatch": [
            "container1/"
          ]
        },
        "actions": {
          "baseBlob": {
            "tierToCool": {
              "daysAfterModificationGreaterThan": 30
            },
            "tierToArchive": {
              "daysAfterModificationGreaterThan": 120
            },
            "delete": {
              "daysAfterModificationGreaterThan": 730
            }
          }
        }
      }
    }
  ]
}

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

You create a blob storage account in Azure.

You need to add metadata to a container in the account.

Which HTTP method should you use?

Choose the correct answer:

  • PUT

  • POST

  • GET

  • HEAD



>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


You have an Azure blob container named container1 in a storage account named storageaccount1, used to store documents for an application.

Due to regulations, some files must be kept for five years and then removed to minimize storage costs. Your organization needs a low/no code automated solution with minimal development time to meet this requirement.

What should you do?

Choose the correct answer:

  • Create a Power Automate Workflow that checks the creation date of files in the container and removes those that have been stored for five years.

  • Create an Azure Logic App that checks the creation date of files in the container and removes those that have been stored for five years.

  • Create a Storage Lifecycle Management Rule that checks the creation date of files in the container and removes those that have been stored for five years.

  • Create an Azure Function that checks the creation date of files in the container and removes those that have been stored for five years.



>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


You have a script that issues the following HTTP request:

PUT https://company1.blob.core.windows.net/taxreturns/2019.pdf?comp=lease HTTP/1.1 x-ms-version: 2018-03-28 x-ms-lease-action: acquire x-ms-lease-duration: 60 x-ms-proposed-lease-id: 18f12371-b41f-43e6-a153-e4b542f851c5 x-ms-date: Tue, 12 Mar 2019 10:23:27 GMT Authorization: SharedKey company1:esSLMOYaK4O+xGTuKyeOLBI+xrnqi6aBniE4XI499+o=

You need to determine what this request does.

What should you conclude?

Choose the correct answer:

  • It sets properties on a blob named 2019.pdf that causes the blob to automatically be deleted after one hour.

  • It prevents the 2019.pdf blob from being deleted or overwritten for one minute.

  • It sets metadata on a blob named 2019.pdf that causes the blob to be read-write for only one hour.

  • It uploads a blob named 2019.pdf to the taxreturns container and times out after one minute.


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

You manage a .Net Core application that manages images for an advertising company.

The images are stored in containers in a storage account with read access geo-zone-redundant storage (RA-GZRS) redundancy to achieve high availability and maximum durability. In the event of a regional outage, the application should be able to read data from a secondary storage replication. The secondary storage replication should only be used if primary storage is unavailable.

You develop the following code to create the object responsible for uploading and reading images from blob storage:

C#
string storageConnectionString = Environment.GetEnvironmentVariable("storageconnectionstring");
BlobServiceClient blobServiceClient = new BlobServiceClient(storageConnectionString);
BlobContainerClient containerClient = blobServiceClient.GetBlobContainerClient("your-container-name");

You need to configure the blob service client to meet the high availability requirements.

Which location mode option should you use?


Choose the correct answer

  • blobServiceClient.ClientOptions.LocationMode = LocationMode.PrimaryThenSecondary;

  • blobServiceClient.ClientOptions.LocationMode = LocationMode.SecondaryThenPrimary;

  • blobServiceClient.ClientOptions.LocationMode = LocationMode.PrimaryOnly;

  • blobServiceClient.ClientOptions.LocationMode = LocationMode.SecondaryOnly;




>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>










No comments:

Post a Comment