exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 1 question 5 discussion

Actual exam question from Microsoft's 70-480
Question #: 5
Topic #: 1
[All 70-480 Questions]

You are developing an application that consumes a Windows Communication Foundation (WCF) service.
The application interacts with the service by using the following code. (Line numbers are included for reference only.)

You need to authenticate to the WCF service.
What should you do?

  • A. At line 11, add the following lines of code. ,username: yourusername ,password: yourpassword
  • B. At line 11, add the following line of code. ,credentials: prompt
  • C. At line 06, replace the code with the following line of code. url: "http://contoso.com/Service.svc/GetCountry? Username=username&password=password",
  • D. At line 11, add the following line of code. The username and password will be stored in an XML file.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
KyryIx
5 years, 5 months ago
Answer A? https://api.jquery.com/jQuery.ajax/ # password: Type: String A password to be used with XMLHttpRequest in response to an HTTP access authentication request. #username: Type: String A username to be used with XMLHttpRequest in response to an HTTP access authentication request. And method to send is POST and not GET. I dont know answer correct!
upvoted 3 times
TechieBloke
4 years, 9 months ago
You can read it further down on the given link: A username to be used with XMLHttpRequest in response to an HTTP access authentication request. So it means you should not just write "username and password" but you need to include the http request. I guess C is correct. But you should try.
upvoted 1 times
...
...
Elgendy
5 years, 6 months ago
Option C Is The Correct Answer , Only Option C
upvoted 1 times
...
MJKWandile
5 years, 8 months ago
I believe the correct Answer is A, Adding username and password on the URL does not sound right... What do you think??
upvoted 3 times
bdb1993
5 years, 7 months ago
I believe it depends on how it's configured in the wcf service. But with the given options C is the only valid one. If they had put the username and pw in the data object it would also be valid.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...