473,382 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

MCSD 70-310 Advanced XML Web Services Programming Exam Question

Now can someone help me answer this question?

Northwind Traders is a chain of department stores located around the country. It is setting up a new sales system cashiers will use to accept payments from customers. As a pilot project, you are creating a Windows application to implement a new sales system in one of the stores. You want to use an existing Web Service in this Windows application. You have implemented security and ensured that only the users in the cashiers group and the store manager can access the sales system. Because of certain financial requirements, the sales application also needs to be accessed by Nancy, and accountant at that store. However, the XML Web service is not configured to ensure access control. Which of the following tasks ensure that only authorized users can access XML Web services? (Choose one correct option.)



A. In the web.config file, insert the following lines of code:

<authorization> <allow role="Cashiers, Managers"/> <allow users="Nancy"/> <deny users="*"> <deny users="?"></authorization>B. In the web.config file, insert the following lines of code:

<authorization> <deny users="*"> <allow users="Nancy"/> <allow role="Cashiers, Managers"/> <deny users="?"></authorization>C. In the web.config file, insert the following lines of code:

<authorization> <allow users="*"> <allow users="Nancy"/> <allow role="Cashiers, Managers"/> <deny users="?"></authorization>D. In the web.config file, insert the following lines of code:

<authorization> <allow users="?"> <deny users="*"> <allow users="Nancy"/> <allow role="Cashiers, Managers"/></authorization>

I would have assumed that B was the correct answer, but it looks like they wanted A. Or would A and B do the same thing?

Nov 21 '05 #1
29 2053
>Now can someone help me answer this question?

yes, don't post in html.

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #2
"Greg" <gr****@msn.com> wrote:
Now can someone help me answer this question?
<SNIP>I would have assumed that B was the correct answer, but it looks like they wanted A. Or would A and B do the same thing?


Set your posting preferences to plain-text!!!

Northwind Traders is a chain of department stores located
around the country. It is setting up a new sales system
cashiers will use to accept payments from customers. As a
pilot project, you are creating a Windows application to
implement a new sales system in one of the stores. You want
to use an existing Web Service in this Windows application.
You have implemented security and ensured that only the
users in the cashiers group and the store manager can access
the sales system. Because of certain financial requirements,
the sales application also needs to be accessed by Nancy,
and accountant at that store. However, the XML Web service
is not configured to ensure access control. Which of the
following tasks ensure that only authorized users can access
XML Web services? (Choose one correct option.)

A. In the web.config file, insert the following lines of
code:
<authorization>
<allow role="Cashiers, Managers"/>
<allow users="Nancy"/>
<deny users="*">
<deny users="?">
</authorization>

B. In the web.config file, insert the following lines of
code:
<authorization>
<deny users="*">
<allow users="Nancy"/>
<allow role="Cashiers, Managers"/>
<deny users="?">
</authorization>

C. In the web.config file, insert the following lines of
code:
<authorization>
<allow users="*">
<allow users="Nancy"/>
<allow role="Cashiers, Managers"/>
<deny users="?">
</authorization>

D. In the web.config file, insert the following lines of
code:
<authorization>
<allow users="?">
<deny users="*">
<allow users="Nancy"/>
<allow role="Cashiers, Managers"/>
</authorization>

start digging into the MSDN:

<authorization> Element
http://msdn.microsoft.com/library/de...ionsection.asp

<deny> Element
http://msdn.microsoft.com/library/de.../gngrfdeny.asp

<allow> Element
http://msdn.microsoft.com/library/de...gngrfallow.asp

<allow role="Cashiers, Managers"/> - Grant the Cashiers and
Manager roles access
<allow users="Nancy"/> - Allow user Nancy access
<deny users="*"> - Deny all users access
<deny users="?"> - Deny unauthenticated users access
<allow users="?"> - Allow unauthenticated users access

also:

"At run time, the authorization module iterates through the
<allow> and <deny> tags until it finds the FIRST access rule
that fits a particular user. It then grants or denies access
to a URL resource depending on whether the first access rule
found is an <allow> or a <deny> rule."

So (A) grants access to the Cashiers and Managers and to
Nancy while THEN denying access to all other users and
anonymous users. This is the solution that the question is
looking for.

(B) strictly denies all users; the "allows" are in the wrong
position. We never get to the "allow" rules.

(C) allows all users right at the beginning; we never get to
the remaining rules; this is not restrictive enough

(D) allows unauthenticated users, while denying all other
users; we certainly do not want this

Note (doesn't pertain to this question as such): to allow
only authenticated users you would need a sequence of two
rules:

<deny users="?">
<allow users="*">

Also keep in mind:

"The default authorization rule in the Machine.config file
is <allow users="*"/> so, by default, access is allowed
unless configured otherwise."
Nov 21 '05 #3
Get a updated news reader.

"The Poster Formerly Known as Kline Sphere" <.> wrote in message news:gr********************************@4ax.com...
Now can someone help me answer this question?


yes, don't post in html.

Kline Sphere (Chalk) MCNGP #3

Nov 21 '05 #4
Don't post stupid replies.

"UAError" <nu**@null.null> wrote in message news:tu********************************@4ax.com...
"Greg" <gr****@msn.com> wrote:
Now can someone help me answer this question?

<SNIP>
I would have assumed that B was the correct answer, but it looks like they wanted A. Or would A and B do the same thing?


Set your posting preferences to plain-text!!!

Northwind Traders is a chain of department stores located
around the country. It is setting up a new sales system
cashiers will use to accept payments from customers. As a
pilot project, you are creating a Windows application to
implement a new sales system in one of the stores. You want
to use an existing Web Service in this Windows application.
You have implemented security and ensured that only the
users in the cashiers group and the store manager can access
the sales system. Because of certain financial requirements,
the sales application also needs to be accessed by Nancy,
and accountant at that store. However, the XML Web service
is not configured to ensure access control. Which of the
following tasks ensure that only authorized users can access
XML Web services? (Choose one correct option.)

A. In the web.config file, insert the following lines of
code:
<authorization>
<allow role="Cashiers, Managers"/>
<allow users="Nancy"/>
<deny users="*">
<deny users="?">
</authorization>

B. In the web.config file, insert the following lines of
code:
<authorization>
<deny users="*">
<allow users="Nancy"/>
<allow role="Cashiers, Managers"/>
<deny users="?">
</authorization>

C. In the web.config file, insert the following lines of
code:
<authorization>
<allow users="*">
<allow users="Nancy"/>
<allow role="Cashiers, Managers"/>
<deny users="?">
</authorization>

D. In the web.config file, insert the following lines of
code:
<authorization>
<allow users="?">
<deny users="*">
<allow users="Nancy"/>
<allow role="Cashiers, Managers"/>
</authorization>

start digging into the MSDN:

<authorization> Element
http://msdn.microsoft.com/library/de...ionsection.asp

<deny> Element
http://msdn.microsoft.com/library/de.../gngrfdeny.asp

<allow> Element
http://msdn.microsoft.com/library/de...gngrfallow.asp

<allow role="Cashiers, Managers"/> - Grant the Cashiers and
Manager roles access
<allow users="Nancy"/> - Allow user Nancy access
<deny users="*"> - Deny all users access
<deny users="?"> - Deny unauthenticated users access
<allow users="?"> - Allow unauthenticated users access

also:

"At run time, the authorization module iterates through the
<allow> and <deny> tags until it finds the FIRST access rule
that fits a particular user. It then grants or denies access
to a URL resource depending on whether the first access rule
found is an <allow> or a <deny> rule."

So (A) grants access to the Cashiers and Managers and to
Nancy while THEN denying access to all other users and
anonymous users. This is the solution that the question is
looking for.

(B) strictly denies all users; the "allows" are in the wrong
position. We never get to the "allow" rules.

(C) allows all users right at the beginning; we never get to
the remaining rules; this is not restrictive enough

(D) allows unauthenticated users, while denying all other
users; we certainly do not want this

Note (doesn't pertain to this question as such): to allow
only authenticated users you would need a sequence of two
rules:

<deny users="?">
<allow users="*">

Also keep in mind:

"The default authorization rule in the Machine.config file
is <allow users="*"/> so, by default, access is allowed
unless configured otherwise."

Nov 21 '05 #5
In article <uV**************@TK2MSFTNGP12.phx.gbl>, gr****@msn.com
says...
Don't post stupid replies.


Shouldn't you be in bed already?
Nov 21 '05 #6
greg you are an stupid idiot.

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #7
greg, you are an idiot.

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #8
>> Don't post stupid replies.


Shouldn't you be in bed already?


.... and a good time was had by all....

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #9
That MCNGP designation really shows your intelligence, too. Since your
newsreader can't support HTML, I'm sure you can understand this now.

"The Poster Formerly Known as Kline Sphere" <.> wrote in message
news:hn********************************@4ax.com...
greg you are an stupid idiot.

Kline Sphere (Chalk) MCNGP #3

Nov 21 '05 #10
I should have known better, "The Poster Formerly Known as Kline Sphere".

"The Poster Formerly Known as Kline Sphere" <.> wrote in message
news:km********************************@4ax.com...
greg, you are an idiot.

Kline Sphere (Chalk) MCNGP #3

Nov 21 '05 #11
>That MCNGP designation really shows your intelligence, too.

not as much as my Msc title.
Since your
newsreader can't support HTML, I'm sure you can understand this now.


Maybe you should review the purpose of usenet, and in the process
review rfc822 & rfc1036.

html posting serves no purpose whatsoever and is only here because of
abominations such as outlook express.

BTW, where did you get that question from for which *you* were unable
to work the answer for yourself? You know the one that seemed, to me
anyway, to resemble a question from the real exam pool?

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #12
>I should have known better, "The Poster Formerly Known as Kline Sphere".

yes indeed.

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #13
In article <kg********************************@4ax.com>, The Poster
Formerly Known as Kline Sphere <.> says...
That MCNGP designation really shows your intelligence, too.


not as much as my Msc title.
Since your
newsreader can't support HTML, I'm sure you can understand this now.


Maybe you should review the purpose of usenet, and in the process
review rfc822 & rfc1036.

html posting serves no purpose whatsoever and is only here because of
abominations such as outlook express.

BTW, where did you get that question from for which *you* were unable
to work the answer for yourself? You know the one that seemed, to me
anyway, to resemble a question from the real exam pool?

Kline Sphere (Chalk) MCNGP #3

That and the fact that he had the cheek to criticise UAError who
actually answered his question and quoted the relevant MSDN sections.
Nov 21 '05 #14
Because with a stupid name like that, we know you are a really intelligent
boy. lol

"The Poster Formerly Known as Kline Sphere" <.> wrote in message
news:ra********************************@4ax.com...
I should have known better, "The Poster Formerly Known as Kline Sphere".


yes indeed.

Kline Sphere (Chalk) MCNGP #3

Nov 21 '05 #15
Since you work for Microsoft, you probably write those questions in your
Chinaman or Paki Enwish.

"Pollux" <po****@nospam.spam> wrote in message
news:MP************************@beta.usenet.plus.n et...
In article <kg********************************@4ax.com>, The Poster
Formerly Known as Kline Sphere <.> says...
That MCNGP designation really shows your intelligence, too.


not as much as my Msc title.
Since your
newsreader can't support HTML, I'm sure you can understand this now.


Maybe you should review the purpose of usenet, and in the process
review rfc822 & rfc1036.

html posting serves no purpose whatsoever and is only here because of
abominations such as outlook express.

BTW, where did you get that question from for which *you* were unable
to work the answer for yourself? You know the one that seemed, to me
anyway, to resemble a question from the real exam pool?

Kline Sphere (Chalk) MCNGP #3

That and the fact that he had the cheek to criticise UAError who
actually answered his question and quoted the relevant MSDN sections.

Nov 21 '05 #16
In article <#4**************@TK2MSFTNGP09.phx.gbl>, gr****@msn.com
says...
Since you work for Microsoft, you probably write those questions in your
Chinaman or Paki Enwish.

"Pollux" <po****@nospam.spam> wrote in message
news:MP************************@beta.usenet.plus.n et...
In article <kg********************************@4ax.com>, The Poster
Formerly Known as Kline Sphere <.> says...
>That MCNGP designation really shows your intelligence, too.

not as much as my Msc title.

>Since your
>newsreader can't support HTML, I'm sure you can understand this now.

Maybe you should review the purpose of usenet, and in the process
review rfc822 & rfc1036.

html posting serves no purpose whatsoever and is only here because of
abominations such as outlook express.

BTW, where did you get that question from for which *you* were unable
to work the answer for yourself? You know the one that seemed, to me
anyway, to resemble a question from the real exam pool?

Kline Sphere (Chalk) MCNGP #3

That and the fact that he had the cheek to criticise UAError who
actually answered his question and quoted the relevant MSDN sections.



An idiot and a bigot. Very nice.

I am neither confirming nor denying that I work for Microsoft. Not sure
where you got the idea though?
Nov 21 '05 #17
>Because with a stupid name like that, we know you are a really intelligent
boy. lol


you mean you know what a 'kline sphere' is? boy I'm impressed!

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #18
>That and the fact that he had the cheek to criticise UAError who
actually answered his question and quoted the relevant MSDN sections.


I'm still waiting to know where the question came from....

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #19
>Since you work for Microsoft, you probably write those questions in your
Chinaman or Paki Enwish.


wow... and people think I'm the bad man.....

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #20
Nah, I'm tired of the stupid banter. I'll give you the last word because I
know it's really important for you.

It looks like this newsgroup is all you have in your shallow life. Bye bye
loser.

"The Poster Formerly Known as Kline Sphere" <.> wrote in message
news:3p********************************@4ax.com...
That and the fact that he had the cheek to criticise UAError who
actually answered his question and quoted the relevant MSDN sections.


I'm still waiting to know where the question came from....

Kline Sphere (Chalk) MCNGP #3

Nov 21 '05 #21
UAError wrote:
A. In the web.config file, insert the following lines of
code:
<authorization>
<allow role="Cashiers, Managers"/>
<allow users="Nancy"/>
<deny users="*">
<deny users="?">
</authorization>

B. In the web.config file, insert the following lines of
code:
<authorization>
<deny users="*">
<allow users="Nancy"/>
<allow role="Cashiers, Managers"/>
<deny users="?">
</authorization>
So (A) grants access to the Cashiers and Managers and to
Nancy while THEN denying access to all other users and
anonymous users. This is the solution that the question is
looking for.

(B) strictly denies all users; the "allows" are in the wrong
position. We never get to the "allow" rules.


Well, I can see his confusion; however. Logically, the wildcard '*'
should /erase/ the permissions of the preceding permissions. What you are
saying is, based on position, the '*' acts as a blanket, wiping out
permissions for all future requests, OR, it acts as a filter, that takes
into account all the permissions already granted.

That's crazy.

(B) is a more logical format and makes far more sense. I think either this
question is wrong; or else microsoft designed permissions wrong.

--
incognito @ http://kentpsychedelic.blogspot.com/

Man is the best computer we can put aboard a spacecraft ... and the only one
that can be mass produced with unskilled labor. -- Werner von Braun
Nov 21 '05 #22
>It looks like this newsgroup is all you have in your shallow life. Bye bye
loser.


I'm loser? Who's the person with zero initiative when attempting to
solve simple problems?

BTW, when you are preparing my next burger, please don't spit into it.

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #23
The Poster Formerly Known as Kline Sphere wrote:
BTW, when you are preparing my next burger, please don't spit into it.


Do you have a MCNGP lapel pin? It might be wise not to wear that into
McDonalds!

Eric
Nov 21 '05 #24
>Do you have a MCNGP lapel pin? It might be wise not to wear that into
McDonalds!


umm, time to change my name again I think!

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #25
The Poster Formerly Known as Kline Sphere wrote:
Since you work for Microsoft, you probably write those questions in your
Chinaman or Paki Enwish.

wow... and people think I'm the bad man.....

Kline Sphere (Chalk) MCNGP #3


Don't worry. You still are. :-P
Nov 21 '05 #26
In article <uf*************@TK2MSFTNGP10.phx.gbl>, MN*****@Addus.com
says...
The Poster Formerly Known as Kline Sphere wrote:
Since you work for Microsoft, you probably write those questions in your
Chinaman or Paki Enwish.

wow... and people think I'm the bad man.....

Kline Sphere (Chalk) MCNGP #3


Don't worry. You still are. :-P


I came across a thread called "People I Hate" and his name wasn't on the
list. Surely that cannot be good for his reputation.
Nov 21 '05 #27
>I came across a thread called "People I Hate" and his name wasn't on the
list. Surely that cannot be good for his reputation.


I was *very* upset my name was not on that list (it must have been an
over site!), especially seeing that JaR was on it!

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #28
>Don't worry. You still are. :-P

Phew! had me worried for a minute.

Kline Sphere (Chalk) MCNGP #3
Nov 21 '05 #29
JaR
The Poster Formerly Known as Kline Sphere wrote:
I came across a thread called "People I Hate" and his name wasn't on the
list. Surely that cannot be good for his reputation.

I was *very* upset my name was not on that list (it must have been an
over site!), especially seeing that JaR was on it!


Hey! Wait a minnit...

JaR
Nov 21 '05 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Astra | last post by:
Hi All One of my VarChar fields in my MySQL DB isn't big enough so I need to expand it. In light of this, could you please answer these queries: 1) How do I expand the size of the field...
2
by: Arsalan | last post by:
I dont know but I'm planning to do MCSD on one of three language VB C# or VC Which one should i do, and which is best? Performance and functionality wise ?
0
by: bunty | last post by:
hi, I am going to sit for MCSD C# examination in Nov '05. Please help me with dumps. TIA Debojyoti Mukherjee
13
by: Arsalan | last post by:
I know this not the right place to post this question, but I've seen couple of people with these certification. Although i know what is MCSD but i dont know the difference between MCSD, MCP...
15
by: Daren | last post by:
Hi, I need to be able to split large string variables into an array of lines, each line can be no longer than 70 chars. The string variables are text, so I would additionally like the lines...
5
by: woof | last post by:
Hello, I have built a "contact us" form on my Web site and am using the PHP mail() function to send an e-mail to the Webmaster (that's me :-)) Everything works fine. What I would like to know...
27
by: Kepler | last post by:
Hi, I need advices on my interogations, I am interested in learning both MCSD.Net and MCSE on windows server 2003, I have all my time, all the books and software( will learn them at home and...
2
by: xgz0303 | last post by:
hi i have a problem when i try to use the recovery programs cd in my laptop sony vaio grt816m after the first window by clicking continue i get a smaller window VRU run time error 70...access...
9
by: Matthew | last post by:
I'm using PHP version 4.4.3. The manual page for PHP's mail() function (URL below) says that for the message (IE. email body) "Each line should be separated with a LF (\n). Lines should not be...
4
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I've a document which i'm creating and printing. i want to print 2 copies: 1. regular A4 copy 2. 70% of A4 size (like in copy machine, where you can choose the size of copy). how can...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.