Correct answer is good, the policy is not going to apply to the existing resources, unless you run a remediation task to force the policy to all the existing resources
The policy denies the creation of any new storage account that does not allow the https protocol. It is a DENY policy not a policy to allow https traffic. Answer is B
The correct answer is:
B. ensures that all traffic to new Azure Storage accounts is encrypted
Why other options are incorrect:
A. prevents all HTTP traffic to existing Azure Storage accounts:
Incorrect. The policy applies only to new or modified storage accounts because Azure Policies enforce compliance at the resource creation or modification stage, not retroactively.
C. prevents HTTPS traffic to new Azure Storage accounts when the accounts are accessed over the Internet:
Incorrect. The policy enforces HTTPS traffic, not prevents it.
D. ensures that all data for new Azure Storage accounts is encrypted at rest:
Incorrect. The policy only concerns HTTPS traffic, not encryption at rest. Azure Storage accounts encrypt data at rest by default.
The code just seems unnecessary and answers just as bad. From what i understand it has 2 negative clauses that would effectively mean the https rule is enforced, so the storage traffic is securely encrypted.
Ans: B.
This is the reason why the correct answer is B: "During evaluation of existing resources, resources that match a deny policy definition are marked as non-compliant"
https://docs.microsoft.com/en-us/azure/governance/policy/concepts/effects#deny
This section is not available anymore. Please use the main Exam Page.AZ-400 Exam Questions
Log in to ExamTopics
Sign in:
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.
rafapaz09
Highly Voted 3 years, 12 months agoKinon4
Highly Voted 3 years, 11 months agoKinon4
3 years, 11 months agoCyberLumi
3 years, 11 months agonikolayivanov
Most Recent 3 months, 1 week agohajurbau
9 months, 3 weeks agoozbonny
1 year, 2 months agoGokhanSenyuz
2 years, 5 months agoAtos
2 years, 7 months agosyu31svc
2 years, 8 months agoGovcomm
2 years, 9 months agoEltooth
2 years, 11 months agoUnknowMan
2 years, 11 months agoCheehp
3 years agordemontis
3 years, 1 month agosujitwarrier11
3 years, 2 months agobinq
3 years, 2 months agoPlumpyTumbler
3 years, 2 months agoShreyans
3 years, 2 months ago