Microsoft UPG:Transition MCPD.NET Frmwrk 3.5 Web Dev to 4 Web Dev 認定 70-523 試験問題:
1. A Windows Communication Foundation (WCF) service is responsible for transmitting XML documents between systems. The service has the following requirements: *It must minimize the transmission size by attaching the XML document as is without using escape characters or base64 encoding. *It must interoperate with systems that use SOAP but are not built on the .NET platform. You need to configure the service to support these requirements. Which message encoding should you use?
A) Text message encoding with message version set to SOAP 1.2
B) Binary message encoding
C) Text message encoding with message version set to none
D) MTOM (Message Transmission Optimization Mechanism) message encoding
2. You are implementing an ASP.NET Web site. The site contains the following class.
public class Address
{
public int AddressType;
public string Line1;
public string Line2;
public string City;
public string ZipPostalCode;
}
The Web site interacts with an external data service that requires Address instances to be given in the
following XML format.
<Address AddressType="2">
<Line1>250 Race Court</Line1>
<City>Chicago</City>
<PostalCode>60603</PostalCode>
</Address>
You need to ensure that Address instances that are serialized by the XmlSerializer class meet the XML
format requirements of the external data service.
Which two actions should you perform (Each correct answer presents part of the solution. Choose two.)
A) Add the following attribute to the AddressType field. [XmlAttribute]
B) Add the following attribute to the ZipPostalCode field. [XmlElement("PostalCode")]
C) Add the following attribute to the ZipPostalCode field. [XmlAttribute("ZipCode")]
D) Add the following attribute to the Line2 field. [XmlElement(IsNullable=true)]
3. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. The application uses the following object query
to load a product from the database. (Line numbers are included for reference only.)
01using (AdventureWorksEntities advWorksContext = new AdventureWorksEntities())
02{
03ObjectQuery <Product> productQuery = advWorksContext.Product.Where("it.ProductID = 900");
04
05}
You need to log the command that the query executes against the data source. Which code segment
should you insert at line 04?
A) Trace.WriteLine(((IQueryable)productQuery).Expression);
B) Trace.WriteLine(productQuery.CommandText);
C) Trace.WriteLine(productQuery.ToTraceString());
D) Trace.WriteLine(productQuery.ToString());
4. You need to design session state management for the rewritten Web application. Which approach should you recommend?
A) Use a third-party cookie to store the authentication ticket.
B) Use a persistent cookie to store the authentication ticket.
C) Use the same machine key element attributes and values across all three servers.
D) Use different machine key element attributes and values across all three servers.
5. You are creating a Windows Communication Foundation (WCF) service that is implemented as follows.
(Line numbers are included for reference only.)
01 [ServiceContract]
02 [ServiceBehavior(IncludeExceptionDetailsInFaults = true)]
03 public class OrderService
04 {
05 [OperationContract]
06 public void SubmitOrder(Order anOrder)
07 {
08 try
09 {
10 ...
11 }
12 catch(DivideByZeroException ex)
13 {
14
15 }
16 }
17 }
You need to ensure that the stack trace details of the exception are not included in the error information
sent to the client.
What should you do?
A) After line 05, add the following line. [FaultContract(typeof(FaultException<Order>))] Replace line 14 with the following line. throw ex;
B) Replace line 14 with the following line.
throw new FaultException<Order>(anOrder, ex.ToString());
C) After line 05, add the following line. [FaultContract(typeof(FaultException<Order>))] Replace line 14 with the following line. throw new FaultException<Order>(anOrder, "Divide by zero exception");
D) Replace line 14 with the following line. throw;
質問と回答:
| 質問 # 1 正解: D | 質問 # 2 正解: A、B | 質問 # 3 正解: C | 質問 # 4 正解: C | 質問 # 5 正解: C |














1343 お客様のコメント
品質保証JPexamはIT認定試験のシラバスに従って、試験問題の範囲を正確に絞って、的中率が99%の最新問題集を捧げます。
1年間の無料更新サービスJPexamは1年以内に問題集の無料更新サービスを提供し、お客様がいつでも最新版の問題集を持つことを保証いたします。もし試験の内容が変更されたら、弊社は直ちにお客様にお知らせします。それに、弊社の問題集が更新されたら、早速メールで最新バージョンを送付いたします。
全額返金JPexamの問題集を利用すると、短時間で勉強しても試験に合格できるのを保証いたします。試験に不合格になってしまった場合、弊社は全額返金いたします。(
ご購入前のお試しJPexamは問題集のサンプルを無料で提供いたします。ご購入前にサンプルを試用して製品の品質を確認することができます。ご遠慮なく利用してください。
