nerdexam
Microsoft

70-516 · Question #78

You are developing a WCF data service that will expose an existing Entity Data Model (EDM). You have the following requirements: - Users must be able to read all entities that are exposed in the…

The correct answer is B. config.SetEntitySetAccessRule("*", EntitySetRights.AllRead). See the full explanation below for the reasoning.

Question

You are developing a WCF data service that will expose an existing Entity Data Model (EDM). You have the following requirements:

  • Users must be able to read all entities that are exposed in the EDM.
  • Users must be able to update or replace the SalesOrderHeader

entities.

  • Users must be prevented from inserting or deleting the

SalesOrderHeader entities You need to ensure that the data service meets the requirements. Which code segment should you use in the Initialize method?

Options

  • Aconfig.SetEntitySetAccessRule("*", EntitySetRights.AllRead);
  • Bconfig.SetEntitySetAccessRule("*", EntitySetRights.AllRead);
  • Cconfig.SetEntitySetAccessRule("*", EntitySetRights.AllRead);
  • Dconfig.SetEntitySetAccessRule("*", EntitySetRights.AllRead);

How the community answered

(52 responses)
  • A
    4% (2)
  • B
    83% (43)
  • C
    12% (6)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice