nerdexam
Microsoft

70-475 · Question #32

Your app uses an Azure File Share. The app must be able to list, view, and modify files, but it cannot delete them. The app must set the permissions to expire one day in the future based on…

The correct answer is A. var policy = new Microsoft.WindowsAzure.Storage.File.SharedAccessFilePolicy() {. See the full explanation below for the reasoning.

Question

Your app uses an Azure File Share. The app must be able to list, view, and modify files, but it cannot delete them. The app must set the permissions to expire one day in the future based on universal time. You need to write the code to meet these requirements. Which block of code should you use?

Options

  • Avar policy = new Microsoft.WindowsAzure.Storage.File.SharedAccessFilePolicy() {
  • Bvar policy = new Microsoft.WindowsAzure.Storage.File.SharedAccessFilePolicy() {
  • Cvar policy = new Microsoft.WindowsAzure.Storage.File.SharedAccessFilePolicy() {
  • Dvar policy = new Microsoft.WindowsAzure.Storage.File.SharedAccessFilePolicy() {

How the community answered

(41 responses)
  • A
    85% (35)
  • B
    10% (4)
  • C
    2% (1)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 70-475 Practice